Loading core/java/android/provider/Settings.java +48 −0 Original line number Original line Diff line number Diff line Loading @@ -1959,6 +1959,49 @@ public final class Settings { */ */ public static final String PHONE_BLACKLIST_ENABLED = "phone_blacklist_enabled"; public static final String PHONE_BLACKLIST_ENABLED = "phone_blacklist_enabled"; /** * Whether a notification should be shown when a call/message is blocked * @hide */ public static final String PHONE_BLACKLIST_NOTIFY_ENABLED = "phone_blacklist_notify_enabled"; /** * Whether the blacklisting feature for phone calls from private numbers is enabled * @hide */ public static final String PHONE_BLACKLIST_PRIVATE_NUMBER_MODE = "phone_blacklist_private_number_enabled"; /** * Whether the blacklisting feature for phone calls from private numbers is enabled * @hide */ public static final String PHONE_BLACKLIST_UNKNOWN_NUMBER_MODE = "phone_blacklist_private_number_enabled"; /** * Constants to be used for {@link PHONE_BLACKLIST_PRIVATE_NUMBER_MODE} and * {@link PHONE_BLACKLIST_UNKNOWN_NUMBER_MODE}. * @hide */ public static final int BLACKLIST_DO_NOT_BLOCK = 0; /** * @hide */ public static final int BLACKLIST_BLOCK = 1; /** * @hide */ public static final int BLACKLIST_PHONE_SHIFT = 0; /** * @hide */ public static final int BLACKLIST_MESSAGE_SHIFT = 4; /** * Whether the regex blacklisting feature for phone calls is enabled * @hide */ public static final String PHONE_BLACKLIST_REGEX_ENABLED = "phone_blacklist_regex_enabled"; /** /** * Whether the phone ringtone should be played in an increasing manner * Whether the phone ringtone should be played in an increasing manner * @hide * @hide Loading Loading @@ -3319,6 +3362,11 @@ public final class Settings { POWER_MENU_USER_ENABLED, POWER_MENU_USER_ENABLED, LOCKSCREEN_VIBRATE_ENABLED, LOCKSCREEN_VIBRATE_ENABLED, LOCKSCREEN_ALWAYS_SHOW_BATTERY, LOCKSCREEN_ALWAYS_SHOW_BATTERY, PHONE_BLACKLIST_ENABLED, PHONE_BLACKLIST_NOTIFY_ENABLED, PHONE_BLACKLIST_PRIVATE_NUMBER_MODE, PHONE_BLACKLIST_UNKNOWN_NUMBER_MODE, PHONE_BLACKLIST_REGEX_ENABLED, }; }; // Settings moved to Settings.Secure // Settings moved to Settings.Secure Loading Loading
core/java/android/provider/Settings.java +48 −0 Original line number Original line Diff line number Diff line Loading @@ -1959,6 +1959,49 @@ public final class Settings { */ */ public static final String PHONE_BLACKLIST_ENABLED = "phone_blacklist_enabled"; public static final String PHONE_BLACKLIST_ENABLED = "phone_blacklist_enabled"; /** * Whether a notification should be shown when a call/message is blocked * @hide */ public static final String PHONE_BLACKLIST_NOTIFY_ENABLED = "phone_blacklist_notify_enabled"; /** * Whether the blacklisting feature for phone calls from private numbers is enabled * @hide */ public static final String PHONE_BLACKLIST_PRIVATE_NUMBER_MODE = "phone_blacklist_private_number_enabled"; /** * Whether the blacklisting feature for phone calls from private numbers is enabled * @hide */ public static final String PHONE_BLACKLIST_UNKNOWN_NUMBER_MODE = "phone_blacklist_private_number_enabled"; /** * Constants to be used for {@link PHONE_BLACKLIST_PRIVATE_NUMBER_MODE} and * {@link PHONE_BLACKLIST_UNKNOWN_NUMBER_MODE}. * @hide */ public static final int BLACKLIST_DO_NOT_BLOCK = 0; /** * @hide */ public static final int BLACKLIST_BLOCK = 1; /** * @hide */ public static final int BLACKLIST_PHONE_SHIFT = 0; /** * @hide */ public static final int BLACKLIST_MESSAGE_SHIFT = 4; /** * Whether the regex blacklisting feature for phone calls is enabled * @hide */ public static final String PHONE_BLACKLIST_REGEX_ENABLED = "phone_blacklist_regex_enabled"; /** /** * Whether the phone ringtone should be played in an increasing manner * Whether the phone ringtone should be played in an increasing manner * @hide * @hide Loading Loading @@ -3319,6 +3362,11 @@ public final class Settings { POWER_MENU_USER_ENABLED, POWER_MENU_USER_ENABLED, LOCKSCREEN_VIBRATE_ENABLED, LOCKSCREEN_VIBRATE_ENABLED, LOCKSCREEN_ALWAYS_SHOW_BATTERY, LOCKSCREEN_ALWAYS_SHOW_BATTERY, PHONE_BLACKLIST_ENABLED, PHONE_BLACKLIST_NOTIFY_ENABLED, PHONE_BLACKLIST_PRIVATE_NUMBER_MODE, PHONE_BLACKLIST_UNKNOWN_NUMBER_MODE, PHONE_BLACKLIST_REGEX_ENABLED, }; }; // Settings moved to Settings.Secure // Settings moved to Settings.Secure Loading