Home
last modified time | relevance | path

Searched refs:windowBounds (Results 1 – 25 of 32) sorted by relevance

12

/frameworks/base/libs/WindowManager/Shell/multivalentTests/src/com/android/wm/shell/bubbles/
DBubblePositionerTest.kt52 windowBounds = Rect(0, 0, 1000, 2000),
73 positioner.update(defaultDeviceConfig.copy(insets = insets, windowBounds = screenBounds)) in testUpdate()
177 defaultDeviceConfig.copy(isLargeScreen = true, windowBounds = Rect(0, 0, 2000, 1600)) in testGetRestingPosition_afterBoundsChange()
187 defaultDeviceConfig.copy(isLargeScreen = false, windowBounds = Rect(0, 0, 1000, 1600)) in testGetRestingPosition_afterBoundsChange()
219 windowBounds = Rect(0, 0, 1800, 2600) in testBubbleBarExpandedViewHeightAndWidth()
246 windowBounds = Rect(0, 0, screenWidth, 2600) in testBubbleBarExpandedViewHeightAndWidth_screenWidthTooSmall()
267 windowBounds = Rect(0, 0, 1800, 2600) in testGetExpandedViewHeight_max()
282 windowBounds = Rect(0, 0, 1800, 2600) in testGetExpandedViewHeight_customHeight_valid()
311 windowBounds = Rect(0, 0, 1800, 2600) in testGetExpandedViewHeight_customHeight_tooSmall()
340 windowBounds = Rect(0, 0, 1800, 2600) in testGetMaxExpandedViewHeight_onLargeTablet()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/taptotransfer/receiver/
DMediaTttReceiverRippleController.kt102 val windowBounds = windowManager.currentWindowMetrics.bounds in <lambda>() constant
103 val height = windowBounds.height().toFloat() in <lambda>()
104 val width = windowBounds.width().toFloat() in <lambda>()
120 val windowBounds = windowManager.currentWindowMetrics.bounds in <lambda>() constant
121 val height = windowBounds.height().toFloat() in <lambda>()
122 val width = windowBounds.width().toFloat() in <lambda>()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/
DDeviceConfig.kt35 val windowBounds: Rect, constant in com.android.wm.shell.bubbles.DeviceConfig
50 val windowBounds = windowMetrics.bounds in create() constant
62 windowBounds = windowBounds, in create()
/frameworks/base/core/tests/coretests/src/android/view/
DScaleGestureDetectorTest.java59 final Rect windowBounds = WindowMetricsHelper.getBoundsExcludingNavigationBarAndCutout( in testScaleGestureDetector() local
61 final int windowWidth = windowBounds.width(); in testScaleGestureDetector()
62 final int windowHeight = windowBounds.height(); in testScaleGestureDetector()
DBigCache.java42 final Rect windowBounds = getWindowManager().getCurrentWindowMetrics().getBounds(); in onCreate() local
43 final int screenWidth = windowBounds.width(); in onCreate()
44 final int screenHeight = windowBounds.height(); in onCreate()
DViewGroupScrollCaptureTest.java367 Rect windowBounds = new Rect(0, 0, 200, 200); in testOnScrollCaptureSearch_withPadding() local
389 parent.dispatchScrollCaptureSearch(windowBounds, windowOffset, results::addTarget); in testOnScrollCaptureSearch_withPadding()
/frameworks/base/core/java/android/view/
DWindowLayout.java66 Rect displayCutoutSafe, Rect windowBounds, @WindowingMode int windowingMode, in computeFrames() argument
79 final Insets insets = state.calculateInsets(windowBounds, attrs.getFitInsetsTypes(), in computeFrames()
86 outDisplayFrame.set(windowBounds.left + left, windowBounds.top + top, in computeFrames()
87 windowBounds.right - right, windowBounds.bottom - bottom); in computeFrames()
275 + " windowBounds=" + windowBounds.toShortString() in computeFrames()
DScrollCaptureResponse.java101 @Nullable Rect windowBounds, in ScrollCaptureResponse() argument
110 this.mWindowBounds = windowBounds; in ScrollCaptureResponse()
230 Rect windowBounds = (flg & 0x4) == 0 ? null : (Rect) in.readTypedObject(Rect.CREATOR); in ScrollCaptureResponse() local
241 this.mWindowBounds = windowBounds; in ScrollCaptureResponse()
DWindowlessWindowLayout.java40 Rect displayCutoutSafe, Rect windowBounds, @WindowingMode int windowingMode, in computeFrames() argument
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/accessibility/
DWindowMagnificationControllerWindowlessMagnifierTest.java554 final Rect windowBounds = new Rect(mWindowManager.getCurrentWindowMetrics().getBounds()); in onOrientationChanged_enabled_updateDisplayRotationAndCenterStayAtSamePosition() local
555 final float center = Math.min(windowBounds.exactCenterX(), windowBounds.exactCenterY()); in onOrientationChanged_enabled_updateDisplayRotationAndCenterStayAtSamePosition()
556 final float displayWidth = windowBounds.width(); in onOrientationChanged_enabled_updateDisplayRotationAndCenterStayAtSamePosition()
566 windowBounds.set(windowBounds.top, windowBounds.left, windowBounds.bottom, in onOrientationChanged_enabled_updateDisplayRotationAndCenterStayAtSamePosition()
567 windowBounds.right); in onOrientationChanged_enabled_updateDisplayRotationAndCenterStayAtSamePosition()
568 mWindowManager.setWindowBounds(windowBounds); in onOrientationChanged_enabled_updateDisplayRotationAndCenterStayAtSamePosition()
583 final Rect windowBounds = new Rect(mWindowManager.getCurrentWindowMetrics().getBounds()); in onOrientationChanged_disabled_updateDisplayRotation() local
585 windowBounds.set(windowBounds.top, windowBounds.left, windowBounds.bottom, in onOrientationChanged_disabled_updateDisplayRotation()
586 windowBounds.right); in onOrientationChanged_disabled_updateDisplayRotation()
587 mWindowManager.setWindowBounds(windowBounds); in onOrientationChanged_disabled_updateDisplayRotation()
[all …]
DWindowMagnificationControllerTest.java537 final Rect windowBounds = new Rect(mWindowManager.getCurrentWindowMetrics().getBounds()); in onOrientationChanged_enabled_updateDisplayRotationAndCenterStayAtSamePosition() local
538 final float center = Math.min(windowBounds.exactCenterX(), windowBounds.exactCenterY()); in onOrientationChanged_enabled_updateDisplayRotationAndCenterStayAtSamePosition()
539 final float displayWidth = windowBounds.width(); in onOrientationChanged_enabled_updateDisplayRotationAndCenterStayAtSamePosition()
549 windowBounds.set(windowBounds.top, windowBounds.left, windowBounds.bottom, in onOrientationChanged_enabled_updateDisplayRotationAndCenterStayAtSamePosition()
550 windowBounds.right); in onOrientationChanged_enabled_updateDisplayRotationAndCenterStayAtSamePosition()
551 mWindowManager.setWindowBounds(windowBounds); in onOrientationChanged_enabled_updateDisplayRotationAndCenterStayAtSamePosition()
566 final Rect windowBounds = new Rect(mWindowManager.getCurrentWindowMetrics().getBounds()); in onOrientationChanged_disabled_updateDisplayRotation() local
568 windowBounds.set(windowBounds.top, windowBounds.left, windowBounds.bottom, in onOrientationChanged_disabled_updateDisplayRotation()
569 windowBounds.right); in onOrientationChanged_disabled_updateDisplayRotation()
570 mWindowManager.setWindowBounds(windowBounds); in onOrientationChanged_disabled_updateDisplayRotation()
[all …]
DWindowMagnificationAnimationControllerTest.java570 final Rect windowBounds = new Rect(mWindowManager.getCurrentWindowMetrics().getBounds()); in enableWindowMagnificationWithOffset_windowlessFlagOn_expectedValues() local
575 windowBounds.exactCenterX(), windowBounds.exactCenterY(), in enableWindowMagnificationWithOffset_windowlessFlagOn_expectedValues()
591 final float expectedX = (int) (windowBounds.exactCenterX() + expectedOffset in enableWindowMagnificationWithOffset_windowlessFlagOn_expectedValues()
593 final float expectedY = (int) (windowBounds.exactCenterY() + expectedOffset in enableWindowMagnificationWithOffset_windowlessFlagOn_expectedValues()
607 final Rect windowBounds = new Rect(mWindowManager.getCurrentWindowMetrics().getBounds()); in enableWindowMagnificationWithOffset_windowlessFlagOff_expectedValues() local
612 windowBounds.exactCenterX(), windowBounds.exactCenterY(), in enableWindowMagnificationWithOffset_windowlessFlagOff_expectedValues()
627 (int) (mirrorViewBound.exactCenterX() - windowBounds.exactCenterX())); in enableWindowMagnificationWithOffset_windowlessFlagOff_expectedValues()
629 (int) (mirrorViewBound.exactCenterY() - windowBounds.exactCenterY())); in enableWindowMagnificationWithOffset_windowlessFlagOff_expectedValues()
DMagnificationModeSwitchTest.java576 final Rect windowBounds = mWindowManager.getCurrentWindowMetrics().getBounds(); in onRotationChanged_buttonIsShowing_expectedYPosition() local
584 final Rect newWindowBounds = new Rect(0, 0, windowBounds.height(), windowBounds.width()); in onRotationChanged_buttonIsShowing_expectedYPosition()
598 final Rect windowBounds = mWindowManager.getCurrentWindowMetrics().getBounds(); in onScreenSizeChanged_buttonIsShowingOnTheRightSide_expectedPosition() local
606 final Rect tmpRect = new Rect(windowBounds); in onScreenSizeChanged_buttonIsShowingOnTheRightSide_expectedPosition()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/startingsurface/
DWindowlessSplashWindowCreator.java86 final Rect windowBounds = taskInfo.configuration.windowConfiguration.getBounds(); in addSplashScreenStartingWindow() local
87 lp.width = windowBounds.width(); in addSplashScreenStartingWindow()
88 lp.height = windowBounds.height(); in addSplashScreenStartingWindow()
DWindowlessSnapshotWindowCreator.java79 final Rect windowBounds = runningTaskInfo.configuration.windowConfiguration.getBounds(); in makeTaskSnapshotWindow() local
85 windowBounds, topWindowInsetsState, false /* releaseAfterDraw */); in makeTaskSnapshotWindow()
/frameworks/base/packages/SystemUI/animation/src/com/android/systemui/animation/
DActivityTransitionAnimator.kt983 val windowBounds = window.screenSpaceBounds in startAnimation() constant
987 top = windowBounds.top, in startAnimation()
988 bottom = windowBounds.bottom, in startAnimation()
989 left = windowBounds.left, in startAnimation()
990 right = windowBounds.right in startAnimation()
1021 top = windowBounds.top, in startAnimation()
1022 bottom = windowBounds.bottom, in startAnimation()
1023 left = windowBounds.left, in startAnimation()
1024 right = windowBounds.right, in startAnimation()
/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/
DMagnificationModeSwitch.java149 final Rect windowBounds = mWindowManager.getCurrentWindowMetrics().getBounds(); in MagnificationModeSwitch()
153 moveButton(0, -windowBounds.height()); in MagnificationModeSwitch()
155 moveButton(0, windowBounds.height()); in MagnificationModeSwitch()
157 moveButton(-windowBounds.width(), 0); in MagnificationModeSwitch()
159 moveButton(windowBounds.width(), 0); in MagnificationModeSwitch()
DWindowMagnificationSettings.java230 final Rect windowBounds = mWindowManager.getCurrentWindowMetrics().getBounds();
232 moveButton(0, -windowBounds.height());
234 moveButton(0, windowBounds.height());
236 moveButton(-windowBounds.width(), 0);
238 moveButton(windowBounds.width(), 0);
/frameworks/base/core/java/android/view/autofill/
DAutofillPopupWindow.java132 final Rect windowBounds = WindowMetricsHelper.getBoundsExcludingNavigationBarAndCutout( in update() local
134 width = windowBounds.width(); in update()
136 offsetY = windowBounds.height() - height; in update()
/frameworks/base/services/core/java/com/android/server/wm/
DDisplayHashController.java291 final Rect windowBounds = new Rect(); in calculateDisplayHashBoundsLocked() local
292 win.getBounds(windowBounds); in calculateDisplayHashBoundsLocked()
293 windowBounds.offsetTo(0, 0); in calculateDisplayHashBoundsLocked()
294 outBounds.intersectUnchecked(windowBounds); in calculateDisplayHashBoundsLocked()
/frameworks/base/core/java/android/window/
DSnapshotDrawerUtils.java386 Rect windowBounds, InsetsState topWindowInsetsState, in drawSnapshotOnSurface() argument
388 if (windowBounds.isEmpty()) { in drawSnapshotOnSurface()
401 final Rect systemBarInsets = getSystemBarInsets(windowBounds, topWindowInsetsState); in drawSnapshotOnSurface()
402 drawSurface.setFrames(windowBounds, systemBarInsets); in drawSnapshotOnSurface()
/frameworks/base/tests/MirrorSurfaceTest/src/com/google/android/test/mirrorsurface/
DMirrorSurfaceActivity.java93 Rect windowBounds = WindowMetricsHelper.getBoundsExcludingNavigationBarAndCutout( in onCreate() local
95 mWindowBounds.set(0, 0, windowBounds.width(), windowBounds.height()); in onCreate()
/frameworks/base/core/java/android/widget/
DMagnifier.java873 final Rect windowBounds; in getCurrentClampedWindowCoordinates() local
876 windowBounds = new Rect( in getCurrentClampedWindowCoordinates()
884 windowBounds = new Rect(0, 0, mParentSurface.mWidth, mParentSurface.mHeight); in getCurrentClampedWindowCoordinates()
886 final int windowCoordsX = Math.max(windowBounds.left, in getCurrentClampedWindowCoordinates()
887 Math.min(windowBounds.right - mWindowWidth, mWindowCoords.x)); in getCurrentClampedWindowCoordinates()
888 final int windowCoordsY = Math.max(windowBounds.top, in getCurrentClampedWindowCoordinates()
889 Math.min(windowBounds.bottom - mWindowHeight, mWindowCoords.y)); in getCurrentClampedWindowCoordinates()
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/scroll/
DScrollCaptureClient.java261 private SessionWrapper(IScrollCaptureConnection connection, Rect windowBounds,
266 mWindowBounds = requireNonNull(windowBounds);
/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/
DLegacyLockIconViewControllerBaseTest.java139 Rect windowBounds = new Rect(0, 0, 800, 1200); in setUp() local
140 when(mWindowManager.getCurrentWindowMetrics().getBounds()).thenReturn(windowBounds); in setUp()

12