Loading core/java/android/provider/Settings.java +7 −0 Original line number Diff line number Diff line Loading @@ -11835,6 +11835,13 @@ public final class Settings { public static final String ACCESSIBILITY_DISPLAY_MAGNIFICATION_EDGE_HAPTIC_ENABLED = "accessibility_display_magnification_edge_haptic_enabled"; /** * If 1, DND default allowed packages have been updated * * @hide */ public static final String DND_CONFIGS_MIGRATED = "dnd_settings_migrated"; /** * 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 @@ -4288,6 +4288,9 @@ <!-- Colon separated list of package names that should be granted DND access --> <string name="config_defaultDndAccessPackages" translatable="false">com.android.camera2</string> <!-- Colon separated list of package names that should be removed from DND access packages --> <string name="config_defaultDndDeniedPackages" translatable="false"></string> <!-- User restrictions set on the SYSTEM user when it is first created. Note: Also update appropriate overlay files. --> <string-array translatable="false" name="config_defaultFirstUserRestrictions"> Loading core/res/res/values/symbols.xml +2 −0 Original line number Diff line number Diff line Loading @@ -3381,6 +3381,8 @@ <!-- Colon separated list of package names that should be granted DND access --> <java-symbol type="string" name="config_defaultDndAccessPackages" /> <!-- Colon separated list of package names that should be removed from DND access packages --> <java-symbol type="string" name="config_defaultDndDeniedPackages" /> <!-- For NetworkPolicyManagerService --> <java-symbol type="string" name="config_networkOverLimitComponent" /> Loading packages/SettingsProvider/src/android/provider/settings/validators/SecureSettingsValidators.java +1 −0 Original line number Diff line number Diff line Loading @@ -385,5 +385,6 @@ public class SecureSettingsValidators { VALIDATORS.put(Secure.ACCESSIBILITY_FONT_SCALING_HAS_BEEN_CHANGED, BOOLEAN_VALIDATOR); VALIDATORS.put(Secure.ACCESSIBILITY_DISPLAY_MAGNIFICATION_EDGE_HAPTIC_ENABLED, BOOLEAN_VALIDATOR); VALIDATORS.put(Secure.DND_CONFIGS_MIGRATED, BOOLEAN_VALIDATOR); } } packages/SettingsProvider/test/src/android/provider/SettingsBackupTest.java +2 −1 Original line number Diff line number Diff line Loading @@ -858,7 +858,8 @@ public class SettingsBackupTest { Settings.Secure.UI_TRANSLATION_ENABLED, Settings.Secure.CREDENTIAL_SERVICE, Settings.Secure.CREDENTIAL_SERVICE_PRIMARY, Settings.Secure.ACCESSIBILITY_DISPLAY_MAGNIFICATION_EDGE_HAPTIC_ENABLED); Settings.Secure.ACCESSIBILITY_DISPLAY_MAGNIFICATION_EDGE_HAPTIC_ENABLED, Settings.Secure.DND_CONFIGS_MIGRATED); @Test public void systemSettingsBackedUpOrDenied() { Loading Loading
core/java/android/provider/Settings.java +7 −0 Original line number Diff line number Diff line Loading @@ -11835,6 +11835,13 @@ public final class Settings { public static final String ACCESSIBILITY_DISPLAY_MAGNIFICATION_EDGE_HAPTIC_ENABLED = "accessibility_display_magnification_edge_haptic_enabled"; /** * If 1, DND default allowed packages have been updated * * @hide */ public static final String DND_CONFIGS_MIGRATED = "dnd_settings_migrated"; /** * 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 @@ -4288,6 +4288,9 @@ <!-- Colon separated list of package names that should be granted DND access --> <string name="config_defaultDndAccessPackages" translatable="false">com.android.camera2</string> <!-- Colon separated list of package names that should be removed from DND access packages --> <string name="config_defaultDndDeniedPackages" translatable="false"></string> <!-- User restrictions set on the SYSTEM user when it is first created. Note: Also update appropriate overlay files. --> <string-array translatable="false" name="config_defaultFirstUserRestrictions"> Loading
core/res/res/values/symbols.xml +2 −0 Original line number Diff line number Diff line Loading @@ -3381,6 +3381,8 @@ <!-- Colon separated list of package names that should be granted DND access --> <java-symbol type="string" name="config_defaultDndAccessPackages" /> <!-- Colon separated list of package names that should be removed from DND access packages --> <java-symbol type="string" name="config_defaultDndDeniedPackages" /> <!-- For NetworkPolicyManagerService --> <java-symbol type="string" name="config_networkOverLimitComponent" /> Loading
packages/SettingsProvider/src/android/provider/settings/validators/SecureSettingsValidators.java +1 −0 Original line number Diff line number Diff line Loading @@ -385,5 +385,6 @@ public class SecureSettingsValidators { VALIDATORS.put(Secure.ACCESSIBILITY_FONT_SCALING_HAS_BEEN_CHANGED, BOOLEAN_VALIDATOR); VALIDATORS.put(Secure.ACCESSIBILITY_DISPLAY_MAGNIFICATION_EDGE_HAPTIC_ENABLED, BOOLEAN_VALIDATOR); VALIDATORS.put(Secure.DND_CONFIGS_MIGRATED, BOOLEAN_VALIDATOR); } }
packages/SettingsProvider/test/src/android/provider/SettingsBackupTest.java +2 −1 Original line number Diff line number Diff line Loading @@ -858,7 +858,8 @@ public class SettingsBackupTest { Settings.Secure.UI_TRANSLATION_ENABLED, Settings.Secure.CREDENTIAL_SERVICE, Settings.Secure.CREDENTIAL_SERVICE_PRIMARY, Settings.Secure.ACCESSIBILITY_DISPLAY_MAGNIFICATION_EDGE_HAPTIC_ENABLED); Settings.Secure.ACCESSIBILITY_DISPLAY_MAGNIFICATION_EDGE_HAPTIC_ENABLED, Settings.Secure.DND_CONFIGS_MIGRATED); @Test public void systemSettingsBackedUpOrDenied() { Loading