Home
last modified time | relevance | path

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

/aosp12/frameworks/base/core/tests/coretests/src/android/view/
H A 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()
H A 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()
H A DViewGroupScrollCaptureTest.java367 Rect windowBounds = new Rect(0, 0, 200, 200); in testOnScrollCaptureSearch_withPadding() local
389 parent.dispatchScrollCaptureSearch(windowBounds, windowOffset, results::addTarget); in testOnScrollCaptureSearch_withPadding()
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/
H A DMagnificationModeSwitch.java130 final Rect windowBounds = mWindowManager.getCurrentWindowMetrics().getBounds(); in MagnificationModeSwitch()
134 moveButton(0, -windowBounds.height()); in MagnificationModeSwitch()
136 moveButton(0, windowBounds.height()); in MagnificationModeSwitch()
138 moveButton(-windowBounds.width(), 0); in MagnificationModeSwitch()
140 moveButton(windowBounds.width(), 0); in MagnificationModeSwitch()
H A DWindowMagnificationController.java501 private void setMagnificationFrameWith(Rect windowBounds, int centerX, int centerY) { in setMagnificationFrameWith() argument
504 int initSize = Math.min(windowBounds.width(), windowBounds.height()) / 2; in setMagnificationFrameWith()
/aosp12/frameworks/base/packages/SystemUI/animation/src/com/android/systemui/animation/
H A DActivityLaunchAnimator.kt369 val windowBounds = window.screenSpaceBounds regex
371 top = windowBounds.top,
372 bottom = windowBounds.bottom,
373 left = windowBounds.left,
374 right = windowBounds.right
/aosp12/frameworks/base/core/java/android/view/
H A 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()
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/accessibility/
H A DWindowMagnificationControllerTest.java288 final Rect windowBounds = new Rect(mWindowManager.getCurrentWindowMetrics().getBounds()); in onOrientationChanged_enabled_updateDisplayRotationAndCenterStayAtSamePosition() local
290 windowBounds.set(windowBounds.top, windowBounds.left, windowBounds.bottom, in onOrientationChanged_enabled_updateDisplayRotationAndCenterStayAtSamePosition()
291 windowBounds.right); in onOrientationChanged_enabled_updateDisplayRotationAndCenterStayAtSamePosition()
292 mWindowManager.setWindowBounds(windowBounds); in onOrientationChanged_enabled_updateDisplayRotationAndCenterStayAtSamePosition()
H A DMagnificationModeSwitchTest.java490 final Rect windowBounds = mWindowManager.getCurrentWindowMetrics().getBounds(); in onRotationChanged_buttonIsShowing_expectedYPosition() local
498 final Rect newWindowBounds = new Rect(0, 0, windowBounds.height(), windowBounds.width()); in onRotationChanged_buttonIsShowing_expectedYPosition()
512 final Rect windowBounds = mWindowManager.getCurrentWindowMetrics().getBounds(); in onScreenSizeChanged_buttonIsShowingOnTheRightSide_expectedPosition() local
520 final Rect tmpRect = new Rect(windowBounds); in onScreenSizeChanged_buttonIsShowingOnTheRightSide_expectedPosition()
/aosp12/packages/apps/Launcher3/src/com/android/launcher3/
H A DDeviceProfile.java224 DeviceProfile(Context context, InvariantDeviceProfile inv, Info info, WindowBounds windowBounds, in DeviceProfile() argument
229 this.isLandscape = windowBounds.isLandscape(); in DeviceProfile()
232 windowX = windowBounds.bounds.left; in DeviceProfile()
233 windowY = windowBounds.bounds.top; in DeviceProfile()
238 widthPx = windowBounds.bounds.width(); in DeviceProfile()
239 heightPx = windowBounds.bounds.height(); in DeviceProfile()
240 availableWidthPx = windowBounds.availableSize.x; in DeviceProfile()
241 availableHeightPx = windowBounds.availableSize.y; in DeviceProfile()
244 isTablet = info.isTablet(windowBounds); in DeviceProfile()
548 public DeviceProfile getMultiWindowProfile(Context context, WindowBounds windowBounds) { in getMultiWindowProfile() argument
[all …]
/aosp12/frameworks/base/core/java/android/view/autofill/
H A DAutofillPopupWindow.java132 final Rect windowBounds = WindowMetricsHelper.getBoundsExcludingNavigationBarAndCutout( in update() local
134 width = windowBounds.width(); in update()
136 offsetY = windowBounds.height() - height; in update()
/aosp12/packages/apps/Car/RotaryController/src/com/android/car/rotary/
H A DNavigator.java100 Rect windowBounds = new Rect(); in updateAppWindowTaskId() local
101 window.getBoundsInScreen(windowBounds); in updateAppWindowTaskId()
102 if (mAppWindowBounds.equals(windowBounds)) { in updateAppWindowTaskId()
655 Rect windowBounds = new Rect(); in isMainApplicationWindow() local
656 window.getBoundsInScreen(windowBounds); in isMainApplicationWindow()
659 && mAppWindowBounds.equals(windowBounds); in isMainApplicationWindow()
/aosp12/frameworks/base/services/core/java/com/android/server/wm/
H A 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()
H A DAccessibilityController.java1030 Region windowBounds = mTempRegion2; in recomputeBounds() local
1031 windowBounds.set((int) windowFrame.left, (int) windowFrame.top, in recomputeBounds()
1037 windowBounds.op(portionOfWindowAlreadyAccountedFor, Region.Op.DIFFERENCE); in recomputeBounds()
1040 mMagnificationRegion.op(windowBounds, Region.Op.UNION); in recomputeBounds()
1043 nonMagnifiedBounds.op(windowBounds, Region.Op.UNION); in recomputeBounds()
1044 availableBounds.op(windowBounds, Region.Op.DIFFERENCE); in recomputeBounds()
/aosp12/frameworks/base/tests/MirrorSurfaceTest/src/com/google/android/test/mirrorsurface/
H A DMirrorSurfaceActivity.java93 Rect windowBounds = WindowMetricsHelper.getBoundsExcludingNavigationBarAndCutout( in onCreate() local
95 mWindowBounds.set(0, 0, windowBounds.width(), windowBounds.height()); in onCreate()
/aosp12/frameworks/base/core/java/android/widget/
H A 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()
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/
H A DScrollCaptureClient.java260 private SessionWrapper(IScrollCaptureConnection connection, Rect windowBounds,
265 mWindowBounds = requireNonNull(windowBounds);
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/
H A DLockIconViewControllerTest.java148 Rect windowBounds = new Rect(0, 0, 800, 1200); in setUp() local
149 when(mWindowManager.getCurrentWindowMetrics().getBounds()).thenReturn(windowBounds); in setUp()
/aosp12/frameworks/base/packages/WallpaperCropper/src/com/android/wallpapercropper/
H A DWallpaperCropActivity.java361 Rect windowBounds = WindowMetricsHelper.getBoundsExcludingNavigationBarAndCutout( in cropImageAndSetWallpaper() local
363 boolean isPortrait = windowBounds.width() < windowBounds.height(); in cropImageAndSetWallpaper()
/aosp12/frameworks/base/services/accessibility/java/com/android/server/accessibility/
H A DAccessibilityManagerService.java3491 Rect windowBounds = mTempRect1; in getAccessibilityFocusClickPointInScreenNotLocked() local
3492 getWindowBounds(focus.getWindowId(), windowBounds); in getAccessibilityFocusClickPointInScreenNotLocked() local
3493 if (!boundsInScreen.intersect(windowBounds)) { in getAccessibilityFocusClickPointInScreenNotLocked()