/aosp12/frameworks/base/libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/ |
H A D | CommonAssertions.kt | 119 val displayBounds = WindowUtils.getDisplayBounds(rotation) regex 121 Region(0, 0, displayBounds.bounds.right, 125 displayBounds.bounds.bottom) 130 val displayBounds = WindowUtils.getDisplayBounds(rotation) regex 133 displayBounds.bounds.right, displayBounds.bounds.bottom) 136 displayBounds.bounds.right, displayBounds.bounds.bottom)
|
/aosp12/frameworks/base/tests/FlickerTests/src/com/android/server/wm/flicker/ime/ |
H A D | SwitchImeWindowsFromGestureNavTest.kt | 89 val displayBounds = WindowUtils.getDisplayBounds(testSpec.config.startRotation) regex 90 device.swipe(0, displayBounds.bounds.height(), 91 displayBounds.bounds.width(), displayBounds.bounds.height(), 50) 99 val displayBounds = WindowUtils.getDisplayBounds(testSpec.config.startRotation) regex 100 device.swipe(displayBounds.bounds.width(), displayBounds.bounds.height(), 101 0, displayBounds.bounds.height(), 50)
|
/aosp12/frameworks/base/libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/legacysplitscreen/ |
H A D | ResizeLegacySplitScreen.kt | 165 val displayBounds = WindowUtils.displayBounds regex 173 displayBounds.right, 174 displayBounds.bottom - WindowUtils.navigationBarHeight) 186 val displayBounds = WindowUtils.displayBounds regex 194 displayBounds.right, 195 displayBounds.bottom - WindowUtils.navigationBarHeight)
|
/aosp12/frameworks/base/libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/helpers/ |
H A D | AppPairsHelper.kt | 37 val displayBounds = WindowUtils.displayBounds regex 40 displayBounds.right, displayBounds.bottom - WindowUtils.navigationBarHeight)
|
/aosp12/frameworks/base/libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/pip/ |
H A D | ExitPipToAppTransition.kt | 38 coversAtMost(displayBounds, pipApp.component) 50 coversAtMost(displayBounds, pipApp.component) 100 .coversExactly(displayBounds) 112 visibleRegion(pipApp.component).coversExactly(displayBounds)
|
H A D | PipLegacySplitScreenTest.kt | 99 coversAtMost(displayBounds, pipApp.component) 117 coversAtMost(displayBounds, pipApp.component) 125 visibleRegion(testApp.component).coversAtMost(displayBounds) 126 visibleRegion(imeApp.component).coversAtMost(displayBounds)
|
H A D | MovePipShelfHeightTransition.kt | 70 coversAtMost(displayBounds, pipApp.component) 82 coversAtMost(displayBounds, pipApp.component)
|
H A D | PipKeyboardTest.kt | 81 val displayBounds = WindowUtils.getDisplayBounds(testSpec.config.startRotation) regex 82 coversAtMost(displayBounds, pipApp.component)
|
H A D | EnterPipTest.kt | 98 coversAtMost(displayBounds, pipApp.component) 110 coversAtMost(displayBounds, pipApp.component)
|
H A D | ExpandPipOnDoubleClickTest.kt | 73 coversAtMost(displayBounds, pipApp.component) 85 coversAtMost(displayBounds, pipApp.component)
|
/aosp12/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
H A D | SizeCompatTests.java | 190 .isEqualTo(displayBounds.height()); in testFixedAspectRatioBoundsWithDecorInSquareDisplay() 210 .isEqualTo(displayBounds.height()); in testFixedAspectRatioBoundsWithDecorInSquareDisplay() 1320 assertTrue(displayBounds.width() > displayBounds.height()); in testDisplayIgnoreOrientationRequest_fixedOrientationAppLaunchedLetterbox() 1329 assertEquals(displayBounds.height() * displayBounds.height() / displayBounds.width(), in testDisplayIgnoreOrientationRequest_fixedOrientationAppLaunchedLetterbox() 1351 assertTrue(displayBounds.width() > displayBounds.height()); in testDisplayIgnoreOrientationRequest_fixedOrientationAppRespectMinAspectRatio() 1381 assertTrue(displayBounds.width() > displayBounds.height()); in testDisplayIgnoreOrientationRequest_fixedOrientationAppRespectMaxAspectRatio() 1413 assertTrue(displayBounds.width() > displayBounds.height()); in testDisplayIgnoreOrientationRequest_fixedOrientationAppWithAspectRatioOverride() 1442 assertTrue(displayBounds.width() < displayBounds.height()); in testDisplayIgnoreOrientationRequest_orientationLetterboxBecameSizeCompatAfterRotate() 1523 assertEquals(taskBounds, displayBounds); in testDisplayIgnoreOrientationRequest_newLaunchedOrientationAppInLetterbox() 1525 assertEquals(displayBounds.height() * displayBounds.height() / displayBounds.width(), in testDisplayIgnoreOrientationRequest_newLaunchedOrientationAppInLetterbox() [all …]
|
H A D | TaskLaunchParamsModifierTests.java | 527 mActivity.info.screenOrientation = displayBounds.width() > displayBounds.height() in testRecalculateFreeformInitialBoundsWithOverrideDisplayArea_unresizableApp() 1383 final Rect displayBounds = freeformDisplay.getBounds(); in testCascadesToSourceSizeForFreeform() local 1388 mResult.mBounds.centerX() < displayBounds.centerX()); in testCascadesToSourceSizeForFreeform() 1411 final Rect displayBounds = freeformDisplay.getBounds(); in testCascadesToSourceSizeForFreeformRespectingMinAspectRatio() local 1444 final Rect displayBounds = freeformDisplay.getBounds(); in testCascadesToSourceSizeForFreeformRespectingMaxAspectRatio() local 1476 final Rect displayBounds = freeformDisplay.getBounds(); in testAdjustBoundsToFitDisplay_TopLeftOutOfDisplay() local 1478 + displayBounds + " result: " + mResult.mBounds, in testAdjustBoundsToFitDisplay_TopLeftOutOfDisplay() 1479 displayBounds.contains(mResult.mBounds)); in testAdjustBoundsToFitDisplay_TopLeftOutOfDisplay() 1498 final Rect displayBounds = freeformDisplay.getBounds(); in testAdjustBoundsToFitDisplay_BottomRightOutOfDisplay() local 1501 displayBounds.contains(mResult.mBounds)); in testAdjustBoundsToFitDisplay_BottomRightOutOfDisplay() [all …]
|
H A D | WindowProcessControllerTests.java | 127 final Rect displayBounds = new Rect(0, 0, 2000, 1000); in testDisplayAreaConfigurationListener_verifyConfig() local 129 mAtm, displayBounds.width(), displayBounds.height()) in testDisplayAreaConfigurationListener_verifyConfig() 138 assertEquals(displayBounds, mWpc.getConfiguration().windowConfiguration.getBounds()); in testDisplayAreaConfigurationListener_verifyConfig() 149 assertEquals(displayBounds, mWpc.getConfiguration().windowConfiguration.getBounds()); in testDisplayAreaConfigurationListener_verifyConfig()
|
H A D | TaskPositionerTests.java | 113 final Rect displayBounds = mDisplayContent.getBounds(); in testMoveWindow() local 114 final int windowSize = Math.min(displayBounds.width(), displayBounds.height()) / 2; in testMoveWindow() 115 final int left = displayBounds.centerX() - windowSize / 2; in testMoveWindow() 116 final int top = displayBounds.centerY() - windowSize / 2; in testMoveWindow()
|
/aosp12/frameworks/base/services/core/java/com/android/server/wm/ |
H A D | DisplayAreaGroup.java | 49 final Rect displayBounds = mDisplayContent.getBounds(); in isOrientationDifferentFromDisplay() local 51 != (displayBounds.width() < displayBounds.height()); in isOrientationDifferentFromDisplay()
|
H A D | TaskPositioner.java | 252 final Rect displayBounds = mTmpRect; in register() local 254 mDragWindowHandle.frameLeft = displayBounds.left; in register() 255 mDragWindowHandle.frameTop = displayBounds.top; in register() 256 mDragWindowHandle.frameRight = displayBounds.right; in register() 257 mDragWindowHandle.frameBottom = displayBounds.bottom; in register() 269 mMaxVisibleSize.set(displayBounds.width(), displayBounds.height()); in register()
|
/aosp12/packages/apps/Car/Launcher/src/com/android/car/carlauncher/displayarea/ |
H A D | CarLauncherDisplayAreaAnimationController.java | 61 float startPos, float endPos, Rect displayBounds) { in getAnimator() argument 66 token, leash, startPos, endPos, displayBounds))); in getAnimator() 73 token, leash, startPos, endPos, displayBounds))); in getAnimator() 242 SurfaceControl leash, float startValue, float endValue, Rect displayBounds) { in ofYOffset() argument 247 private final Rect mTmpRect = new Rect(displayBounds); in ofYOffset()
|
/aosp12/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/onehanded/ |
H A D | OneHandedAnimationController.java | 75 float startPos, float endPos, Rect displayBounds) { in getAnimator() argument 80 displayBounds))); in getAnimator() 87 displayBounds))); in getAnimator() 259 SurfaceControl leash, float startValue, float endValue, Rect displayBounds) { in ofYOffset() argument 263 private final Rect mTmpRect = new Rect(displayBounds); in ofYOffset()
|
/aosp12/frameworks/base/tests/FlickerTests/src/com/android/server/wm/flicker/launch/ |
H A D | TaskTransitionTest.kt | 152 val displayBounds = WindowUtils.getDisplayBounds(testSpec.config.startRotation) regex 155 this.coversExactly(displayBounds, LAUNCH_NEW_TASK_ACTIVITY) 162 .coversExactly(displayBounds, SIMPLE_ACTIVITY) 170 .coversExactly(displayBounds, LAUNCH_NEW_TASK_ACTIVITY)
|
/aosp12/packages/apps/Launcher3/src/com/android/launcher3/util/ |
H A D | DisplayController.java | 344 Set<WindowBounds> displayBounds = perDisplayBoundsCache.get(displayKey); in Info() local 345 if (displayBounds == null) { in Info() 347 displayBounds = WindowManagerCompat.estimateDisplayProfiles( in Info() 352 supportedBounds.addAll(displayBounds); in Info() 353 mPerDisplayBounds.put(displayKey, displayBounds); in Info()
|
/aosp12/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/crop/ |
H A D | CropDrawingUtils.java | 161 public static Matrix getBitmapToDisplayMatrix(RectF imageBounds, RectF displayBounds) { in getBitmapToDisplayMatrix() argument 163 CropDrawingUtils.setBitmapToDisplayMatrix(m, imageBounds, displayBounds); in getBitmapToDisplayMatrix() 168 RectF displayBounds) { in setBitmapToDisplayMatrix() argument 170 return m.setRectToRect(imageBounds, displayBounds, Matrix.ScaleToFit.CENTER); in setBitmapToDisplayMatrix()
|
H A D | CropMath.java | 218 RectF displayBounds) { in getScaledCropBounds() argument 220 m.setRectToRect(photoBounds, displayBounds, Matrix.ScaleToFit.FILL); in getScaledCropBounds()
|
/aosp12/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/ |
H A D | PipSnapAlgorithm.java | 112 @PipBoundsState.StashType int stashType, int stashOffset, Rect displayBounds, in applySnapFraction() argument 119 : displayBounds.right - stashOffset - insetBounds.right, in applySnapFraction()
|
/aosp12/packages/apps/Settings/src/com/android/settings/accessibility/ |
H A D | AccessibilityUtil.java | 410 final Rect displayBounds = metrics.getBounds(); in getDisplayBounds() local 413 displayBounds.inset(displayInsets); in getDisplayBounds() 415 return displayBounds; in getDisplayBounds()
|
/aosp12/packages/services/Car/service/src/com/android/car/pm/ |
H A D | ActivityBlockingActivity.java | 233 Rect displayBounds = getWindowManager().getCurrentWindowMetrics().getBounds(); in getAppWindowRect() local 236 int rightX = displayBounds.width() - systemBarInsets.right; in getAppWindowRect() 238 int bottomY = displayBounds.height() - systemBarInsets.bottom; in getAppWindowRect()
|