History log of /packages/providers/MediaProvider/src/com/android/providers/media/MediaThumbRequest.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
cb30035faf92175bf7883e9a535904e84dab7982 10-Apr-2014 hanpengx <pengfeix.han@intel.com> Deactivate the MiniThumbFile when it is not needed.

Issue description:
Unable to use camera after deleting all files in internal storage from PC
with MTP. The toast message "Connect USB storage before using the camera"
is poped up when we launch camera after deleting all files in internal storage
from PC with MTP.

Steps to reproduce the issue:
1. Launch Camera and take a picture.
2. Connect device to PC with MTP mode.
3. Delete all files on Internal stoage from PC.
4. Launch Camera after step 3 finished.
Then we find that we are unable to use camera and the toast message is poped
up.

Root cause:
The .thumbdata3--xxxxx in /sdcard/DCIM/.thumbnails/ is opened in
android.process.media process when we take picture in step 1. But the file is
never closed. So camera cannot create the directories(/sdcard/DCIM/Camera)
it needs to store captured pictures because "Device busy" error.

Solution:
Deactivate the MiniThumbFile when it is not needed.

Change-Id: I0faab5ffd95c5626f7f9ef1bc02b2ae56e2eb19b
Signed-off-by: hanpengx <pengfeix.han@intel.com>
/packages/providers/MediaProvider/src/com/android/providers/media/MediaThumbRequest.java
318b67923bb9ae30177aee872f5f7f9973b900ec 16-Jun-2011 Björn Davidsson <bjorn.davidsson@sonyericsson.com> Avoid multiple extraction of thumbnails

When inserting a new memory card containing images, or taking a camera
picture, several requests for a thumbnail for the same picture are made.
At the time the requests are made, no thumbnail exists, so each of the
requests result in the full image being decoded and encoded to a
thumbnail, an operation taking about 100ms per thumbnail. Fixing this
cuts times for image thumbnails in half. Also improves Camera
shot-to-shot times.

When a thumbnail request is completed, scan the queue for identical
requests, and update those requests to avoid having to decode the same
image several times.

Change-Id: I53d720779925de882b0e2f080b0b87ec318e08a9
/packages/providers/MediaProvider/src/com/android/providers/media/MediaThumbRequest.java
bf86108d222677067674c0947e8dc2b2bc9cadc2 26-Nov-2010 John Eckerdal <john.eckerdal@sonyericsson.com> Optimize MediaThumbRequest RAM usage.

The MediaThumbRequest contains an BitmapFactory.Options instance
that is unused and a Random instance.

The BitmapFactory.Options instance can be removed and the Random
instance can be made static so that the object is shared among
the MediaThumbRequests. Since Random already is synchronized this
should mean no performance degrade and if the phone contains many
indexable objects the number of objects allocated goes down a lot.

Change-Id: I886948dc01baca9112cd345d939b63d3755ad235
/packages/providers/MediaProvider/src/com/android/providers/media/MediaThumbRequest.java
cf85fbdb58b153eaa1876449dba0bff5ae66bea5 28-Apr-2010 Ray Chen <raychen@google.com> Fix bug# 2635491: Catch IOException while checking existence of MINI_THUMBNAIL.
http://2635491

Change-Id: I2b39c675f7798711d10c0faea8175124f7beea84
/packages/providers/MediaProvider/src/com/android/providers/media/MediaThumbRequest.java
54cb8ab64f5cbd33257a926a6a2b588b3106b115 13-Apr-2010 Ray Chen <raychen@google.com> Fix issue#2586129 android.provider.cts.MediaStore_Images_ThumbnailsTest#testQueryExternalMiniThumbnails is failing

Change-Id: I82468aec9163ad88214630443ce5b62309ea5a95
/packages/providers/MediaProvider/src/com/android/providers/media/MediaThumbRequest.java
7a7691e1208a6d39d54de9b520a1bbf1c3c911f2 24-Mar-2010 Ray Chen <raychen@google.com> Add video cache and refactor the code.

Change-Id: If33e9a90c4d05e9fed6aba0657c0a12ab2103aed
http://b/2507443
/packages/providers/MediaProvider/src/com/android/providers/media/MediaThumbRequest.java
5fed35486ec1ab7adcbe03cc9c0000245523a7f8 10-Feb-2010 Ray Chen <raychen@google.com> Revise MediaThumbRequest due to ThumbnailUtils API refactoring.
/packages/providers/MediaProvider/src/com/android/providers/media/MediaThumbRequest.java
ee8598a7e70b10fbcb1c43ade5cf838c6172fe57 28-Jan-2010 Ray Chen <raychen@google.com> Unbundle camera: Unhide ThumbnailUtil and rename it to ThumbnailUtils.
/packages/providers/MediaProvider/src/com/android/providers/media/MediaThumbRequest.java
9299727714ad25618a1a77eeca7f1e9c72f1e510 09-Oct-2009 Ray Chen <raychen@google.com> Add magic parameter to MediaThumbRequest.
/packages/providers/MediaProvider/src/com/android/providers/media/MediaThumbRequest.java
e7219b83c17d75151746d6cad1b61d447910ae92 05-Oct-2009 Ray Chen <raychen@google.com> Add group id to cancel MediaThumbRequest.
/packages/providers/MediaProvider/src/com/android/providers/media/MediaThumbRequest.java
8078c91873489e34bfddb0d3c7e4f3589d3e39a2 05-Oct-2009 Ray Chen <raychen@google.com> Fix the issue that video thumbnail can't be stored in MiniThumbFile.
/packages/providers/MediaProvider/src/com/android/providers/media/MediaThumbRequest.java
1373bc6df8faed91034ccbd785474cdc84bc1fd6 30-Sep-2009 Ray Chen <raychen@google.com> Move createThumbnailFromExif and createThumbnailFromUri to ThumbnailUtil.
/packages/providers/MediaProvider/src/com/android/providers/media/MediaThumbRequest.java
20434e032e498b716f87cce2f23dd646819218bf 30-Sep-2009 Ray Chen <raychen@google.com> Add cancelThumbnailRequest API.
/packages/providers/MediaProvider/src/com/android/providers/media/MediaThumbRequest.java
d9cbf922a0669212d7c9390117c0eac3148070ff 29-Sep-2009 Chih-Chung Chang <chihchung@google.com> Increase thumbnail quality.
/packages/providers/MediaProvider/src/com/android/providers/media/MediaThumbRequest.java
4d96d72ea42c2ec41a891f65623270473ae8eebd 26-Sep-2009 Ray Chen <raychen@google.com> Adjust getThumbnail's priority to HIGH to utilize priority queue, and check original file exists before we generate thumbnails.
/packages/providers/MediaProvider/src/com/android/providers/media/MediaThumbRequest.java
01a6f2f96c5b483f5281f6d3066380a129c06021 24-Sep-2009 Ray Chen <raychen@google.com> Avoid duplicate thumbnail requests and fix a thumbnail uri issue.
/packages/providers/MediaProvider/src/com/android/providers/media/MediaThumbRequest.java
b386112a8c5e5bd2d3d77e5398bea26b2172dffc 08-Sep-2009 Ray Chen <raychen@google.com> Thumbnail generation queue and runtime to support new thumbnail API.
/packages/providers/MediaProvider/src/com/android/providers/media/MediaThumbRequest.java