summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZhijun He <zhijunhe@google.com>2014-09-22 23:52:54 -0700
committerThe Android Automerger <android-build@google.com>2014-09-23 14:55:59 -0700
commit1824bd8d902a4427f46311f0c6e9f82eda607325 (patch)
treee8156a950fafbd7268b185e742ff01936146c1f2
parenteefe317b8ce4f085f098e8bebfc9af3b3ee70a1e (diff)
downloadframeworks_av-1824bd8d902a4427f46311f0c6e9f82eda607325.zip
frameworks_av-1824bd8d902a4427f46311f0c6e9f82eda607325.tar.gz
frameworks_av-1824bd8d902a4427f46311f0c6e9f82eda607325.tar.bz2
Camera2Client: log an error when autoFocus is called in wrong state
Bug: 17555612 Change-Id: Ife33da712fbc8dc44d81e1e869fc75fb21026204
-rw-r--r--services/camera/libcameraservice/api1/Camera2Client.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/services/camera/libcameraservice/api1/Camera2Client.cpp b/services/camera/libcameraservice/api1/Camera2Client.cpp
index fe2f299..48ec730 100644
--- a/services/camera/libcameraservice/api1/Camera2Client.cpp
+++ b/services/camera/libcameraservice/api1/Camera2Client.cpp
@@ -1217,6 +1217,8 @@ status_t Camera2Client::autoFocus() {
{
SharedParameters::Lock l(mParameters);
if (l.mParameters.state < Parameters::PREVIEW) {
+ ALOGE("%s: Camera %d: Call autoFocus when preview is inactive (state = %d).",
+ __FUNCTION__, mCameraId, l.mParameters.state);
return INVALID_OPERATION;
}