Loading core/java/android/provider/Settings.java +26 −0 Original line number Diff line number Diff line Loading @@ -11184,6 +11184,32 @@ public final class Settings { @Readable public static final String DISPLAY_WHITE_BALANCE_ENABLED = "display_white_balance_enabled"; /** * Used by DisplayManager to backup/restore the user-selected resolution mode. * @hide */ @Readable public static final String SCREEN_RESOLUTION_MODE = "screen_resolution_mode"; /** * Resolution Mode Constants for SCREEN_RESOLUTION_MODE setting. * * @hide */ @IntDef(prefix = { "RESOLUTION_MODE_" }, value = { RESOLUTION_MODE_UNKNOWN, RESOLUTION_MODE_HIGH, RESOLUTION_MODE_FULL }) @Retention(RetentionPolicy.SOURCE) public @interface ResolutionMode {} /** @hide */ public static final int RESOLUTION_MODE_UNKNOWN = 0; /** @hide */ public static final int RESOLUTION_MODE_HIGH = 1; /** @hide */ public static final int RESOLUTION_MODE_FULL = 2; /** * Names of the service components that the current user has explicitly allowed to * be a VR mode listener, separated by ':'. Loading core/proto/android/providers/settings/secure.proto +6 −1 Original line number Diff line number Diff line Loading @@ -249,6 +249,11 @@ message SecureSettingsProto { } optional DateTime date_time = 90; message Display { optional SettingProto screen_resolution_mode = 1 [ (android.privacy).dest = DEST_AUTOMATIC ]; } optional Display display = 100; message Doze { option (android.msg_privacy).dest = DEST_EXPLICIT; Loading Loading @@ -727,5 +732,5 @@ message SecureSettingsProto { // Please insert fields in alphabetical order and group them into messages // if possible (to avoid reaching the method limit). // Next tag = 100; // Next tag = 101; } packages/SettingsProvider/src/android/provider/settings/backup/SecureSettings.java +1 −0 Original line number Diff line number Diff line Loading @@ -270,6 +270,7 @@ public class SecureSettings { Settings.Secure.VISUAL_QUERY_ACCESSIBILITY_DETECTION_ENABLED, Settings.Secure.IMMERSIVE_MODE_CONFIRMATIONS, Settings.Secure.AUDIO_DEVICE_INVENTORY, Settings.Secure.SCREEN_RESOLUTION_MODE, Settings.Secure.ACCESSIBILITY_FLOATING_MENU_TARGETS }; } packages/SettingsProvider/src/android/provider/settings/validators/SecureSettingsValidators.java +2 −0 Original line number Diff line number Diff line Loading @@ -427,5 +427,7 @@ public class SecureSettingsValidators { VALIDATORS.put(Secure.CAMERA_EXTENSIONS_FALLBACK, BOOLEAN_VALIDATOR); VALIDATORS.put(Secure.IMMERSIVE_MODE_CONFIRMATIONS, ANY_STRING_VALIDATOR); VALIDATORS.put(Secure.AUDIO_DEVICE_INVENTORY, ANY_STRING_VALIDATOR); VALIDATORS.put(Secure.SCREEN_RESOLUTION_MODE, new InclusiveIntegerRangeValidator( Secure.RESOLUTION_MODE_UNKNOWN, Secure.RESOLUTION_MODE_FULL)); } } packages/SettingsProvider/src/com/android/providers/settings/SettingsHelper.java +1 −0 Original line number Diff line number Diff line Loading @@ -99,6 +99,7 @@ public class SettingsHelper { sBroadcastOnRestore.add(Settings.Secure.ACCESSIBILITY_DISPLAY_MAGNIFICATION_NAVBAR_ENABLED); sBroadcastOnRestore.add(Settings.Secure.ACCESSIBILITY_BUTTON_TARGETS); sBroadcastOnRestore.add(Settings.Secure.ACCESSIBILITY_QS_TARGETS); sBroadcastOnRestore.add(Settings.Secure.SCREEN_RESOLUTION_MODE); sBroadcastOnRestoreSystemUI = new ArraySet<String>(2); sBroadcastOnRestoreSystemUI.add(Settings.Secure.QS_TILES); sBroadcastOnRestoreSystemUI.add(Settings.Secure.QS_AUTO_ADDED_TILES); Loading Loading
core/java/android/provider/Settings.java +26 −0 Original line number Diff line number Diff line Loading @@ -11184,6 +11184,32 @@ public final class Settings { @Readable public static final String DISPLAY_WHITE_BALANCE_ENABLED = "display_white_balance_enabled"; /** * Used by DisplayManager to backup/restore the user-selected resolution mode. * @hide */ @Readable public static final String SCREEN_RESOLUTION_MODE = "screen_resolution_mode"; /** * Resolution Mode Constants for SCREEN_RESOLUTION_MODE setting. * * @hide */ @IntDef(prefix = { "RESOLUTION_MODE_" }, value = { RESOLUTION_MODE_UNKNOWN, RESOLUTION_MODE_HIGH, RESOLUTION_MODE_FULL }) @Retention(RetentionPolicy.SOURCE) public @interface ResolutionMode {} /** @hide */ public static final int RESOLUTION_MODE_UNKNOWN = 0; /** @hide */ public static final int RESOLUTION_MODE_HIGH = 1; /** @hide */ public static final int RESOLUTION_MODE_FULL = 2; /** * Names of the service components that the current user has explicitly allowed to * be a VR mode listener, separated by ':'. Loading
core/proto/android/providers/settings/secure.proto +6 −1 Original line number Diff line number Diff line Loading @@ -249,6 +249,11 @@ message SecureSettingsProto { } optional DateTime date_time = 90; message Display { optional SettingProto screen_resolution_mode = 1 [ (android.privacy).dest = DEST_AUTOMATIC ]; } optional Display display = 100; message Doze { option (android.msg_privacy).dest = DEST_EXPLICIT; Loading Loading @@ -727,5 +732,5 @@ message SecureSettingsProto { // Please insert fields in alphabetical order and group them into messages // if possible (to avoid reaching the method limit). // Next tag = 100; // Next tag = 101; }
packages/SettingsProvider/src/android/provider/settings/backup/SecureSettings.java +1 −0 Original line number Diff line number Diff line Loading @@ -270,6 +270,7 @@ public class SecureSettings { Settings.Secure.VISUAL_QUERY_ACCESSIBILITY_DETECTION_ENABLED, Settings.Secure.IMMERSIVE_MODE_CONFIRMATIONS, Settings.Secure.AUDIO_DEVICE_INVENTORY, Settings.Secure.SCREEN_RESOLUTION_MODE, Settings.Secure.ACCESSIBILITY_FLOATING_MENU_TARGETS }; }
packages/SettingsProvider/src/android/provider/settings/validators/SecureSettingsValidators.java +2 −0 Original line number Diff line number Diff line Loading @@ -427,5 +427,7 @@ public class SecureSettingsValidators { VALIDATORS.put(Secure.CAMERA_EXTENSIONS_FALLBACK, BOOLEAN_VALIDATOR); VALIDATORS.put(Secure.IMMERSIVE_MODE_CONFIRMATIONS, ANY_STRING_VALIDATOR); VALIDATORS.put(Secure.AUDIO_DEVICE_INVENTORY, ANY_STRING_VALIDATOR); VALIDATORS.put(Secure.SCREEN_RESOLUTION_MODE, new InclusiveIntegerRangeValidator( Secure.RESOLUTION_MODE_UNKNOWN, Secure.RESOLUTION_MODE_FULL)); } }
packages/SettingsProvider/src/com/android/providers/settings/SettingsHelper.java +1 −0 Original line number Diff line number Diff line Loading @@ -99,6 +99,7 @@ public class SettingsHelper { sBroadcastOnRestore.add(Settings.Secure.ACCESSIBILITY_DISPLAY_MAGNIFICATION_NAVBAR_ENABLED); sBroadcastOnRestore.add(Settings.Secure.ACCESSIBILITY_BUTTON_TARGETS); sBroadcastOnRestore.add(Settings.Secure.ACCESSIBILITY_QS_TARGETS); sBroadcastOnRestore.add(Settings.Secure.SCREEN_RESOLUTION_MODE); sBroadcastOnRestoreSystemUI = new ArraySet<String>(2); sBroadcastOnRestoreSystemUI.add(Settings.Secure.QS_TILES); sBroadcastOnRestoreSystemUI.add(Settings.Secure.QS_AUTO_ADDED_TILES); Loading