Home
last modified time | relevance | path

Searched refs:inOutBounds (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/core/java/android/util/
DRotationUtils.java86 public static void rotateBounds(Rect inOutBounds, Rect parentBounds, @Rotation int oldRotation, in rotateBounds() argument
88 rotateBounds(inOutBounds, parentBounds, deltaRotation(oldRotation, newRotation)); in rotateBounds()
98 public static void rotateBounds(Rect inOutBounds, int parentWidth, int parentHeight, in rotateBounds() argument
100 final int origLeft = inOutBounds.left; in rotateBounds()
101 final int origTop = inOutBounds.top; in rotateBounds()
106 inOutBounds.left = inOutBounds.top; in rotateBounds()
107 inOutBounds.top = parentWidth - inOutBounds.right; in rotateBounds()
108 inOutBounds.right = inOutBounds.bottom; in rotateBounds()
109 inOutBounds.bottom = parentWidth - origLeft; in rotateBounds()
112 inOutBounds.left = parentWidth - inOutBounds.right; in rotateBounds()
[all …]
/frameworks/base/services/core/java/com/android/server/wm/
DLaunchParamsUtil.java58 @NonNull Rect inOutBounds) { in centerBounds() argument
59 if (inOutBounds.isEmpty()) { in centerBounds()
60 displayArea.getStableRect(inOutBounds); in centerBounds()
62 final int left = inOutBounds.centerX() - width / 2; in centerBounds()
63 final int top = inOutBounds.centerY() - height / 2; in centerBounds()
64 inOutBounds.set(left, top, left + width, top + height); in centerBounds()
138 @NonNull Rect inOutBounds) { in adjustBoundsToFitInDisplayArea() argument
146 if (stableBounds.width() < inOutBounds.width() in adjustBoundsToFitInDisplayArea()
147 || stableBounds.height() < inOutBounds.height()) { in adjustBoundsToFitInDisplayArea()
148 final float heightShrinkRatio = stableBounds.width() / (float) inOutBounds.width(); in adjustBoundsToFitInDisplayArea()
[all …]
DTaskLaunchParamsModifier.java579 @NonNull ActivityInfo.WindowLayout windowLayout, @NonNull Rect inOutBounds) { in getLayoutBounds() argument
583 inOutBounds.setEmpty(); in getLayoutBounds()
597 if (!inOutBounds.isEmpty()) { in getLayoutBounds()
600 width = inOutBounds.width(); in getLayoutBounds()
601 height = inOutBounds.height(); in getLayoutBounds()
604 /* hasInitialBounds */ false, inOutBounds); in getLayoutBounds()
605 width = inOutBounds.width(); in getLayoutBounds()
606 height = inOutBounds.height(); in getLayoutBounds()
648 inOutBounds.set(0, 0, width, height); in getLayoutBounds()
649 inOutBounds.offset(stableBounds.left, stableBounds.top); in getLayoutBounds()
[all …]
DTaskFragment.java2320 Rect inOutBounds, Rect intersectBounds, Rect intersectInsets) { in intersectWithInsetsIfFits() argument
2321 if (inOutBounds.right <= intersectBounds.right) { in intersectWithInsetsIfFits()
2322 inOutBounds.right = in intersectWithInsetsIfFits()
2323 Math.min(intersectBounds.right - intersectInsets.right, inOutBounds.right); in intersectWithInsetsIfFits()
2325 if (inOutBounds.bottom <= intersectBounds.bottom) { in intersectWithInsetsIfFits()
2326 inOutBounds.bottom = in intersectWithInsetsIfFits()
2327 Math.min(intersectBounds.bottom - intersectInsets.bottom, inOutBounds.bottom); in intersectWithInsetsIfFits()
2329 if (inOutBounds.left >= intersectBounds.left) { in intersectWithInsetsIfFits()
2330 inOutBounds.left = in intersectWithInsetsIfFits()
2331 Math.max(intersectBounds.left + intersectInsets.left, inOutBounds.left); in intersectWithInsetsIfFits()
[all …]
DDisplayContent.java3333 void rotateBounds(@Rotation int oldRotation, @Rotation int newRotation, Rect inOutBounds) { in rotateBounds() argument
3336 RotationUtils.rotateBounds(inOutBounds, mTmpRect, oldRotation, newRotation); in rotateBounds()