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.java812 void restoreSettings(int userRotationMode, int userRotation, int fixedToUserRotation) { in restoreSettings() argument
819 if (userRotationMode != WindowManagerPolicy.USER_ROTATION_FREE in restoreSettings()
820 && userRotationMode != WindowManagerPolicy.USER_ROTATION_LOCKED) { in restoreSettings()
821 Slog.w(TAG, "Trying to restore an invalid user rotation mode " + userRotationMode in restoreSettings()
823 userRotationMode = WindowManagerPolicy.USER_ROTATION_FREE; in restoreSettings()
830 mUserRotationMode = userRotationMode; in restoreSettings()
851 void setUserRotation(int userRotationMode, int userRotation) { in setUserRotation() argument
856 userRotationMode == WindowManagerPolicy.USER_ROTATION_LOCKED ? 0 : 1; in setUserRotation()
865 if (mUserRotationMode != userRotationMode) { in setUserRotation()
866 mUserRotationMode = userRotationMode; in setUserRotation()
[all …]
DDisplayWindowSettings.java254 final int userRotationMode = settings.mUserRotationMode != null in applySettingsToDisplayLocked() local
260 dc.getDisplayRotation().restoreSettings(userRotationMode, userRotation, in applySettingsToDisplayLocked()