Home
last modified time | relevance | path

Searched refs:newRotation (Results 1 – 25 of 39) sorted by relevance

12

/frameworks/base/services/core/java/com/android/server/wm/utils/
DCoordinateTransforms.java105 @Rotation int newRotation, DisplayInfo info, Matrix out) { in transformToRotation() argument
112 transformPhysicalToLogicalCoordinates(newRotation, w, h, tmp); in transformToRotation()
127 @Rotation int newRotation, int newWidth, int newHeight, Matrix out) { in transformToRotation() argument
128 final boolean flipped = newRotation == ROTATION_90 || newRotation == ROTATION_270; in transformToRotation()
134 transformPhysicalToLogicalCoordinates(newRotation, w, h, tmp); in transformToRotation()
/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()
/frameworks/base/packages/SystemUI/src/com/android/systemui/decor/
DRoundedCornerDecorProviderImpl.kt161 var newRotation = 0F in adjustRotation() variable
172 else /* !isTop && !isLeft */ -> { newRotation = 180F } in adjustRotation()
177 !isTop && isLeft -> { newRotation = 180F } in adjustRotation()
182 isTop && !isLeft -> { newRotation = 180F } in adjustRotation()
187 isTop && isLeft -> { newRotation = 180F } in adjustRotation()
194 this.rotation = newRotation in adjustRotation()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DMultiListLayout.java87 int newRotation = RotationUtils.getRotation(mContext); in onConfigurationChanged() local
88 if (newRotation != mRotation) { in onConfigurationChanged()
89 rotate(mRotation, newRotation); in onConfigurationChanged()
90 mRotation = newRotation; in onConfigurationChanged()
DScreenDecorations.java511 final int newRotation = mDisplayInfo.rotation; in startOnScreenDecorationsThread()
513 && (mRotation != newRotation in startOnScreenDecorationsThread()
526 if (mRotation != newRotation) { in startOnScreenDecorationsThread()
527 mLogger.logRotationChangeDeferred(mRotation, newRotation); in startOnScreenDecorationsThread()
539 overlayView, i, newRotation, newSize)); in startOnScreenDecorationsThread()
549 newRotation, newSize)); in startOnScreenDecorationsThread()
1190 final int newRotation = mDisplayInfo.rotation; in updateConfiguration() local
1191 if (mRotation != newRotation) { in updateConfiguration()
1192 mDotViewController.setNewRotation(newRotation); in updateConfiguration()
1197 && (newRotation != mRotation || displaySizeChanged(mDisplaySize, mDisplayInfo) in updateConfiguration()
[all …]
/frameworks/base/services/core/java/com/android/server/wm/
DImmediateDisplayUpdater.java52 public void onDisplayContentDisplayPropertiesPostChanged(int previousRotation, int newRotation, in onDisplayContentDisplayPropertiesPostChanged() argument
55 newRotation, in onDisplayContentDisplayPropertiesPostChanged()
DSeamlessRotator.java54 public SeamlessRotator(@Rotation int oldRotation, @Rotation int newRotation, DisplayInfo info, in SeamlessRotator() argument
57 mNewRotation = newRotation; in SeamlessRotator()
66 CoordinateTransforms.transformPhysicalToLogicalCoordinates(newRotation, pW, pH, tmp); in SeamlessRotator()
DWindowOrientationListener.java1281 int newRotation; in finalizeRotation() local
1284 newRotation = evaluateRotationChangeLocked(); in finalizeRotation()
1286 if (newRotation >= 0) { in finalizeRotation()
1287 mLastRotationResolution = newRotation; in finalizeRotation()
1289 onProposedRotationChanged(newRotation); in finalizeRotation()
1346 int newRotation;
1349 newRotation = evaluateRotationChangeLocked();
1351 if (newRotation >= 0) {
1352 onProposedRotationChanged(newRotation);
DDisplayWindowListenerController.java101 void dispatchFixedRotationStarted(DisplayContent display, int newRotation) { in dispatchFixedRotationStarted() argument
106 display.mDisplayId, newRotation); in dispatchFixedRotationStarted()
DDisplayUpdater.java50 @Surface.Rotation int previousRotation, @Surface.Rotation int newRotation, in onDisplayContentDisplayPropertiesPostChanged() argument
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()
/frameworks/base/services/core/java/com/android/server/audio/
DRotationHelper.java112 int newRotation = DisplayManagerGlobal.getInstance() in updateOrientation() local
115 if (sRotation == null || sRotation != newRotation) { in updateOrientation()
116 sRotation = newRotation; in updateOrientation()
/frameworks/base/core/java/android/util/
DRotationUtils.java89 @Rotation int newRotation) { 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/libs/WindowManager/Shell/src/com/android/wm/shell/common/
DDisplayController.java252 private void onFixedRotationStarted(int displayId, int newRotation) { in onFixedRotationStarted() argument
261 displayId, newRotation); in onFixedRotationStarted()
340 public void onFixedRotationStarted(int displayId, int newRotation) { in onFixedRotationStarted() argument
342 DisplayController.this.onFixedRotationStarted(displayId, newRotation); in onFixedRotationStarted()
389 default void onFixedRotationStarted(int displayId, int newRotation) {} in onFixedRotationStarted() argument
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/unfold/updates/
DRotationChangeProviderTest.kt94 private fun sendRotationUpdate(newRotation: Int) { in sendRotationUpdate()
95 whenever(display.rotation).thenReturn(newRotation) in sendRotationUpdate()
/frameworks/base/core/java/android/view/
DIDisplayWindowListener.aidl56 void onFixedRotationStarted(int displayId, int newRotation); in onFixedRotationStarted() argument
/frameworks/base/packages/SystemUI/src/com/android/systemui/unfold/
DFullscreenLightRevealAnimation.kt240 override fun onRotationChanged(newRotation: Int) { in onRotationChanged()
243 if (currentRotation != newRotation) { in onRotationChanged()
244 currentRotation = newRotation in onRotationChanged()
/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/
DFullscreenMagnificationController.java315 int newRotation = RotationUtils.getRotation(mContext); in onConfigurationChanged() local
316 if (newRotation != mRotation) { in onConfigurationChanged()
317 mRotation = newRotation; in onConfigurationChanged()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DPhoneStatusBarView.java161 int newRotation = RotationUtils.getExactRotation(mContext); in updateDisplayParameters() local
162 if (newRotation != mRotationOrientation) { in updateDisplayParameters()
164 mRotationOrientation = newRotation; in updateDisplayParameters()
/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/services/tests/wmtests/src/com/android/server/wm/
DSurfaceControlTests.java178 final int newRotation = activity.getResources().getConfiguration() in testSurfaceChangedOnRotation() local
180 if (rotation == newRotation) { in testSurfaceChangedOnRotation()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/
DQuickQSPanelControllerTest.kt194 fun setRotation(newRotation: Int) { in getRotation()
195 rotation = newRotation in getRotation()
/frameworks/base/packages/SystemUI/unfold/src/com/android/systemui/unfold/updates/
DRotationChangeProvider.kt94 @AnyThread fun onRotationChanged(newRotation: Int) in interface()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/accessibility/
DWindowMagnificationControllerWindowlessMagnifierTest.java553 final int newRotation = simulateRotateTheDevice(); in onOrientationChanged_enabled_updateDisplayRotationAndCenterStayAtSamePosition() local
573 assertEquals(newRotation, mWindowMagnificationController.mRotation); in onOrientationChanged_enabled_updateDisplayRotationAndCenterStayAtSamePosition()
588 final int newRotation = simulateRotateTheDevice(); in onOrientationChanged_disabled_updateDisplayRotation() local
593 assertEquals(newRotation, mWindowMagnificationController.mRotation); in onOrientationChanged_disabled_updateDisplayRotation()
1106 final int newRotation = simulateRotateTheDevice(); in enableWindowMagnification_rotationIsChanged_updateRotationValue() local
1112 assertEquals(newRotation, mWindowMagnificationController.mRotation); in enableWindowMagnification_rotationIsChanged_updateRotationValue()
1510 final int newRotation = (currentRotation + 1) % 4;
1511 when(display.getRotation()).thenReturn(newRotation);
1513 return newRotation;
DWindowMagnificationControllerTest.java536 final int newRotation = simulateRotateTheDevice(); in onOrientationChanged_enabled_updateDisplayRotationAndCenterStayAtSamePosition() local
556 assertEquals(newRotation, mWindowMagnificationController.mRotation); in onOrientationChanged_enabled_updateDisplayRotationAndCenterStayAtSamePosition()
571 final int newRotation = simulateRotateTheDevice(); in onOrientationChanged_disabled_updateDisplayRotation() local
576 assertEquals(newRotation, mWindowMagnificationController.mRotation); in onOrientationChanged_disabled_updateDisplayRotation()
1078 final int newRotation = simulateRotateTheDevice(); in enableWindowMagnification_rotationIsChanged_updateRotationValue() local
1084 assertEquals(newRotation, mWindowMagnificationController.mRotation); in enableWindowMagnification_rotationIsChanged_updateRotationValue()
1489 final int newRotation = (currentRotation + 1) % 4;
1490 when(display.getRotation()).thenReturn(newRotation);
1492 return newRotation;

12