blob: 62881d2fe36ac6319aa006c09d7aac80d8e9c568 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
package com.android.dialer.service;
import android.content.ContentValues;
import android.content.Context;
import com.android.dialer.calllog.ContactInfo;
public interface CachedNumberLookupService {
public interface CachedContactInfo {
public ContactInfo getContactInfo();
public void setDirectorySource(String name, long directoryId);
public void setExtendedSource(String name, long directoryId);
public void setLookupKey(String lookupKey);
}
public CachedContactInfo buildCachedContactInfo(ContactInfo info);
/**
* Perform a lookup using the cached number lookup service to return contact
* information stored in the cache that corresponds to the given number.
*
* @param context Valid context
* @param number Phone number to lookup the cache for
* @return A {@link CachedContactInfo} containing the contact information if the phone
* number is found in the cache, {@link ContactInfo#EMPTY} if the phone number was
* not found in the cache, and null if there was an error when querying the cache.
*/
public CachedContactInfo lookupCachedContactFromNumber(Context context, String number);
public void addContact(Context context, CachedContactInfo info);
public boolean isCacheUri(String uri);
public boolean addPhoto(Context context, String number, byte[] photo);
}
|