/cts/tests/tests/virtualdevice/core/src/android/virtualdevice/cts/core/ |
D | VirtualDisplayTest.java | 73 VirtualDisplay virtualDisplay = mRule.createManagedVirtualDisplay(mVirtualDevice); in createVirtualDisplay_shouldSucceed() local 74 verifyDisplay(virtualDisplay); in createVirtualDisplay_shouldSucceed() 79 VirtualDisplay virtualDisplay = mVirtualDevice.createVirtualDisplay( in createVirtualDisplay_deprecatedOverload_shouldSucceed() local 88 assertThat(virtualDisplay).isNotNull(); in createVirtualDisplay_deprecatedOverload_shouldSucceed() 90 verifyDisplay(virtualDisplay); in createVirtualDisplay_deprecatedOverload_shouldSucceed() 92 virtualDisplay.release(); in createVirtualDisplay_deprecatedOverload_shouldSucceed() 93 mRule.assertDisplayDoesNotExist(virtualDisplay.getDisplay().getDisplayId()); in createVirtualDisplay_deprecatedOverload_shouldSucceed() 100 VirtualDisplay virtualDisplay = mRule.createManagedVirtualDisplay(mVirtualDevice); in createVirtualDisplay_defaultVirtualDisplayFlags() local 102 Display display = virtualDisplay.getDisplay(); in createVirtualDisplay_defaultVirtualDisplayFlags() 113 VirtualDisplay virtualDisplay = mRule.createManagedVirtualDisplay(mVirtualDevice); in createVirtualDisplay_defaultVirtualDisplayFlags_compat() local [all …]
|
/cts/tests/tests/display/src/android/display/cts/ |
D | VirtualDisplayTest.java | 189 VirtualDisplay virtualDisplay = mDisplayManager.createVirtualDisplay(NAME, in testPrivateVirtualDisplay() local 191 assertNotNull("virtual display must not be null", virtualDisplay); in testPrivateVirtualDisplay() 193 Display display = virtualDisplay.getDisplay(); in testPrivateVirtualDisplay() 196 assertEquals(mSurface, virtualDisplay.getSurface()); in testPrivateVirtualDisplay() 202 virtualDisplay.release(); in testPrivateVirtualDisplay() 214 VirtualDisplay virtualDisplay = mDisplayManager.createVirtualDisplay(NAME, in testPrivatePresentationVirtualDisplay() local 217 assertNotNull("virtual display must not be null", virtualDisplay); in testPrivatePresentationVirtualDisplay() 219 Display display = virtualDisplay.getDisplay(); in testPrivatePresentationVirtualDisplay() 222 assertEquals(mSurface, virtualDisplay.getSurface()); in testPrivatePresentationVirtualDisplay() 228 virtualDisplay.release(); in testPrivatePresentationVirtualDisplay() [all …]
|
/cts/tests/framework/base/windowmanager/backgroundactivity/TestApp/src/android/server/wm/backgroundactivity/appa/ |
D | VirtualDisplayActivity.java | 40 VirtualDisplay virtualDisplay = getSystemService(DisplayManager.class).createVirtualDisplay( in createPublicVirtualDisplayAndShowPresentation() local 45 new Presentation(getBaseContext(), virtualDisplay.getDisplay()).show(); in createPublicVirtualDisplayAndShowPresentation() 49 VirtualDisplay virtualDisplay = getSystemService(DisplayManager.class).createVirtualDisplay( in createVirtualDisplayAndShowPresentation() local 51 new Presentation(getBaseContext(), virtualDisplay.getDisplay()).show(); in createVirtualDisplayAndShowPresentation()
|
/cts/tests/tests/virtualdevice/common/src/android/virtualdevice/cts/common/ |
D | VirtualDeviceRule.java | 218 final VirtualDisplay virtualDisplay = virtualDevice.createVirtualDisplay( in createManagedVirtualDisplay() local 220 if (virtualDisplay != null) { in createManagedVirtualDisplay() 221 assertDisplayExists(virtualDisplay.getDisplay().getDisplayId()); in createManagedVirtualDisplay() 225 return virtualDisplay; in createManagedVirtualDisplay() 253 final VirtualDisplay virtualDisplay = in createManagedUnownedVirtualDisplay() local 255 if (virtualDisplay != null) { in createManagedUnownedVirtualDisplay() 256 assertDisplayExists(virtualDisplay.getDisplay().getDisplayId()); in createManagedUnownedVirtualDisplay() 257 mTrackerRule.mVirtualDisplays.add(virtualDisplay); in createManagedUnownedVirtualDisplay() 259 return virtualDisplay; in createManagedUnownedVirtualDisplay() 357 VirtualDisplay virtualDisplay, Class<T> clazz) { in startActivityOnDisplaySync() argument [all …]
|
/cts/tests/tests/virtualdevice/applaunch/src/android/virtualdevice/cts/applaunch/ |
D | RecentTasksTest.java | 58 VirtualDisplay virtualDisplay = createPublicVirtualDisplay(virtualDevice); in activityLaunchedOnVirtualDeviceWithDefaultRecentPolicy_includedInRecents() local 60 Activity activity = mRule.startActivityOnDisplaySync(virtualDisplay, EmptyActivity.class); in activityLaunchedOnVirtualDeviceWithDefaultRecentPolicy_includedInRecents() 73 mRule.assertDisplayDoesNotExist(virtualDisplay.getDisplay().getDisplayId()); in activityLaunchedOnVirtualDeviceWithDefaultRecentPolicy_includedInRecents() 80 VirtualDisplay virtualDisplay = createPublicVirtualDisplay(virtualDevice); in activityLaunchedOnVirtualDeviceWithCustomRecentPolicy_excludedFromRecents() local 82 Activity activity = mRule.startActivityOnDisplaySync(virtualDisplay, EmptyActivity.class); in activityLaunchedOnVirtualDeviceWithCustomRecentPolicy_excludedFromRecents() 95 mRule.assertDisplayDoesNotExist(virtualDisplay.getDisplay().getDisplayId()); in activityLaunchedOnVirtualDeviceWithCustomRecentPolicy_excludedFromRecents()
|
D | RestrictActivityTest.java | 114 final VirtualDisplay virtualDisplay = mRule.createManagedUnownedVirtualDisplayWithFlags( in restrictedActivity_noGwpc_shouldFail() local 118 final int displayId = virtualDisplay.getDisplay().getDisplayId(); in restrictedActivity_noGwpc_shouldFail() 161 VirtualDisplay virtualDisplay = mRule.createManagedVirtualDisplay( in createVirtualDeviceAndDisplayWithCategories() local 163 return virtualDisplay.getDisplay().getDisplayId(); in createVirtualDeviceAndDisplayWithCategories()
|
D | StreamedAppBehaviorTest.java | 61 VirtualDisplay virtualDisplay = mRule.createManagedVirtualDisplayWithFlags(virtualDevice, in appsInVirtualDevice_shouldNotHaveAccessToCamera() local 72 virtualDisplay, AppComponents.EmptyActivity.class); in appsInVirtualDevice_shouldNotHaveAccessToCamera()
|
D | VirtualDeviceDrmTest.java | 64 VirtualDisplay virtualDisplay = mRule.createManagedVirtualDisplayWithFlags(virtualDevice, in setUp() local 69 mDrmActivity = mRule.startActivityOnDisplaySync(virtualDisplay, DrmActivity.class); in setUp()
|
D | ActivityManagementTest.java | 95 VirtualDisplay virtualDisplay = mRule.createManagedVirtualDisplayWithFlags(mVirtualDevice, in setUp() local 99 mVirtualDisplayId = virtualDisplay.getDisplay().getDisplayId(); in setUp()
|
D | VirtualDevicePermissionTest.java | 296 VirtualDisplay virtualDisplay = mRule.createManagedVirtualDisplayWithFlags(mVirtualDevice, in createVirtualDeviceAndDisplay() local 300 mVirtualDisplayId = virtualDisplay.getDisplay().getDisplayId(); in createVirtualDeviceAndDisplay()
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/animations/ |
D | DisplaySizeTest.java | 110 VirtualDisplay virtualDisplay = null; in testSizeRangesAfterSettingDisplaySize() local 115 virtualDisplay = displayManager.createVirtualDisplay("CtsDisplay", initialLength, in testSizeRangesAfterSettingDisplaySize() 117 final Display targetDisplay = virtualDisplay.getDisplay(); in testSizeRangesAfterSettingDisplaySize() 160 if (virtualDisplay != null) { in testSizeRangesAfterSettingDisplaySize() 161 virtualDisplay.release(); in testSizeRangesAfterSettingDisplaySize()
|
/cts/tests/input/src/android/input/cts/ |
D | VirtualDisplayActivityScenarioRule.kt | 77 lateinit var virtualDisplay: VirtualDisplay in invoke() variable in android.input.cts.VirtualDisplayActivityScenarioRule 79 val displayId: Int get() = virtualDisplay.display.displayId in invoke() 154 virtualDisplay = displayManager.createVirtualDisplay( in createDisplay() 162 virtualDisplay.release() in releaseDisplay()
|
D | TouchModeTest.kt | 71 private var virtualDisplay: VirtualDisplay? = null in <lambda>() variable in android.input.cts.TouchModeTest 104 val display = virtualDisplay in <lambda>() 366 virtualDisplay = displayManager.createVirtualDisplay( in <lambda>() 370 assertThat(virtualDisplay).isNotNull() in <lambda>() 372 return virtualDisplay!!.display.displayId in <lambda>()
|
D | SimultaneousTouchAndStylusTest.kt | 80 touchScreen = UinputTouchScreen(instrumentation, virtualDisplayRule.virtualDisplay.display) in setUp() 81 stylus = UinputStylus(instrumentation, virtualDisplayRule.virtualDisplay.display) in setUp() 98 return virtualDisplayRule.virtualDisplay.display.getMode().getPhysicalWidth() in getWidth() 102 return virtualDisplayRule.virtualDisplay.display.getMode().getPhysicalHeight() in getHeight()
|
D | StylusButtonInputEventTest.kt | 147 virtualDisplayRule.virtualDisplay.display in <lambda>() 202 UinputStylus(instrumentation, virtualDisplayRule.virtualDisplay.display).use { in <lambda>()
|
D | TouchScreenTest.kt | 67 touchScreen = UinputTouchScreen(instrumentation, virtualDisplayRule.virtualDisplay.display) in setUp() 82 .getHostUsiVersion(virtualDisplayRule.virtualDisplay.display) in testHostUsiVersionIsNull()
|
D | MotionEventIsResampledTest.kt | 66 touchScreen = UinputTouchScreen(instrumentation, virtualDisplayRule.virtualDisplay.display) in setUp()
|
/cts/tests/tests/media/projection/sdk33/src/android/media/projection/ |
D | MediaProjectionSDK33Test.java | 287 private static void cleanupVirtualDisplay(VirtualDisplay virtualDisplay) { in cleanupVirtualDisplay() argument 288 if (virtualDisplay != null) { in cleanupVirtualDisplay() 289 final Surface surface = virtualDisplay.getSurface(); in cleanupVirtualDisplay() 293 virtualDisplay.release(); in cleanupVirtualDisplay() 294 virtualDisplay = null; in cleanupVirtualDisplay()
|
/cts/tests/tests/virtualdevice/sensor/src/android/virtualdevice/cts/sensor/ |
D | VirtualSensorNativeTest.java | 103 VirtualDisplay virtualDisplay = mVirtualDeviceRule.createManagedVirtualDisplay( in activityOnVirtualDisplayGetsVirtualDeviceSensor() local 106 virtualDisplay, NativeSensorTestActivity.class); in activityOnVirtualDisplayGetsVirtualDeviceSensor()
|
/cts/tests/tests/content/src/android/content/wm/cts/ |
D | ContextTestBase.java | 87 VirtualDisplay virtualDisplay = displayManager.createVirtualDisplay( in createSecondaryDisplay() local 90 return virtualDisplay; in createSecondaryDisplay()
|
/cts/tests/tests/media/codec/src/android/media/codec/cts/ |
D | EncodeVirtualDisplayTest.java | 260 VirtualDisplay virtualDisplay = null; in encodeVirtualDisplayTest() local 270 virtualDisplay = mDisplayManager.createVirtualDisplay(NAME, in encodeVirtualDisplayTest() 282 slideShow = new ColorSlideShow(virtualDisplay.getDisplay()); in encodeVirtualDisplayTest() 295 if (virtualDisplay != null) { in encodeVirtualDisplayTest() 296 virtualDisplay.release(); in encodeVirtualDisplayTest()
|
/cts/tests/tests/car/src/android/car/app/cts/ |
D | CarActivityManagerTest.java | 251 Display virtualDisplay = session.createDisplay(mContext, in testGetVisibleTasksByDisplayId() local 253 assertThat(virtualDisplay).isNotNull(); in testGetVisibleTasksByDisplayId() 254 int displayId = virtualDisplay.getDisplayId(); in testGetVisibleTasksByDisplayId()
|
/cts/tests/tests/virtualdevice/camera/src/android/virtualdevice/cts/camera/ |
D | VirtualCameraPermissionTest.java | 118 VirtualDisplay virtualDisplay = mRule.createManagedVirtualDisplay( in setUp() local 120 mVirtualDisplayId = virtualDisplay.getDisplay().getDisplayId(); in setUp()
|
D | VirtualCameraCameraXTest.kt | 107 val virtualDisplay = virtualDeviceRule.createManagedVirtualDisplay( in <lambda>() constant 113 virtualDisplay, in <lambda>()
|
/cts/tests/framework/base/windowmanager/app/src/android/server/wm/app/ |
D | VirtualDisplayActivity.java | 216 VirtualDisplay virtualDisplay = mDisplayManager.createVirtualDisplay( in surfaceCreated() local 220 new VirtualDisplayEntry(virtualDisplay, entry.surfaceView, densityDpi, in surfaceCreated()
|