diff options
author | Daisuke Miyakawa <dmiyakawa@google.com> | 2012-04-17 08:52:46 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2012-04-17 08:52:46 -0700 |
commit | 8334679be1a9defb9d52217542ec0a1389c9fcae (patch) | |
tree | 9e83eac7598a941517017536b5a3e522514370ee /telephony | |
parent | cf6960ed153e5e6342156e87155eb6f286155b63 (diff) | |
parent | 265974803a01b6a461a94f984bb6b1e5f1f48496 (diff) | |
download | frameworks_base-8334679be1a9defb9d52217542ec0a1389c9fcae.zip frameworks_base-8334679be1a9defb9d52217542ec0a1389c9fcae.tar.gz frameworks_base-8334679be1a9defb9d52217542ec0a1389c9fcae.tar.bz2 |
Merge "Introduce cachedPhotoIcon for notification's large icon"
Diffstat (limited to 'telephony')
-rw-r--r-- | telephony/java/com/android/internal/telephony/CallerInfo.java | 28 |
1 files changed, 26 insertions, 2 deletions
diff --git a/telephony/java/com/android/internal/telephony/CallerInfo.java b/telephony/java/com/android/internal/telephony/CallerInfo.java index 5d1f758..b1a5872 100644 --- a/telephony/java/com/android/internal/telephony/CallerInfo.java +++ b/telephony/java/com/android/internal/telephony/CallerInfo.java @@ -18,6 +18,7 @@ package com.android.internal.telephony; import android.content.Context; import android.database.Cursor; +import android.graphics.Bitmap; import android.graphics.drawable.Drawable; import android.location.CountryDetector; import android.net.Uri; @@ -107,10 +108,33 @@ public class CallerInfo { /** * Drawable representing the caller image. This is essentially * a cache for the image data tied into the connection / - * callerinfo object. The isCachedPhotoCurrent flag indicates - * if the image data needs to be reloaded. + * callerinfo object. + * + * This might be a high resolution picture which is more suitable + * for full-screen image view than for smaller icons used in some + * kinds of notifications. + * + * The {@link #isCachedPhotoCurrent} flag indicates if the image + * data needs to be reloaded. */ public Drawable cachedPhoto; + /** + * Bitmap representing the caller image which has possibly lower + * resolution than {@link #cachedPhoto} and thus more suitable for + * icons (like notification icons). + * + * In usual cases this is just down-scaled image of {@link #cachedPhoto}. + * If the down-scaling fails, this will just become null. + * + * The {@link #isCachedPhotoCurrent} flag indicates if the image + * data needs to be reloaded. + */ + public Bitmap cachedPhotoIcon; + /** + * Boolean which indicates if {@link #cachedPhoto} and + * {@link #cachedPhotoIcon} is fresh enough. If it is false, + * those images aren't pointing to valid objects. + */ public boolean isCachedPhotoCurrent; private boolean mIsEmergency; |