Loading core/java/android/provider/Settings.java +47 −2 Original line number Diff line number Diff line Loading @@ -3785,6 +3785,10 @@ public final class Settings { private static boolean putStringForUser(ContentResolver resolver, String name, String value, String tag, boolean makeDefault, int userHandle, boolean overrideableByRestore) { if (LOCAL_LOGV) { Log.v(TAG, "System.putString(name=" + name + ", value=" + value + ") for " + userHandle); } if (MOVED_TO_SECURE.contains(name)) { Log.w(TAG, "Setting " + name + " has moved from android.provider.Settings.System" + " to android.provider.Settings.Secure, value is unchanged."); Loading Loading @@ -5678,6 +5682,33 @@ public final class Settings { @Readable public static final String WHEN_TO_MAKE_WIFI_CALLS = "when_to_make_wifi_calls"; /** Controls whether bluetooth is on or off on wearable devices. * * <p>The valid values for this key are: 0 (disabled) or 1 (enabled). * * @hide */ public static final String CLOCKWORK_BLUETOOTH_SETTINGS_PREF = "cw_bt_settings_pref"; /** * Controls whether the unread notification dot indicator is shown on wearable devices. * * <p>The valid values for this key are: 0 (disabled) or 1 (enabled). * * @hide */ public static final String UNREAD_NOTIFICATION_DOT_INDICATOR = "unread_notification_dot_indicator"; /** * Controls whether auto-launching media controls is enabled on wearable devices. * * <p>The valid values for this key are: 0 (disabled) or 1 (enabled). * * @hide */ public static final String AUTO_LAUNCH_MEDIA_CONTROLS = "auto_launch_media_controls"; // Settings moved to Settings.Secure /** Loading Loading @@ -6206,6 +6237,10 @@ public final class Settings { public static boolean putStringForUser(@NonNull ContentResolver resolver, @NonNull String name, @Nullable String value, @Nullable String tag, boolean makeDefault, @UserIdInt int userHandle, boolean overrideableByRestore) { if (LOCAL_LOGV) { Log.v(TAG, "Secure.putString(name=" + name + ", value=" + value + ") for " + userHandle); } if (MOVED_TO_GLOBAL.contains(name)) { Log.w(TAG, "Setting " + name + " has moved from android.provider.Settings.Secure" + " to android.provider.Settings.Global"); Loading Loading @@ -10714,6 +10749,16 @@ public final class Settings { */ public static final String ADAPTIVE_CONNECTIVITY_ENABLED = "adaptive_connectivity_enabled"; /** * Controls the 'Sunlight boost' toggle in wearable devices (high brightness mode). * * Valid values for this key are: '0' (disabled) or '1' (enabled). * * @hide */ public static final String HBM_SETTING_KEY = "com.android.server.display.HBM_SETTING_KEY"; /** * Keys we no longer back up under the current schema, but want to continue to * process when restoring historical backup datasets. Loading Loading @@ -16047,8 +16092,8 @@ public final class Settings { @NonNull String name, @Nullable String value, @Nullable String tag, boolean makeDefault, @UserIdInt int userHandle, boolean overrideableByRestore) { if (LOCAL_LOGV) { Log.v(TAG, "Global.putString(name=" + name + ", value=" + value + " for " + userHandle); Log.v(TAG, "Global.putString(name=" + name + ", value=" + value + ") for " + userHandle); } // Global and Secure have the same access policy so we can forward writes if (MOVED_TO_SECURE.contains(name)) { packages/SettingsProvider/src/android/provider/settings/backup/SecureSettings.java +2 −1 Original line number Diff line number Diff line Loading @@ -202,6 +202,7 @@ public class SecureSettings { Settings.Secure.LOCK_SCREEN_SHOW_QR_CODE_SCANNER, Settings.Secure.LOCKSCREEN_USE_DOUBLE_LINE_CLOCK, Settings.Secure.STATUS_BAR_SHOW_VIBRATE_ICON, Settings.Secure.WEAR_TALKBACK_ENABLED Settings.Secure.WEAR_TALKBACK_ENABLED, Settings.Secure.HBM_SETTING_KEY }; } packages/SettingsProvider/src/android/provider/settings/backup/SystemSettings.java +4 −1 Original line number Diff line number Diff line Loading @@ -89,6 +89,9 @@ public class SystemSettings { Settings.System.DISPLAY_COLOR_MODE, Settings.System.ALARM_ALERT, Settings.System.NOTIFICATION_LIGHT_PULSE, Settings.System.WEAR_ACCESSIBILITY_GESTURE_ENABLED Settings.System.WEAR_ACCESSIBILITY_GESTURE_ENABLED, Settings.System.CLOCKWORK_BLUETOOTH_SETTINGS_PREF, Settings.System.UNREAD_NOTIFICATION_DOT_INDICATOR, Settings.System.AUTO_LAUNCH_MEDIA_CONTROLS }; } packages/SettingsProvider/src/android/provider/settings/validators/SecureSettingsValidators.java +2 −0 Original line number Diff line number Diff line Loading @@ -332,5 +332,7 @@ public class SecureSettingsValidators { return true; }); VALIDATORS.put(Secure.ODI_CAPTIONS_VOLUME_UI_ENABLED, BOOLEAN_VALIDATOR); VALIDATORS.put(Secure.WEAR_TALKBACK_ENABLED, BOOLEAN_VALIDATOR); VALIDATORS.put(Secure.HBM_SETTING_KEY, BOOLEAN_VALIDATOR); } } packages/SettingsProvider/src/android/provider/settings/validators/SystemSettingsValidators.java +3 −0 Original line number Diff line number Diff line Loading @@ -208,5 +208,8 @@ public class SystemSettingsValidators { VALIDATORS.put(System.SHOW_BATTERY_PERCENT, BOOLEAN_VALIDATOR); VALIDATORS.put(System.NOTIFICATION_LIGHT_PULSE, BOOLEAN_VALIDATOR); VALIDATORS.put(System.WEAR_ACCESSIBILITY_GESTURE_ENABLED, BOOLEAN_VALIDATOR); VALIDATORS.put(System.CLOCKWORK_BLUETOOTH_SETTINGS_PREF, BOOLEAN_VALIDATOR); VALIDATORS.put(System.UNREAD_NOTIFICATION_DOT_INDICATOR, BOOLEAN_VALIDATOR); VALIDATORS.put(System.AUTO_LAUNCH_MEDIA_CONTROLS, BOOLEAN_VALIDATOR); } } Loading
core/java/android/provider/Settings.java +47 −2 Original line number Diff line number Diff line Loading @@ -3785,6 +3785,10 @@ public final class Settings { private static boolean putStringForUser(ContentResolver resolver, String name, String value, String tag, boolean makeDefault, int userHandle, boolean overrideableByRestore) { if (LOCAL_LOGV) { Log.v(TAG, "System.putString(name=" + name + ", value=" + value + ") for " + userHandle); } if (MOVED_TO_SECURE.contains(name)) { Log.w(TAG, "Setting " + name + " has moved from android.provider.Settings.System" + " to android.provider.Settings.Secure, value is unchanged."); Loading Loading @@ -5678,6 +5682,33 @@ public final class Settings { @Readable public static final String WHEN_TO_MAKE_WIFI_CALLS = "when_to_make_wifi_calls"; /** Controls whether bluetooth is on or off on wearable devices. * * <p>The valid values for this key are: 0 (disabled) or 1 (enabled). * * @hide */ public static final String CLOCKWORK_BLUETOOTH_SETTINGS_PREF = "cw_bt_settings_pref"; /** * Controls whether the unread notification dot indicator is shown on wearable devices. * * <p>The valid values for this key are: 0 (disabled) or 1 (enabled). * * @hide */ public static final String UNREAD_NOTIFICATION_DOT_INDICATOR = "unread_notification_dot_indicator"; /** * Controls whether auto-launching media controls is enabled on wearable devices. * * <p>The valid values for this key are: 0 (disabled) or 1 (enabled). * * @hide */ public static final String AUTO_LAUNCH_MEDIA_CONTROLS = "auto_launch_media_controls"; // Settings moved to Settings.Secure /** Loading Loading @@ -6206,6 +6237,10 @@ public final class Settings { public static boolean putStringForUser(@NonNull ContentResolver resolver, @NonNull String name, @Nullable String value, @Nullable String tag, boolean makeDefault, @UserIdInt int userHandle, boolean overrideableByRestore) { if (LOCAL_LOGV) { Log.v(TAG, "Secure.putString(name=" + name + ", value=" + value + ") for " + userHandle); } if (MOVED_TO_GLOBAL.contains(name)) { Log.w(TAG, "Setting " + name + " has moved from android.provider.Settings.Secure" + " to android.provider.Settings.Global"); Loading Loading @@ -10714,6 +10749,16 @@ public final class Settings { */ public static final String ADAPTIVE_CONNECTIVITY_ENABLED = "adaptive_connectivity_enabled"; /** * Controls the 'Sunlight boost' toggle in wearable devices (high brightness mode). * * Valid values for this key are: '0' (disabled) or '1' (enabled). * * @hide */ public static final String HBM_SETTING_KEY = "com.android.server.display.HBM_SETTING_KEY"; /** * Keys we no longer back up under the current schema, but want to continue to * process when restoring historical backup datasets. Loading Loading @@ -16047,8 +16092,8 @@ public final class Settings { @NonNull String name, @Nullable String value, @Nullable String tag, boolean makeDefault, @UserIdInt int userHandle, boolean overrideableByRestore) { if (LOCAL_LOGV) { Log.v(TAG, "Global.putString(name=" + name + ", value=" + value + " for " + userHandle); Log.v(TAG, "Global.putString(name=" + name + ", value=" + value + ") for " + userHandle); } // Global and Secure have the same access policy so we can forward writes if (MOVED_TO_SECURE.contains(name)) {
packages/SettingsProvider/src/android/provider/settings/backup/SecureSettings.java +2 −1 Original line number Diff line number Diff line Loading @@ -202,6 +202,7 @@ public class SecureSettings { Settings.Secure.LOCK_SCREEN_SHOW_QR_CODE_SCANNER, Settings.Secure.LOCKSCREEN_USE_DOUBLE_LINE_CLOCK, Settings.Secure.STATUS_BAR_SHOW_VIBRATE_ICON, Settings.Secure.WEAR_TALKBACK_ENABLED Settings.Secure.WEAR_TALKBACK_ENABLED, Settings.Secure.HBM_SETTING_KEY }; }
packages/SettingsProvider/src/android/provider/settings/backup/SystemSettings.java +4 −1 Original line number Diff line number Diff line Loading @@ -89,6 +89,9 @@ public class SystemSettings { Settings.System.DISPLAY_COLOR_MODE, Settings.System.ALARM_ALERT, Settings.System.NOTIFICATION_LIGHT_PULSE, Settings.System.WEAR_ACCESSIBILITY_GESTURE_ENABLED Settings.System.WEAR_ACCESSIBILITY_GESTURE_ENABLED, Settings.System.CLOCKWORK_BLUETOOTH_SETTINGS_PREF, Settings.System.UNREAD_NOTIFICATION_DOT_INDICATOR, Settings.System.AUTO_LAUNCH_MEDIA_CONTROLS }; }
packages/SettingsProvider/src/android/provider/settings/validators/SecureSettingsValidators.java +2 −0 Original line number Diff line number Diff line Loading @@ -332,5 +332,7 @@ public class SecureSettingsValidators { return true; }); VALIDATORS.put(Secure.ODI_CAPTIONS_VOLUME_UI_ENABLED, BOOLEAN_VALIDATOR); VALIDATORS.put(Secure.WEAR_TALKBACK_ENABLED, BOOLEAN_VALIDATOR); VALIDATORS.put(Secure.HBM_SETTING_KEY, BOOLEAN_VALIDATOR); } }
packages/SettingsProvider/src/android/provider/settings/validators/SystemSettingsValidators.java +3 −0 Original line number Diff line number Diff line Loading @@ -208,5 +208,8 @@ public class SystemSettingsValidators { VALIDATORS.put(System.SHOW_BATTERY_PERCENT, BOOLEAN_VALIDATOR); VALIDATORS.put(System.NOTIFICATION_LIGHT_PULSE, BOOLEAN_VALIDATOR); VALIDATORS.put(System.WEAR_ACCESSIBILITY_GESTURE_ENABLED, BOOLEAN_VALIDATOR); VALIDATORS.put(System.CLOCKWORK_BLUETOOTH_SETTINGS_PREF, BOOLEAN_VALIDATOR); VALIDATORS.put(System.UNREAD_NOTIFICATION_DOT_INDICATOR, BOOLEAN_VALIDATOR); VALIDATORS.put(System.AUTO_LAUNCH_MEDIA_CONTROLS, BOOLEAN_VALIDATOR); } }