summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDanny Baumann <dannybaumann@web.de>2013-07-09 06:43:21 -0700
committerGerrit Code Review <gerrit@cyanogenmod.org>2013-07-09 06:43:21 -0700
commitb7abe4eecf521ec79c0797cfa8ea67e4505a97c4 (patch)
tree453c3df27ef675276c70bfa9b816f3bf5a20ab29 /src
parentaf90c1e2bc09f59dbe753a7e8d5f9e6103f2a2f9 (diff)
parent2934e1908ea54aee26dbce6c196a086eb3c46398 (diff)
downloadframeworks_opt_telephony-b7abe4eecf521ec79c0797cfa8ea67e4505a97c4.zip
frameworks_opt_telephony-b7abe4eecf521ec79c0797cfa8ea67e4505a97c4.tar.gz
frameworks_opt_telephony-b7abe4eecf521ec79c0797cfa8ea67e4505a97c4.tar.bz2
Merge "Store phone blacklist in content provider (1/4)" into cm-10.1
Diffstat (limited to 'src')
-rw-r--r--src/java/android/provider/Telephony.java71
1 files changed, 71 insertions, 0 deletions
diff --git a/src/java/android/provider/Telephony.java b/src/java/android/provider/Telephony.java
index e932e2b..81e8fa8 100644
--- a/src/java/android/provider/Telephony.java
+++ b/src/java/android/provider/Telephony.java
@@ -1996,4 +1996,75 @@ public final class Telephony {
CMAS_CERTAINTY
};
}
+
+ /**
+ * Contains phone numbers that are blacklisted
+ * for phone and/or message purposes.
+ * @hide
+ */
+ public static final class Blacklist implements BaseColumns {
+ /**
+ * The content:// style URL for this table
+ */
+ public static final Uri CONTENT_URI =
+ Uri.parse("content://blacklist");
+
+ /**
+ * The content:// style URL for filtering this table by number.
+ * When using this, make sure the number is correctly encoded
+ * when appended to the Uri.
+ */
+ public static final Uri CONTENT_FILTER_BYNUMBER_URI =
+ Uri.parse("content://blacklist/bynumber");
+
+ /**
+ * The content:// style URL for filtering this table on phone numbers
+ */
+ public static final Uri CONTENT_PHONE_URI =
+ Uri.parse("content://blacklist/phone");
+
+ /**
+ * The content:// style URL for filtering this table on message numbers
+ */
+ public static final Uri CONTENT_MESSAGE_URI =
+ Uri.parse("content://blacklist/message");
+
+
+ /**
+ * Query parameter used to match numbers by regular-expression like
+ * matching. Supported are the '*' and the '.' operators.
+ * <p>
+ * TYPE: boolean
+ */
+ public static final String REGEX_KEY = "regex";
+
+ /**
+ * The default sort order for this table
+ */
+ public static final String DEFAULT_SORT_ORDER = "number ASC";
+
+ /**
+ * The phone number as the user entered it.
+ * <P>Type: TEXT</P>
+ */
+ public static final String NUMBER = "number";
+
+ /**
+ * Whether the number contains a regular expression pattern
+ * <P>Type: BOOLEAN (read only)</P>
+ */
+ public static final String IS_REGEX = "is_regex";
+
+ /**
+ * Blacklisting mode for phone calls
+ * <P>Type: INTEGER (int)</P>
+ */
+ public static final String PHONE_MODE = "phone";
+
+ /**
+ * Blacklisting mode for messages
+ * <P>Type: INTEGER (int)</P>
+ */
+ public static final String MESSAGE_MODE = "message";
+ }
}