/frameworks/base/libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/ |
D | CommonAssertions.kt | 197 val displayBounds = WindowUtils.getDisplayBounds(rotation) in getPrimaryRegion() constant 200 0, 0, displayBounds.bounds.right, in getPrimaryRegion() 206 displayBounds.bounds.bottom in getPrimaryRegion() 212 val displayBounds = WindowUtils.getDisplayBounds(rotation) in getSecondaryRegion() constant 216 displayBounds.bounds.right, displayBounds.bounds.bottom in getSecondaryRegion() 221 displayBounds.bounds.right, displayBounds.bounds.bottom in getSecondaryRegion() 227 val displayBounds = WindowUtils.getDisplayBounds(rotation) in getSplitLeftTopRegion() constant 228 return if (displayBounds.width > displayBounds.height) { in getSplitLeftTopRegion() 229 Region.from(0, 0, dividerRegion.bounds.left, displayBounds.bounds.bottom) in getSplitLeftTopRegion() 231 Region.from(0, 0, displayBounds.bounds.right, dividerRegion.bounds.top) in getSplitLeftTopRegion() [all …]
|
/frameworks/base/libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/helpers/ |
D | SplitScreenHelper.kt | 87 val displayBounds = wmHelper.currentState.layerState in getPrimary() constant 94 displayBounds.centerX(), 5, in getPrimary() 95 displayBounds.centerX(), displayBounds.bottom, 20 /* steps */ in getPrimary() 107 displayBounds.centerX(), displayBounds.centerY(), in getPrimary() 108 displayBounds.centerX(), displayBounds.centerY() - 150, 20 /* steps */ in getPrimary() 116 var dragEnd = Point(displayBounds.width / 4, displayBounds.width / 4) in getPrimary()
|
D | AppPairsHelper.kt | 37 val displayBounds = WindowUtils.displayBounds in <lambda>() constant 40 displayBounds.right, displayBounds.bottom - WindowUtils.navigationBarFrameHeight) in <lambda>()
|
/frameworks/base/tests/FlickerTests/src/com/android/server/wm/flicker/ime/ |
D | SwitchImeWindowsFromGestureNavTest.kt | 109 val displayBounds = WindowUtils.getDisplayBounds(testSpec.startRotation) in buildFlicker() constant 110 device.swipe(0, displayBounds.bounds.height, in buildFlicker() 111 displayBounds.bounds.width, displayBounds.bounds.height, 50) in buildFlicker() 119 val displayBounds = WindowUtils.getDisplayBounds(testSpec.startRotation) in buildFlicker() constant 120 device.swipe(displayBounds.bounds.width, displayBounds.bounds.height, in buildFlicker() 121 0, displayBounds.bounds.height, 50) in buildFlicker()
|
D | OpenImeWindowToFixedPortraitAppTest.kt | 108 val displayBounds = WindowUtils.getDisplayBounds(testSpec.startRotation) in appWindowWithLetterboxCoversExactlyOnScreen() constant 111 .coversExactly(displayBounds) in appWindowWithLetterboxCoversExactlyOnScreen()
|
/frameworks/base/libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/pip/ |
D | ExitPipToAppTransition.kt | 38 coversAtMost(displayBounds) in <lambda>() 50 coversAtMost(displayBounds) in <lambda>() 100 .coversExactly(displayBounds) in <lambda>() 112 visibleRegion(pipApp.component).coversExactly(displayBounds) in <lambda>()
|
D | EnterPipOnUserLeaveHintTest.kt | 104 this.visibleRegion(pipApp.component).coversAtMost(displayBounds) in pipLayerRemainInsideVisibleBounds() 107 this.visibleRegion(pipApp.component).coversAtMost(displayBounds) in pipLayerRemainInsideVisibleBounds()
|
D | MovePipShelfHeightTransition.kt | 70 coversAtMost(displayBounds) in <lambda>() 82 coversAtMost(displayBounds) in <lambda>()
|
D | EnterPipTest.kt | 109 coversAtMost(displayBounds) in <lambda>() 121 coversAtMost(displayBounds) in <lambda>()
|
D | PipKeyboardTest.kt | 95 val displayBounds = WindowUtils.getDisplayBounds(testSpec.startRotation) in statusBarLayerRotatesScales() constant 96 coversAtMost(displayBounds) in statusBarLayerRotatesScales()
|
D | ExpandPipOnDoubleClickTest.kt | 73 coversAtMost(displayBounds) in <lambda>() 85 coversAtMost(displayBounds) in <lambda>()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/transition/ |
D | CounterRotatorHelper.java | 49 final Rect displayBounds = displayRotationChange.getEndAbsBounds(); in handleClosingChanges() local 50 final int displayW = displayBounds.width(); in handleClosingChanges() 51 final int displayH = displayBounds.height(); in handleClosingChanges() 53 mLastDisplayBounds.set(displayBounds); in handleClosingChanges()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | DisplayAreaGroup.java | 49 final Rect displayBounds = mDisplayContent.getBounds(); in isOrientationDifferentFromDisplay() local 51 != (displayBounds.width() < displayBounds.height()); in isOrientationDifferentFromDisplay()
|
D | TaskPositioner.java | 240 final Rect displayBounds = mTmpRect; in register() local 241 displayContent.getBounds(displayBounds); in register() 245 mMaxVisibleSize.set(displayBounds.width(), displayBounds.height()); in register()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/onehanded/ |
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()
|
/frameworks/base/tests/FlickerTests/src/com/android/server/wm/flicker/launch/ |
D | TaskTransitionTest.kt | 152 val displayBounds = WindowUtils.getDisplayBounds(testSpec.startRotation) in colorLayerIsVisibleDuringTransition() constant 156 it.visibleRegion(LAUNCH_NEW_TASK_ACTIVITY).coversExactly(displayBounds) in colorLayerIsVisibleDuringTransition() 165 it.visibleRegion(SIMPLE_ACTIVITY).coversExactly(displayBounds) in colorLayerIsVisibleDuringTransition() 174 it.visibleRegion(LAUNCH_NEW_TASK_ACTIVITY).coversExactly(displayBounds) in colorLayerIsVisibleDuringTransition()
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | SizeCompatTests.java | 606 final Rect displayBounds = mActivity.mDisplayContent.getWindowConfiguration().getBounds(); in testFixedAspectRatioBoundsWithDecorInSquareDisplay() local 617 final int offsetX = (int) ((1f + displayBounds.width() - appBounds.width()) / 2); in testFixedAspectRatioBoundsWithDecorInSquareDisplay() 620 assertEquals(appBounds.height(), displayBounds.height() - notchHeight); in testFixedAspectRatioBoundsWithDecorInSquareDisplay() 630 .isEqualTo(displayBounds.height()); in testFixedAspectRatioBoundsWithDecorInSquareDisplay() 648 .isEqualTo(displayBounds.height()); in testFixedAspectRatioBoundsWithDecorInSquareDisplay() 1845 final Rect displayBounds = new Rect(mActivity.mDisplayContent.getBounds()); 1851 assertTrue(displayBounds.width() > displayBounds.height()); 1859 assertEquals(displayBounds.height(), activityBounds.height()); 1860 assertEquals(displayBounds.height() * displayBounds.height() / displayBounds.width(), 1876 final Rect displayBounds = new Rect(mActivity.mDisplayContent.getBounds()); in testDisplayIgnoreOrientationRequest_fixedOrientationAppRespectMinAspectRatio() local [all …]
|
D | TaskLaunchParamsModifierTests.java | 530 final Rect displayBounds = new Rect(freeformDisplay.getBounds()); in testRecalculateFreeformInitialBoundsWithOverrideDisplayArea_unresizableApp() local 532 mActivity.info.screenOrientation = displayBounds.width() > displayBounds.height() in testRecalculateFreeformInitialBoundsWithOverrideDisplayArea_unresizableApp() 1427 final Rect displayBounds = freeformDisplay.getBounds(); in testCascadesToSourceSizeForFreeform() local 1432 mResult.mBounds.centerX() < displayBounds.centerX()); in testCascadesToSourceSizeForFreeform() 1435 mResult.mBounds.centerY() < displayBounds.centerY()); in testCascadesToSourceSizeForFreeform() 1455 final Rect displayBounds = freeformDisplay.getBounds(); in testCascadesToSourceSizeForFreeformRespectingMinAspectRatio() local 1460 mResult.mBounds.centerX() < displayBounds.centerX()); in testCascadesToSourceSizeForFreeformRespectingMinAspectRatio() 1463 mResult.mBounds.centerY() < displayBounds.centerY()); in testCascadesToSourceSizeForFreeformRespectingMinAspectRatio() 1488 final Rect displayBounds = freeformDisplay.getBounds(); in testCascadesToSourceSizeForFreeformRespectingMaxAspectRatio() local 1493 mResult.mBounds.centerX() < displayBounds.centerX()); in testCascadesToSourceSizeForFreeformRespectingMaxAspectRatio() [all …]
|
D | WindowProcessControllerTests.java | 135 final Rect displayBounds = new Rect(0, 0, 2000, 1000); in testDisplayAreaConfigurationListener_verifyConfig() local 137 mAtm, displayBounds.width(), displayBounds.height()) in testDisplayAreaConfigurationListener_verifyConfig() 146 assertEquals(displayBounds, mWpc.getConfiguration().windowConfiguration.getBounds()); in testDisplayAreaConfigurationListener_verifyConfig() 157 assertEquals(displayBounds, mWpc.getConfiguration().windowConfiguration.getBounds()); in testDisplayAreaConfigurationListener_verifyConfig()
|
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()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/phone/ |
D | PipController.java | 684 final Rect displayBounds = mPipBoundsState.getDisplayBounds(); in onInit() local 689 displayBounds.left, displayBounds.centerY(), in onInit() 690 displayBounds.right, displayBounds.bottom)); in onInit() 694 displayBounds.left, displayBounds.top, in onInit() 695 displayBounds.right, displayBounds.centerY())); in onInit() 702 if ((pipBounds.height() + 2 * edgeInsets.y) > (displayBounds.height() / 2)) { in onInit()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/ |
D | PipSnapAlgorithm.java | 112 @PipBoundsState.StashType int stashType, int stashOffset, Rect displayBounds, in applySnapFraction() argument 119 : displayBounds.right - stashOffset - insetBounds.right, in applySnapFraction()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/tv/ |
D | TvPipBoundsAlgorithm.java | 141 final Rect displayBounds = mTvPipBoundsState.getDisplayBounds(); in getTvPipPlacement() local 142 final Size screenSize = new Size(displayBounds.width(), displayBounds.height()); in getTvPipPlacement()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/biometrics/ |
D | SideFpsControllerTest.kt | 128 private lateinit var displayBounds: Rect variable in com.android.systemui.biometrics.SideFpsControllerTest 198 displayBounds = Rect(0, 0, displayWidth, displayHeight) 226 .thenReturn(WindowMetrics(displayBounds, WindowInsets.CONSUMED)) 228 .thenReturn(WindowMetrics(displayBounds, windowInsets))
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/floatingmenu/ |
D | AccessibilityFloatingMenuView.java | 586 final Rect displayBounds = metrics.getBounds(); in updateDisplaySizeWith() local 589 displayBounds.inset(displayInsets); in updateDisplaySizeWith() 590 mDisplayWidth = displayBounds.width(); in updateDisplaySizeWith() 591 mDisplayHeight = displayBounds.height(); in updateDisplaySizeWith()
|