OSDN Git Service

N4 CaptureModule not closing
authorI-Jong Lin <ijonglin@google.com>
Wed, 11 Feb 2015 23:01:05 +0000 (15:01 -0800)
committerI-Jong Lin <ijonglin@google.com>
Wed, 11 Feb 2015 23:29:51 +0000 (15:29 -0800)
commit25de24b2930d176a3957cb6865564e9e334175d6
tree69e637a6e3a4d4f3aaf601a4155e9684b1dab6bf
parent2c2ce5c75980fea0d39dc95725413404b686ade8
N4 CaptureModule not closing

N4 CaptureModule was not wired up properly to close the device when it
closed.  There's still an issue that the synchronization is incorrect,
i.e. we don't guarentee close has completed before we open it again.
There's a fix so that we can use OnCameraAvailable listener to only open
the camera when it is available.

Bug: 19332637
Change-Id: Ie88acb3a9f75a5896606dd660c005de0dc82dc3c
src/com/android/camera/async/ListenableConcurrentState.java
src/com/android/camera/module/ModulesInfo.java
src/com/android/camera/one/v2/SimpleOneCameraFactory.java
src/com/android/camera/one/v2/initialization/GenericOneCameraImpl.java