OSDN Git Service

Cancel implicit AE lock after AE precapture sequence
authorPuneet Lall <puneetl@google.com>
Thu, 5 Feb 2015 19:19:19 +0000 (11:19 -0800)
committerPuneet Lall <puneetl@google.com>
Thu, 5 Feb 2015 20:13:45 +0000 (20:13 +0000)
commit7057dbbbc1c75894ec48b03299914a4bfa7c30e1
tree0b73d849ae7262cfba25e8e49645d2450cbb72aa
parent054ccbf10949437349140f3285d33250e2e28136
Cancel implicit AE lock after AE precapture sequence

After taking, or attempting to take a flash photo, the app currently
sends a CONTROL_AF_TRIGGER_CANCEL to release the AF lock.  On some
devices (N6), there appears to be an implicit AE lock set by the
CONTROL_AE_PRECAPTURE_TRIGGER, which is unlocked when a flash photo
is captured (with INTENT_STILL_CAPTURE).  In the event that the app
is interrupted before sending the still capture request, it must
still cancel the implicit AE lock.  As a workaround, sending
a request with AE_LOCK=true followed by AE_LOCK=false appears
to reset this implicit AE lock.

Workaround for Bug: 19265647

Change-Id: Ie76a81c1a138fb2334de736b315796e869378bf4
src/com/android/camera/one/v2/photo/ConvergedImageCaptureCommand.java