History log of /frameworks/base/core/java/android/hardware/camera2/utils/CloseableLock.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
2cdfa261f44182292d07b7b3b1e9fce8376e4df5 11-Jul-2014 Ruben Brunk <rubenbrunk@google.com> camera2: Performance potpourri.

Bug: 16208403
Bug: 15116722

Fixes many of the performance issues in the Camera2 API and
LEGACY mode CPU path, including:
- Only call getParameters/setParameters when the request has changed.
- Cache Request/Result objects.
- Cache object hashes for long-lived CameraMetadata, TypeReference,
and Key objects with frequently used hash methods.
- Switch to Command pattern instead of repeated if/equals calls.
in frequently hit CameraMetadata get/set methods.
- Move string construction for logging behind flags to avoid extra
StringBuilder calls in frequently acquired lock methods.
- Cache results from frequently used JNI calls in object Builders.

Change-Id: I77bc4a023d4fe8bc46efcf771ff18ee268dcb9a9
/frameworks/base/core/java/android/hardware/camera2/utils/CloseableLock.java
49b2b135105e5ca5dc9547f4c6de473bebad647d 19-Jun-2014 Igor Murashkin <iam@google.com> camera2: Fix deadlocks in shim #close and make #testInvalidCapture pass

* Also fixes configureOutputs to allow it to unconfigure
* Adds IAE checks in a few spots to validate surfaces aren't null

Bug: 15116722
Change-Id: I9ec88bccb3600eb12747d84436ead27952e87646
/frameworks/base/core/java/android/hardware/camera2/utils/CloseableLock.java