/frameworks/base/tests/FlickerTests/test-apps/app-helpers/src/com/android/server/wm/flicker/helpers/ |
D | LetterboxAppHelper.kt | 64 fun repositionHorizontally(displayBounds: Rect, right: Boolean) { in repositionHorizontally() 65 val x = if (right) displayBounds.right - BOUNDS_OFFSET else BOUNDS_OFFSET in repositionHorizontally() 66 reposition(x.toFloat(), displayBounds.centerY().toFloat()) in repositionHorizontally() 69 fun repositionVertically(displayBounds: Rect, bottom: Boolean) { in repositionVertically() 70 val y = if (bottom) displayBounds.bottom - BOUNDS_OFFSET else BOUNDS_OFFSET in repositionVertically() 71 reposition(displayBounds.centerX().toFloat(), y.toFloat()) in repositionVertically() 81 displayBounds: Rect, in waitForAppToMoveHorizontallyTo() 91 appRegionBounds.left == displayBounds.right - appWidth && in waitForAppToMoveHorizontallyTo() 92 appRegionBounds.right == displayBounds.right in waitForAppToMoveHorizontallyTo() 94 appRegionBounds.left == displayBounds.left && in waitForAppToMoveHorizontallyTo() [all …]
|
/frameworks/base/libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/utils/ |
D | CommonAssertions.kt | 263 val displayBounds = WindowUtils.getDisplayBounds(rotation) in LayerTraceEntrySubject() constant 271 if (displayBounds.width() > displayBounds.height()) { in LayerTraceEntrySubject() 277 displayBounds.bottom in LayerTraceEntrySubject() 283 displayBounds.right, in LayerTraceEntrySubject() 284 displayBounds.bottom in LayerTraceEntrySubject() 292 displayBounds.right, in LayerTraceEntrySubject() 299 displayBounds.right, in LayerTraceEntrySubject() 300 displayBounds.bottom in LayerTraceEntrySubject() 421 val displayBounds = WindowUtils.getDisplayBounds(rotation) in getPrimaryRegion() constant 427 displayBounds.bottom in getPrimaryRegion() [all …]
|
D | SplitScreenUtils.kt | 179 val displayBounds = in <lambda>() constant 182 val swipeXCoordinate = displayBounds.centerX() / 2 in <lambda>() 185 device.swipe(swipeXCoordinate, 5, swipeXCoordinate, displayBounds.bottom, 50 /* steps */) in <lambda>() 196 displayBounds.centerX(), in <lambda>() 197 displayBounds.centerY(), in <lambda>() 198 displayBounds.centerX(), in <lambda>() 199 displayBounds.centerY() - 150, in <lambda>() 208 val dragEnd = Point(displayBounds.width() / 4, displayBounds.width() / 4) in <lambda>() 311 val displayBounds = in <lambda>() constant 315 dividerBar.drag(Point(displayBounds.width() * 1 / 3, displayBounds.height() * 2 / 3), 200) in <lambda>() [all …]
|
/frameworks/base/libs/WindowManager/Shell/tests/flicker/appcompat/src/com/android/wm/shell/flicker/appcompat/ |
D | RepositionFixedPortraitAppTest.kt | 56 val displayBounds = WindowUtils.getDisplayBounds(flicker.scenario.startRotation) constant 65 letterboxApp.repositionHorizontally(displayBounds, true) in <lambda>() 66 letterboxApp.waitForAppToMoveHorizontallyTo(wmHelper, displayBounds, true) in <lambda>() 69 letterboxApp.repositionHorizontally(displayBounds, false) in <lambda>()
|
/frameworks/base/libs/WindowManager/Shell/tests/flicker/pip/src/com/android/wm/shell/flicker/pip/common/ |
D | ExitPipToAppTransition.kt | 40 coversAtMost(displayBounds) in <lambda>() 52 coversAtMost(displayBounds) in <lambda>() 100 visibleRegion(testApp).plus(pipRegion).coversExactly(displayBounds) in <lambda>() 111 flicker.assertLayersEnd { visibleRegion(pipApp).coversExactly(displayBounds) } in <lambda>()
|
D | EnterPipTransition.kt | 64 flicker.assertWmVisibleRegion(pipApp) { coversAtMost(displayBounds) } in <lambda>() 75 coversAtMost(displayBounds) in <lambda>()
|
D | MovePipShelfHeightTransition.kt | 54 flicker.assertWmVisibleRegion(pipApp) { coversAtMost(displayBounds) } in <lambda>() 64 flicker.assertLayersVisibleRegion(pipApp) { coversAtMost(displayBounds) } in <lambda>()
|
/frameworks/base/tests/FlickerTests/AppLaunch/src/com/android/server/wm/flicker/launch/ |
D | TaskTransitionTest.kt | 129 val displayBounds = WindowUtils.getDisplayBounds(flicker.scenario.startRotation) in transitionHasColorBackground() constant 131 visibleRegionCovers(launchNewTaskApp.componentMatcher, displayBounds) in transitionHasColorBackground() 140 displayBounds, in transitionHasColorBackground() 143 .visibleRegionCovers(simpleApp.componentMatcher, displayBounds) in transitionHasColorBackground() 154 displayBounds, in transitionHasColorBackground() 157 .visibleRegionCovers(launchNewTaskApp.componentMatcher, displayBounds) in transitionHasColorBackground()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/transition/ |
D | CounterRotatorHelper.java | 50 final Rect displayBounds = displayRotationChange.getEndAbsBounds(); in handleClosingChanges() local 51 final int displayW = displayBounds.width(); in handleClosingChanges() 52 final int displayH = displayBounds.height(); in handleClosingChanges() 54 mLastDisplayBounds.set(displayBounds); in handleClosingChanges()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | DisplayAreaGroup.java | 52 final Rect displayBounds = mDisplayContent.getBounds(); in isOrientationDifferentFromDisplay() local 54 != (displayBounds.width() < displayBounds.height()); in isOrientationDifferentFromDisplay()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/pip/ |
D | PhoneSizeSpecSource.kt | 138 val displayBounds = pipDisplayLayoutState.displayBounds in getMaxSize() constant 141 (displayBounds.width() - insetBounds.right)) in getMaxSize() 143 (displayBounds.height() - insetBounds.bottom)) in getMaxSize() 144 val shorterLength: Int = Math.min(displayBounds.width() - totalHorizontalPadding, in getMaxSize() 145 displayBounds.height() - totalVerticalPadding) in getMaxSize()
|
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/tests/flicker/pip/src/com/android/wm/shell/flicker/pip/ |
D | FromSplitScreenAutoEnterPipOnGoToHomeTest.kt | 130 flicker.assertWmVisibleRegion(pipApp) { coversAtMost(displayBounds) } in pipWindowRemainInsideVisibleBounds() 138 coversAtMost(displayBounds).then().coversAtMost(portraitDisplayBounds) in pipWindowRemainInsideVisibleBounds() 142 flicker.assertWmVisibleRegion(pipApp) { coversAtMost(displayBounds) } in pipWindowRemainInsideVisibleBounds()
|
D | FromSplitScreenEnterPipOnUserLeaveHintTest.kt | 168 flicker.assertWmVisibleRegion(pipApp) { coversAtMost(displayBounds) } in pipWindowRemainInsideVisibleBounds() 176 coversAtMost(displayBounds).then().coversAtMost(portraitDisplayBounds) in pipWindowRemainInsideVisibleBounds() 180 flicker.assertWmVisibleRegion(pipApp) { coversAtMost(displayBounds) } in pipWindowRemainInsideVisibleBounds()
|
D | MovePipOnImeVisibilityChangeTest.kt | 68 val displayBounds = WindowUtils.getDisplayBounds(flicker.scenario.startRotation) in pipInVisibleBounds() constant 69 coversAtMost(displayBounds) in pipInVisibleBounds()
|
D | ExpandPipOnDoubleClickTest.kt | 69 flicker.assertWmVisibleRegion(pipApp) { coversAtMost(displayBounds) } in <lambda>() 79 flicker.assertLayersVisibleRegion(pipApp) { coversAtMost(displayBounds) } in <lambda>()
|
D | EnterPipOnUserLeaveHintTest.kt | 146 flicker.assertLayersStart { this.visibleRegion(pipApp).coversAtMost(displayBounds) } in pipLayerRemainInsideVisibleBounds() 147 flicker.assertLayersEnd { this.visibleRegion(pipApp).coversAtMost(displayBounds) } in pipLayerRemainInsideVisibleBounds()
|
/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/libs/WindowManager/Shell/tests/flicker/splitscreen/src/com/android/wm/shell/flicker/splitscreen/benchmark/ |
D | SwitchAppByDoubleTapDividerBenchmark.kt | 130 val displayBounds = WindowUtils.getDisplayBounds(rotation) in <lambda>() constant 131 return displayBounds.width() > displayBounds.height() in <lambda>()
|
/frameworks/base/libs/WindowManager/Shell/tests/flicker/service/src/com/android/wm/shell/flicker/service/splitscreen/scenarios/ |
D | SwitchAppByDoubleTapDivider.kt | 143 val displayBounds = WindowUtils.getDisplayBounds(rotation) in <lambda>() constant 144 return displayBounds.width() > displayBounds.height() in <lambda>()
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | SizeCompatTests.java | 426 final Rect displayBounds = mActivity.mDisplayContent.getWindowConfiguration().getBounds(); in testFixedAspectRatioBoundsWithDecorInSquareDisplay() local 440 final int offsetX = (int) ((1f + displayBounds.width() - appBounds.width()) / 2); in testFixedAspectRatioBoundsWithDecorInSquareDisplay() 443 assertEquals(appBounds.height(), displayBounds.height() - notchHeight); in testFixedAspectRatioBoundsWithDecorInSquareDisplay() 453 .isEqualTo(displayBounds.height()); in testFixedAspectRatioBoundsWithDecorInSquareDisplay() 471 .isEqualTo(displayBounds.height()); in testFixedAspectRatioBoundsWithDecorInSquareDisplay() 1715 final Rect displayBounds = new Rect(mActivity.mDisplayContent.getBounds()); 1721 assertTrue(displayBounds.width() > displayBounds.height()); 1729 assertEquals(displayBounds.height(), activityBounds.height()); 1730 assertEquals(displayBounds.height() * displayBounds.height() / displayBounds.width(), 1746 final Rect displayBounds = new Rect(mActivity.mDisplayContent.getBounds()); in testDisplayIgnoreOrientationRequest_fixedOrientationAppRespectMinAspectRatio() local [all …]
|
D | TaskLaunchParamsModifierTests.java | 578 final Rect displayBounds = new Rect(freeformDisplay.getBounds()); in testRecalculateFreeformInitialBoundsWithOverrideDisplayArea_unresizableApp() local 580 mActivity.info.screenOrientation = displayBounds.width() > displayBounds.height() in testRecalculateFreeformInitialBoundsWithOverrideDisplayArea_unresizableApp() 1529 final Rect displayBounds = freeformDisplay.getBounds(); in testCascadesToSourceSizeForFreeform() local 1534 mResult.mBounds.centerX() < displayBounds.centerX()); in testCascadesToSourceSizeForFreeform() 1537 mResult.mBounds.centerY() < displayBounds.centerY()); in testCascadesToSourceSizeForFreeform() 1557 final Rect displayBounds = freeformDisplay.getBounds(); in testCascadesToSourceSizeForFreeformRespectingMinAspectRatio() local 1562 mResult.mBounds.centerX() < displayBounds.centerX()); in testCascadesToSourceSizeForFreeformRespectingMinAspectRatio() 1565 mResult.mBounds.centerY() < displayBounds.centerY()); in testCascadesToSourceSizeForFreeformRespectingMinAspectRatio() 1590 final Rect displayBounds = freeformDisplay.getBounds(); in testCascadesToSourceSizeForFreeformRespectingMaxAspectRatio() local 1595 mResult.mBounds.centerX() < displayBounds.centerX()); in testCascadesToSourceSizeForFreeformRespectingMaxAspectRatio() [all …]
|
/frameworks/base/tests/FlickerTests/IME/src/com/android/server/wm/flicker/ime/ |
D | OpenImeWindowToFixedPortraitAppTest.kt | 96 val displayBounds = WindowUtils.getDisplayBounds(flicker.scenario.startRotation) in appWindowWithLetterboxCoversExactlyOnScreen() constant 99 .coversExactly(displayBounds) in appWindowWithLetterboxCoversExactlyOnScreen()
|
/frameworks/base/libs/WindowManager/Shell/tests/flicker/pip/src/com/android/wm/shell/flicker/pip/apps/ |
D | AppsEnterPipTransition.kt | 80 coversAtMost(displayBounds) in <lambda>() 94 coversAtMost(displayBounds) in <lambda>()
|
/frameworks/base/libs/WindowManager/Shell/tests/flicker/splitscreen/src/com/android/wm/shell/flicker/splitscreen/ |
D | DismissSplitScreenByDivider.kt | 85 val displayBounds = WindowUtils.getDisplayBounds(flicker.scenario.endRotation) in splitScreenDividerBecomesInvisible() constant 86 visibleRegion(secondaryApp).coversExactly(displayBounds) in splitScreenDividerBecomesInvisible()
|