56fbbeab7931386af7ad9701fad9b62c170abd77 |
|
24-Sep-2014 |
Eino-Ville Talvala <etalvala@google.com> |
Camera2: Fix parallel session and device close() exception It's possible for the device to have close() called on it during the session close sequence such that the session still tries to do a stream reconfiguration on the closed device. Handle the exception thrown by this attempt. Bug: 17661765 Change-Id: Iee63c5c559405abe5c044ae251ad56edd1fb3e79
/frameworks/base/core/java/android/hardware/camera2/impl/CameraCaptureSessionImpl.java
|
51dcfd65a6742884e07182dd7d13b916fd4e0305 |
|
26-Sep-2014 |
Igor Murashkin <iam@google.com> |
camera2: Fix race conditions and deadlocks around configuration Fixes an illegal state exception that sometimes occurs during configuration. Fixes a deadlock during unconfiguration. Fixes the idle handler never being run during configuration. Bug: 17628736 Change-Id: Id2c5e416f96fcbac9c718fca3cc2cf21734bc6a4
/frameworks/base/core/java/android/hardware/camera2/impl/CameraCaptureSessionImpl.java
|
9503785393ba8999473b7a924ede2baf520e367c |
|
14-Sep-2014 |
Eino-Ville Talvala <etalvala@google.com> |
Camera2: Clean up corner case error handling - If a session is closed, and a new session is created immediately afterwards, but then fails to be configured, the first session sees an onUnconfigured call which it wasn't expecting, and throws an exception on an internal thread, leading to app death. Add a guard against this case. - If the lower levels skip a frame (illegal per design), be slightly more robust to that by accepting any successful result as the latest completed frame, instead of just incrementing the completed frame count. This will lead to missing results, but should allow shutdown, etc, to complete cleanly. - Convert TIMED_OUT error codes to CAMERA_ERROR CameraAccessExceptions. This is a common error code returned by waitUntilIdle. Also, improve debug logging to log a session ID with verbose logging, and add a few verbose logs. Bug: 16899526 Change-Id: I7a31f0a12effc2611e1f9c2408224ee82c37c912
/frameworks/base/core/java/android/hardware/camera2/impl/CameraCaptureSessionImpl.java
|
ee7ea8534067fd83ce4e446da5fd8b538cc2c444 |
|
09-Sep-2014 |
Eino-Ville Talvala <etalvala@google.com> |
Camera2: Allow captures right after abort Since implementation is still largely synchronous, this is safe. For the future full-asynchronous implementation, this is the behavior we want in any case. Bug: 17345630 Change-Id: Ib54a3441b21fa8cb42bcc6548e5639d9db7ec193
/frameworks/base/core/java/android/hardware/camera2/impl/CameraCaptureSessionImpl.java
|
fd887436bd111e4d2c7307578a51b5070025b7f2 |
|
04-Sep-2014 |
Eino-Ville Talvala <etalvala@google.com> |
Camera2: Final API revisions - Rename listeners to callbacks. Listeners are single-method and are interfaces, while callbacks are abstract may get more methods in the future. - Use register/unregister for registering callbacks, not add/remove. Bug: 17389922 Change-Id: Ic6b46ad79cb43a43a85e2a4b63f059d3af99798b
/frameworks/base/core/java/android/hardware/camera2/impl/CameraCaptureSessionImpl.java
|
acc0095bc84914d3ce41ad8298f698c37935b8a8 |
|
06-Aug-2014 |
Eino-Ville Talvala <etalvala@google.com> |
Camera2: Correct error handling - Report capture failures from service to application - Only go to error state for device-level errors - Adjust binder interface method names to match the service side names - Reduce failed session creation logging - Don't fire CaptureSession.onActive for CameraDevice.onBusy - Check with session to determine capture failure reason Bug: 17160301 Bug: 15524101 Bug: 14448494 Bug: 11272459 Change-Id: I9dd606004fd7845910dc865738fbe17f1640f07d
/frameworks/base/core/java/android/hardware/camera2/impl/CameraCaptureSessionImpl.java
|
10fbbbb6babc2700c731ac85fc0137d481e4d256 |
|
20-Aug-2014 |
Igor Murashkin <iam@google.com> |
camera2: Enable configuration failure to call #onConfigureFailed Bug: 16629195 Change-Id: I0c365bc8f760466916dcc089217a43c43f9f4c9d
/frameworks/base/core/java/android/hardware/camera2/impl/CameraCaptureSessionImpl.java
|
d3b85f69a811113826933c8abf591f20e9b3c8ff |
|
06-Aug-2014 |
Eino-Ville Talvala <etalvala@google.com> |
Camera2: Fix session shutdown race, frequent warning log - Make sure that session.close followed by device.createCaptureSession cannot race on configureOutputs calls - Silence warning about RAW_OPAQUE format Change-Id: I02e4a048e8b26ea61aadcf115b029e9fbb58ad4e
/frameworks/base/core/java/android/hardware/camera2/impl/CameraCaptureSessionImpl.java
|
a6b5ba56036f19bdd816ef03ad37beccf0150050 |
|
03-Jul-2014 |
Eino-Ville Talvala <etalvala@google.com> |
Camera2: Remove hidden parts of public CameraDevice - Remove everything @hide in CameraDevice - Move bits that are still needed into CameraDeviceImpl Change-Id: Ie22059a0eb5c4238142a8a1e8dbcf1a422e845aa
/frameworks/base/core/java/android/hardware/camera2/impl/CameraCaptureSessionImpl.java
|
7875a886b8397684c5fac3dd022d19de9874b436 |
|
31-Jul-2014 |
Eino-Ville Talvala <etalvala@google.com> |
Camera2: Fix null-listener capture for CameraCaptureSession Correctly allow null listener/handler when invoked on a thread with no looper; otherwise all capture/repeating requests will fail even if listener is null. Change-Id: I4c64c81ad7f14b5cb309b4f92822cb50dbd74ba6
/frameworks/base/core/java/android/hardware/camera2/impl/CameraCaptureSessionImpl.java
|
e1442204c1a2e8c6697d0640df06dc6314ed7113 |
|
10-Jun-2014 |
Igor Murashkin <iam@google.com> |
camera2: Fix session-related CTS test failures Bug: 15474402 Change-Id: I4ae86166b5ce99a854c754c8ac6d6c23c683b14a
/frameworks/base/core/java/android/hardware/camera2/impl/CameraCaptureSessionImpl.java
|
4b3f8004382192e066bb0c38bf39421f312daaf2 |
|
05-Jun-2014 |
Sol Boucher <solb@google.com> |
camera2: Fix ordering issue between #onOpened and createCaptureSession This resolves an issue where the CameraDevice.StateListener callbacks were erroneously called before the CameraCaptureSession.StateListener ones, preventing e.g. creating a capture session from the CameraDevice.StateListener#onOpened() callback. It also explicitly ignores CameraDevice.StateListener#onUnconfigured() calls occurring before the first call to #close . Bug: 15449190 Change-Id: Ic0094d53a65e42108201d7bb50734d17290fa9bf
/frameworks/base/core/java/android/hardware/camera2/impl/CameraCaptureSessionImpl.java
|
21547d66a9ce591ff30a3ad4102f7f30a4764d80 |
|
05-Jun-2014 |
Igor Murashkin <iam@google.com> |
camera2: Change CaptureListener callbacks to include the session (api) * Also makes CameraDevice an abstract class (API) Bug: 15428219 Bug: 14964443 Change-Id: I0e8c8309186aad59570aac7e0f998bb615405f0a
/frameworks/base/core/java/android/hardware/camera2/impl/CameraCaptureSessionImpl.java
|
0b27d3453d5e257594792e9177c5fedb1bc6f9e9 |
|
30-May-2014 |
Igor Murashkin <iam@google.com> |
camera2: Implement most of CameraCaptureSession Bug: 14964443 Change-Id: I8203842c77a94a3a6e5f89494fce658b00a4160d
/frameworks/base/core/java/android/hardware/camera2/impl/CameraCaptureSessionImpl.java
|