7921659d7096a618634153ca7fed88e8563e03f5 |
|
02-Mar-2017 |
Sheng-hao Tsao <shenghao@google.com> |
Revert "Fix the bug that camera can't open again after disconnected" This reverts commit 03e6dacb31332de191a1190a6b6f7d948f6536ef. Change-Id: I469085d6993a6005f3487a3a33327bdaac498993
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/CameraStateHolder.java
|
03e6dacb31332de191a1190a6b6f7d948f6536ef |
|
23-Feb-2017 |
Sheng-Hao Tsao <shenghao@google.com> |
Fix the bug that camera can't open again after disconnected Reproduce steps: 1. Open android default camera 2. Open chrome camera app 3. Close chrome camera app 4. Android camera app is disconnected. Close it. 5. Open android camera app again. It can't open camera anymore. The root cause is that camera state is set to invalid after getting an exception in step 4. We should allow opening camera even if the state is invalid. BUG=35411023 TEST=In elm, verify that camera can be opened after the above steps Change-Id: Ie9e64cf826a3510b5fa76b14f7f4110e5a015b64 (cherry picked from commit 5d61737fe19ad69d41d94e2660053e82d0aa3dc5)
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/CameraStateHolder.java
|
2f5251072284508374cb36d1e83f7e24cc590049 |
|
06-Oct-2014 |
Senpo Hu <senpo@google.com> |
Overhaul error handling in AndroidCameraAgentImpl. DispatchThread could throw RTE when timeout (2500 ms). This CL extends it to 3500 ms and also re-route the exception to the proper exception callback instead of surfacing that up to the app. Since a lot of try-catch block is added, CameraExceptionHandler class is added to keep CameraAgent.java clean. The portability layer should ensure the proper use of Camera API 1. With this assumption, any run time exception thrown by the framework should be considered fatal. Once it happened, CameraAgent/CameraProxy should be invalidated. Any subsequent camera commands should be gated as no-ops to prevent HAL hanging symptom. Users should be guided to exit the app and recover from the camera error. Design Doc: https://docs.google.com/a/google.com/document/d/1t0sEPwGgc387XcoCVC7kT9Y_RSZPxcayla03M4bdn0U/edit Corresponding CL for the app layer: ag/562383 Bug: 16189216 Change-Id: I33e69aeff0c8e4211e82e0e83133915700c4eb8f
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/CameraStateHolder.java
|
6a9babad6eb8ac3e79a5e036d878ed7408e79f26 |
|
09-Sep-2014 |
Igor Murashkin <iam@google.com> |
portability: Fix a bug where long AF callbacks caused ISE timeouts Bug: 17403384 Change-Id: I2f452f79ffb4c0c3327ea5bf7db3f9d26e98ff51
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/CameraStateHolder.java
|
7e0d39bf7b6e0f0df606e3f6c15f673f70fed3f7 |
|
16-Jul-2014 |
Sol Boucher <solb@google.com> |
DO NOT MERGE: Fix oversight while refactoring CameraStateHolder The base class still (redundantly) defined states, and AndroidCameraStateMachine was overriding methods with a verbatim copy of their implementations. Change-Id: I0e6361417edb159f91b89409058ee9a73b1101d9 (cherry-picked from commit dbc457417c581c21b5d49539325b1b152dc1baba)
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/CameraStateHolder.java
|
a0842b40441db5332a5290f941021636b1182761 |
|
09-Jun-2014 |
Sol Boucher <solb@google.com> |
camera2-portability: Add support for previews using the camera2 API At the moment, only SurfaceTextures (and not SurfaceViews/SurfaceHolders) are supported. The tests still only cover Stringifier and IntegralStringifier. Change-Id: Ie643c58f8383cd3b9f59c16e0b79239df0ca068d
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/CameraStateHolder.java
|
4f425ba476d62b4be7078f2084af37cf306b31c6 |
|
18-Jun-2014 |
Sol Boucher <solb@google.com> |
camera2-portability: Rename CameraManager to CameraAgent This resolves a naming clash with a class in the new camera2 framework API. Change-Id: Id53aa3e0bbe9e9edaa82b0aec695fd835c3d0ef9
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/CameraStateHolder.java
|
cef46862d6937bc98bf1a6b087c5daa22b5239f3 |
|
09-Jun-2014 |
Sol Boucher <solb@google.com> |
Refactor CameraManager hierarchy to support new implementations This relocates several components of the implementation class AndroidCameraManagerImpl to higher levels in the inheritence hierarchy, where they can be reused by other implementations of the CameraManager interface: - AndroidCameraManager.DispatchThread is moved into its own file - The core (history-tracking) pieces of CameraManager.CameraHandler are moved into their own HistoryHandler class, which the former is made to inherit - The constants defined in AndroidCameraManagerImpl for use in its nested CameraHandler class are moved into a separate class called CameraActions - AndroidCameraManagerImpl.CameraStateHolder is moved into its own file - Those CallbackForward classes that aren't tied to Android's Camera1 API are moved directly into the CameraManager interface Change-Id: I5f3e1eb72039a0018ce2277e3ec6289bfa4ccec3
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/CameraStateHolder.java
|