diff options
author | Zhijun He <zhijunhe@google.com> | 2014-09-22 23:52:54 -0700 |
---|---|---|
committer | The Android Automerger <android-build@google.com> | 2014-09-23 14:55:59 -0700 |
commit | 1824bd8d902a4427f46311f0c6e9f82eda607325 (patch) | |
tree | e8156a950fafbd7268b185e742ff01936146c1f2 | |
parent | eefe317b8ce4f085f098e8bebfc9af3b3ee70a1e (diff) | |
download | frameworks_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.cpp | 2 |
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; } |