History log of /packages/apps/Camera2/src/com/android/camera/session/CaptureSessionManager.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
57bcd92f39d85427102f30be2c749c4a7bd4be96 01-Aug-2014 Sascha Haeberling <haeberling@google.com> [OC] Refactoring the session API before intgrating GCam into OneCamera

Bug: 16654225

Change-Id: I3fe6f46847ed6424310a81722c93c63be8b807a3
/packages/apps/Camera2/src/com/android/camera/session/CaptureSessionManager.java
adde93f26f39cd856fdf749c83d29f9022a310e1 01-Apr-2014 Sascha Haeberling <haeberling@google.com> Re-add ongoing session when Activity is restarted.

Bug: 13637563

Change-Id: I0fd9a521479d8805f8c1d82b8f930a23d16b4217
/packages/apps/Camera2/src/com/android/camera/session/CaptureSessionManager.java
cbd058a6e3cd7a9b254c51e3db4d4aef2d31579f 25-Mar-2014 Carlos Hernandez <chernand@google.com> Implement callbacks for setProgressMessage

Change-Id: Id958d39c91ba3371d6b52b8f6005cc533ca38b45
/packages/apps/Camera2/src/com/android/camera/session/CaptureSessionManager.java
cc79da28315aa4cb346e06346df5e379272d5c92 21-Mar-2014 Seth Raphael <magicseth@google.com> Avoid race condition when Sessions are finished

Bug: 13550276
Change-Id: I813f601a54708cd291cb0524c7b63724bd9c9fb8
/packages/apps/Camera2/src/com/android/camera/session/CaptureSessionManager.java
571a8c389798bd3f01429f6be34cd3e606ab34df 13-Mar-2014 Angus Kong <shkong@google.com> Refactor data model.

bug:13176987
bug:13410244

This refactor is to make the relationship between Controller, Model and View
clearer. Now controller (CameraActivity in our case) takes the full
responsibility to add/remove data. The model (CameraDataAdapter, LocalData and
its subclasses) is only responsible to store the data with correct types and
data structures. The view (Filmstrip) is a totally passive component who takes
care of how the data is presented and define how the user can interactive with
it.

The session API should not be exposed to the filmstrip MVC architecture and
instead we should make them as independent as possible. The controller should
maintain the logics of how to interact between these components.

Major changes in this CL:
1. ImageData.getContentUri() -> getUri(). The Uri is no longer a content Uri.
2. LocalDataAdapter: addNewSession() and finishSession() removed. We don't
assume the session concept in data adapters anymore.
3. LocalDataAdapter: addPhotoData() removed.
4. LocalDataAdapter: addData() added (original private in CameraDataAdapter)
5. LocalDataAdapter.Listener: onNewDataAdded() removed (since it's actually
triggered by the caller who is adding the data.)

Session API change:
CaptureSession.onPreviewUpdated() is changed to onPreviewAvailable. The module
now should decide the timing to notify the availability of the preview through
it.
CaptureSession.updatePreview(String path) is added. Not all the module can have
a preview when the session is created. Panorama/PhotoSphere creates the preview
after a background processing. The preview is stored as a file and should be
update to the internal preview storage through CaptureSession.updatePreview().

Change-Id: Id73c8f289bd4b3c13149da1b72c99fc6bab5849e
/packages/apps/Camera2/src/com/android/camera/session/CaptureSessionManager.java
597c1a093f840af3c42e00af05da01ef124dc846 06-Mar-2014 Sascha Haeberling <haeberling@google.com> Support for capture session errors.

Bug: 13026663

Change-Id: I3713440483aa4732f94aff9eaff2fc34a04c0427
/packages/apps/Camera2/src/com/android/camera/session/CaptureSessionManager.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/session/CaptureSessionManager.java
a86b048709342fc53cee92aa047a15a22462c71c 23-Jan-2014 Sascha Haeberling <haeberling@google.com> Adds an API for temporary session storage.

Bug: 12064183

This is required so that we can have all modules that have sessions
use the same logic for creating and deleting them.

Change-Id: I20591310d6b4534e564ab60608049eec87f823f9
/packages/apps/Camera2/src/com/android/camera/session/CaptureSessionManager.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/session/CaptureSessionManager.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/session/CaptureSessionManager.java