From f79f8ca07f9130d67ba575748cf3481f32dcad9f Mon Sep 17 00:00:00 2001 From: Zhijun He Date: Mon, 22 Sep 2014 23:52:54 -0700 Subject: Camera2Client: log an error when autoFocus is called in wrong state Bug: 17555612 Change-Id: Ife33da712fbc8dc44d81e1e869fc75fb21026204 --- services/camera/libcameraservice/api1/Camera2Client.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'services/camera') 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; } -- cgit v1.1