Home
last modified time | relevance | path

Searched refs:newRotation (Results 1 – 10 of 10) 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.java84 int newRotation = RotationUtils.getRotation(mContext); in onConfigurationChanged() local
85 if (newRotation != mRotation) { in onConfigurationChanged()
86 rotate(mRotation, newRotation); in onConfigurationChanged()
87 mRotation = newRotation; in onConfigurationChanged()
DScreenDecorations.java375 final int newRotation = RotationUtils.getExactRotation(mContext); in startOnScreenDecorationsThread()
376 if (mOverlay != null && mBottomOverlay != null && mRotation != newRotation) { in startOnScreenDecorationsThread()
386 Log.i(TAG, "Rotation changed, deferring " + newRotation + ", staying at " in startOnScreenDecorationsThread()
391 new RestartingPreDrawListener(mOverlay, newRotation)); in startOnScreenDecorationsThread()
393 new RestartingPreDrawListener(mBottomOverlay, newRotation)); in startOnScreenDecorationsThread()
541 int newRotation = RotationUtils.getExactRotation(mContext); in updateOrientation() local
542 if (newRotation != mRotation) { in updateOrientation()
543 mRotation = newRotation; in updateOrientation()
/frameworks/base/services/core/java/com/android/server/audio/
DRotationHelper.java83 int newRotation = ((WindowManager) sContext.getSystemService( in updateOrientation() local
86 if (newRotation != sDeviceRotation) { in updateOrientation()
87 sDeviceRotation = newRotation; in updateOrientation()
/frameworks/base/services/core/java/com/android/server/wm/
DSeamlessRotator.java48 public SeamlessRotator(@Rotation int oldRotation, @Rotation int newRotation, DisplayInfo info) { in SeamlessRotator() argument
50 mNewRotation = newRotation; in SeamlessRotator()
58 CoordinateTransforms.transformPhysicalToLogicalCoordinates(newRotation, w, h, tmp); in SeamlessRotator()
DTask.java555 final int newRotation = displayContent.getDisplayInfo().rotation; in adjustBoundsForDisplayChangeIfNeeded() local
561 mRotation = newRotation; in adjustBoundsForDisplayChangeIfNeeded()
565 if (mRotation == newRotation) { in adjustBoundsForDisplayChangeIfNeeded()
583 displayContent.rotateBounds(mRotation, newRotation, mTmpRect2); in adjustBoundsForDisplayChangeIfNeeded()
DDisplayContent.java1152 void setRotation(int newRotation) { in setRotation() argument
1153 mRotation = newRotation; in setRotation()
1154 mDisplayRotation.setRotation(newRotation); in setRotation()
2724 void rotateBounds(int oldRotation, int newRotation, Rect bounds) { in rotateBounds() argument
2725 getBounds(mTmpRect, newRotation); in rotateBounds()
2726 rotateBounds(mTmpRect, oldRotation, newRotation, bounds); in rotateBounds()
2729 void rotateBounds(Rect parentBounds, int oldRotation, int newRotation, Rect bounds) { in rotateBounds() argument
2732 final int deltaRotation = deltaRotation(newRotation, oldRotation); in rotateBounds()
2741 static int deltaRotation(int oldRotation, int newRotation) { in deltaRotation() argument
2742 int delta = newRotation - oldRotation; in deltaRotation()
DActivityStack.java603 final int newRotation = getWindowConfiguration().getRotation(); in onConfigurationChanged() local
604 final boolean rotationChanged = prevRotation != newRotation; in onConfigurationChanged()
607 newParentConfig.windowConfiguration.getBounds(), prevRotation, newRotation, in onConfigurationChanged() local
DDisplayPolicy.java3538 int newRotation) { in shouldRotateSeamlessly() argument
3545 || newRotation == displayRotation.getUpsideDownRotation()) { in shouldRotateSeamlessly()
/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);