/cts/tests/framework/base/windowmanager/util/src/android/server/wm/ |
D | VirtualDisplayHelper.java | 56 private VirtualDisplay mVirtualDisplay; field in VirtualDisplayHelper 78 waitForDisplayState(mVirtualDisplay.getDisplay().getDisplayId(), true /* wantOn */); in createAndWaitForDisplay() 81 return mVirtualDisplay.getDisplay().getDisplayId(); in createAndWaitForDisplay() 85 mVirtualDisplay.setSurface(null); in turnDisplayOff() 86 waitForDisplayState(mVirtualDisplay.getDisplay().getDisplayId(), false /* wantOn */); in turnDisplayOff() 90 mVirtualDisplay.setSurface(mReader.getSurface()); in turnDisplayOn() 91 waitForDisplayState(mVirtualDisplay.getDisplay().getDisplayId(), true /* wantOn */); in turnDisplayOn() 96 mVirtualDisplay.release(); in releaseDisplay() 98 waitForDisplayState(mVirtualDisplay.getDisplay().getDisplayId(), false /* wantOn */); in releaseDisplay() 126 mVirtualDisplay = displayManager.createVirtualDisplay( in createVirtualDisplay()
|
/cts/tests/tests/car/src/android/car/cts/utils/ |
D | DisplayUtils.java | 42 private VirtualDisplay mVirtualDisplay; field in DisplayUtils.VirtualDisplaySession 67 mVirtualDisplay = displayManager.createVirtualDisplay(CONTEXT_HELPER_CTS_DISPLAY_NAME, in createDisplay() 69 return mVirtualDisplay.getDisplay(); in createDisplay() 125 mVirtualDisplay = displayManager.createVirtualDisplay(CONTEXT_HELPER_CTS_DISPLAY_NAME, in createDisplayWithDefaultDisplayMetricsAndWait() 130 int theNewDisplayId = mVirtualDisplay.getDisplay().getDisplayId(); in createDisplayWithDefaultDisplayMetricsAndWait() 139 return mVirtualDisplay.getDisplay(); in createDisplayWithDefaultDisplayMetricsAndWait() 144 if (mVirtualDisplay != null) { in close() 145 mVirtualDisplay.release(); in close()
|
/cts/tests/tests/car_builtin/src/android/car/cts/builtin/app/ |
D | DisplayUtils.java | 42 private VirtualDisplay mVirtualDisplay; field in DisplayUtils.VirtualDisplaySession 98 mVirtualDisplay = displayManager.createVirtualDisplay(CONTEXT_HELPER_CTS_DISPLAY_NAME, in createDisplayWithDefaultDisplayMetricsAndWait() 103 int theNewDisplayId = mVirtualDisplay.getDisplay().getDisplayId(); in createDisplayWithDefaultDisplayMetricsAndWait() 112 return mVirtualDisplay.getDisplay(); in createDisplayWithDefaultDisplayMetricsAndWait() 117 if (mVirtualDisplay != null) { in close() 118 mVirtualDisplay.release(); in close()
|
/cts/tests/tests/hardware/src/android/hardware/input/cts/tests/ |
D | VirtualDeviceTestCase.java | 37 VirtualDisplay mVirtualDisplay; field in VirtualDeviceTestCase 42 mVirtualDisplay = mRule.createManagedVirtualDisplayWithFlags(mVirtualDevice, in onBeforeLaunchActivity() 46 mRule.assumeActivityLaunchSupported(mVirtualDisplay.getDisplay().getDisplayId()); in onBeforeLaunchActivity() 71 .setLaunchDisplayId(mVirtualDisplay.getDisplay().getDisplayId()) in getActivityOptions()
|
D | VirtualDeviceMirrorDisplayTest.java | 76 private VirtualDisplay mVirtualDisplay; field in VirtualDeviceMirrorDisplayTest 98 mVirtualDisplay = mRule.createManagedVirtualDisplay(mVirtualDevice, in onSetUp() 104 mRule.assumeActivityLaunchSupported(mVirtualDisplay.getDisplay().getDisplayId()); in onSetUp() 121 DEVICE_NAME, mVirtualDisplay.getDisplay()).getDevice(); in virtualMouse_scrollEvent() 143 DEVICE_NAME, mVirtualDisplay.getDisplay()).getDevice(); in virtualMouse_relativeEvent() 185 DEVICE_NAME, mVirtualDisplay.getDisplay()).getDevice(); in virtualMouse_buttonEvent() 222 mVirtualDevice, DEVICE_NAME, mVirtualDisplay.getDisplay()).getDevice(); in virtualTouchscreen_touchEvent() 288 mVirtualDevice, DEVICE_NAME, mVirtualDisplay.getDisplay()).getDevice(); in virtualKeyboard_keyEvent() 310 DEVICE_NAME, mVirtualDisplay.getDisplay()).getDevice(); in virtualDpad_keyEvent() 349 DEVICE_NAME, mVirtualDisplay.getDisplay(), touchPadWidth, touchPadHeight) in virtualNavigationTouchpad_touchEvent() [all …]
|
D | VirtualKeyboardLayoutTest.java | 55 private VirtualDisplay mVirtualDisplay; field in VirtualKeyboardLayoutTest 62 mVirtualDisplay = mRule.createManagedVirtualDisplayWithFlags(mVirtualDevice, in setUp() 178 mVirtualDisplay.getDisplay(), languageTag, layoutType).getDevice(); in createVirtualKeyboard()
|
D | VirtualMouseTest.java | 58 mVirtualDisplay.getDisplay()).getDevice(); in onSetUpVirtualInputDevice() 187 final int displayWidth = mVirtualDisplay.getDisplay().getMode().getPhysicalWidth(); in testStartingCursorPosition() 188 final int displayHeight = mVirtualDisplay.getDisplay().getMode().getPhysicalHeight(); in testStartingCursorPosition()
|
D | VirtualTouchscreenTest.java | 51 mVirtualDevice, DEVICE_NAME, mVirtualDisplay.getDisplay()).getDevice(); in onSetUpVirtualInputDevice() 58 / (mVirtualDisplay.getDisplay().getMode().getPhysicalWidth() - 1f); in sendTouchEvent()
|
/cts/tests/tests/virtualdevice/applaunch/src/android/virtualdevice/cts/applaunch/ |
D | DeviceAssociationTest.java | 80 private VirtualDisplay mVirtualDisplay; field in DeviceAssociationTest 91 mVirtualDisplay = mRule.createManagedVirtualDisplayWithFlags(mVirtualDevice, in setUp() 217 Activity activity = mRule.startActivityOnDisplaySync(mVirtualDisplay, EmptyActivity.class); in activityContext_startActivityOnVirtualDevice_returnsVirtualDeviceId() 229 Activity activity = mRule.startActivityOnDisplaySync(mVirtualDisplay, EmptyActivity.class); in activityContext_activityMovesDisplay_returnsDeviceIdAssociatedWithDisplay() 246 mRule.startActivityOnDisplaySync(mVirtualDisplay, SecondActivity.class); in applicationContext_lastActivityOnVirtualDevice_returnsVirtualDeviceId() 253 Activity activity = mRule.startActivityOnDisplaySync(mVirtualDisplay, EmptyActivity.class); in applicationContext_recreateActivity_returnsDeviceIdOfActivity() 268 mRule.startActivityOnDisplaySync(mVirtualDisplay, SecondActivity.class); in applicationContext_recreateFirstActivity_returnsDeviceOfLastCreatedActivity() 282 Activity activity = mRule.startActivityOnDisplaySync(mVirtualDisplay, EmptyActivity.class); in applicationContext_activityOnVirtualDeviceDestroyed_returnsDefault() 291 mRule.startActivityOnDisplaySync(mVirtualDisplay, EmptyActivity.class); in applicationContext_activityOnDefaultDeviceDestroyed_returnsVirtual() 302 mRule.startActivityOnDisplaySync(mVirtualDisplay, EmptyActivity.class); in applicationContext_lastActivityOnDefaultDevice_returnsDefault() [all …]
|
D | ActivityBlockingTest.java | 89 private VirtualDisplay mVirtualDisplay; field in ActivityBlockingTest 102 mRule.assumeActivityLaunchSupported(mVirtualDisplay.getDisplay().getDisplayId()); in nonTrustedDisplay_startNonEmbeddableActivity_shouldThrowSecurityException() 104 mContext, mVirtualDisplay.getDisplay().getDisplayId(), mMonitoredIntent)) in nonTrustedDisplay_startNonEmbeddableActivity_shouldThrowSecurityException() 107 () -> mRule.sendIntentToDisplay(mMonitoredIntent, mVirtualDisplay)); in nonTrustedDisplay_startNonEmbeddableActivity_shouldThrowSecurityException() 319 mRule.startActivityOnDisplaySync(mVirtualDisplay, EmptyActivity.class); in setAllowedCrossTaskNavigations_shouldBlockNonAllowedNavigations() 330 mRule.startActivityOnDisplaySync(mVirtualDisplay, EmptyActivity.class); in setAllowedCrossTaskNavigations_shouldAllowNavigations() 341 mRule.startActivityOnDisplaySync(mVirtualDisplay, EmptyActivity.class); in setBlockedCrossTaskNavigations_shouldAllowNavigations() 352 mRule.startActivityOnDisplaySync(mVirtualDisplay, EmptyActivity.class); in setBlockedCrossTaskNavigations_shouldBlockNonAllowedNavigations() 382 mVirtualDisplay = mRule.createManagedVirtualDisplay(mVirtualDevice, in createVirtualDeviceAndDisplay() 394 mContext, mVirtualDisplay.getDisplay().getDisplayId(), intent)).isFalse(); in assertActivityLaunchBlocked() [all …]
|
D | ActivityInterceptionTest.java | 71 private VirtualDisplay mVirtualDisplay; field in ActivityInterceptionTest 81 mVirtualDisplay = mRule.createManagedVirtualDisplayWithFlags(mVirtualDevice, in setUp() 92 mRule.sendIntentToDisplay(mInterceptedIntent, mVirtualDisplay); in noInterceptorRegistered_activityShouldLaunch() 103 mRule.sendIntentToDisplay(mInterceptedIntent, mVirtualDisplay); in interceptorRegistered_intentIsIntercepted() 109 mRule.sendIntentToDisplay(mInterceptedIntent, mVirtualDisplay); in interceptorRegistered_intentIsIntercepted() 120 mRule.sendIntentToDisplay(mInterceptedIntent, mVirtualDisplay); in noMatchingInterceptor_activityShouldLaunch() 135 mRule.sendIntentToDisplay(intentWithoutAction, mVirtualDisplay); in interceptorRegistered_withExplicitAction_intentWithoutActionShouldLaunch() 153 mRule.sendIntentToDisplay(mInterceptedIntent, mVirtualDisplay); in differentInterceptorsRegistered_oneIntercepted()
|
D | VirtualDeviceHomeTest.java | 110 private VirtualDisplay mVirtualDisplay; field in VirtualDeviceHomeTest 201 mRule.startActivityOnDisplaySync(mVirtualDisplay, EmptyActivity.class); in virtualDeviceHome_noCustomHomeComponent() 225 mRule.startActivityOnDisplaySync(mVirtualDisplay, EmptyActivity.class); in virtualDeviceHome_noCustomHomeComponent_sendHomeIntent() 258 mRule.startActivityOnDisplaySync(mVirtualDisplay, EmptyActivity.class); in virtualDeviceHome_withCustomHomeComponent() 278 mRule.startActivityOnDisplaySync(mVirtualDisplay, EmptyActivity.class); in virtualDeviceHome_withCustomHomeComponent_sendHomeIntent() 294 mVirtualDisplay = mRule.createManagedVirtualDisplay( in createVirtualDeviceAndHomeDisplay() 302 mRule.sendIntentToDisplay(intent, mVirtualDisplay); in sendHomeIntentOnVirtualDisplay() 307 eq(mVirtualDisplay.getDisplay().getDisplayId()), eq(componentName), in assertActivityOnVirtualDisplay() 314 w -> w.getDisplayId() == mVirtualDisplay.getDisplay().getDisplayId()); in isWallpaperOnVirtualDisplay()
|
/cts/tests/tests/media/projection/sdk34/src/android/media/projection/ |
D | MediaProjectionSDK34Test.java | 69 private VirtualDisplay mVirtualDisplay; field in MediaProjectionSDK34Test 106 + "successfully", mVirtualDisplay); in testCreateVirtualDisplay_withoutCallback_throwsException() 201 mVirtualDisplay = mMediaProjection.createVirtualDisplay(TAG + "VirtualDisplay", in createVirtualDisplay() 223 if (mVirtualDisplay != null) { in cleanupVirtualDisplay() 224 final Surface surface = mVirtualDisplay.getSurface(); in cleanupVirtualDisplay() 228 mVirtualDisplay.release(); in cleanupVirtualDisplay() 229 mVirtualDisplay = null; in cleanupVirtualDisplay()
|
/cts/tests/tests/media/projection/src/android/media/projection/cts/ |
D | MediaProjectionTest.java | 83 private VirtualDisplay mVirtualDisplay; field in MediaProjectionTest 150 assertThat(mVirtualDisplay).isNotNull(); in testCreateVirtualDisplay() 152 mVirtualDisplay.getDisplay().getSize(virtualDisplayDimensions); in testCreateVirtualDisplay() 264 mVirtualDisplay = mMediaProjection.createVirtualDisplay(TAG + "VirtualDisplay", in createVirtualDisplay() 286 if (mVirtualDisplay != null) { in cleanupVirtualDisplay() 287 final Surface surface = mVirtualDisplay.getSurface(); in cleanupVirtualDisplay() 291 mVirtualDisplay.release(); in cleanupVirtualDisplay() 292 mVirtualDisplay = null; in cleanupVirtualDisplay()
|
D | MediaProjectionMirroringTest.java | 120 private VirtualDisplay mVirtualDisplay; field in MediaProjectionMirroringTest 159 if (mVirtualDisplay != null) { in tearDown() 160 mVirtualDisplay.getSurface().release(); in tearDown() 161 mVirtualDisplay.release(); in tearDown() 162 mVirtualDisplay = null; in tearDown() 185 mVirtualDisplay = createVirtualDisplay(maxWindowMetrics.getBounds(), "testDisplayCapture"); in testDisplayCapture() 193 mVirtualDisplay.getDisplay().getDisplayId(), in testDisplayCapture() 218 mVirtualDisplay = createVirtualDisplay(maxWindowMetrics.getBounds(), in testDisplayCapture_rotation() 228 mActivity.getWindowManager().getCurrentWindowMetrics(), mVirtualDisplay, in testDisplayCapture_rotation() 230 validateMirroredHierarchy(mActivity, mVirtualDisplay.getDisplay().getDisplayId(), in testDisplayCapture_rotation() [all …]
|
/cts/tests/tests/media/codec/src/android/media/codec/cts/ |
D | RemoteVirtualDisplayService.java | 116 private VirtualDisplay mVirtualDisplay; field in RemoteVirtualDisplayService.VirtualDisplayPresentation 131 mVirtualDisplay = mDisplayManager.createVirtualDisplay( in createVirtualDisplay() 138 if (mVirtualDisplay != null) { in destroyVirtualDisplay() 139 mVirtualDisplay.release(); in destroyVirtualDisplay() 148 mVirtualDisplay.getDisplay()); in createPresentation()
|
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/utils/ |
D | DisplayUtils.java | 89 private VirtualDisplay mVirtualDisplay; field in DisplayUtils.VirtualDisplaySession 102 mVirtualDisplay = context.getSystemService(DisplayManager.class).createVirtualDisplay( in createDisplay() 104 return mVirtualDisplay.getDisplay(); in createDisplay() 109 if (mVirtualDisplay != null) { in close() 110 mVirtualDisplay.release(); in close()
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/input/ |
D | WindowFocusTests.java | 677 private final VirtualDisplay mVirtualDisplay; field in WindowFocusTests.InvisibleVirtualDisplaySession 684 mVirtualDisplay = context.getSystemService(DisplayManager.class) in InvisibleVirtualDisplaySession() 688 mDisplay = mVirtualDisplay.getDisplay(); in InvisibleVirtualDisplaySession() 702 if (mVirtualDisplay != null) { in close() 703 mVirtualDisplay.release(); in close() 728 private VirtualDisplay mVirtualDisplay; field in WindowFocusTests.VirtualDisplayWithOwnFocusSession 742 mVirtualDisplay = context.getSystemService(DisplayManager.class) in VirtualDisplayWithOwnFocusSession() 747 mDisplay = mVirtualDisplay.getDisplay(); in VirtualDisplayWithOwnFocusSession() 771 if (mVirtualDisplay != null) { in close() 772 mVirtualDisplay.release(); in close() [all …]
|
/cts/tests/tests/display/src/android/display/cts/ |
D | DisplayManagerTest.java | 83 private VirtualDisplay mVirtualDisplay; field in DisplayManagerTest 96 if (mVirtualDisplay != null) { in tearDown() 97 mVirtualDisplay.release(); in tearDown() 154 mVirtualDisplay = DisplayManager.createVirtualDisplay("Test", in testCreateVirtualDisplayFromShell() 168 mVirtualDisplay = DisplayManager.createVirtualDisplay("Test", 100, 100, in createVirtualDisplayNoPermission()
|
D | DisplayEventTest.java | 122 private VirtualDisplay mVirtualDisplay; field in DisplayEventTest.DisplayBundle 129 mVirtualDisplay = display; in DisplayBundle() 135 if (mVirtualDisplay != null) { in releaseDisplay() 136 mVirtualDisplay.release(); in releaseDisplay() 138 mVirtualDisplay = null; in releaseDisplay() 316 bundle.mVirtualDisplay.resize(WIDTH, HEIGHT, DENSITY_HIGH); in testDisplayEvents()
|
/cts/tests/surfacecontrol/surfacevalidator/src/android/view/cts/surfacevalidator/ |
D | CapturedActivity.java | 85 private VirtualDisplay mVirtualDisplay; field in CapturedActivity 148 if (mVirtualDisplay != null) { in runTest() 149 mVirtualDisplay.release(); in runTest() 150 mVirtualDisplay = null; in runTest() 240 mVirtualDisplay = dm.createVirtualDisplay("CtsCapturedActivity", in runTest() 244 assertNotNull("Failed to create VirtualDisplay", mVirtualDisplay); in runTest() 248 mVirtualDisplay.getDisplay().getDisplayId(), getWindow())), in runTest()
|
/cts/tests/tests/virtualdevice/camera/src/android/virtualdevice/cts/camera/ |
D | VirtualCameraNdkTest.java | 95 private VirtualDisplay mVirtualDisplay; field in VirtualCameraNdkTest 105 mVirtualDisplay = mRule.createManagedVirtualDisplay(mVirtualDevice, in setUp() 137 mVirtualDisplay, NativeCameraTestActivity.class); in getCameraIds_virtualDevice() 152 mVirtualDisplay, NativeCameraTestActivity.class); in availabilityCallbacks_virtualDevice()
|
/cts/tests/tests/media/projection/sdk33/src/android/media/projection/ |
D | MediaProjectionSDK33Test.java | 91 private VirtualDisplay mVirtualDisplay; field in MediaProjectionSDK33Test 96 cleanupVirtualDisplay(mVirtualDisplay); 177 mVirtualDisplay = anotherProjection.createVirtualDisplay(TAG + "VirtualDisplay", in testCreateVirtualDisplay_reusedResultData_reshowsPermissionDialog() 273 mVirtualDisplay = mMediaProjection.createVirtualDisplay(TAG + "VirtualDisplay", in createVirtualDisplay()
|
/cts/tests/tests/virtualdevice/audio/src/android/virtualdevice/cts/audio/ |
D | VirtualAudioPermissionTest.java | 89 private VirtualDisplay mVirtualDisplay; field in VirtualAudioPermissionTest 221 mVirtualDisplay = mVirtualDeviceRule.createManagedVirtualDisplay(mVirtualDevice, in setupVirtualDevice() 223 mVirtualDisplayId = mVirtualDisplay.getDisplay().getDisplayId(); in setupVirtualDevice() 245 mVirtualDisplay, Runnable::run, mAudioConfigurationChangeCallback); in setupVirtualAudioDevice()
|
D | VirtualAudioTest.java | 109 private VirtualDisplay mVirtualDisplay; field in VirtualAudioTest 126 mVirtualDisplay = mVirtualDeviceRule.createManagedVirtualDisplay( in setUp() 129 mVirtualDisplay, Runnable::run, mAudioConfigurationChangeCallback); in setUp() 191 mVirtualDeviceRule.startActivityOnDisplaySync(mVirtualDisplay, AudioActivity.class); in multipleVirtualDevices_hasAudioInput_microphoneCapabilitiesOrCustomPolicy() 360 mVirtualDisplay, AudioActivity.class); in startAudioActivity()
|