History log of /packages/apps/Camera2/src/com/android/camera/Storage.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
9c6f9b8085c2752758e0f5633958fd17cfc9307e 13-Apr-2015 Sascha Haeberling <haeberling@google.com> Add proper support for canceling sessions.

Bug: 19384186

Change-Id: I45b0262947dcd4257d54e706f3cffc69b6bd4bc9
/packages/apps/Camera2/src/com/android/camera/Storage.java
4361352633d1e106c1574c02ddd27c8891c5ee78 25-Feb-2015 Shashi Shekhar <shashishekhar@google.com> Change interface of BurstMediaItem to provide filepath.

- Instead of passing a byte array, use a file path for the burst media
item.
- Change the save operation in Stack saver to simply rename the image.
- The burst controller is now responsible for managing captured images and
implementations should free the captured images as soon as possible.

Change-Id: I6762972c68865d6ab15bd6fa20b60fb275f103f1
/packages/apps/Camera2/src/com/android/camera/Storage.java
734122e8fe6c621a8510043839f05a0adff4c3a4 06-Feb-2015 zafir <zafir@google.com> Adding reporting functionality using Feedback API for PhotoModule and CaptureModule when captured pictures don't save to the device.

Bug: 19231841
Change-Id: I7d66db1e4c273dc7ec082f40a80b349bd91a7e8b
/packages/apps/Camera2/src/com/android/camera/Storage.java
995083b53be47e1e27133e403da0b63a03d07ea7 20-Feb-2015 Alan Newberger <alann@google.com> Reduce memory footprint of session bitmap cache.

Convert storage bitmap cache to an LRU cache to have a fixed
upper bound on usage. Evict bitmaps after a session is complete.

Bug: 19124117
Change-Id: I4a5dd9f15c3b986601c4a92477edf9346f190de1
/packages/apps/Camera2/src/com/android/camera/Storage.java
abf1e994d236a65180eecfcb6997003ab12795df 21-Jan-2015 Sascha Haeberling <haeberling@google.com> CaptureSession can now be started with an empty placeholder.

Bug: 19014774
Bug: 18853119
Bug: 18979823

Being able to start with an empty placeholder and then updating that
placeholder allows us to add a visual entry to the filmstrip early on.

This avoid jarring effects where after taking many apid fire shots and
going to filmstrip, the entries are appearing one after the other.
This was caused by sessions only getting started when the thumbnail was
produced, which can take a while when multiple shots are in the
encoding pipeline.

Also contains changes that make CaptureSession testable.

Change-Id: I3d44704099be81524f8e165f3f09de6eebfc147b
/packages/apps/Camera2/src/com/android/camera/Storage.java
8ee16b8a323ffa20e6fb1270d498ec445f64defc 18-Dec-2014 Paul Rohde <codelogic@google.com> Refactor the filmstrip backing data.

- Remove unused fields and code.
- Rename classes and methods to be consistent with usage
- Make data more immutable
- Add Location and Metadata classes for typed data access.
- Use Date instead of long for DateTime representations.
- Filmstrip prefix for filmstrip specific code.
- Cleaner Glide implementations.
- Initialize Glide bitmap pool.
- Eagerly load large image sizes when scroll stops.

Change-Id: I3b51d42416ca076c80bf7db441d257659174b47d
/packages/apps/Camera2/src/com/android/camera/Storage.java
829afc7dfd69866beebb09052db3d228b916f352 19-Dec-2014 Sascha Haeberling <haeberling@google.com> Change placholder API to use Bitmap's instead of JPEG bytes.

Change-Id: Id6f3b1e604bee56f3372b891bc44d8716b06478d
/packages/apps/Camera2/src/com/android/camera/Storage.java
01d56038a53487a9b7989bd17c732b8919da64f1 18-Dec-2014 Paul Rohde <codelogic@google.com> Delete unused code.

Change-Id: I55e6da712199cb106781bea8a51cf98fd5ed7e31
/packages/apps/Camera2/src/com/android/camera/Storage.java
24069e7a9cc9b4f908f18a71301285ccf5e164f6 09-Dec-2014 Sascha Haeberling <haeberling@google.com> Adding stack support and hooking SmartBurst up to the new API.

