Loading core/java/android/provider/Settings.java +28 −0 Original line number Diff line number Diff line Loading @@ -8650,6 +8650,34 @@ public final class Settings { @Readable public static final String DOCKED_CLOCK_FACE = "docked_clock_face"; /** * Setting to indicate that content filters should be enabled on web browsers. * * <ul> * <li>0 = Allow all sites * <li>1 = Try to block explicit sites * </ul> * * @hide */ @Readable public static final String BROWSER_CONTENT_FILTERS_ENABLED = "browser_content_filters_enabled"; /** * Setting to indicate that content filters should be enabled in web search engines. * * <ul> * <li>0 = Off * <li>1 = Filter * </ul> * * @hide */ @Readable public static final String SEARCH_CONTENT_FILTERS_ENABLED = "search_content_filters_enabled"; /** * Set by the system to track if the user needs to see the call to action for * the lockscreen notification policy. Loading packages/SettingsProvider/src/android/provider/settings/backup/SecureSettings.java +2 −0 Original line number Diff line number Diff line Loading @@ -294,5 +294,7 @@ public class SecureSettings { Settings.Secure.FINGERPRINT_APP_ENABLED, Settings.Secure.FINGERPRINT_KEYGUARD_ENABLED, Settings.Secure.DUAL_SHADE, Settings.Secure.BROWSER_CONTENT_FILTERS_ENABLED, Settings.Secure.SEARCH_CONTENT_FILTERS_ENABLED, }; } packages/SettingsProvider/src/android/provider/settings/validators/SecureSettingsValidators.java +2 −0 Original line number Diff line number Diff line Loading @@ -462,5 +462,7 @@ public class SecureSettingsValidators { VALIDATORS.put(Secure.FINGERPRINT_APP_ENABLED, BOOLEAN_VALIDATOR); VALIDATORS.put(Secure.FINGERPRINT_KEYGUARD_ENABLED, BOOLEAN_VALIDATOR); VALIDATORS.put(Secure.DUAL_SHADE, BOOLEAN_VALIDATOR); VALIDATORS.put(Secure.BROWSER_CONTENT_FILTERS_ENABLED, BOOLEAN_VALIDATOR); VALIDATORS.put(Secure.SEARCH_CONTENT_FILTERS_ENABLED, BOOLEAN_VALIDATOR); } } Loading
core/java/android/provider/Settings.java +28 −0 Original line number Diff line number Diff line Loading @@ -8650,6 +8650,34 @@ public final class Settings { @Readable public static final String DOCKED_CLOCK_FACE = "docked_clock_face"; /** * Setting to indicate that content filters should be enabled on web browsers. * * <ul> * <li>0 = Allow all sites * <li>1 = Try to block explicit sites * </ul> * * @hide */ @Readable public static final String BROWSER_CONTENT_FILTERS_ENABLED = "browser_content_filters_enabled"; /** * Setting to indicate that content filters should be enabled in web search engines. * * <ul> * <li>0 = Off * <li>1 = Filter * </ul> * * @hide */ @Readable public static final String SEARCH_CONTENT_FILTERS_ENABLED = "search_content_filters_enabled"; /** * Set by the system to track if the user needs to see the call to action for * the lockscreen notification policy. Loading
packages/SettingsProvider/src/android/provider/settings/backup/SecureSettings.java +2 −0 Original line number Diff line number Diff line Loading @@ -294,5 +294,7 @@ public class SecureSettings { Settings.Secure.FINGERPRINT_APP_ENABLED, Settings.Secure.FINGERPRINT_KEYGUARD_ENABLED, Settings.Secure.DUAL_SHADE, Settings.Secure.BROWSER_CONTENT_FILTERS_ENABLED, Settings.Secure.SEARCH_CONTENT_FILTERS_ENABLED, }; }
packages/SettingsProvider/src/android/provider/settings/validators/SecureSettingsValidators.java +2 −0 Original line number Diff line number Diff line Loading @@ -462,5 +462,7 @@ public class SecureSettingsValidators { VALIDATORS.put(Secure.FINGERPRINT_APP_ENABLED, BOOLEAN_VALIDATOR); VALIDATORS.put(Secure.FINGERPRINT_KEYGUARD_ENABLED, BOOLEAN_VALIDATOR); VALIDATORS.put(Secure.DUAL_SHADE, BOOLEAN_VALIDATOR); VALIDATORS.put(Secure.BROWSER_CONTENT_FILTERS_ENABLED, BOOLEAN_VALIDATOR); VALIDATORS.put(Secure.SEARCH_CONTENT_FILTERS_ENABLED, BOOLEAN_VALIDATOR); } }