/frameworks/base/services/core/java/com/android/server/wm/utils/ |
D | CoordinateTransforms.java | 107 @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/ |
D | RoundedCornerDecorProviderImpl.kt | 161 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/ |
D | MultiListLayout.java | 87 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()
|
D | ScreenDecorations.java | 429 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/ |
D | SeamlessRotator.java | 54 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()
|
D | WindowOrientationListener.java | 1281 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);
|
D | DisplayWindowListenerController.java | 101 void dispatchFixedRotationStarted(DisplayContent display, int newRotation) { in dispatchFixedRotationStarted() argument 106 display.mDisplayId, newRotation); in dispatchFixedRotationStarted()
|
D | PinnedTaskController.java | 242 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()
|
D | DisplayRotation.java | 690 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()
|
D | Task.java | 2027 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/ |
D | RotationUtils.java | 87 @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/ |
D | RotationHelper.java | 112 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/ |
D | DisplayController.java | 236 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/ |
D | RotationChangeProviderTest.kt | 86 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/ |
D | PhoneStatusBarView.java | 140 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/ |
D | IDisplayWindowListener.aidl | 56 void onFixedRotationStarted(int displayId, int newRotation); in onFixedRotationStarted() argument
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/accessibility/ |
D | WindowMagnificationControllerTest.java | 440 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/ |
D | PreviewPositionHelper.java | 186 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/ |
D | UnfoldLightRevealOverlayAnimation.kt | 339 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/ |
D | QuickQSPanelControllerTest.kt | 176 fun setRotation(newRotation: Int) { in getRotation() 177 rotation = newRotation in getRotation()
|
/frameworks/base/packages/SystemUI/unfold/src/com/android/systemui/unfold/updates/ |
D | RotationChangeProvider.kt | 82 fun onRotationChanged(newRotation: Int) in interface()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/split/ |
D | SplitLayout.java | 327 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/ |
D | WindowMagnificationController.java | 490 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/ |
D | PipTaskOrganizer.java | 964 public void onFixedRotationStarted(int displayId, int newRotation) { in onFixedRotationStarted() argument 965 mNextRotation = newRotation; in onFixedRotationStarted()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/navigationbar/ |
D | NavigationBar.java | 1007 private int deltaRotation(int oldRotation, int newRotation) { in deltaRotation() argument 1008 int delta = newRotation - oldRotation; in deltaRotation()
|