Searched refs:displaySession (Results 1 – 9 of 9) sorted by relevance
192 try (DisplayMetricsSession displaySession = new DisplayMetricsSession(DEFAULT_DISPLAY)) { in testWindowLayoutComponent_onWindowLayoutChangeListener_windowContext() argument194 changeDisplayMetricThenVerifyWindowLayout(context, displaySession); in testWindowLayoutComponent_onWindowLayoutChangeListener_windowContext()207 try (DisplayMetricsSession displaySession = new DisplayMetricsSession(DEFAULT_DISPLAY)) { in testWindowLayoutComponent_onWindowLayoutChangeListener_wrappedWindowContext() argument215 changeDisplayMetricThenVerifyWindowLayout(wrappedContext, displaySession); in testWindowLayoutComponent_onWindowLayoutChangeListener_wrappedWindowContext()396 try (DisplayMetricsSession displaySession = new DisplayMetricsSession(DEFAULT_DISPLAY)) { in testGetWindowLayoutInfo_displayMetricsChanged_windowLayoutUpdates() argument412 displaySession.changeDisplayMetrics(displayResizeRatio, 1.0 /* densityRatio */); in testGetWindowLayoutInfo_displayMetricsChanged_windowLayoutUpdates()439 displaySession.restoreDisplayMetrics(); in testGetWindowLayoutInfo_displayMetricsChanged_windowLayoutUpdates()892 Context context, DisplayMetricsSession displaySession) throws Exception { in changeDisplayMetricThenVerifyWindowLayout() argument910 displaySession.changeDisplayMetrics( in changeDisplayMetricThenVerifyWindowLayout()926 displaySession.restoreDisplayMetrics(); in changeDisplayMetricThenVerifyWindowLayout()
191 try (final VirtualDisplaySession displaySession = new VirtualDisplaySession()) { in testRecognizeGesturePathOnVirtualDisplay() argument192 final int displayId = displaySession.createDisplayWithDefaultDisplayMetricsAndWait( in testRecognizeGesturePathOnVirtualDisplay()442 try (final VirtualDisplaySession displaySession = new VirtualDisplaySession()) { in testVerifyGestureTouchEventOnVirtualDisplay() argument443 final int displayId = displaySession.createDisplayWithDefaultDisplayMetricsAndWait( in testVerifyGestureTouchEventOnVirtualDisplay()514 try (final VirtualDisplaySession displaySession = new VirtualDisplaySession()) { in testDispatchGesture_privateDisplay_gestureCancelled() argument515 final int displayId = displaySession.createDisplayWithDefaultDisplayMetricsAndWait in testDispatchGesture_privateDisplay_gestureCancelled()
180 try (VirtualDisplaySession displaySession = new VirtualDisplaySession()) { in testTakeScreenshotOnVirtualDisplay_GetScreenshotResult() argument182 displaySession.createDisplayWithDefaultDisplayMetricsAndWait(mContext, in testTakeScreenshotOnVirtualDisplay_GetScreenshotResult()204 try (VirtualDisplaySession displaySession = new VirtualDisplaySession()) { in testTakeScreenshotOnPrivateDisplay_GetErrorCode() argument206 displaySession.createDisplayWithDefaultDisplayMetricsAndWait(mContext, in testTakeScreenshotOnPrivateDisplay_GetErrorCode()
462 try (DisplayUtils.VirtualDisplaySession displaySession = in addOverlayToVirtualDisplayAndCheck() argument465 displaySession.createDisplayWithDefaultDisplayMetricsAndWait( in addOverlayToVirtualDisplayAndCheck()
274 try (VirtualDisplaySession displaySession = new VirtualDisplaySession()) { in moveFocusToAnotherDisplay_movesActiveAndFocusWindow() argument276 displaySession.createDisplayWithDefaultDisplayMetricsAndWait( in moveFocusToAnotherDisplay_movesActiveAndFocusWindow()
632 try (final VirtualDisplaySession displaySession = new VirtualDisplaySession()) { in testGetWindowsOnAllDisplays_resultIsSortedByLayerDescending() argument634 displaySession.createDisplayWithDefaultDisplayMetricsAndWait( in testGetWindowsOnAllDisplays_resultIsSortedByLayerDescending()
460 try (DisplayUtils.VirtualDisplaySession displaySession = in testRegisterAccessibilityProxy_withNonDeviceDisplay_throwsSecurityException() argument463 displaySession.createDisplayWithDefaultDisplayMetricsAndWait( in testRegisterAccessibilityProxy_withNonDeviceDisplay_throwsSecurityException()
164 var displaySession = createManagedVirtualDisplaySession()) { in testFallbackImmMaintainsParameters()165 final var newDisplay = displaySession.setSimulateDisplay(true).createDisplay(); in testFallbackImmMaintainsParameters()
923 try (DisplayMetricsSession displaySession = new DisplayMetricsSession(displayId)) {947 displaySession.changeDisplayMetrics(resizeRatio /* sizeRatio */,995 displaySession.restoreDisplayMetrics();