History log of /packages/apps/Camera2/src/com/android/camera/async/FilteredCallback.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
81308a22b0f64c6667f6c23adee9da520415bcb6 03-Mar-2015 Puneet Lall <puneetl@google.com> Filter out duplicate calls to ready state listener

* Adds a FilteredCallback to filter out callback invocations with
duplicate values.
* Simplifies ready-state calculations.

Bug: 19535852
Change-Id: I8376c13f24ff7a4f6f2d347f363746c2a6466601
/packages/apps/Camera2/src/com/android/camera/async/FilteredCallback.java
e606c4d68b74293e7d7725aecbaa9c915751cd43 04-Feb-2015 Puneet Lall <puneetl@google.com> Change/simplify Observable interface

Previously, the Observable interface allowed registering callbacks to
receive each update to a value, in a thread-safe way. However, this adds
unnecessary complexity and greatly complicates the implementation of
callbacks to track the camera ready-state.

Replacing Callback<T> with Runnables, which can simply call
Observable.get() to retrieve the latest value makes implementing
ready-state significantly simpler.

Bug: 18934542
Change-Id: I00d512f3c380148c0e9cb52352b2f304494e5e5a
/packages/apps/Camera2/src/com/android/camera/async/FilteredCallback.java
e919a48fb40b9d6c698a495acf40adbc0e320431 22-Jan-2015 Puneet Lall <puneetl@google.com> Enable tracking of image availability

To allow updating the UI whenever image reader space is exhausted, we
must be able to track whether or not non-zsl images can be allocated at
any given time. This CL implements this for the general case of both
single images as well as for finite bursts.

Bug: 18934542

Change-Id: Ia8c6e03f631cf47e4385cb8da1e3f6d74e7901a2
/packages/apps/Camera2/src/com/android/camera/async/FilteredCallback.java