Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4af68cdf authored by DvTonder's avatar DvTonder Committed by Danny Baumann
Browse files

Framework: Generic Blacklist support (4 of 5)

Change-Id: Id6c85c9a537713ec77d00deb7f7fe5a9150be2cd
parent ac6b1d01
Loading
Loading
Loading
Loading
+48 −0
Original line number Original line Diff line number Diff line
@@ -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
@@ -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