summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Dmitri Plotnikov <dplotnikov@google.com> 2009-08-27 10:38:14 -0700
committer Dmitri Plotnikov <dplotnikov@google.com> 2009-08-27 10:38:14 -0700
commitb87d0e0e5778826cc4421aa7afa1798f232d3247 (patch)
tree2c01b4d1bd73fc837175b21e4898828f64732cd3
parent09b0ca1ceefde02b9ed50dc4dd12774ba569143f (diff)
Removing "summary"-style URIs.
We will determine whether to include Presence by looking at the requested projection.
-rw-r--r--core/java/android/provider/ContactsContract.java43
1 files changed, 28 insertions, 15 deletions
diff --git a/core/java/android/provider/ContactsContract.java b/core/java/android/provider/ContactsContract.java
index 53b2aa84d752..d4a4c118b011 100644
--- a/core/java/android/provider/ContactsContract.java
+++ b/core/java/android/provider/ContactsContract.java
@@ -27,7 +27,6 @@ import android.database.Cursor;
import android.graphics.BitmapFactory;
import android.net.Uri;
import android.os.RemoteException;
-import android.provider.ContactsContract.CommonDataKinds.GroupMembership;
import android.text.TextUtils;
import java.io.ByteArrayInputStream;
@@ -237,38 +236,52 @@ public final class ContactsContract {
/**
* The content:// style URI for this table joined with useful data from
* {@link Data}.
+ *
+ * @deprecated Please use plain CONTENT_URI for the same result
*/
- public static final Uri CONTENT_SUMMARY_URI = Uri.withAppendedPath(AUTHORITY_URI,
- "contacts_summary");
+ @Deprecated
+ public static final Uri CONTENT_SUMMARY_URI = CONTENT_URI;
/**
* The content:// style URI used for "type-to-filter" functionality on the
- * {@link #CONTENT_SUMMARY_URI} URI. The filter string will be used to match
+ * {@link #CONTENT_URI} URI. The filter string will be used to match
* various parts of the contact name. The filter argument should be passed
* as an additional path segment after this URI.
*/
- public static final Uri CONTENT_SUMMARY_FILTER_URI = Uri.withAppendedPath(
- CONTENT_SUMMARY_URI, "filter");
+ public static final Uri CONTENT_FILTER_URI = Uri.withAppendedPath(
+ CONTENT_URI, "filter");
+
+ @Deprecated
+ public static final Uri CONTENT_SUMMARY_FILTER_URI = CONTENT_FILTER_URI;
/**
* The content:// style URI for this table joined with useful data from
* {@link Data}, filtered to include only starred contacts
* and the most frequently contacted contacts.
*/
- public static final Uri CONTENT_SUMMARY_STREQUENT_URI = Uri.withAppendedPath(
- CONTENT_SUMMARY_URI, "strequent");
+ public static final Uri CONTENT_STREQUENT_URI = Uri.withAppendedPath(
+ CONTENT_URI, "strequent");
+
+ @Deprecated
+ public static final Uri CONTENT_SUMMARY_STREQUENT_URI = CONTENT_STREQUENT_URI;
/**
* The content:// style URI used for "type-to-filter" functionality on the
- * {@link #CONTENT_SUMMARY_STREQUENT_URI} URI. The filter string will be used to match
+ * {@link #CONTENT_STREQUENT_URI} URI. The filter string will be used to match
* various parts of the contact name. The filter argument should be passed
* as an additional path segment after this URI.
*/
- public static final Uri CONTENT_SUMMARY_STREQUENT_FILTER_URI = Uri.withAppendedPath(
- CONTENT_SUMMARY_STREQUENT_URI, "filter");
+ public static final Uri CONTENT_STREQUENT_FILTER_URI = Uri.withAppendedPath(
+ CONTENT_STREQUENT_URI, "filter");
+
+ @Deprecated
+ public static final Uri CONTENT_SUMMARY_STREQUENT_FILTER_URI = CONTENT_STREQUENT_FILTER_URI;
- public static final Uri CONTENT_SUMMARY_GROUP_URI = Uri.withAppendedPath(
- CONTENT_SUMMARY_URI, "group");
+ public static final Uri CONTENT_GROUP_URI = Uri.withAppendedPath(
+ CONTENT_URI, "group");
+
+ @Deprecated
+ public static final Uri CONTENT_SUMMARY_GROUP_URI = CONTENT_GROUP_URI;
/**
* The MIME type of {@link #CONTENT_URI} providing a directory of
* people.
@@ -1633,7 +1646,7 @@ public final class ContactsContract {
/**
* Read-only count of {@link Contacts} from a specific source that have
- * no {@link GroupMembership} entries.
+ * no {@link CommonDataKinds.GroupMembership} entries.
* <p>
* Type: INTEGER
*/
@@ -1641,7 +1654,7 @@ public final class ContactsContract {
/**
* Read-only count of {@link Contacts} from a specific source that have
- * no {@link GroupMembership} entries, and also have phone numbers.
+ * no {@link CommonDataKinds.GroupMembership} entries, and also have phone numbers.
* <p>
* Type: INTEGER
*/