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
diff --git a/src/com/android/dialer/service/CachedNumberLookupService.java b/src/com/android/dialer/service/CachedNumberLookupService.java
index a3782f1..e91d458 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 @@
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);