Home
last modified time | relevance | path

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

/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/
DDisplayChangeController.java85 int fromRotation, int toRotation, DisplayAreaInfo newDisplayAreaInfo) { in dispatchOnDisplayChange() argument
90 c.onDisplayChange(displayId, fromRotation, toRotation, newDisplayAreaInfo, outWct); in dispatchOnDisplayChange()
97 private void onDisplayChange(int displayId, int fromRotation, int toRotation, in onDisplayChange() argument
100 dispatchOnDisplayChange(t, displayId, fromRotation, toRotation, newDisplayAreaInfo); in onDisplayChange()
116 public void onDisplayChange(int displayId, int fromRotation, int toRotation, in onDisplayChange() argument
122 .onDisplayChange(displayId, fromRotation, toRotation, in onDisplayChange()
142 void onDisplayChange(int displayId, int fromRotation, int toRotation, in onDisplayChange() argument
DDisplayLayout.java223 public void rotateTo(Resources res, @Surface.Rotation int toRotation) { in rotateTo() argument
227 final int rotationDelta = (toRotation - fromRotation + 4) % 4; in rotateTo()
230 mRotation = toRotation; in rotateTo()
237 mCutout = mCutout.getRotated(origWidth, origHeight, fromRotation, toRotation); in rotateTo()
DDisplayController.java197 int fromRotation, int toRotation) { in onDisplayRotateRequested() argument
206 dr.mDisplayLayout.rotateTo(dr.mContext.getResources(), toRotation); in onDisplayRotateRequested() local
210 wct, displayId, fromRotation, toRotation, null /* newDisplayAreaInfo */); in onDisplayRotateRequested()
/frameworks/native/include/ui/
DRotation.h38 constexpr auto toRotation(std::underlying_type_t<Rotation> rotation) { in toRotation() function
48 return toRotation((toRotationInt(lhs) + toRotationInt(rhs)) % N);
53 return toRotation((N + toRotationInt(lhs) - toRotationInt(rhs)) % N);
DTransform.h116 static constexpr Rotation toRotation(RotationFlags);
156 inline constexpr Rotation Transform::toRotation(Transform::RotationFlags rotationFlags) { in toRotation() function
/frameworks/native/libs/ui/include/ui/
DRotation.h38 constexpr auto toRotation(std::underlying_type_t<Rotation> rotation) { in toRotation() function
48 return toRotation((toRotationInt(lhs) + toRotationInt(rhs)) % N);
53 return toRotation((N + toRotationInt(lhs) - toRotationInt(rhs)) % N);
DTransform.h116 static constexpr Rotation toRotation(RotationFlags);
156 inline constexpr Rotation Transform::toRotation(Transform::RotationFlags rotationFlags) { in toRotation() function
/frameworks/native/libs/ui/include_vndk/ui/
DRotation.h38 constexpr auto toRotation(std::underlying_type_t<Rotation> rotation) { in toRotation() function
48 return toRotation((toRotationInt(lhs) + toRotationInt(rhs)) % N);
53 return toRotation((N + toRotationInt(lhs) - toRotationInt(rhs)) % N);
DTransform.h116 static constexpr Rotation toRotation(RotationFlags);
156 inline constexpr Rotation Transform::toRotation(Transform::RotationFlags rotationFlags) { in toRotation() function
/frameworks/base/services/core/java/com/android/server/wm/
DRemoteDisplayChangeController.java80 int fromRotation, int toRotation, in performRemoteDisplayChange() argument
102 toRotation); in performRemoteDisplayChange()
110 fromRotation, toRotation, newDisplayAreaInfo, remoteCallback); in performRemoteDisplayChange()
DPhysicalDisplaySwitchTransitionLauncher.java157 public void onDisplayUpdated(int fromRotation, int toRotation, in onDisplayUpdated() argument
162 .performRemoteDisplayChange(fromRotation, toRotation, newDisplayAreaInfo, in onDisplayUpdated()
DDeferredDisplayUpdater.java256 final int toRotation = mDisplayContent.getRotation(); in getCurrentDisplayChange() local
263 displayChange.setEndRotation(toRotation); in getCurrentDisplayChange()
277 final int toRotation = mDisplayContent.getRotation(); in onDisplayUpdated() local
290 .performRemoteDisplayChange(fromRotation, toRotation, newDisplayAreaInfo, in onDisplayUpdated()
DDisplayRotation.java673 private void startRemoteRotation(int fromRotation, int toRotation) { in startRemoteRotation() argument
675 fromRotation, toRotation, null /* newDisplayAreaInfo */, in startRemoteRotation()
676 (transaction) -> continueRotation(toRotation, transaction) in startRemoteRotation()
2263 Record(DisplayRotation dr, int fromRotation, int toRotation) { in Record() argument
2265 mToRotation = toRotation; in Record()
2339 void addRecord(DisplayRotation dr, int toRotation) { in addRecord() argument
2344 mRecords.addLast(new Record(dr, fromRotation, toRotation)); in addRecord()
/frameworks/base/core/java/android/view/
DIDisplayChangeWindowController.aidl51 void onDisplayChange(int displayId, int fromRotation, int toRotation, in onDisplayChange() argument
DDisplayCutout.java1314 int fromRotation, int toRotation) {
1318 final int rotation = RotationUtils.deltaRotation(fromRotation, toRotation);
1331 final int override = getSideOverride(mSideOverrides, toRotation);
1338 toRotation, info.getScale(), info.getPhysicalPixelDisplaySizeRatio());
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/shared/model/
DDisplayRotation.kt27 fun DisplayRotation.toRotation(): Int = in DisplayRotation() method
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/phone/
DPipController.java241 displayId, fromRotation, toRotation, newDisplayAreaInfo, t) -> {
242 if (mPipTransitionController.handleRotateDisplay(fromRotation, toRotation, t)) {
245 if (mPipBoundsState.getDisplayLayout().rotation() == toRotation) {
259 onDisplayRotationChangedNotInPip(mContext, toRotation);
272 mTmpInsetBounds, displayId, fromRotation, toRotation, t);
1111 private void onDisplayRotationChangedNotInPip(Context context, int toRotation) { in onDisplayRotationChangedNotInPip() argument
1114 mPipDisplayLayoutState.rotateTo(toRotation); in onDisplayRotationChangedNotInPip()
1125 int displayId, int fromRotation, int toRotation, WindowContainerTransaction t) { in onDisplayRotationChanged() argument
1127 if ((displayId != mPipDisplayLayoutState.getDisplayId()) || (fromRotation == toRotation)) { in onDisplayRotationChanged()
1151 mPipDisplayLayoutState.rotateTo(toRotation); in onDisplayRotationChanged()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/onehanded/
DOneHandedDisplayAreaOrganizer.java204 public void onRotateDisplay(Context context, int toRotation, WindowContainerTransaction wct) { in onRotateDisplay() argument
205 if (mDisplayLayout.rotation() == toRotation) { in onRotateDisplay()
208 mDisplayLayout.rotateTo(context.getResources(), toRotation); in onRotateDisplay() local
DOneHandedController.java694 public void onDisplayChange(int displayId, int fromRotation, int toRotation,
711 mDisplayAreaOrganizer.onRotateDisplay(mContext, toRotation, wct);
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/data/repository/
DFacePropertyRepository.kt33 import com.android.systemui.biometrics.shared.model.toRotation in <lambda>()
266 rotation.toRotation(), in rotateToCurrentOrientation()
/frameworks/native/services/surfaceflinger/CompositionEngine/tests/
DOutputLayerTest.cpp69 ui::Rotation toRotation(uint32_t rotationFlag) { in toRotation() function
240 mOutputState.displaySpace.setOrientation(toRotation(entry.display)); in TEST_F()
410 mOutputState.displaySpace.setOrientation(toRotation(entry.display)); in TEST_F()
522 mOutputState.displaySpace.setOrientation(toRotation(entry.display)); in TEST_F()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/
DBubbleController.java481 (displayId, fromRotation, toRotation, newDisplayAreaInfo, t) -> { in onInit() argument
488 if (fromRotation != toRotation || !newScreenBounds.equals(mScreenBounds)) { in onInit()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/splitscreen/
DStageCoordinator.java2562 private void onDisplayChange(int displayId, int fromRotation, int toRotation, in onDisplayChange() argument
2570 displayId, fromRotation, toRotation, in onDisplayChange()
2572 mSplitLayout.rotateTo(toRotation); in onDisplayChange()
/frameworks/native/libs/gui/
DLayerState.cpp378 orientation = ui::toRotation(tmpUint); in read()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DDisplayContentTests.java1996 public void onDisplayChange(int displayId, int fromRotation, int toRotation, in testRemoteRotation()
2088 public void onDisplayChange(int displayId, int fromRotation, int toRotation, in testShellTransitRotation()