From e8dab7ef42ba99e002db2160c6ccfff72cd5100b Mon Sep 17 00:00:00 2001 From: zachh Date: Tue, 14 Nov 2017 11:13:46 -0800 Subject: Added URI for selecting distinct phone numbers from AnnotatedCallLog. This will be used in the PhoneLookupDataSource. A separate URI is necessary because the content provider APIs do not provide a mechanism for querying using the "distinct" keyword. Bug: 34672501 Test: unit PiperOrigin-RevId: 175706603 Change-Id: Ia455a18d10afb116d26f69e8b0c7493f4f877d0b --- .../dialer/calllog/database/contract/AnnotatedCallLogContract.java | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'java/com/android/dialer/calllog/database/contract/AnnotatedCallLogContract.java') diff --git a/java/com/android/dialer/calllog/database/contract/AnnotatedCallLogContract.java b/java/com/android/dialer/calllog/database/contract/AnnotatedCallLogContract.java index 4f26f0cc9..d3318d125 100644 --- a/java/com/android/dialer/calllog/database/contract/AnnotatedCallLogContract.java +++ b/java/com/android/dialer/calllog/database/contract/AnnotatedCallLogContract.java @@ -211,11 +211,16 @@ public class AnnotatedCallLogContract { public static final class AnnotatedCallLog implements CommonColumns { public static final String TABLE = "AnnotatedCallLog"; + public static final String DISTINCT_PHONE_NUMBERS = "DistinctPhoneNumbers"; /** The content URI for this table. */ public static final Uri CONTENT_URI = Uri.withAppendedPath(AnnotatedCallLogContract.CONTENT_URI, TABLE); + /** Content URI for selecting the distinct phone numbers from the AnnotatedCallLog. */ + public static final Uri DISTINCT_NUMBERS_CONTENT_URI = + Uri.withAppendedPath(AnnotatedCallLogContract.CONTENT_URI, DISTINCT_PHONE_NUMBERS); + /** The MIME type of a {@link android.content.ContentProvider#getType(Uri)} single entry. */ public static final String CONTENT_ITEM_TYPE = "vnd.android.cursor.item/annotated_call_log"; -- cgit v1.2.3