Loading core/java/android/provider/Settings.java +7 −0 Original line number Diff line number Diff line Loading @@ -11456,6 +11456,13 @@ public final class Settings { public static final String EXTRA_AUTOMATIC_POWER_SAVE_MODE = "extra_automatic_power_save_mode"; /** * Whether lockscreen weather is enabled. * * @hide */ public static final String LOCK_SCREEN_WEATHER_ENABLED = "lockscreen_weather_enabled"; /** * These entries are considered common between the personal and the managed profile, * since the managed profile doesn't get to change them. Loading core/res/res/values/config.xml +3 −0 Original line number Diff line number Diff line Loading @@ -6276,4 +6276,7 @@ "stopped" during initial boot of a device, or after an OTA update. Stopped state of an app is not changed during subsequent reboots. --> <bool name="config_stopSystemPackagesByDefault">false</bool> <!-- Whether to show weather on the lock screen by default. --> <bool name="config_lockscreenWeatherEnabledByDefault">false</bool> </resources> core/res/res/values/symbols.xml +3 −0 Original line number Diff line number Diff line Loading @@ -4926,4 +4926,7 @@ <java-symbol type="array" name="config_displayShapeArray" /> <java-symbol type="bool" name="config_stopSystemPackagesByDefault"/> <!-- Whether to show weather on the lockscreen by default. --> <java-symbol type="bool" name="config_lockscreenWeatherEnabledByDefault" /> </resources> packages/SettingsProvider/src/android/provider/settings/backup/SecureSettings.java +2 −1 Original line number Diff line number Diff line Loading @@ -227,6 +227,7 @@ public class SecureSettings { Settings.Secure.BLUETOOTH_LE_BROADCAST_CODE, Settings.Secure.BLUETOOTH_LE_BROADCAST_APP_SOURCE_NAME, Settings.Secure.CUSTOM_BUGREPORT_HANDLER_APP, Settings.Secure.CUSTOM_BUGREPORT_HANDLER_USER Settings.Secure.CUSTOM_BUGREPORT_HANDLER_USER, Settings.Secure.LOCK_SCREEN_WEATHER_ENABLED }; } packages/SettingsProvider/src/android/provider/settings/validators/SecureSettingsValidators.java +1 −0 Original line number Diff line number Diff line Loading @@ -359,5 +359,6 @@ public class SecureSettingsValidators { VALIDATORS.put(Secure.BLUETOOTH_LE_BROADCAST_APP_SOURCE_NAME, ANY_STRING_VALIDATOR); VALIDATORS.put(Secure.CUSTOM_BUGREPORT_HANDLER_APP, ANY_STRING_VALIDATOR); VALIDATORS.put(Secure.CUSTOM_BUGREPORT_HANDLER_USER, ANY_INTEGER_VALIDATOR); VALIDATORS.put(Secure.LOCK_SCREEN_WEATHER_ENABLED, BOOLEAN_VALIDATOR); } } Loading
core/java/android/provider/Settings.java +7 −0 Original line number Diff line number Diff line Loading @@ -11456,6 +11456,13 @@ public final class Settings { public static final String EXTRA_AUTOMATIC_POWER_SAVE_MODE = "extra_automatic_power_save_mode"; /** * Whether lockscreen weather is enabled. * * @hide */ public static final String LOCK_SCREEN_WEATHER_ENABLED = "lockscreen_weather_enabled"; /** * These entries are considered common between the personal and the managed profile, * since the managed profile doesn't get to change them. Loading
core/res/res/values/config.xml +3 −0 Original line number Diff line number Diff line Loading @@ -6276,4 +6276,7 @@ "stopped" during initial boot of a device, or after an OTA update. Stopped state of an app is not changed during subsequent reboots. --> <bool name="config_stopSystemPackagesByDefault">false</bool> <!-- Whether to show weather on the lock screen by default. --> <bool name="config_lockscreenWeatherEnabledByDefault">false</bool> </resources>
core/res/res/values/symbols.xml +3 −0 Original line number Diff line number Diff line Loading @@ -4926,4 +4926,7 @@ <java-symbol type="array" name="config_displayShapeArray" /> <java-symbol type="bool" name="config_stopSystemPackagesByDefault"/> <!-- Whether to show weather on the lockscreen by default. --> <java-symbol type="bool" name="config_lockscreenWeatherEnabledByDefault" /> </resources>
packages/SettingsProvider/src/android/provider/settings/backup/SecureSettings.java +2 −1 Original line number Diff line number Diff line Loading @@ -227,6 +227,7 @@ public class SecureSettings { Settings.Secure.BLUETOOTH_LE_BROADCAST_CODE, Settings.Secure.BLUETOOTH_LE_BROADCAST_APP_SOURCE_NAME, Settings.Secure.CUSTOM_BUGREPORT_HANDLER_APP, Settings.Secure.CUSTOM_BUGREPORT_HANDLER_USER Settings.Secure.CUSTOM_BUGREPORT_HANDLER_USER, Settings.Secure.LOCK_SCREEN_WEATHER_ENABLED }; }
packages/SettingsProvider/src/android/provider/settings/validators/SecureSettingsValidators.java +1 −0 Original line number Diff line number Diff line Loading @@ -359,5 +359,6 @@ public class SecureSettingsValidators { VALIDATORS.put(Secure.BLUETOOTH_LE_BROADCAST_APP_SOURCE_NAME, ANY_STRING_VALIDATOR); VALIDATORS.put(Secure.CUSTOM_BUGREPORT_HANDLER_APP, ANY_STRING_VALIDATOR); VALIDATORS.put(Secure.CUSTOM_BUGREPORT_HANDLER_USER, ANY_INTEGER_VALIDATOR); VALIDATORS.put(Secure.LOCK_SCREEN_WEATHER_ENABLED, BOOLEAN_VALIDATOR); } }