Home
last modified time | relevance | path

Searched refs:virtualDisplay (Results 1 – 25 of 31) sorted by relevance

12

/cts/tests/tests/virtualdevice/core/src/android/virtualdevice/cts/core/
DVirtualDisplayTest.java73 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/
DVirtualDisplayTest.java189 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/
DVirtualDisplayActivity.java40 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/
DVirtualDeviceRule.java218 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/
DRecentTasksTest.java58 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()
DRestrictActivityTest.java114 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()
DStreamedAppBehaviorTest.java61 VirtualDisplay virtualDisplay = mRule.createManagedVirtualDisplayWithFlags(virtualDevice, in appsInVirtualDevice_shouldNotHaveAccessToCamera() local
72 virtualDisplay, AppComponents.EmptyActivity.class); in appsInVirtualDevice_shouldNotHaveAccessToCamera()
DVirtualDeviceDrmTest.java64 VirtualDisplay virtualDisplay = mRule.createManagedVirtualDisplayWithFlags(virtualDevice, in setUp() local
69 mDrmActivity = mRule.startActivityOnDisplaySync(virtualDisplay, DrmActivity.class); in setUp()
DActivityManagementTest.java95 VirtualDisplay virtualDisplay = mRule.createManagedVirtualDisplayWithFlags(mVirtualDevice, in setUp() local
99 mVirtualDisplayId = virtualDisplay.getDisplay().getDisplayId(); in setUp()
DVirtualDevicePermissionTest.java296 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/
DDisplaySizeTest.java110 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/
DVirtualDisplayActivityScenarioRule.kt77 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()
DTouchModeTest.kt71 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>()
DSimultaneousTouchAndStylusTest.kt80 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()
DStylusButtonInputEventTest.kt147 virtualDisplayRule.virtualDisplay.display in <lambda>()
202 UinputStylus(instrumentation, virtualDisplayRule.virtualDisplay.display).use { in <lambda>()
DTouchScreenTest.kt67 touchScreen = UinputTouchScreen(instrumentation, virtualDisplayRule.virtualDisplay.display) in setUp()
82 .getHostUsiVersion(virtualDisplayRule.virtualDisplay.display) in testHostUsiVersionIsNull()
DMotionEventIsResampledTest.kt66 touchScreen = UinputTouchScreen(instrumentation, virtualDisplayRule.virtualDisplay.display) in setUp()
/cts/tests/tests/media/projection/sdk33/src/android/media/projection/
DMediaProjectionSDK33Test.java287 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/
DVirtualSensorNativeTest.java103 VirtualDisplay virtualDisplay = mVirtualDeviceRule.createManagedVirtualDisplay( in activityOnVirtualDisplayGetsVirtualDeviceSensor() local
106 virtualDisplay, NativeSensorTestActivity.class); in activityOnVirtualDisplayGetsVirtualDeviceSensor()
/cts/tests/tests/content/src/android/content/wm/cts/
DContextTestBase.java87 VirtualDisplay virtualDisplay = displayManager.createVirtualDisplay( in createSecondaryDisplay() local
90 return virtualDisplay; in createSecondaryDisplay()
/cts/tests/tests/media/codec/src/android/media/codec/cts/
DEncodeVirtualDisplayTest.java260 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/
DCarActivityManagerTest.java251 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/
DVirtualCameraPermissionTest.java118 VirtualDisplay virtualDisplay = mRule.createManagedVirtualDisplay( in setUp() local
120 mVirtualDisplayId = virtualDisplay.getDisplay().getDisplayId(); in setUp()
DVirtualCameraCameraXTest.kt107 val virtualDisplay = virtualDeviceRule.createManagedVirtualDisplay( in <lambda>() constant
113 virtualDisplay, in <lambda>()
/cts/tests/framework/base/windowmanager/app/src/android/server/wm/app/
DVirtualDisplayActivity.java216 VirtualDisplay virtualDisplay = mDisplayManager.createVirtualDisplay( in surfaceCreated() local
220 new VirtualDisplayEntry(virtualDisplay, entry.surfaceView, densityDpi, in surfaceCreated()

12