History log of /packages/apps/Mms/src/com/android/mms/util/ThumbnailManager.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
9c9df2773645d195dbf17df91d7cccdf5154fe84 04-Oct-2012 Tom Taylor <tomtaylor@google.com> MMS not displaying image or text after sending

Bug 7276966

When a pdu or image is canceled during loading, remove the pdu/slideshow
or image from the cache so it's fully reloaded the next time the uri is
requested.

Change-Id: I0f898821cfc1ad75115f298394a4f2497c3e4706
/packages/apps/Mms/src/com/android/mms/util/ThumbnailManager.java
ffe45d561b2d756d010face2018f411c7d69ae80 07-Sep-2012 Roger Chen <cxr514033970@gmail.com> Only delete the cache files if cache is null

No need to call getImageCacheService() to get the instance to delete
image cache files if the cache instance is null.
It will renew an instance for cache and lead to the memory leak
if renew too many instances by calling getImageCacheService()
multi-times.

Change-Id: I3ff83f49e9e8a8bc211dc26c773f3ccefc974881
Signed-off-by: Roger Chen <cxr514033970@gmail.com>
/packages/apps/Mms/src/com/android/mms/util/ThumbnailManager.java
d64419030e1fec1e751695dab3bd7236e2fb0214 02-Aug-2012 Roger Chen <cxr514033970@gmail.com> Clean and format all imported packages

Change-Id: I2e45f5ba1d56b9b17314a8b0f4c0fc1a5d8fc4d9
Signed-off-by: Roger Chen <cxr514033970@gmail.com>
/packages/apps/Mms/src/com/android/mms/util/ThumbnailManager.java
f0190cdad812e64f3f3a67931cb2d0bf0edf4b05 07-Jun-2012 Tom Taylor <tomtaylor@google.com> Crash trying to send mms on sojus

Bug 6628243

Safe fix. Check for null and return.

Change-Id: I40edada1bce586d9d10e7e8dddcef549d58215e3
/packages/apps/Mms/src/com/android/mms/util/ThumbnailManager.java
7b6fe946f2e1020432e3600c8863f72449cd4e68 16-May-2012 Tom Taylor <tomtaylor@google.com> Old thumbnail shown

Bug 6490001

DO NOT MERGE
hen a message is deleted, remove the uri from the pdu cache and clear the
thumbnail cache. When a thread is deleted, clear both the pdu and thumbnail
caches.

Change-Id: I361d48fe5430cbf9885656e2fe91ee2f566a25b9
/packages/apps/Mms/src/com/android/mms/util/ThumbnailManager.java
5d403c7cb873004bbc203536e818075a7223c0a5 03-May-2012 Tom Taylor <tomtaylor@google.com> Messaging crashed on sending

Bug 6329947

Handle the case when getBitmap fails. I tested the case when the code
returns null and it correctly shows the generic image icon.

Change-Id: I7400febcde2845a8ffdf1678f64c029daad0b8f0
/packages/apps/Mms/src/com/android/mms/util/ThumbnailManager.java
b8eae066a7ba60722de07300bf990d519f5c81d8 13-Apr-2012 Tom Taylor <tomtaylor@google.com> Wrong image shown in MMS preview

Bug 6104869

A static uri is used for capturing images from the camera. The code needs
to remove the thumbnail from the cache when capturing a new image or video.
In addition, the code needs to make sure it doesn't save thumbnails for
temp files in the on-disk thumbnail cache.

Change-Id: I646368d0f83fb7d6b204b611982a04275d4cd8bc
/packages/apps/Mms/src/com/android/mms/util/ThumbnailManager.java
ddd31c4011b4191035bdfbba05a8edb1785f71af 13-Mar-2012 Todor Kalaydjiev <todor@google.com> Give names to all background threads we create. No logic changes.

Also, fix some warnings by adding @Overrides, etc.

Change-Id: I3d7306f25fb917817359bd46b9274e04d86f4e26
/packages/apps/Mms/src/com/android/mms/util/ThumbnailManager.java
721ad07121cb9b0cd76bdbbc88494aa8f4d45a6d 06-Mar-2012 Tom Taylor <tomtaylor@google.com> Increase cache size and put downsized thumbnail images on disk

Bug 6093907

Use Gallery code to compress thumbnails and store them in the
app's cache dir (not on the sd card). Increase the size of the
in-memory thumbnail cache to 16 images. Set the pdu and image
loader threads to a lower priority than the UI thread. Don't
extract the empty image bitmap on the UI thread. In fact, don't
show the empty image bitmap until we're sure the image can't
be decoded. Don't set the image bitmap multiple times. Remove
excess color list background that slows things down. Clean up
the thumbnail loader and get rid of the width, height params.
Lower the pdu cache to 16 items to match the thumbnail cache limit.
Modify SimpleCache to support both hard and soft references and
use hard refs for the small pdu and thumbnail caches. The result
is much faster and less janky scrolling.

Change-Id: Ifc0d590d4ab27bb66d306b681082b4e95cf3d64d
/packages/apps/Mms/src/com/android/mms/util/ThumbnailManager.java
79bf6f70c54d08dc9c3481b8461a3a46a3cefb83 29-Feb-2012 Tom Taylor <tomtaylor@google.com> Jank: Strict mode violation loading video thumbnail

Bug 6083533

The video thumbnail was getting loaded on the UI thread. Now use
the ThumbnailManager to load the thumbnail in the background.

Change-Id: I4369fb1d0e4674d0365778ee0fd2379d01892b58
/packages/apps/Mms/src/com/android/mms/util/ThumbnailManager.java
07ddb5c577a10e5aa3b4442426a055f3b95d5202 28-Feb-2012 Tom Taylor <tomtaylor@google.com> Strict Mode Warning is displayed when receiving message

Bug 5928704

Instead of updating the DB in the receiver itself, start a small
service and do the update there. Also, update some copyrights for
open source.

Change-Id: I8e9dbcfe4ed23527ba267f3ad7a592e8f27960a8
/packages/apps/Mms/src/com/android/mms/util/ThumbnailManager.java
51e4621fa12400b1e79cc18b7bb0f9a83af6b622 27-Feb-2012 Tom Taylor <tomtaylor@google.com> Scroll jank when scrolling MMS images

Bug 5919625

Load PDU, slideshow, and images in the background.

Change-Id: I456ba8e0044a902af7310427f3172441f40cf215
/packages/apps/Mms/src/com/android/mms/util/ThumbnailManager.java