Home
last modified time | relevance | path

Searched refs:mVirtualDeviceManager (Results 1 – 5 of 5) sorted by relevance

/cts/tests/tests/virtualdevice/core/src/android/virtualdevice/cts/core/
DVirtualDeviceManagerBasicTest.java100 private VirtualDeviceManager mVirtualDeviceManager; field in VirtualDeviceManagerBasicTest
114 mVirtualDeviceManager = mContext.getSystemService(VirtualDeviceManager.class); in setUp()
117 mVirtualDeviceManager.registerVirtualDeviceListener( in setUp()
127 mVirtualDeviceManager.unregisterVirtualDeviceListener(mVirtualDeviceListener); in tearDown()
135 () -> mVirtualDeviceManager.getDisplayNameForPersistentDeviceId(null)); in getDisplayNameForPersistentId_nullPersistentId_throws()
141 assertThat(mVirtualDeviceManager.getDisplayNameForPersistentDeviceId( in getDisplayNameForPersistentId_nonExistentPersistentId_returnsNull()
149 assertThat(mVirtualDeviceManager.getDisplayNameForPersistentDeviceId( in getDisplayNameForPersistentId_defaultDevicePersistentId_returnsNull()
158 mVirtualDeviceManager in getDisplayNameForPersistentId_validVirtualDevice_returnsCorrectId()
162 mVirtualDeviceManager.getDisplayNameForPersistentDeviceId( in getDisplayNameForPersistentId_validVirtualDevice_returnsCorrectId()
174 assertThat(mVirtualDeviceManager.getAllPersistentDeviceIds()).isEmpty(); in getAllPersistentDeviceIds_empty()
[all …]
DVirtualDisplayTest.java61 private VirtualDeviceManager mVirtualDeviceManager; field in VirtualDisplayTest
66 mVirtualDeviceManager = in setUp()
177 assertThat(mVirtualDeviceManager.isVirtualDeviceOwnedMirrorDisplay(display.getDisplayId())) in createVirtualDisplay_public_createsMirrorDisplay()
191 assertThat(mVirtualDeviceManager.isVirtualDeviceOwnedMirrorDisplay(display.getDisplayId())) in createVirtualDisplay_autoMirror_createsMirrorDisplay()
206 assertThat(mVirtualDeviceManager.isVirtualDeviceOwnedMirrorDisplay(display.getDisplayId())) in createVirtualDisplay_publicAutoMirror_createsMirrorDisplay()
221 assertThat(mVirtualDeviceManager.isVirtualDeviceOwnedMirrorDisplay(display.getDisplayId())) in createVirtualDisplay_ownContentOnly_doesNotCreateMirrorDisplay()
236 assertThat(mVirtualDeviceManager.isVirtualDeviceOwnedMirrorDisplay(display.getDisplayId())) in createVirtualDisplay_autoMirrorAndOwnContentOnly_doesNotCreateMirrorDisplay()
301 assertThat(mVirtualDeviceManager.isVirtualDeviceOwnedMirrorDisplay(Display.INVALID_DISPLAY)) in isVirtualDeviceOwnedMirrorDisplay_invalidDisplay_returnsFalse()
308 assertThat(mVirtualDeviceManager.isVirtualDeviceOwnedMirrorDisplay(Display.DEFAULT_DISPLAY)) in isVirtualDeviceOwnedMirrorDisplay_defaultDisplay_returnsFalse()
321 assertThat(mVirtualDeviceManager.isVirtualDeviceOwnedMirrorDisplay(displayId)).isFalse(); in isVirtualDeviceOwnedMirrorDisplay_unownedAutoMirrorDisplay_returnsFalse()
[all …]
/cts/tests/tests/media/audio/src/android/media/audio/cts/
DAudioFocusWithVdmTest.java87 private VirtualDeviceManager mVirtualDeviceManager; field in AudioFocusWithVdmTest
92 mVirtualDeviceManager = context.getSystemService(VirtualDeviceManager.class); in setUp()
93 assumeNotNull(mVirtualDeviceManager); in setUp()
110 try (VirtualDeviceManager.VirtualDevice vd = mVirtualDeviceManager.createVirtualDevice( in testAudioFocusRequestOnVdmContextWithCustomDevicePolicy()
143 try (VirtualDeviceManager.VirtualDevice vd = mVirtualDeviceManager.createVirtualDevice( in testAudioFocusRequestOnVdmContextWithDefaultDevicePolicy()
/cts/tests/tests/virtualdevice/common/src/android/virtualdevice/cts/common/
DVirtualDeviceRule.java121 private final VirtualDeviceManager mVirtualDeviceManager = field in VirtualDeviceRule
154 assumeNotNull(mVirtualDeviceManager); in apply()
163 return mVirtualDeviceManager.getVirtualDevice(deviceId); in getVirtualDevice()
165 return mVirtualDeviceManager.getVirtualDevices().stream() in getVirtualDevice()
185 final VirtualDevice virtualDevice = mVirtualDeviceManager.createVirtualDevice( in createManagedVirtualDevice()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DAccessibilityDisplayProxyTest.java259 private VirtualDeviceManager mVirtualDeviceManager; field in AccessibilityDisplayProxyTest
327 mVirtualDeviceManager = context.getSystemService(VirtualDeviceManager.class); in setUp()
328 assumeNotNull(mVirtualDeviceManager); in setUp()
1668 mVirtualDevice = mVirtualDeviceManager.createVirtualDevice( in createVirtualDeviceAndLaunchVirtualDisplay()