diff options
author | Victor Chang <vichang@google.com> | 2016-02-11 23:12:16 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2016-02-11 23:12:16 +0000 |
commit | faa3cf481db67c9f7c789c65d64116883444d1ce (patch) | |
tree | 1b6c4451712d96b20681f35405fbe6b2a77fe2cd | |
parent | 9295f3a29de569817b92dc6a9805467a189b20d0 (diff) | |
parent | f436fb5f5f6fd08a21beb5fb1b27478526ba1e9c (diff) |
Cache directory photo in app storage through CachedNumberLookupService
am: f436fb5f5f
* commit 'f436fb5f5f6fd08a21beb5fb1b27478526ba1e9c':
Cache directory photo in app storage through CachedNumberLookupService
-rw-r--r-- | src/com/android/dialer/service/CachedNumberLookupService.java | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/com/android/dialer/service/CachedNumberLookupService.java b/src/com/android/dialer/service/CachedNumberLookupService.java index e91d458ce..018ada93f 100644 --- a/src/com/android/dialer/service/CachedNumberLookupService.java +++ b/src/com/android/dialer/service/CachedNumberLookupService.java @@ -1,9 +1,13 @@ package com.android.dialer.service; import android.content.Context; +import android.net.Uri; +import android.support.annotation.Nullable; import com.android.dialer.calllog.ContactInfo; +import java.io.InputStream; + public interface CachedNumberLookupService { public interface CachedContactInfo { @@ -42,7 +46,10 @@ public interface CachedNumberLookupService { public boolean isBusiness(int sourceType); public boolean canReportAsInvalid(int sourceType, String objectId); - public boolean addPhoto(Context context, String number, byte[] photo); + /** + * @return return {@link Uri} to the photo or return {@code null} when failing to add photo + */ + public @Nullable Uri addPhoto(Context context, String number, InputStream in); /** * Remove all cached phone number entries from the cache, regardless of how old they |