/frameworks/base/services/core/java/com/android/server/wm/ |
D | LaunchParamsUtil.java | 76 @NonNull Rect stableBounds) { in getDefaultFreeformSize() argument 96 final int portraitHeight = Math.min(stableBounds.width(), stableBounds.height()); in getDefaultFreeformSize() 97 final int otherDimension = Math.max(stableBounds.width(), stableBounds.height()); in getDefaultFreeformSize() 142 final Rect stableBounds = TMP_STABLE_BOUNDS; in adjustBoundsToFitInDisplayArea() local 143 displayArea.getStableRect(stableBounds); in adjustBoundsToFitInDisplayArea() 146 stableBounds.inset(displayEdgeOffset, displayEdgeOffset); in adjustBoundsToFitInDisplayArea() 148 if (stableBounds.width() < inOutBounds.width() in adjustBoundsToFitInDisplayArea() 149 || stableBounds.height() < inOutBounds.height()) { in adjustBoundsToFitInDisplayArea() 150 final float heightShrinkRatio = stableBounds.width() / (float) inOutBounds.width(); in adjustBoundsToFitInDisplayArea() 152 stableBounds.height() / (float) inOutBounds.height(); in adjustBoundsToFitInDisplayArea() [all …]
|
D | DesktopModeLaunchParamsModifier.java | 128 final Rect stableBounds = new Rect(); in calculate() local 129 task.getDisplayArea().getStableRect(stableBounds); in calculate() 130 final int desiredWidth = (int) (stableBounds.width() * DESKTOP_MODE_INITIAL_BOUNDS_SCALE); in calculate() 131 final int desiredHeight = (int) (stableBounds.height() * DESKTOP_MODE_INITIAL_BOUNDS_SCALE); in calculate() 140 calculateLayoutBounds(stableBounds, layout, outParams.mBounds, in calculate() 143 stableBounds); in calculate() 148 stableBounds); in calculate() 167 final Rect stableBounds = new Rect(); in calculateAndCentreInitialBounds() local 168 task.getDisplayArea().getStableRect(stableBounds); in calculateAndCentreInitialBounds() 172 final int desiredWidth = (int) (stableBounds.width() * DESKTOP_MODE_INITIAL_BOUNDS_SCALE); in calculateAndCentreInitialBounds() [all …]
|
D | TaskLaunchParamsModifier.java | 641 final Rect stableBounds = mTmpStableBounds; in getLayoutBounds() local 642 displayArea.getStableRect(stableBounds); in getLayoutBounds() 645 LaunchParamsUtil.calculateLayoutBounds(stableBounds, windowLayout, inOutBounds, in getLayoutBounds() 652 stableBounds); in getLayoutBounds()
|
D | TaskFragment.java | 2265 final Rect stableBounds = decorInsets.mOverrideConfigFrame; in resolveTmpOverrides() local 2266 mTmpOverrideConfigOrientation = stableBounds.width() > stableBounds.height() in resolveTmpOverrides()
|
D | ActivityRecord.java | 9025 final Rect stableBounds = new Rect(); in resolveFixedOrientationConfiguration() local 9029 orientationRespectedWithInsets(parentBounds, stableBounds, outNonDecorBounds); in resolveFixedOrientationConfiguration() 9046 final int stableBoundsOrientation = stableBounds.width() > stableBounds.height() in resolveFixedOrientationConfiguration() 9078 ? parentAppBounds : stableBounds; in resolveFixedOrientationConfiguration()
|
D | Task.java | 2209 final Rect stableBounds = new Rect(); in computeFreeformBounds() local 2210 display.getStableRect(stableBounds); in computeFreeformBounds() 2211 parentBounds.intersect(stableBounds); in computeFreeformBounds()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/ |
D | DragPositioningCallbackUtility.java | 70 Rect stableBounds, PointF delta, DisplayController displayController, in changeBounds() argument 91 repositionTaskBounds.left = (candidateLeft > stableBounds.left) in changeBounds() 96 repositionTaskBounds.right = (candidateRight < stableBounds.right) in changeBounds() 101 repositionTaskBounds.top = (candidateTop > stableBounds.top) in changeBounds() 106 repositionTaskBounds.bottom = (candidateBottom < stableBounds.bottom) in changeBounds()
|
D | CaptionWindowDecoration.java | 116 final Rect stableBounds = new Rect(); in calculateValidDragArea() local 117 layout.getStableBounds(stableBounds); in calculateValidDragArea() 121 stableBounds.top, in calculateValidDragArea() 124 determineMaxY(requiredEmptySpace, stableBounds)); in calculateValidDragArea() 155 private int determineMaxY(int requiredEmptySpace, Rect stableBounds) { in determineMaxY() argument 156 return stableBounds.bottom - requiredEmptySpace; in determineMaxY()
|
D | DesktopModeWindowDecoration.java | 669 final Rect stableBounds = new Rect(); 670 layout.getStableBounds(stableBounds); 674 stableBounds.top, 677 determineMaxY(requiredEmptySpace, stableBounds)); 708 private int determineMaxY(int requiredEmptySpace, Rect stableBounds) { 709 return stableBounds.bottom - requiredEmptySpace;
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/desktopmode/ |
D | DesktopTasksController.kt | 641 val stableBounds = Rect() in <lambda>() constant 642 displayLayout.getStableBounds(stableBounds) in <lambda>() 644 if (taskInfo.configuration.windowConfiguration.bounds == stableBounds) { in <lambda>() 664 destinationBounds.set(stableBounds) in <lambda>() 710 val stableBounds = Rect() in <lambda>() constant 711 displayLayout.getStableBounds(stableBounds) in <lambda>() 713 val destinationWidth = stableBounds.width() / 2 in <lambda>() 717 stableBounds.left, in <lambda>() 718 stableBounds.top, in <lambda>() 719 stableBounds.left + destinationWidth, in <lambda>() [all …]
|
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/compatui/ |
D | UserAspectRatioSettingsWindowManagerTest.java | 274 final Rect stableBounds = mWindowManager.getTaskStableBounds(); in testEligibleButtonHiddenIfLetterboxBoundsEqualToStableBounds() local 275 final int stableHeight = stableBounds.height(); in testEligibleButtonHiddenIfLetterboxBoundsEqualToStableBounds() 279 taskInfo.appCompatTaskInfo.topActivityLetterboxWidth = stableBounds.width(); in testEligibleButtonHiddenIfLetterboxBoundsEqualToStableBounds() 299 final Rect stableBounds = mWindowManager.getTaskStableBounds(); in testUserFullscreenOverrideEnabled_buttonAlwaysShown() local 303 taskInfo.appCompatTaskInfo.topActivityLetterboxHeight = stableBounds.height(); in testUserFullscreenOverrideEnabled_buttonAlwaysShown() 304 taskInfo.appCompatTaskInfo.topActivityLetterboxWidth = stableBounds.width(); in testUserFullscreenOverrideEnabled_buttonAlwaysShown()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/compatui/ |
D | UserAspectRatioSettingsWindowManager.java | 235 final Rect stableBounds = getTaskStableBounds(); in shouldShowUserAspectRatioSettingsButton() local 240 if (stableBounds.height() <= letterboxHeight && stableBounds.width() <= letterboxWidth in shouldShowUserAspectRatioSettingsButton()
|
D | CompatUIWindowManager.java | 238 final Rect stableBounds = getTaskStableBounds(); in shouldShowSizeCompatRestartButton() local 239 final int appWidth = stableBounds.width(); in shouldShowSizeCompatRestartButton() 240 final int appHeight = stableBounds.height(); in shouldShowSizeCompatRestartButton()
|