OSDN Git Service

Camera2: When focus is already locked in CAF mode, do not trigger HAL.
authorEino-Ville Talvala <etalvala@google.com>
Tue, 16 Oct 2012 17:17:30 +0000 (10:17 -0700)
committerEino-Ville Talvala <etalvala@google.com>
Tue, 16 Oct 2012 17:23:05 +0000 (10:23 -0700)
commitd6cc4a62f3d94cad4dd36bd0a844ba8764177d26
treefbd68ee26548cd153119df2b42900c7f19bacd1c
parentb4a55269a5b39c73de2cc1d4013d0631ef18c77d
Camera2: When focus is already locked in CAF mode, do not trigger HAL.

In HAL2 CAF modes, once focus is locked by an AF trigger, additional
triggers will not cause AF notifications, since the state will not
change again until a cancelAutofocus call.

Since the old API still expects to see a notification, short-circuit
this at the service and send an immediate success notification.

Bug: 7318298
Change-Id: Ib209a24eaf2a35a247d06aea671efe80a33d751e
services/camera/libcameraservice/Camera2Client.cpp
services/camera/libcameraservice/camera2/Parameters.cpp
services/camera/libcameraservice/camera2/Parameters.h