Home
last modified time | relevance | path

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

12

/frameworks/base/services/core/java/com/android/server/wm/utils/
DCoordinateTransforms.java107 @Rotation int newRotation, DisplayInfo info, Matrix out) { in transformToRotation() argument
114 transformPhysicalToLogicalCoordinates(newRotation, w, h, tmp); in transformToRotation()
129 @Rotation int newRotation, int newWidth, int newHeight, Matrix out) { in transformToRotation() argument
130 final boolean flipped = newRotation == ROTATION_90 || newRotation == ROTATION_270; in transformToRotation()
136 transformPhysicalToLogicalCoordinates(newRotation, w, h, tmp); in transformToRotation()
/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.java429 final int newRotation = mDisplayInfo.rotation; in startOnScreenDecorationsThread()
432 && (mRotation != newRotation in startOnScreenDecorationsThread()
443 if (mRotation != newRotation) { in startOnScreenDecorationsThread()
444 Log.i(TAG, "Rotation changed, deferring " + newRotation in startOnScreenDecorationsThread()
459 overlayView, i, newRotation, newDisplayMode)); in startOnScreenDecorationsThread()
469 newRotation, newDisplayMode)); in startOnScreenDecorationsThread()
1062 final int newRotation = mDisplayInfo.rotation; in updateConfiguration() local
1063 if (mRotation != newRotation) { in updateConfiguration()
1064 mDotViewController.setNewRotation(newRotation); in updateConfiguration()
1070 && (newRotation != mRotation || displayModeChanged(mDisplayMode, newMod) in updateConfiguration()
[all …]
/frameworks/base/services/core/java/com/android/server/wm/
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()
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()
DDisplayRotation.java690 boolean shouldRotateSeamlessly(int oldRotation, int newRotation, boolean forceUpdate) { in shouldRotateSeamlessly() argument
709 if (!canRotateSeamlessly(oldRotation, newRotation)) { in shouldRotateSeamlessly()
736 boolean canRotateSeamlessly(int oldRotation, int newRotation) { in canRotateSeamlessly() argument
747 return oldRotation != Surface.ROTATION_180 && newRotation != Surface.ROTATION_180; in canRotateSeamlessly()
DTask.java2027 final int newRotation = getWindowConfiguration().getRotation(); in onConfigurationChanged() local
2028 final boolean rotationChanged = prevRotation != newRotation; in onConfigurationChanged()
2030 mDisplayContent.rotateBounds(prevRotation, newRotation, newBounds); in onConfigurationChanged()
2923 final int newRotation = displayContent.getDisplayInfo().rotation; in adjustBoundsForDisplayChangeIfNeeded() local
2929 mRotation = newRotation; in adjustBoundsForDisplayChangeIfNeeded()
2933 if (mRotation == newRotation) { in adjustBoundsForDisplayChangeIfNeeded()
2951 displayContent.rotateBounds(mRotation, newRotation, mTmpRect2); in adjustBoundsForDisplayChangeIfNeeded()
/frameworks/base/core/java/android/util/
DRotationUtils.java87 @Rotation int newRotation) { in rotateBounds() argument
88 rotateBounds(inOutBounds, parentBounds, deltaRotation(oldRotation, newRotation)); in rotateBounds()
139 public static int deltaRotation(@Rotation int oldRotation, @Rotation int newRotation) { in deltaRotation() argument
140 int delta = newRotation - oldRotation; in deltaRotation()
/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/libs/WindowManager/Shell/src/com/android/wm/shell/common/
DDisplayController.java236 private void onFixedRotationStarted(int displayId, int newRotation) { in onFixedRotationStarted() argument
245 displayId, newRotation); in onFixedRotationStarted()
324 public void onFixedRotationStarted(int displayId, int newRotation) { in onFixedRotationStarted() argument
326 DisplayController.this.onFixedRotationStarted(displayId, newRotation); in onFixedRotationStarted()
373 default void onFixedRotationStarted(int displayId, int newRotation) {} in onFixedRotationStarted() argument
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/unfold/updates/
DRotationChangeProviderTest.kt86 private fun sendRotationUpdate(newRotation: Int) { in sendRotationUpdate()
87 whenever(display.rotation).thenReturn(newRotation) in sendRotationUpdate()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DPhoneStatusBarView.java140 int newRotation = RotationUtils.getExactRotation(mContext); in updateDisplayParameters() local
141 if (newRotation != mRotationOrientation) { in updateDisplayParameters()
143 mRotationOrientation = newRotation; in updateDisplayParameters()
/frameworks/base/core/java/android/view/
DIDisplayWindowListener.aidl56 void onFixedRotationStarted(int displayId, int newRotation); in onFixedRotationStarted() argument
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/accessibility/
DWindowMagnificationControllerTest.java440 final int newRotation = simulateRotateTheDevice(); in onOrientationChanged_enabled_updateDisplayRotationAndCenterStayAtSamePosition() local
460 assertEquals(newRotation, mWindowMagnificationController.mRotation); in onOrientationChanged_enabled_updateDisplayRotationAndCenterStayAtSamePosition()
475 final int newRotation = simulateRotateTheDevice(); in onOrientationChanged_disabled_updateDisplayRotation() local
480 assertEquals(newRotation, mWindowMagnificationController.mRotation); in onOrientationChanged_disabled_updateDisplayRotation()
656 final int newRotation = simulateRotateTheDevice(); in enableWindowMagnification_rotationIsChanged_updateRotationValue() local
662 assertEquals(newRotation, mWindowMagnificationController.mRotation); in enableWindowMagnification_rotationIsChanged_updateRotationValue()
863 final int newRotation = (currentRotation + 1) % 4;
864 when(display.getRotation()).thenReturn(newRotation);
866 return newRotation;
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/recents/utilities/
DPreviewPositionHelper.java186 private int getRotationDelta(int oldRotation, int newRotation) { in getRotationDelta() argument
187 int delta = newRotation - oldRotation; in getRotationDelta()
/frameworks/base/packages/SystemUI/src/com/android/systemui/unfold/
DUnfoldLightRevealOverlayAnimation.kt339 override fun onRotationChanged(newRotation: Int) { in <lambda>()
342 if (currentRotation != newRotation) { in <lambda>()
343 currentRotation = newRotation in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/
DQuickQSPanelControllerTest.kt176 fun setRotation(newRotation: Int) { in getRotation()
177 rotation = newRotation in getRotation()
/frameworks/base/packages/SystemUI/unfold/src/com/android/systemui/unfold/updates/
DRotationChangeProvider.kt82 fun onRotationChanged(newRotation: Int) in interface()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/split/
DSplitLayout.java327 public void rotateTo(int newRotation, Rect stableInsets) { in rotateTo() argument
328 final int rotationDelta = (newRotation - mRotation + 4) % 4; in rotateTo()
331 mRotation = newRotation; in rotateTo()
/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/
DWindowMagnificationController.java490 private int getDegreeFromRotation(@Surface.Rotation int newRotation, in getDegreeFromRotation() argument
492 return (oldRotation - newRotation + 4) % 4 * 90; in getDegreeFromRotation()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/
DPipTaskOrganizer.java964 public void onFixedRotationStarted(int displayId, int newRotation) { in onFixedRotationStarted() argument
965 mNextRotation = newRotation; in onFixedRotationStarted()
/frameworks/base/packages/SystemUI/src/com/android/systemui/navigationbar/
DNavigationBar.java1007 private int deltaRotation(int oldRotation, int newRotation) { in deltaRotation() argument
1008 int delta = newRotation - oldRotation; in deltaRotation()

12