summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorRicky Wai <rickywai@google.com>2015-03-10 22:46:20 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-03-10 22:46:23 +0000
commit73f43da5090b77467b4a7eed30225955f04ab9cc (patch)
treeb3b00fb0118ce9ec47b584af2c92cdecfbdcbce0 /core
parentc016e4c9e63f596a6d8067aa0fe64b4d38e9dcc4 (diff)
parentfa5bbaf6f625ed73797d4dbd9d09baacf622f380 (diff)
downloadframeworks_base-73f43da5090b77467b4a7eed30225955f04ab9cc.zip
frameworks_base-73f43da5090b77467b4a7eed30225955f04ab9cc.tar.gz
frameworks_base-73f43da5090b77467b4a7eed30225955f04ab9cc.tar.bz2
Merge "Add Phone.ENTERPRISE_CONTENT_URI"
Diffstat (limited to 'core')
-rw-r--r--core/java/android/provider/ContactsContract.java23
1 files changed, 23 insertions, 0 deletions
diff --git a/core/java/android/provider/ContactsContract.java b/core/java/android/provider/ContactsContract.java
index cc7783f..91a19dc 100644
--- a/core/java/android/provider/ContactsContract.java
+++ b/core/java/android/provider/ContactsContract.java
@@ -4600,6 +4600,15 @@ public final class ContactsContract {
public static final Uri CONTENT_URI = Uri.withAppendedPath(AUTHORITY_URI, "data");
/**
+ * The content:// style URI for this table in managed profile, which requests a directory
+ * of data rows matching the selection criteria.
+ *
+ * @hide
+ */
+ static final Uri ENTERPRISE_CONTENT_URI = Uri.withAppendedPath(AUTHORITY_URI,
+ "data_enterprise");
+
+ /**
* 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.
@@ -5751,6 +5760,20 @@ public final class ContactsContract {
"phones");
/**
+ * URI used for getting all contacts from primary and managed profile.
+ *
+ * It supports the same semantics as {@link #CONTENT_URI} and returns the same
+ * columns. If the device has no corp profile that is linked to the current profile, it
+ * behaves in the exact same way as {@link #CONTENT_URI}. If there is a corp profile
+ * linked to the current profile, it will merge corp profile and current profile's
+ * results and return
+ *
+ * @hide
+ */
+ public static final Uri ENTERPRISE_CONTENT_URI =
+ Uri.withAppendedPath(Data.ENTERPRISE_CONTENT_URI, "phones");
+
+ /**
* The content:// style URL for phone lookup using a filter. The filter returns
* records of MIME type {@link #CONTENT_ITEM_TYPE}. The filter is applied
* to display names as well as phone numbers. The filter argument should be passed