From da9e05479488dad1efa9b90ae764647fd78ac432 Mon Sep 17 00:00:00 2001 From: cretin45 Date: Tue, 2 Dec 2014 16:49:35 -0800 Subject: ContactsProvider: Make ContactCounts public like cm11 * Needed for Mms recipients list Change-Id: I50010dc9d9759ecd04676df192ca2639e62d295b --- core/java/android/provider/ContactsContract.java | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'core') diff --git a/core/java/android/provider/ContactsContract.java b/core/java/android/provider/ContactsContract.java index 17c814c..5e034ab 100644 --- a/core/java/android/provider/ContactsContract.java +++ b/core/java/android/provider/ContactsContract.java @@ -1119,7 +1119,15 @@ public final class ContactsContract { public static final String SORT_KEY_ALTERNATIVE = "sort_key_alt"; } - interface ContactCounts { + /** + * URI parameter and cursor extras that return counts of rows grouped by the + * address book index, which is usually the first letter of the sort key. + * When this parameter is supplied, the row counts are returned in the + * cursor extras bundle. + * + * @hide + */ + public interface ContactCounts { /** * Add this query parameter to a URI to get back row counts grouped by the address book @@ -1147,6 +1155,8 @@ public final class ContactsContract { * } * *

+ * + * @hide */ public static final String EXTRA_ADDRESS_BOOK_INDEX = "android.provider.extra.ADDRESS_BOOK_INDEX"; @@ -1155,6 +1165,8 @@ public final class ContactsContract { * The array of address book index titles, which are returned in the * same order as the data in the cursor. *

TYPE: String[]

+ * + * @hide */ public static final String EXTRA_ADDRESS_BOOK_INDEX_TITLES = "android.provider.extra.ADDRESS_BOOK_INDEX_TITLES"; @@ -1163,6 +1175,8 @@ public final class ContactsContract { * The array of group counts for the corresponding group. Contains the same number * of elements as the EXTRA_ADDRESS_BOOK_INDEX_TITLES array. *

TYPE: int[]

+ * + * @hide */ public static final String EXTRA_ADDRESS_BOOK_INDEX_COUNTS = "android.provider.extra.ADDRESS_BOOK_INDEX_COUNTS"; -- cgit v1.1