Home
last modified time | relevance | path

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

12

/aosp14/frameworks/base/services/core/java/com/android/server/wm/utils/
H A 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()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/decor/
H A DRoundedCornerDecorProviderImpl.kt161 var newRotation = 0F regex
172 else /* !isTop && !isLeft */ -> { newRotation = 180F }
177 !isTop && isLeft -> { newRotation = 180F }
182 isTop && !isLeft -> { newRotation = 180F }
187 isTop && isLeft -> { newRotation = 180F }
194 this.rotation = newRotation
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/
H A 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()
H A DScreenDecorations.java509 final int newRotation = mDisplayInfo.rotation; in startOnScreenDecorationsThread()
511 && (mRotation != newRotation in startOnScreenDecorationsThread()
524 if (mRotation != newRotation) { in startOnScreenDecorationsThread()
525 mLogger.logRotationChangeDeferred(mRotation, newRotation); in startOnScreenDecorationsThread()
537 overlayView, i, newRotation, newSize)); in startOnScreenDecorationsThread()
547 newRotation, newSize)); in startOnScreenDecorationsThread()
1165 final int newRotation = mDisplayInfo.rotation; in updateConfiguration() local
1166 if (mRotation != newRotation) { in updateConfiguration()
1167 mDotViewController.setNewRotation(newRotation); in updateConfiguration()
1172 && (newRotation != mRotation || displaySizeChanged(mDisplaySize, mDisplayInfo) in updateConfiguration()
[all …]
/aosp14/frameworks/base/services/core/java/com/android/server/wm/
H A 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()
H A 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);
H A DDisplayWindowListenerController.java101 void dispatchFixedRotationStarted(DisplayContent display, int newRotation) { in dispatchFixedRotationStarted() argument
106 display.mDisplayId, newRotation); in dispatchFixedRotationStarted()
H A 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()
H A DDisplayRotation.java731 boolean shouldRotateSeamlessly(int oldRotation, int newRotation, boolean forceUpdate) { in shouldRotateSeamlessly() argument
750 if (!canRotateSeamlessly(oldRotation, newRotation)) { in shouldRotateSeamlessly()
777 boolean canRotateSeamlessly(int oldRotation, int newRotation) { in canRotateSeamlessly() argument
788 return oldRotation != Surface.ROTATION_180 && newRotation != Surface.ROTATION_180; in canRotateSeamlessly()
H A DTask.java2007 final int newRotation = getWindowConfiguration().getRotation(); in onConfigurationChanged() local
2008 final boolean rotationChanged = prevRotation != newRotation; in onConfigurationChanged()
2010 mDisplayContent.rotateBounds(prevRotation, newRotation, newBounds); in onConfigurationChanged()
2901 final int newRotation = displayContent.getDisplayInfo().rotation; in adjustBoundsForDisplayChangeIfNeeded() local
2907 mRotation = newRotation; in adjustBoundsForDisplayChangeIfNeeded()
2911 if (mRotation == newRotation) { in adjustBoundsForDisplayChangeIfNeeded()
2929 displayContent.rotateBounds(mRotation, newRotation, mTmpRect2); in adjustBoundsForDisplayChangeIfNeeded()
/aosp14/frameworks/base/services/core/java/com/android/server/audio/
H A DRotationHelper.java112 int newRotation = DisplayManagerGlobal.getInstance() in updateOrientation() local
115 if (sRotation == null || sRotation != newRotation) { in updateOrientation()
116 sRotation = newRotation; in updateOrientation()
/aosp14/frameworks/base/core/java/android/util/
H A DRotationUtils.java88 @Rotation int newRotation) { in rotateBounds() argument
89 rotateBounds(inOutBounds, parentBounds, deltaRotation(oldRotation, newRotation)); in rotateBounds()
140 public static int deltaRotation(@Rotation int oldRotation, @Rotation int newRotation) { in deltaRotation() argument
141 int delta = newRotation - oldRotation; in deltaRotation()
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/
H A 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
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/unfold/updates/
H A DRotationChangeProviderTest.kt86 private fun sendRotationUpdate(newRotation: Int) {
87 whenever(display.rotation).thenReturn(newRotation)
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DPhoneStatusBarView.java148 int newRotation = RotationUtils.getExactRotation(mContext); in updateDisplayParameters() local
149 if (newRotation != mRotationOrientation) { in updateDisplayParameters()
151 mRotationOrientation = newRotation; in updateDisplayParameters()
/aosp14/frameworks/base/core/java/android/view/
H A DIDisplayWindowListener.aidl56 void onFixedRotationStarted(int displayId, int newRotation); in onFixedRotationStarted() argument
/aosp14/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/recents/utilities/
H A DPreviewPositionHelper.java186 private int getRotationDelta(int oldRotation, int newRotation) { in getRotationDelta() argument
187 int delta = newRotation - oldRotation; in getRotationDelta()
/aosp14/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
H A DSurfaceControlTests.java159 final int newRotation = activity.getResources().getConfiguration() in testSurfaceChangedOnRotation() local
161 if (rotation == newRotation) { in testSurfaceChangedOnRotation()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/unfold/
H A DUnfoldLightRevealOverlayAnimation.kt340 override fun onRotationChanged(newRotation: Int) {
343 if (currentRotation != newRotation) {
344 currentRotation = newRotation
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/
H A DQuickQSPanelControllerTest.kt176 fun setRotation(newRotation: Int) {
177 rotation = newRotation
/aosp14/frameworks/base/packages/SystemUI/unfold/src/com/android/systemui/unfold/updates/
H A DRotationChangeProvider.kt82 fun onRotationChanged(newRotation: Int)
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/accessibility/
H A DWindowMagnificationControllerTest.java493 final int newRotation = simulateRotateTheDevice(); in onOrientationChanged_enabled_updateDisplayRotationAndCenterStayAtSamePosition() local
513 assertEquals(newRotation, mWindowMagnificationController.mRotation); in onOrientationChanged_enabled_updateDisplayRotationAndCenterStayAtSamePosition()
528 final int newRotation = simulateRotateTheDevice(); in onOrientationChanged_disabled_updateDisplayRotation() local
533 assertEquals(newRotation, mWindowMagnificationController.mRotation); in onOrientationChanged_disabled_updateDisplayRotation()
988 final int newRotation = simulateRotateTheDevice(); in enableWindowMagnification_rotationIsChanged_updateRotationValue() local
994 assertEquals(newRotation, mWindowMagnificationController.mRotation); in enableWindowMagnification_rotationIsChanged_updateRotationValue()
1403 final int newRotation = (currentRotation + 1) % 4;
1404 when(display.getRotation()).thenReturn(newRotation);
1406 return newRotation;
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/split/
H A DSplitLayout.java330 public void rotateTo(int newRotation) { in rotateTo() argument
331 final int rotationDelta = (newRotation - mRotation + 4) % 4; in rotateTo()
334 mRotation = newRotation; in rotateTo()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/
H A DWindowMagnificationController.java583 private int getDegreeFromRotation(@Surface.Rotation int newRotation, in getDegreeFromRotation() argument
585 return (oldRotation - newRotation + 4) % 4 * 90; in getDegreeFromRotation()
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/
H A DPipTaskOrganizer.java1038 public void onFixedRotationStarted(int displayId, int newRotation) { in onFixedRotationStarted() argument
1041 mNextRotation = newRotation; in onFixedRotationStarted()

12