Loading core/java/android/provider/ContactsContract.java +34 −2 Original line number Diff line number Diff line Loading @@ -199,6 +199,31 @@ public final class ContactsContract { */ public static final String CONTENT_DIRECTORY = "data"; } /** * A sub-directory of a single contact aggregate that contains all aggregation suggestions * (other aggregates). The aggregation suggestions are computed based on approximate * data matches with this aggregate. */ public static final class AggregationSuggestions implements BaseColumns, AggregatesColumns { /** * No public constructor since this is a utility class */ private AggregationSuggestions() {} /** * The directory twig for this sub-table */ public static final String CONTENT_DIRECTORY = "suggestions"; /** * An optional query parameter that can be supplied to limit the number of returned * suggestions. * <p> * Type: INTEGER */ public static final String MAX_SUGGESTIONS = "max_suggestions"; } } Loading Loading @@ -824,7 +849,8 @@ public final class ContactsContract { public static final class CustomRingtone implements BaseCommonColumns { private CustomRingtone() {} public static final String CONTENT_ITEM_TYPE = "vnd.android.cursor.item/custom_ringtone"; public static final String CONTENT_ITEM_TYPE = "vnd.android.cursor.item/custom_ringtone"; /** * Whether to send the number to voicemail. Loading Loading @@ -871,7 +897,7 @@ public final class ContactsContract { * Constants for the contact aggregation exceptions table, which contains * aggregation rules overriding those used by automatic aggregation. */ public static final class AggregationExceptions { public static final class AggregationExceptions implements BaseColumns { /** * This utility class cannot be instantiated */ Loading @@ -888,6 +914,12 @@ public final class ContactsContract { */ public static final String CONTENT_TYPE = "vnd.android.cursor.dir/aggregation_exception"; /** * The MIME type of a {@link #CONTENT_URI} subdirectory of an aggregation exception */ public static final String CONTENT_ITEM_TYPE = "vnd.android.cursor.item/aggregation_exception"; /** * The type of exception: {@link #TYPE_NEVER_MATCH} or {@link #TYPE_ALWAYS_MATCH}. * Loading core/java/android/widget/AlphabetIndexer.java +24 −17 Original line number Diff line number Diff line Loading @@ -124,7 +124,14 @@ public class AlphabetIndexer extends DataSetObserver implements SectionIndexer { * Default implementation compares the first character of word with letter. */ protected int compare(String word, String letter) { return mCollator.compare(word.substring(0, 1), letter); final String firstLetter; if (word.length() == 0) { firstLetter = " "; } else { firstLetter = word.substring(0, 1); } return mCollator.compare(firstLetter, letter); } /** Loading Loading @@ -204,7 +211,7 @@ public class AlphabetIndexer extends DataSetObserver implements SectionIndexer { } int diff = compare(curName, targetLetter); if (diff != 0) { // Commenting out approximation code because it doesn't work for certain // TODO: Commenting out approximation code because it doesn't work for certain // lists with custom comparators // Enter approximation in hash if a better solution doesn't exist // String startingLetter = Character.toString(getFirstLetter(curName)); Loading Loading
core/java/android/provider/ContactsContract.java +34 −2 Original line number Diff line number Diff line Loading @@ -199,6 +199,31 @@ public final class ContactsContract { */ public static final String CONTENT_DIRECTORY = "data"; } /** * A sub-directory of a single contact aggregate that contains all aggregation suggestions * (other aggregates). The aggregation suggestions are computed based on approximate * data matches with this aggregate. */ public static final class AggregationSuggestions implements BaseColumns, AggregatesColumns { /** * No public constructor since this is a utility class */ private AggregationSuggestions() {} /** * The directory twig for this sub-table */ public static final String CONTENT_DIRECTORY = "suggestions"; /** * An optional query parameter that can be supplied to limit the number of returned * suggestions. * <p> * Type: INTEGER */ public static final String MAX_SUGGESTIONS = "max_suggestions"; } } Loading Loading @@ -824,7 +849,8 @@ public final class ContactsContract { public static final class CustomRingtone implements BaseCommonColumns { private CustomRingtone() {} public static final String CONTENT_ITEM_TYPE = "vnd.android.cursor.item/custom_ringtone"; public static final String CONTENT_ITEM_TYPE = "vnd.android.cursor.item/custom_ringtone"; /** * Whether to send the number to voicemail. Loading Loading @@ -871,7 +897,7 @@ public final class ContactsContract { * Constants for the contact aggregation exceptions table, which contains * aggregation rules overriding those used by automatic aggregation. */ public static final class AggregationExceptions { public static final class AggregationExceptions implements BaseColumns { /** * This utility class cannot be instantiated */ Loading @@ -888,6 +914,12 @@ public final class ContactsContract { */ public static final String CONTENT_TYPE = "vnd.android.cursor.dir/aggregation_exception"; /** * The MIME type of a {@link #CONTENT_URI} subdirectory of an aggregation exception */ public static final String CONTENT_ITEM_TYPE = "vnd.android.cursor.item/aggregation_exception"; /** * The type of exception: {@link #TYPE_NEVER_MATCH} or {@link #TYPE_ALWAYS_MATCH}. * Loading
core/java/android/widget/AlphabetIndexer.java +24 −17 Original line number Diff line number Diff line Loading @@ -124,7 +124,14 @@ public class AlphabetIndexer extends DataSetObserver implements SectionIndexer { * Default implementation compares the first character of word with letter. */ protected int compare(String word, String letter) { return mCollator.compare(word.substring(0, 1), letter); final String firstLetter; if (word.length() == 0) { firstLetter = " "; } else { firstLetter = word.substring(0, 1); } return mCollator.compare(firstLetter, letter); } /** Loading Loading @@ -204,7 +211,7 @@ public class AlphabetIndexer extends DataSetObserver implements SectionIndexer { } int diff = compare(curName, targetLetter); if (diff != 0) { // Commenting out approximation code because it doesn't work for certain // TODO: Commenting out approximation code because it doesn't work for certain // lists with custom comparators // Enter approximation in hash if a better solution doesn't exist // String startingLetter = Character.toString(getFirstLetter(curName)); Loading