diff options
Diffstat (limited to 'src/com/android/dialer/service/CachedNumberLookupService.java')
-rw-r--r-- | src/com/android/dialer/service/CachedNumberLookupService.java | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/com/android/dialer/service/CachedNumberLookupService.java b/src/com/android/dialer/service/CachedNumberLookupService.java index a08c28564..27bf58918 100644 --- a/src/com/android/dialer/service/CachedNumberLookupService.java +++ b/src/com/android/dialer/service/CachedNumberLookupService.java @@ -1,10 +1,23 @@ package com.android.dialer.service; +import android.content.ContentValues; import android.content.Context; import com.android.dialer.calllog.ContactInfo; public interface CachedNumberLookupService { + + public class CachedContactInfo extends ContactInfo { + public static final int SOURCE_TYPE_DIRECTORY = 1; + public static final int SOURCE_TYPE_EXTENDED = 2; + public static final int SOURCE_TYPE_PLACES = 3; + public static final int SOURCE_TYPE_PROFILE = 4; + + public int sourceType; + public int sourceId; + public String lookupKey; + } + /** * Perform a lookup using the cached number lookup service to return contact * information stored in the cache that corresponds to the given number. @@ -16,4 +29,6 @@ public interface CachedNumberLookupService { * not found in the cache, and null if there was an error when querying the cache. */ public ContactInfo lookupCachedContactFromNumber(Context context, String number); + + public void addContact(Context context, CachedContactInfo info); } |