Change-Id: Icc023aed65e1e31f0b808de648067b3628fff838
/packages/apps/Camera2/src/com/android/camera/Storage.java
82d592f64966766ac4e4181e08b0d2989d4ed9c3 12-Nov-2014 Shashi Shekhar <shashishekhar@google.com> Hook burst controller to the shutter button long press.

Hooks up the shutter button long press to start the burst.
Introduces a BurstManager to interact with burst.
Provides an implementation of BurstManager that listens to burst and
saves results when burst is complete.

The burst eviction handler is now installed on the ring buffer
on shutter button press and uninstalled on shutter button release.
The ring buffer is cleared before starting and after completion of the
burst.

Also provides a stub implementation of the BurstController that has a
static method which controls if burst is enabled or not.

Bug: 18332704

Change-Id: I1098937bf348af7acbf55da1a5eeb423c30fb901
/packages/apps/Camera2/src/com/android/camera/Storage.java
8aa154952b2d32776759a83dd61437313069e1c8 07-Jul-2014 Sam Judd <judds@google.com> Ensure photosphere/pano thumbs are always shown.

Bug: 16061224
Change-Id: I93f1dd8a094cd4f00d06c02c13f51ef8545aa26c
/packages/apps/Camera2/src/com/android/camera/Storage.java
c66ab6c9dee4aa8ce8eb9c2f737eae07f881b6de 27-Jun-2014 Angus Kong <shkong@google.com> Pass the real file length to MediaStore.

Bug:15115507

And also a little code clean/rearrangement.

Change-Id: I65ceec4c0489f965473c29cad684190f966b9218
/packages/apps/Camera2/src/com/android/camera/Storage.java
837d8f2687cdf53e657c03c1d01b1c5df3902442 23-May-2014 Sam Judd <judds@google.com> Include signature in cache keys for Glide.

Bug: 14625920
Change-Id: Id010bae14ac163523215e3afad712a423aad5875
/packages/apps/Camera2/src/com/android/camera/Storage.java
d3d789992f96e4598521a27f085d185044ec7cee 02-Apr-2014 Seth Raphael <magicseth@google.com> Avoid a race condition causing dup'd images.

When a session is finished, it is written to the
media store.

We now have a listener looking for new images in
the media store. If that happens to fire before
the session manager has updated the filmstrip,
the photo ends up being added twice.

Now, the listener checks to see if it is a photo
already being handled by a session

Bug: 13644124

Change-Id: I8a3c4a161ad0c326d9295f6714f6c6cbbcc6764e
/packages/apps/Camera2/src/com/android/camera/Storage.java
7acc5d51f0df785c8c314e3f17a311af49164aec 02-Apr-2014 Seth Raphael <magicseth@google.com> Fix crash related to deleted items being processed

If an item from the media store was being edited
there is a race condition where the item may be
deleted from the media store before it is finished

The resulting update to the media store cannot
find the original item, and therefore results in
0 rows being updated, which is what is desired,
as the item was deleted by the user.


Bug: 11598186
Change-Id: I1b2945f638676ccd63ab70ba201d2488df920eb3
/packages/apps/Camera2/src/com/android/camera/Storage.java
5596b4c902dcb685928b43678f428746ca5ffd08 12-Mar-2014 Angus Kong <shkong@google.com> Use debug.Log instead of android.util.Log.

1. Change to use com.android.camera.debug.Log instead of android.util.Log.
2. Add DebugCameraProxy to support more detailed debug info.
3. Add CameraErrorCallback in CameraManager.
4. Support posting to a specific handler for CameraErrorCallback.
5. Trim down some TAGs to match the framework tag length limit.
6. Remove some unused codes in CameraSettings.

bug:13324870

Change-Id: I8c20a8a0d11cfd50b6e199b03cbc88d3c4ad2ceb
/packages/apps/Camera2/src/com/android/camera/Storage.java
7cb8c791df0bcb48b2c3f2f34d7c7538c619b592 11-Mar-2014 Sascha Haeberling <haeberling@google.com> Spring cleaning. Throwing out old cruft.

Change-Id: I99952405a0036c4a518b31e543a72a84dbe07995
/packages/apps/Camera2/src/com/android/camera/Storage.java
455ba5a146484d2af4a4fb44eb50ad294834dfa0 14-Feb-2014 Seth Raphael <magicseth@google.com> Hold in-progress sessions in mem, not media store

Bug: 12457236


