From 47410b07d070db44ea897a1fdba7d584bc157881 Mon Sep 17 00:00:00 2001 From: Yorke Lee Date: Mon, 11 May 2015 17:47:00 -0700 Subject: Save CNAP in call history If the call contains necessary CNAP information, try to save it into the CachedNumberLookupService. Move the various source type constants into AOSP dialer. Bug: 10121624 Change-Id: Ic1911b8ef5556dca2a9855992f1857da5edbf6ed --- src/com/android/dialer/service/CachedNumberLookupService.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/com/android/dialer/service') diff --git a/src/com/android/dialer/service/CachedNumberLookupService.java b/src/com/android/dialer/service/CachedNumberLookupService.java index a3782f162..e91d458ce 100644 --- a/src/com/android/dialer/service/CachedNumberLookupService.java +++ b/src/com/android/dialer/service/CachedNumberLookupService.java @@ -1,6 +1,5 @@ package com.android.dialer.service; -import android.content.ContentValues; import android.content.Context; import com.android.dialer.calllog.ContactInfo; @@ -8,8 +7,15 @@ import com.android.dialer.calllog.ContactInfo; public interface CachedNumberLookupService { public interface CachedContactInfo { + 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 static final int SOURCE_TYPE_CNAP = 5; + public ContactInfo getContactInfo(); + public void setSource(int sourceType, String name, long directoryId); public void setDirectorySource(String name, long directoryId); public void setExtendedSource(String name, long directoryId); public void setLookupKey(String lookupKey); -- cgit v1.2.3