History log of /packages/apps/Mms/src/com/android/mms/model/ImageModel.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
ab845dee6565a8dfc384186bc8f2e801a2b087e1 07-Jun-2014 Ye Wen <ywen@google.com> Use unified log tag for Mms app

Change-Id: Icec182674c008c2b9d01a6010a2aafc8111b2b7e
/packages/apps/Mms/src/com/android/mms/model/ImageModel.java
469db72fcf219fd4c60bc9b01c728bdc3e866d40 23-Oct-2012 Tom Taylor <tomtaylor@google.com> Crash trying to save a draft with a picture from the gallery

Bug 7374081

Change the persister api's to accept a HashMap of opened inputStreams
for the parts. The inputStreams are opened on the UI thread, but the
actual persisting takes place on a non-UI thread. We only pre-open the
inputStreams in onStop, before we lose the gallery permission.

Change-Id: I6eaa8a2635201164a80589e7d30b24a6dd60fcc7
/packages/apps/Mms/src/com/android/mms/model/ImageModel.java
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/model/ImageModel.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/model/ImageModel.java
0ecc26df09777835cfa8dbfd3c48ca7b7fa7f011 27-Mar-2012 Tom Taylor <tomtaylor@google.com> Use the new DRM scheme in MMS

Bug 5158047

Change-Id: Id5d0ed03816b70c9f06b98af982cd5afb9af38d5
/packages/apps/Mms/src/com/android/mms/model/ImageModel.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/model/ImageModel.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/model/ImageModel.java
37880013315d8b7abefd9081b2c36b060083d6fa 27-Jan-2012 Tom Taylor <tomtaylor@google.com> The pictures shown while playing a slide-show are very small

Bug 5180652
The slideshow pictures were showing thumbnails. Now show larger images.
Not perfect, but better than before.

Change-Id: I38222676e50923a8c69ffea2b323725e384d490d
/packages/apps/Mms/src/com/android/mms/model/ImageModel.java
37260f1a28619edf1bde204eb1bc46e9e4a5b282 25-Oct-2011 Tom Taylor <tomtaylor@google.com> MMS attachment over 1.2MB

Bug 5504281
Sometimes the Messaging app will attempt to send a mms message that is
over the size limit because the message picture attachments don't get resized.
This can happen when the code attempts to read the input stream's
length and gets back zero. A shortcut in resize sees that the len of
zero is less than the targeted size for the picture and slkips the
resize step.

Change-Id: I443ef9a537010b1c685f20760662398cfcfa8e48
/packages/apps/Mms/src/com/android/mms/model/ImageModel.java
bbc5b8d0076b0cdae851bfec636a854ef77bd6ce 13-Oct-2011 Todor Kalaydjiev <todor@google.com> Fix sending non-JPEG image attachments in MMS

b/5407752

Change-Id: If3b9581e825ec9e6d684787cef213b898a8de7c7
/packages/apps/Mms/src/com/android/mms/model/ImageModel.java
1009d4bf5ee9fd1f2523e530828de5babb78eb19 04-Oct-2011 Todor Kalaydjiev <todor@google.com> Don't resize images for MMS unless it's necessary.

This saves the decode/compress/save-to-file steps.

Change-Id: I702f71ce9f613118ec7ae1e69418d8df2fd10f35
/packages/apps/Mms/src/com/android/mms/model/ImageModel.java
150c4179995cc0a75f934ef194372f9295957ca2 08-Apr-2011 Joe Onorato <joeo@google.com> Remove the deprecated things from Config.java. These havent been working since before 1.0.

Change-Id: I7b60931012a68116b516acc8af8a7a8fdeab97c3
/packages/apps/Mms/src/com/android/mms/model/ImageModel.java
817d4638f2dcd1ae3d95ce00bb2b91cb1f80a6c4 02-Feb-2011 Jean-Baptiste Queru <jbq@google.com> am c46f117c: am b48902c3: Merge from open-source gingerbread

* commit 'c46f117c845848d19e43eeecbed124b9e5882c00':
The problem is that attached files(ex. Image, Movie) on MMS are not displayed among other devices.
b02d890bd31dbf4c91390652a35282babec3b889 31-Jan-2011 Sang-Jun Park <sj2202.park@samsung.com> The problem is that attached files(ex. Image, Movie) on MMS are not displayed among other devices.

- Symptom
1. Attached Movie, Image files are not displayed
2. Attached MP4 file is not displayed : NexusS to NexusOne
3. Attached 3GP files can't be played : NexusS to A877/A797
4. Attached JPG file is not shown : NexusS to A877
5. Attached JPG file is not shown : Iphone to NexusS

Change-Id: I443bbcca6b6a678cd816a3d0c2bf72f544d8fd56
Signed-off-by: Sang-Jun Park <sj2202.park@samsung.com>
/packages/apps/Mms/src/com/android/mms/model/ImageModel.java
4734e1c003d520777a150e66b1c3ba592751de7a 17-Sep-2010 Tom Taylor <tomtaylor@google.com> am 577fb121: am 3b13ad40: Fix multi-image attachment

Merge commit '577fb12193a633a59177588145a0ac5e5dd81d99'

* commit '577fb12193a633a59177588145a0ac5e5dd81d99':
Fix multi-image attachment
3b13ad40393f44e16bc65c8df5abc76f1c6fc754 17-Sep-2010 Tom Taylor <tomtaylor@google.com> Fix multi-image attachment

Handle the case where building a PDU part returns null. Tested by
forcing this code path to occur. The user sees a toast and the Mms message
is put into the error state (with visible error icon).
Bug 2938634