Change-Id: I88f7c3a822010744881b8be966adbcf2774a8115
/packages/apps/Camera2/src/com/android/camera/Storage.java
93be42a997b008fbd098ce8ad8e8bf1eb775b3f6 06-Mar-2014 Sascha Haeberling <haeberling@google.com> Change session API to support location inside a task.

Bug: 13325568

Change-Id: I72f69803ab304d198e8c74c194a36bd0820ac187
/packages/apps/Camera2/src/com/android/camera/Storage.java
14ff6c8df2924ccad083591c0fc873322c6828c0 13-Dec-2013 Sascha Haeberling <haeberling@google.com> Add placeholder image support.

Bug: 12132677

Change-Id: I2add5837f82a956901c132cacae71b193007d482
/packages/apps/Camera2/src/com/android/camera/Storage.java
a63dbb6231f06031204fe20b19a87d0440bd1661 22-Nov-2013 Sascha Haeberling <haeberling@google.com> Add a capture-session API to be used by all modules.

Bug: 11747284

This refactors the way we think of sessions. Instead of
having multiple session and notification APIs being used
by different modules, we create on central capture session
API to be used by all modules.

This also adds a first implementation of a Memory API which
tells modules about the current memory situation.

Change-Id: I7f030e32fc2f70f4007825ba7bbbdce9521a2bd9
/packages/apps/Camera2/src/com/android/camera/Storage.java
7cfcafdf8f4a439c8fa87b612616fe409979e8a4 18-Oct-2013 Ruben Brunk <rubenbrunk@google.com> gcam: Add placeholder image.

Bug: 11050749

Change-Id: I374c5919d6da0609fccd21c09775fa91894d5a24
/packages/apps/Camera2/src/com/android/camera/Storage.java
2dcc0a9dfcc23f090bbe36308f92d72f68c4f0a2 25-Sep-2013 Angus Kong <shkong@google.com> Checks for low storage in wide-angle pano mode.

1. Storage.LOW_STORAGE_THRESHOLD -> Storage.LOW_STORAGE_THRESHOLD_BYTE.
2. Checks for low storage before start preview in wide-angle pano mode.
3. Add low storage warning message for debugging when in wide-angle pano mode.

bug:10691367

Change-Id: Iffd96d322b33591c8f235fcf5680e86cf0f06571
/packages/apps/Camera2/src/com/android/camera/Storage.java
a16e7b50f3148f581439509279f242092e254309 23-Aug-2013 ztenghui <ztenghui@google.com> Add rotate support in Film Strip

Move the exif related code under src.com.android.camera.exif.
Refactor the member variables under LocalMediaData.java.
Refactor the LocalData to make sure they are immutables for thread safety.

bug:10367037
Change-Id: I0e84bcc0097925b2be749fe016984177a68e0a4d
/packages/apps/Camera2/src/com/android/camera/Storage.java
b50b5cbfbc0a67db6fc43373363b10381c9c61a3 09-Aug-2013 Angus Kong <shkong@google.com> Clean up Gallery codes.

bug:10263696

Change-Id: I3a16dba3aabe52b8103a2c591cfa39907265a263
/packages/apps/Camera2/src/com/android/camera/Storage.java
8e963a5a6016d246184ed65906f9d103e92b17e2 06-Aug-2013 Sascha Haeberling <haeberling@google.com> This removes all non-Camera stuff from Camera2.

Note: Camera2 is a clone of Gallery2 right now.
Note 2: I will bring .mk files back later.

Change-Id: Ida958654296f5ebaacb6bb0ff59d52a7c37ce6fc
/packages/apps/Camera2/src/com/android/camera/Storage.java
0d00a8907096b9970ac64f52abbd2bfc1ed751b6 26-Mar-2013 Angus Kong <shkong@google.com> Add GPSDirection tag using ExifInterface.

bug:8115825
Change-Id: Iefcbbddbb7f9fed0c386214b428d4743f67d0dd9
/packages/apps/Camera2/src/com/android/camera/Storage.java
8872c23e739de38d74f04a8c852ebb5199c905f6 29-Jan-2013 Michael Kolb <kolby@google.com> Move Camera Java/Native source into Gallery2

Change-Id: I968efe4d656e88a7760d3c0044f65b4adac2ddd1
/packages/apps/Camera2/src/com/android/camera/Storage.java