Fix CompanionDeviceManagerTest

Fix CompanionDeviceManagerTest by moving it off the deprecated
InstrumentationTestCase, and interacting with UiDevice directly.

Bug: 203319186
Bug: 201749850
Bug: 204904766
Test: atest android.os.cts.CompanionDeviceManagerTest
Merged-In: Ie023b377af10b70714d5abfe325be6910e978a97
Change-Id: Ie023b377af10b70714d5abfe325be6910e978a97
(cherry picked from commit 26089f95a47228c4bbb2e15feb393aaa507d3c97)
3 files changed