Home
last modified time | relevance | path

Searched refs:rotationDelta (Results 1 – 11 of 11) sorted by relevance

/aosp14/frameworks/base/services/core/java/com/android/server/wm/utils/
H A DInsetUtils.java40 public static void rotateInsets(Rect inOutInsets, int rotationDelta) { in rotateInsets() argument
42 switch (rotationDelta) { in rotateInsets()
55 throw new IllegalArgumentException("Unknown rotation: " + rotationDelta); in rotateInsets()
H A DCoordinateTransforms.java139 public static void computeRotationMatrix(int rotationDelta, int w, int h, Matrix outMatrix) { in computeRotationMatrix() argument
140 switch (rotationDelta) { in computeRotationMatrix()
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/transition/
H A DCounterRotatorHelper.java48 final int rotationDelta = RotationUtils.deltaRotation( in handleClosingChanges() local
53 mLastRotationDelta = rotationDelta; in handleClosingChanges()
69 crot.setup(startTransaction, info.getChange(parent).getLeash(), rotationDelta, in handleClosingChanges()
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/
H A DPipAnimationController.java175 @Surface.Rotation int rotationDelta) { in getAnimator() argument
180 rotationDelta)); in getAnimator()
196 endBounds, sourceHintRect, direction, startingAngle, rotationDelta)); in getAnimator()
588 @Surface.Rotation int rotationDelta) { in ofBounds() argument
603 if (rotationDelta == ROTATION_90 || rotationDelta == ROTATION_270) { in ofBounds()
608 rotateBounds(rotatedEndRect, initialSourceValue, rotationDelta); in ofBounds()
685 rotateBounds(rotatedEndRect, initialSourceValue, rotationDelta); in ofBounds()
693 if (rotationDelta == ROTATION_90) { in ofBounds()
705 if (rotationDelta == ROTATION_90) { in ofBounds()
720 rotationDelta == ROTATION_270 /* clockwise */); in ofBounds()
H A DPipTransition.java336 if (rotationDelta != Surface.ROTATION_0) { in handleRotateDisplay()
653 final int rotationDelta; in startExitAnimation() local
657 rotationDelta = deltaRotation(startRotation, endRotation); in startExitAnimation()
662 rotateBounds(endBounds, destinationBounds, rotationDelta); in startExitAnimation()
664 if (rotationDelta == ROTATION_90) { in startExitAnimation()
677 rotationDelta = Surface.ROTATION_0; in startExitAnimation()
680 rotationDelta, startTransaction); in startExitAnimation()
742 0 /* startingAngle */, rotationDelta); in startExpandAnimation()
877 int rotationDelta = deltaRotation(startRotation, endRotation); in startEnterAnimation() local
911 0 /* startingAngle */, rotationDelta); in startEnterAnimation()
[all …]
H A DPipTaskOrganizer.java1714 final int rotationDelta = mWaitForFixedRotation in animateResizePip() local
1717 if (rotationDelta != Surface.ROTATION_0) { in animateResizePip()
1718 sourceHintRect = computeRotatedBounds(rotationDelta, direction, destinationBounds, in animateResizePip()
1727 sourceHintRect, direction, startingAngle, rotationDelta); in animateResizePip()
1764 if (rotationDelta != Surface.ROTATION_0) { in animateResizePip()
1777 private @Nullable Rect computeRotatedBounds(int rotationDelta, int direction, in computeRotatedBounds() argument
1789 if (rotationDelta == Surface.ROTATION_270) { in computeRotatedBounds()
1797 rotationDelta); in computeRotatedBounds()
/aosp14/frameworks/base/services/tests/wmtests/src/com/android/server/wm/utils/
H A DInsetUtilsTest.java67 private static Rect rotateCopy(Rect insets, int rotationDelta) { in rotateCopy() argument
69 InsetUtils.rotateInsets(copy, rotationDelta); in rotateCopy()
/aosp14/frameworks/base/services/core/java/com/android/server/wm/
H A DPinnedTaskController.java288 final int rotationDelta = RotationUtils.deltaRotation(oldRotation, newRotation); in startSeamlessRotationIfNeeded() local
290 if (sourceHintRect != null && rotationDelta == Surface.ROTATION_270) { in startSeamlessRotationIfNeeded()
H A DDisplayContent.java5053 final int rotationDelta = deltaRotation(currentRotation, rotation); in getBounds() local
5054 if (rotationDelta == ROTATION_90 || rotationDelta == ROTATION_270) { in getBounds()
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/
H A DDisplayLayout.java233 final int rotationDelta = (targetRotation - mRotation + 4) % 4; in rotateTo() local
234 final boolean changeOrient = (rotationDelta % 2) != 0; in rotateTo()
246 mCutout = calculateDisplayCutoutForRotation(mCutout, rotationDelta, origWidth, in rotateTo()
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/split/
H A DSplitLayout.java331 final int rotationDelta = (newRotation - mRotation + 4) % 4; in rotateTo() local
332 final boolean changeOrient = (rotationDelta % 2) != 0; in rotateTo()