diff options
| author | Dmitri Plotnikov <dplotnikov@google.com> | 2009-09-06 12:22:24 -0700 |
|---|---|---|
| committer | Dmitri Plotnikov <dplotnikov@google.com> | 2009-09-06 12:22:24 -0700 |
| commit | 989f263dcffc37a43846c3667f51ce8f752f2479 (patch) | |
| tree | e46737f72a26d9a96bee3b6bf0c66ecb37cbdcf8 /core/java/android | |
| parent | a4eb91da03bd785bc91bed0d25a9efaa9baba1c1 (diff) | |
Fixing asymmetry between phone filter and email filter APIs.
Also, introducing a more advanced email filter, which will do a proper name
lookup using the normalized name and avoid returning duplicate results.
Also, upgrading the phone filter to do the same thing as the email filter
but with display names and phone numbers.
Diffstat (limited to 'core/java/android')
| -rw-r--r-- | core/java/android/provider/ContactsContract.java | 28 |
1 files changed, 20 insertions, 8 deletions
diff --git a/core/java/android/provider/ContactsContract.java b/core/java/android/provider/ContactsContract.java index 6e3b28242fe6..a318f08a0a07 100644 --- a/core/java/android/provider/ContactsContract.java +++ b/core/java/android/provider/ContactsContract.java @@ -999,10 +999,10 @@ public final class ContactsContract { "phones"); /** - * The content:// style URI for filtering data records of the - * {@link Phone#CONTENT_ITEM_TYPE} MIME type, combined with the - * associated raw contact and aggregate contact data. The filter argument should - * be passed as an additional path segment after this URI. + * The content:// style URL for phone lookup using a filter. The filter returns + * records of MIME type {@link Phone#CONTENT_ITEM_TYPE}. The filter is applied + * to display names as well as phone numbers. The filter argument should be passed + * as an additional path segment after this URI. */ public static final Uri CONTENT_FILTER_URI = Uri.withAppendedPath(CONTENT_URI, "filter"); @@ -1078,11 +1078,23 @@ public final class ContactsContract { "emails"); /** - * The content:// style URL for filtering data rows by email address. The - * filter argument should be passed as an additional path segment after - * this URI. + * The content:// style URL for looking up data rows by email address. The + * lookup argument, an email address, should be passed as an additional path segment + * after this URI. + */ + public static final Uri CONTENT_LOOKUP_URI = Uri.withAppendedPath(CONTENT_URI, + "lookup"); + + @Deprecated + public static final Uri CONTENT_FILTER_EMAIL_URI = CONTENT_LOOKUP_URI; + + /** + * The content:// style URL for email lookup using a filter. The filter returns + * records of MIME type {@link Email#CONTENT_ITEM_TYPE}. The filter is applied + * to display names as well as email addresses. The filter argument should be passed + * as an additional path segment after this URI. */ - public static final Uri CONTENT_FILTER_EMAIL_URI = Uri.withAppendedPath(CONTENT_URI, + public static final Uri CONTENT_FILTER_URI = Uri.withAppendedPath(CONTENT_URI, "filter"); public static final int TYPE_HOME = 1; |
