Home
last modified time | relevance | path

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

/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/
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.java236 final int newRotation = mContext.getDisplay().getRotation(); in startOnScreenDecorationsThread()
237 if (mOverlays != null && mRotation != newRotation) { in startOnScreenDecorationsThread()
247 Log.i(TAG, "Rotation changed, deferring " + newRotation + ", staying at " in startOnScreenDecorationsThread()
254 new RestartingPreDrawListener(mOverlays[i], i, newRotation)); in startOnScreenDecorationsThread()
576 int newRotation = mContext.getDisplay().getRotation(); in updateOrientation() local
577 if (newRotation != mRotation) { in updateOrientation()
578 mRotation = newRotation; in updateOrientation()
/frameworks/base/services/core/java/com/android/server/audio/
DRotationHelper.java84 int newRotation = ((WindowManager) sContext.getSystemService( in updateOrientation() local
87 if (newRotation != sDeviceRotation) { in updateOrientation()
88 sDeviceRotation = newRotation; in updateOrientation()
/frameworks/base/services/core/java/com/android/server/wm/
DSeamlessRotator.java58 public SeamlessRotator(@Rotation int oldRotation, @Rotation int newRotation, DisplayInfo info, in SeamlessRotator() argument
61 mNewRotation = newRotation; in SeamlessRotator()
70 CoordinateTransforms.transformPhysicalToLogicalCoordinates(newRotation, pW, pH, tmp); in SeamlessRotator()
DDisplayWindowListenerController.java99 void dispatchFixedRotationStarted(DisplayContent display, int newRotation) { in dispatchFixedRotationStarted() argument
104 display.mDisplayId, newRotation); in dispatchFixedRotationStarted()
DDisplayContent.java2814 void rotateBounds(int oldRotation, int newRotation, Rect bounds) { in rotateBounds() argument
2815 getBounds(mTmpRect, newRotation); in rotateBounds()
2816 rotateBounds(mTmpRect, oldRotation, newRotation, bounds); in rotateBounds()
2819 void rotateBounds(Rect parentBounds, int oldRotation, int newRotation, Rect bounds) { in rotateBounds() argument
2822 final int deltaRotation = deltaRotation(newRotation, oldRotation); in rotateBounds()
2831 static int deltaRotation(int oldRotation, int newRotation) { in deltaRotation() argument
2832 int delta = newRotation - oldRotation; in deltaRotation()
5343 private void applyRotationAndFinishFixedRotation(int oldRotation, int newRotation) { in applyRotationAndFinishFixedRotation() argument
5346 applyRotation(oldRotation, newRotation); in applyRotationAndFinishFixedRotation()
5351 () -> applyRotation(oldRotation, newRotation)); in applyRotationAndFinishFixedRotation()
DDisplayRotation.java591 boolean shouldRotateSeamlessly(int oldRotation, int newRotation, boolean forceUpdate) { in shouldRotateSeamlessly() argument
613 if (oldRotation == mUpsideDownRotation || newRotation == mUpsideDownRotation) { in shouldRotateSeamlessly()
DTask.java3062 final int newRotation = displayContent.getDisplayInfo().rotation; in adjustBoundsForDisplayChangeIfNeeded() local
3068 mRotation = newRotation; in adjustBoundsForDisplayChangeIfNeeded()
3072 if (mRotation == newRotation) { in adjustBoundsForDisplayChangeIfNeeded()
3090 displayContent.rotateBounds(mRotation, newRotation, mTmpRect2); in adjustBoundsForDisplayChangeIfNeeded()
DActivityStack.java610 final int newRotation = getWindowConfiguration().getRotation(); in onConfigurationChanged() local
611 final boolean rotationChanged = prevRotation != newRotation; in onConfigurationChanged()
614 newParentConfig.windowConfiguration.getBounds(), prevRotation, newRotation, in onConfigurationChanged() local
/frameworks/base/services/core/java/com/android/server/policy/
DWindowOrientationListener.java1049 int newRotation; in onSensorChanged() local
1058 newRotation = evaluateRotationChangeLocked(); in onSensorChanged()
1060 if (newRotation >=0) { in onSensorChanged()
1061 onProposedRotationChanged(newRotation); in onSensorChanged()
1158 int newRotation;
1161 newRotation = evaluateRotationChangeLocked();
1163 if (newRotation >= 0) {
1164 onProposedRotationChanged(newRotation);
/frameworks/base/packages/SystemUI/src/com/android/systemui/wm/
DDisplayController.java139 public void onFixedRotationStarted(int displayId, int newRotation) {
149 displayId, newRotation);
272 default void onFixedRotationStarted(int displayId, int newRotation) {} in onFixedRotationStarted() argument
/frameworks/base/core/java/android/view/
DIDisplayWindowListener.aidl52 void onFixedRotationStarted(int displayId, int newRotation); in onFixedRotationStarted() argument
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DPhoneStatusBarView.java151 int newRotation = RotationUtils.getExactRotation(mContext); in updateOrientationAndCutout() local
152 if (newRotation != mRotationOrientation) { in updateOrientationAndCutout()
154 mRotationOrientation = newRotation; in updateOrientationAndCutout()
DNavigationBarFragment.java687 private int deltaRotation(int oldRotation, int newRotation) { in deltaRotation() argument
688 int delta = newRotation - oldRotation; in deltaRotation()
/frameworks/base/packages/SystemUI/src/com/android/systemui/stackdivider/
DSplitDisplayLayout.java71 void rotateTo(int newRotation) { in rotateTo() argument
72 mDisplayLayout.rotateTo(mContext.getResources(), newRotation); in rotateTo() local
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DActivityTaskManagerServiceTests.java156 public void onFixedRotationStarted(int displayId, int newRotation) {} in testDisplayWindowListener()
/frameworks/base/packages/SystemUI/src/com/android/systemui/pip/phone/
DPipManager.java135 public void onFixedRotationStarted(int displayId, int newRotation) {
/frameworks/base/packages/SystemUI/src/com/android/systemui/pip/
DPipTaskOrganizer.java525 public void onFixedRotationStarted(int displayId, int newRotation) { in onFixedRotationStarted() argument