Home
last modified time | relevance | path

Searched refs:oldRotation (Results 1 – 13 of 13) sorted by relevance

/frameworks/base/packages/SystemUI/src/com/android/systemui/navigationbar/
DNavbarOrientationTrackingLogger.kt59 private fun getDeltaRotation(oldRotation: Int, newRotation: Int): String { in getDeltaRotation()
61 when (deltaRotation(oldRotation, newRotation)) { in getDeltaRotation()
75 private fun deltaRotation(oldRotation: Int, newRotation: Int): Int { in deltaRotation()
76 var delta = newRotation - oldRotation in deltaRotation()
DNavigationBar.java1052 private int deltaRotation(int oldRotation, int newRotation) { in deltaRotation() argument
1053 int delta = newRotation - oldRotation; in deltaRotation()
/frameworks/base/services/core/java/com/android/server/wm/
DSeamlessRotator.java54 public SeamlessRotator(@Rotation int oldRotation, @Rotation int newRotation, DisplayInfo info, in SeamlessRotator() argument
56 mOldRotation = oldRotation; in SeamlessRotator()
59 mFixedTransformHint = oldRotation; in SeamlessRotator()
65 CoordinateTransforms.transformLogicalToPhysicalCoordinates(oldRotation, pW, pH, mTransform); in SeamlessRotator()
DDisplayRotation.java569 final int oldRotation = mRotation; in updateRotationUnchecked() local
573 int rotation = rotationForOrientation(lastOrientation, oldRotation); in updateRotationUnchecked()
581 Surface.rotationToString(oldRotation), in updateRotationUnchecked()
598 Surface.rotationToString(oldRotation), oldRotation); in updateRotationUnchecked()
605 if (oldRotation == rotation) { in updateRotationUnchecked()
626 displayId, rotation, oldRotation, lastOrientation); in updateRotationUnchecked()
639 oldRotation, mRotation); in updateRotationUnchecked()
649 startRemoteRotation(oldRotation, mRotation); in updateRotationUnchecked()
658 if (shouldRotateSeamlessly(oldRotation, rotation, forceUpdate)) { in updateRotationUnchecked()
668 startRemoteRotation(oldRotation, mRotation); in updateRotationUnchecked()
[all …]
DPinnedTaskController.java242 int oldRotation, int newRotation) { in startSeamlessRotationIfNeeded() argument
288 final int rotationDelta = RotationUtils.deltaRotation(oldRotation, newRotation); in startSeamlessRotationIfNeeded()
292 final int rotationBackDelta = RotationUtils.deltaRotation(newRotation, oldRotation); in startSeamlessRotationIfNeeded()
DDisplayContent.java2206 private void applyRotation(final int oldRotation, final int rotation) { in applyRotation() argument
2230 w.seamlesslyRotateIfAllowed(transaction, oldRotation, rotation, rotateSeamlessly); in applyRotation()
2236 mPinnedTaskController.startSeamlessRotationIfNeeded(transaction, oldRotation, rotation); in applyRotation()
3455 void rotateBounds(@Rotation int oldRotation, @Rotation int newRotation, Rect inOutBounds) { in rotateBounds() argument
3457 getBounds(mTmpRect, oldRotation); in rotateBounds()
3458 RotationUtils.rotateBounds(inOutBounds, mTmpRect, oldRotation, newRotation); in rotateBounds()
6408 private void applyRotationAndFinishFixedRotation(int oldRotation, int newRotation) { in applyRotationAndFinishFixedRotation() argument
6411 applyRotation(oldRotation, newRotation); in applyRotationAndFinishFixedRotation()
6416 () -> applyRotation(oldRotation, newRotation)); in applyRotationAndFinishFixedRotation()
DWindowState.java878 void seamlesslyRotateIfAllowed(Transaction transaction, @Rotation int oldRotation, in seamlesslyRotateIfAllowed() argument
897 oldRotation = mPendingSeamlessRotate.getOldRotation(); in seamlesslyRotateIfAllowed()
910 mPendingSeamlessRotate = new SeamlessRotator(oldRotation, rotation, getDisplayInfo(), in seamlesslyRotateIfAllowed()
/frameworks/base/services/core/java/com/android/server/wm/utils/
DCoordinateTransforms.java104 public static void transformToRotation(@Rotation int oldRotation, in transformToRotation() argument
111 transformLogicalToPhysicalCoordinates(oldRotation, w, h, out); in transformToRotation()
126 public static void transformToRotation(@Rotation int oldRotation, in transformToRotation() argument
133 transformLogicalToPhysicalCoordinates(oldRotation, w, h, out); in transformToRotation()
/frameworks/base/core/java/android/util/
DRotationUtils.java88 public static void rotateBounds(Rect inOutBounds, Rect parentBounds, @Rotation int oldRotation, in rotateBounds() argument
90 rotateBounds(inOutBounds, parentBounds, deltaRotation(oldRotation, newRotation)); in rotateBounds()
141 public static int deltaRotation(@Rotation int oldRotation, @Rotation int newRotation) { in deltaRotation() argument
142 int delta = newRotation - oldRotation; in deltaRotation()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DTestDisplayContent.java65 final int oldRotation = displayRotation.getRotation(); in TestDisplayContent()
67 displayRotation.getLastOrientation(), oldRotation); in TestDisplayContent()
68 if (oldRotation == rotation) { in TestDisplayContent()
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/recents/utilities/
DPreviewPositionHelper.java185 private int getRotationDelta(int oldRotation, int newRotation) { in getRotationDelta() argument
186 int delta = newRotation - oldRotation; in getRotationDelta()
/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/
DWindowMagnificationController.java626 final int oldRotation = mRotation; in onRotate() local
628 final int rotationDegree = getDegreeFromRotation(mRotation, oldRotation); in onRotate()
663 @Surface.Rotation int oldRotation) { in getDegreeFromRotation() argument
664 return (oldRotation - newRotation + 4) % 4 * 90; in getDegreeFromRotation()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DScreenDecorations.java1088 int oldRotation = mRotation; in onConfigChanged() local
1091 if (oldRotation != mRotation) { in onConfigChanged()
1092 mLogger.logRotationChanged(oldRotation, mRotation); in onConfigChanged()