Change-Id: I8043fce21080f3b8073aed03b7f194406acf4768
/packages/apps/Mms/src/com/android/mms/model/ImageModel.java
574c33bcccbb888d8126d444da330dc57ea7fc2b 22-May-2010 Tom Taylor <tomtaylor@google.com> Fix ANR

Move debug function of writing out hprof data under a debug flag.
Bug 2683746.

Change-Id: I6a313484b66801913be1236f1e7eae5fe15b3c91
/packages/apps/Mms/src/com/android/mms/model/ImageModel.java
f7e8281a223af6228e6399055a6197a1edd9bc3a 09-Mar-2010 Tom Taylor <tomtaylor@google.com> Remove mms-common

Get rid of the mms-common library and move the mms files back into the
framework where they originally came from.

Change-Id: I8ce2b0a2a3cfc6b7da13ce0e791173c09dd8f0f5
/packages/apps/Mms/src/com/android/mms/model/ImageModel.java
ae1f5cf2fe15970cbcdcf0188cd8733facac0e05 17-Feb-2010 Tom Taylor <tomtaylor@google.com> Don't resize image on attach

Previously, image attachments would get resized as soon as they
were added to a message. This caused a problem in that the first
picture would eat up as much space as it could, the second picture
would get the scraps, and on down the line. Now we don't resize
attachments until the message is actually sent and at that point,
give each attachment equal space to resize. However, there was one
unneeded resize going on when individually attaching a picture.
The picture would get resized down to the carrier's max h & v
resolution. With this change, we skip that extra resize and the
max h & v resolution gets taken into account on the final resize
at send time.
/packages/apps/Mms/src/com/android/mms/model/ImageModel.java
0d4645de339b4681d18198ba7451e7b8807116f9 08-Feb-2010 Tom Taylor <tomtaylor@google.com> Handle multi-image resize out-of-memory

In some cases when attaching many photos to a slideshow,
the system will run out of memory trying to resize a photo
to a smaller size. Handle that case, cancel the send, and
mark the message with an error so they can edit it and resend it.
Fixes bug 2420008.
/packages/apps/Mms/src/com/android/mms/model/ImageModel.java
fd644551e8506266aad2b76463b51b44154ed62f 29-Jan-2010 Tom Taylor <tomtaylor@google.com> Update refs now that MMS is removed

Move MMS to mms-common library. Update imports.

Change-Id: I28fa24a68c27977eba58cb62f2667596d3abe2c4
/packages/apps/Mms/src/com/android/mms/model/ImageModel.java
6be18bedb5b87dbbcdb54f37d5a0945bd0f71377 17-Dec-2009 Tom Taylor <tomtaylor@google.com> Unbundling work

This is the first step in unbundling the Mms app. Some of the changes include:
- moving some of the Mms code from the framework into the app itself.
- same with emoticons
- remove dependency on internal drawables and add local copy to mms
- some dependencies on various internal classes now moved to android-common library
/packages/apps/Mms/src/com/android/mms/model/ImageModel.java
10eed0e3020e3eb0612747fe39e0f6117222dd95 09-Dec-2009 Tom Taylor <tomtaylor@google.com> Resize pictures at send time

Before this change, picture attachments would get resized as they
were added to a message. This means the first picture could take up
to the whole message space, the second picture any remaining space, etc.
With this change, pictures aren't resized until after the user hits
send. The remaining space in a message is divided equally among all
the picture attachments and they're resized to fit within that space.
/packages/apps/Mms/src/com/android/mms/model/ImageModel.java
bb689a98bd5dcc5e4b3f0d7e102decff346dc631 08-Oct-2009 Tom Taylor <tomtaylor@google.com> Fix out-of-memory bug

When decoding a thumbnail, handle an out-of-memory exception. The
code will show an image indicating a broken thumbnail.
/packages/apps/Mms/src/com/android/mms/model/ImageModel.java
9242286c35743422051d439d7460cd0a1426899c 16-Sep-2009 Wei Huang <weih@google.com> add more logging in MMS. Try to catch an OOM error, and dump hprof data when it occurs.
/packages/apps/Mms/src/com/android/mms/model/ImageModel.java
7fa61cafe50deb74beb0819bdf52128239d50201 26-Aug-2009 Wei Huang <weih@google.com> pause music player when playing audio in MMS slideshow, and resume when MMS audio is stopped.

- more logging reorg.

- call

Intent i = new Intent(MUSIC_SERVICE_ACTION);
i.putExtra("command", "pause");
mContext.sendBroadcast(i);

to pause music player, and

Intent i = new Intent(MUSIC_SERVICE_ACTION);
i.putExtra("command", "togglepause");
mContext.sendBroadcast(i);

to resume.

Change-Id: I917310fe1e4f127e608f2acdb2c7976290746188
/packages/apps/Mms/src/com/android/mms/model/ImageModel.java
72735c62aba8fd2a9420a0f9f83d22543e3c164f 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
/packages/apps/Mms/src/com/android/mms/model/ImageModel.java
892f2c5bf965b1431ae107b602444a93f4aad4a3 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
/packages/apps/Mms/src/com/android/mms/model/ImageModel.java
0f236f55349f070ac94e12cca963847173393da8 18-Dec-2008 The Android Open Source Project <initial-contribution@android.com> Code drop from //branches/cupcake/...@124589
/packages/apps/Mms/src/com/android/mms/model/ImageModel.java
8eed706474910ccb978acda03e85d3261037da6e 21-Oct-2008 The Android Open Source Project <initial-contribution@android.com> Initial Contribution
/packages/apps/Mms/src/com/android/mms/model/ImageModel.java