Home
last modified time | relevance | path

Searched refs:userRotationMode (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/services/core/java/com/android/server/wm/
DDisplayRotation.java903 void restoreSettings(int userRotationMode, int userRotation, int fixedToUserRotation) { in restoreSettings() argument
910 if (userRotationMode != WindowManagerPolicy.USER_ROTATION_FREE in restoreSettings()
911 && userRotationMode != WindowManagerPolicy.USER_ROTATION_LOCKED) { in restoreSettings()
912 Slog.w(TAG, "Trying to restore an invalid user rotation mode " + userRotationMode in restoreSettings()
914 userRotationMode = WindowManagerPolicy.USER_ROTATION_FREE; in restoreSettings()
923 userRotationMode = WindowManagerPolicy.USER_ROTATION_LOCKED; in restoreSettings()
926 mUserRotationMode = userRotationMode; in restoreSettings()
947 void setUserRotation(int userRotationMode, int userRotation, String caller) { in setUserRotation() argument
948 mRotationLockHistory.addRecord(userRotationMode, userRotation, caller); in setUserRotation()
954 userRotationMode == WindowManagerPolicy.USER_ROTATION_LOCKED ? 0 : 1; in setUserRotation()
[all …]
DDisplayWindowSettings.java306 final int userRotationMode = settings.mUserRotationMode != null in applySettingsToDisplayLocked() local
312 dc.getDisplayRotation().restoreSettings(userRotationMode, userRotation, in applySettingsToDisplayLocked()