History log of /packages/apps/Camera/src/com/android/camera/Storage.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
20523f6b162324ac642358b8802fc12a664aa73e 17-Oct-2012 Wu-cheng Li <wuchengli@google.com> Panorama should add Exif before adding the image to media store.

Otherwise, wrong image size is written to the media store. Also,
sometimes gallery cannot generate a thumbnail.

bug:7323502

Change-Id: I742b97dcce24529ee34c475ee5a08e0b00be83d8
/packages/apps/Camera/src/com/android/camera/Storage.java
215c38b391c506948ee6113283c90fedc7eeefba 22-Jun-2012 Owen Lin <owenlin@google.com> Use MeidaColumns.WIDTH only when it is available.

bug: 6698720
Change-Id: Ie90f506f048fe37b6c39de9d4720d69d0785efb3
/packages/apps/Camera/src/com/android/camera/Storage.java
e8c7f9b282971cfefbbed0229af2602558bd3905 22-May-2012 Chih-Chung Chang <chihchung@google.com> Rename the image and video file to the final name when data is complete.

This avoids other apps reading incomplete data when we are still writing
data into the file.

Bug: 6496843
Change-Id: I92210095db791ab4e7a98c0901f87d33311355b4
/packages/apps/Camera/src/com/android/camera/Storage.java
a3d2bab37e9c008e3b4c7e4ba93ba1fc40bd4b90 18-May-2012 Wu-cheng Li <wuchengli@google.com> Fix incorrect comments about orientation.

bug:6515548
Change-Id: I88d81f844f92464c8175f1ce64c608d13cda0b35
/packages/apps/Camera/src/com/android/camera/Storage.java
3839c28061f5513745b6f4f060586610089ce5bb 14-May-2012 Chih-Chung Chang <chihchung@google.com> Put width/height information into MediaProvider earlier.

Also reduce the capture animation time.

Bug: 6452217

Change-Id: Iba32610611d2eacc1e1b050fbf0e5b35bc0d01ea
/packages/apps/Camera/src/com/android/camera/Storage.java
cd511956fe9b800b1abcc02934857f3f766e6367 10-May-2012 Chih-Chung Chang <chihchung@google.com> Insert an image or video entry into MediaProvier earlier.

So when the user switches to Gallery, it is already loaded.

Bug: 6452217
Change-Id: I975e3ac45b2313faed094803bf61a12dd251e1a6
/packages/apps/Camera/src/com/android/camera/Storage.java
b130b9af898f597eb7506dd2f29f0961b858176d 19-Apr-2012 Wu-cheng Li <wuchengli@google.com> Fix incorrect width and height written to database.

The width and height of the actual jpeg may be opposite
to the width and height from Parameters.getPictureSize.
getRotation and exif orientation should be considered.

bug:6364158

Change-Id: I87769815a91093d8842c6e18ed7b2db9ff29b46b
/packages/apps/Camera/src/com/android/camera/Storage.java
4edaf0cbbb5d9cfeae786b6fd0560240947f6585 11-Feb-2012 Angus Kong <shkong@google.com> Refactor storage availability codes.

Fields and methods related to low storage hint is now moved to ActivityBase since both Camera and
Video Camera need to check the storage availability. The estimated number of available shots is not
needed and removed.

Change-Id: I3de6620851a435de430584b619ecd0c9a2d8901c
/packages/apps/Camera/src/com/android/camera/Storage.java
913f3784d368a5e11fee5d5db2c355ef832685da 03-Feb-2012 Wu-cheng Li <wuchengli@google.com> Fix warnings and remove unused code.

Change-Id: I1039edbc5a9990d44f5a629a18066805f370775e
/packages/apps/Camera/src/com/android/camera/Storage.java
e0bbb93f6a598206ecd6e09150d51eae64bd3507 12-Nov-2011 Wei-Ta Chen <weita@google.com> Set the orientation of a panorama image.

The panorama image returned from the panorama library is oriented based
on the natural orientation of the camera.
We set an orientation in its EXIF header, so that the image can be
displayed correctly. The orientation is calculated by compensating the
device orientation and the camera orientation respective to the natural
orientation of the device.

Bug: 5603313
Change-Id: Id6907cb08a7ff77e44736f3c3cd1503e7a68d783
/packages/apps/Camera/src/com/android/camera/Storage.java
80efb2ecfb09db1ac0915b13a91165d06bfbee74 26-Oct-2011 Chih-Chung Chang <chihchung@google.com> Fix 5489985: Handle the exception when the external volume has not been added to MediaProvider.

