diff options
author | Zhijun He <zhijunhe@google.com> | 2014-09-22 23:52:54 -0700 |
---|---|---|
committer | Zhijun He <zhijunhe@google.com> | 2014-09-23 10:30:51 -0700 |
commit | f79f8ca07f9130d67ba575748cf3481f32dcad9f (patch) | |
tree | c6a1baacf50f1ff24e26f5ce92df23c5a55623d5 /services/camera | |
parent | d7f77cd78f5180ba7a04b270d632cc4f9f11718a (diff) | |
download | frameworks_av-f79f8ca07f9130d67ba575748cf3481f32dcad9f.zip frameworks_av-f79f8ca07f9130d67ba575748cf3481f32dcad9f.tar.gz frameworks_av-f79f8ca07f9130d67ba575748cf3481f32dcad9f.tar.bz2 |
Camera2Client: log an error when autoFocus is called in wrong state
Bug: 17555612
Change-Id: Ife33da712fbc8dc44d81e1e869fc75fb21026204
Diffstat (limited to 'services/camera')
-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; } |