Loading services/java/com/android/server/wm/WindowManagerService.java +16 −3 Original line number Diff line number Diff line Loading @@ -5312,8 +5312,14 @@ public class WindowManagerService extends IWindowManager.Stub if (DEBUG_ORIENTATION) Slog.v(TAG, "freezeRotation: mRotation=" + mRotation); long origId = Binder.clearCallingIdentity(); try { mPolicy.setUserRotationMode(WindowManagerPolicy.USER_ROTATION_LOCKED, rotation == -1 ? mRotation : rotation); } finally { Binder.restoreCallingIdentity(origId); } updateRotationUnchecked(false, false); } Loading @@ -5330,7 +5336,14 @@ public class WindowManagerService extends IWindowManager.Stub if (DEBUG_ORIENTATION) Slog.v(TAG, "thawRotation: mRotation=" + mRotation); mPolicy.setUserRotationMode(WindowManagerPolicy.USER_ROTATION_FREE, 777); // rot not used long origId = Binder.clearCallingIdentity(); try { mPolicy.setUserRotationMode(WindowManagerPolicy.USER_ROTATION_FREE, 777); // rot not used } finally { Binder.restoreCallingIdentity(origId); } updateRotationUnchecked(false, false); } Loading Loading
services/java/com/android/server/wm/WindowManagerService.java +16 −3 Original line number Diff line number Diff line Loading @@ -5312,8 +5312,14 @@ public class WindowManagerService extends IWindowManager.Stub if (DEBUG_ORIENTATION) Slog.v(TAG, "freezeRotation: mRotation=" + mRotation); long origId = Binder.clearCallingIdentity(); try { mPolicy.setUserRotationMode(WindowManagerPolicy.USER_ROTATION_LOCKED, rotation == -1 ? mRotation : rotation); } finally { Binder.restoreCallingIdentity(origId); } updateRotationUnchecked(false, false); } Loading @@ -5330,7 +5336,14 @@ public class WindowManagerService extends IWindowManager.Stub if (DEBUG_ORIENTATION) Slog.v(TAG, "thawRotation: mRotation=" + mRotation); mPolicy.setUserRotationMode(WindowManagerPolicy.USER_ROTATION_FREE, 777); // rot not used long origId = Binder.clearCallingIdentity(); try { mPolicy.setUserRotationMode(WindowManagerPolicy.USER_ROTATION_FREE, 777); // rot not used } finally { Binder.restoreCallingIdentity(origId); } updateRotationUnchecked(false, false); } Loading