diff options
author | Daniel Lehmann <lehmannd@google.com> | 2012-06-15 20:32:33 -0700 |
---|---|---|
committer | Daniel Lehmann <lehmannd@google.com> | 2012-06-15 20:32:33 -0700 |
commit | 1024de59618d6217beac1fc47866baa3741cc27d (patch) | |
tree | 0df615827f406d27066ae7ec9f66a6534a83cb8d /core | |
parent | fd4df46917c79067416985ac53a3da6b27e8c333 (diff) | |
download | frameworks_base-1024de59618d6217beac1fc47866baa3741cc27d.zip frameworks_base-1024de59618d6217beac1fc47866baa3741cc27d.tar.gz frameworks_base-1024de59618d6217beac1fc47866baa3741cc27d.tar.bz2 |
Allow restricting the scope of a phone-filter search
This also includes a previous change to current.txt that hasn't been
copied to 16.txt yet
Bug:6662259
Change-Id: Iaab5c38ad56882a1270b5276ba7a399bbb8a49f3
Diffstat (limited to 'core')
-rw-r--r-- | core/java/android/provider/ContactsContract.java | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/core/java/android/provider/ContactsContract.java b/core/java/android/provider/ContactsContract.java index e8f87bb..8e123ac 100644 --- a/core/java/android/provider/ContactsContract.java +++ b/core/java/android/provider/ContactsContract.java @@ -5416,6 +5416,20 @@ public final class ContactsContract { public static final Uri CONTENT_FILTER_URI = Uri.withAppendedPath(CONTENT_URI, "filter"); + /** + * A boolean query parameter that can be used with {@link #CONTENT_FILTER_URI}. + * If "1" or "true", display names are searched. If "0" or "false", display names + * are not searched. Default is "1". + */ + public static final String SEARCH_DISPLAY_NAME_KEY = "search_display_name"; + + /** + * A boolean query parameter that can be used with {@link #CONTENT_FILTER_URI}. + * If "1" or "true", phone numbers are searched. If "0" or "false", phone numbers + * are not searched. Default is "1". + */ + public static final String SEARCH_PHONE_NUMBER_KEY = "search_phone_number"; + public static final int TYPE_HOME = 1; public static final int TYPE_MOBILE = 2; public static final int TYPE_WORK = 3; |