diff options
author | Yorke Lee <yorkelee@google.com> | 2013-03-27 16:43:40 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2013-03-27 16:43:41 +0000 |
commit | 038fbc5d099c6fb8903ccc00c0988d482bfb8046 (patch) | |
tree | f3987181e5c2ad11b8daf52f52669520e000b727 /core/java/android | |
parent | 993f10af84768bc37dac211efe3133257680f2d1 (diff) | |
parent | 4f401ebf14f31f411581588c3e649a00c94a06e7 (diff) | |
download | frameworks_base-038fbc5d099c6fb8903ccc00c0988d482bfb8046.zip frameworks_base-038fbc5d099c6fb8903ccc00c0988d482bfb8046.tar.gz frameworks_base-038fbc5d099c6fb8903ccc00c0988d482bfb8046.tar.bz2 |
Merge "Add new apis to CP2" into jb-mr2-dev
Diffstat (limited to 'core/java/android')
-rw-r--r-- | core/java/android/provider/ContactsContract.java | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/core/java/android/provider/ContactsContract.java b/core/java/android/provider/ContactsContract.java index 8f54a38..a4c4411 100644 --- a/core/java/android/provider/ContactsContract.java +++ b/core/java/android/provider/ContactsContract.java @@ -4325,6 +4325,13 @@ public final class ContactsContract { public static final Uri CONTENT_URI = Uri.withAppendedPath(AUTHORITY_URI, "data"); /** + * A boolean parameter for {@link Data#CONTENT_URI}. + * This specifies whether or not the returned data items should be filtered to show + * data items belonging to visible contacts only. + */ + public static final String VISIBLE_CONTACTS_ONLY = "visible_contacts_only"; + + /** * The MIME type of the results from {@link #CONTENT_URI}. */ public static final String CONTENT_TYPE = "vnd.android.cursor.dir/data"; @@ -6833,6 +6840,38 @@ public final class ContactsContract { public static final Uri CONTENT_FILTER_URI = Uri.withAppendedPath(CONTENT_URI, "filter"); } + + /** + * A special class of data items, used to refer to types of data that can be used to attempt + * to start communicating with a person ({@link Phone} and {@link Email}). Note that this + * is NOT a separate data kind. + * + * This URI allows the ContactsProvider to return a unified result for data items that users + * can use to initiate communications with another contact. {@link Phone} and {@link Email} + * are the current data types in this category. + */ + public static final class Contactables implements DataColumnsWithJoins, CommonColumns { + /** + * The content:// style URI for these data items, which requests a directory of data + * rows matching the selection criteria. + */ + public static final Uri CONTENT_URI = Uri.withAppendedPath(Data.CONTENT_URI, + "contactables"); + + /** + * The content:// style URI for these data items, which allows for a query parameter to + * be appended onto the end to filter for data items matching the query. + */ + public static final Uri CONTENT_FILTER_URI = Uri.withAppendedPath( + Contactables.CONTENT_URI, "filter"); + + /** + * A boolean parameter for {@link Data#CONTENT_URI}. + * This specifies whether or not the returned data items should be filtered to show + * data items belonging to visible contacts only. + */ + public static final String VISIBLE_CONTACTS_ONLY = "visible_contacts_only"; + } } /** |