summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorke Lee <yorkelee@google.com>2015-05-11 17:47:00 -0700
committerYorke Lee <yorkelee@google.com>2015-05-11 17:47:00 -0700
commit47410b07d070db44ea897a1fdba7d584bc157881 (patch)
tree04340f74d390e4d35c73efe705b9643ea9081742
parent81c93829582aac6cd8717511216611f37cc9c4c5 (diff)
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
-rw-r--r--src/com/android/dialer/service/CachedNumberLookupService.java8
1 files changed, 7 insertions, 1 deletions
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);