Change-Id: I5bb9e59d5b1dae4c3980f624d38194fbb514d7fa
/packages/apps/Camera/src/com/android/camera/Storage.java
a5edbe951a507a066f7601204e633dbd2dff3224 14-Oct-2011 Chih-yu Huang <akahuang@google.com> Change low storage threshold to 50MB.

bug:5334604
Change-Id: I410bcf7322c71d1ca25d3de36d574616411b5533
/packages/apps/Camera/src/com/android/camera/Storage.java
ea312297ff6132bbafed99b90a72e4858b888fa4 28-Sep-2011 Angus Kong <shkong@google.com> Add dimension attributes to MediaStore.

1. Width/height of still images added.
2. Resolution of videos added.

bug:5376821
Change-Id: I809743ae777e6bbc01e3a86651e7cd6489a81c86
/packages/apps/Camera/src/com/android/camera/Storage.java
595d33f1308089ea4e656e247548a71b218d9fa5 12-Sep-2011 Wu-cheng Li <wuchengli@google.com> Do not take the picture if the storage is not ready.

+Add debug messages because UnsupportedOperationException
still happends when Environment.getExternalStorageState
is Environment.MEDIA_MOUNTED.

bug:5293390
Change-Id: Id00a0887f653fe29e09bbb7511ea3fcc833eee71
/packages/apps/Camera/src/com/android/camera/Storage.java
bdc7e2b461064b25b7f17b0941077fc97653093d 15-Jun-2011 Wei-Ta Chen <weita@google.com> Check in the Mosaic Stitching codes.

1. Camera setup moved to activity level.
2. Fixed releasing and acquiring camera process.
3. Unused .xml files removed.
4. Style issues fixed.

Bug: 5031489
Change-Id: Ifd271588ca2168398e17f204f065681ead2d8f2f
/packages/apps/Camera/src/com/android/camera/Storage.java
8ab2b624d51b3b8254ece98c46a7e22a6fb5d4aa 13-May-2011 Wu-cheng Li <wuchengli@google.com> Refactor RotateImageView and thumbnail.

Change-Id: Ic435b7cd97ba775ec8f4b8342a1d4d25e2a5120c
/packages/apps/Camera/src/com/android/camera/Storage.java
07713606e48802a2516c34c9bb9df4fc7f77553f 17-Jan-2011 Wu-cheng Li <wuchengli@google.com> Correct the path of 100ANDRO.

bug:3361763
Change-Id: Ieed266fb498d41ee8dc5933d2fe8947037e09852
/packages/apps/Camera/src/com/android/camera/Storage.java
0aaed976b603c56006213d196e6b0703285dafd5 29-Dec-2010 Chia-chi Yeh <chiachi@android.com> Refactoring: Remove the dependency to ImageManager.

Also polish Storage.addImage() a little bit.

Change-Id: I1001f2aeab031e39510ac513eafe85581e164b95
/packages/apps/Camera/src/com/android/camera/Storage.java
37cffb8467d1ccca719a7847582d04da36c5bc6f 27-Dec-2010 Chia-chi Yeh <chiachi@android.com> Refactoring: Remove the dependency of ExifInterface.

Since we only need the orientation information from Exif, it is
fairly simple to implement one by ourselves. This will avoid
disk access and JNI overhead, and save some CPU time since other
tags are not touched.

Change-Id: I962e2f19ec88a082bfd8eb438e255bffad2a5365
/packages/apps/Camera/src/com/android/camera/Storage.java
d1ec4e36667086836cd243bee38aded5e1fd88b1 22-Dec-2010 Chia-chi Yeh <chiachi@android.com> Refactoring: Reduce the dependency to the old gallery code.

Most of the functionalities will be implemented in Storage class.

Change-Id: Ibe0185978de511ead4cd91870070bdd2abce1e00
/packages/apps/Camera/src/com/android/camera/Storage.java
721d2d2a963799fad4bda9bb4b278c24fc469303 22-Dec-2010 Chia-chi Yeh <chiachi@android.com> Check and create directories in Storage.getAvailableSpace().

Since creating directories and files is not an atomic operation,
there is no way to prevent MediaRecorder.prepare() from throwing
exceptions. Now we let Storage.getAvailableSpace() to create the
directory and then bail out gracefully if it still fails.

Bug: 3304420
Change-Id: I98f1975b90250d63b60b36950e5813528862cc98
/packages/apps/Camera/src/com/android/camera/Storage.java
c8a7fc07e3b905a723e753b0c9144de2b0343f1f 20-Dec-2010 Chia-chi Yeh <chiachi@android.com> Refactoring: Extract the space calculating code into a new class.

Also fix several related bugs.

Bug: 2811896
Change-Id: I2ee31471ba7c67ab30516e85598190ab7630254d
/packages/apps/Camera/src/com/android/camera/Storage.java