Loading services/camera/libcameraservice/api1/Camera2Client.cpp +9 −5 Original line number Diff line number Diff line Loading @@ -37,6 +37,10 @@ #define ALOG1(...) ALOGD_IF(gLogLevel >= 1, __VA_ARGS__); #define ALOG2(...) ALOGD_IF(gLogLevel >= 2, __VA_ARGS__); #ifndef FALLTHROUGH_INTENDED #define FALLTHROUGH_INTENDED [[fallthrough]] #endif namespace android { using namespace camera2; Loading Loading @@ -958,7 +962,7 @@ void Camera2Client::stopPreviewL() { case Parameters::VIDEO_SNAPSHOT: case Parameters::STILL_CAPTURE: mCaptureSequencer->waitUntilIdle(kStopCaptureTimeout); // no break FALLTHROUGH_INTENDED; case Parameters::RECORD: case Parameters::PREVIEW: syncWithDevice(); Loading Loading @@ -988,7 +992,7 @@ void Camera2Client::stopPreviewL() { "stop preview: %s (%d)", __FUNCTION__, mCameraId, strerror(-res), res); } // no break FALLTHROUGH_INTENDED; case Parameters::WAITING_FOR_PREVIEW_WINDOW: { SharedParameters::Lock l(mParameters); l.mParameters.state = Parameters::STOPPED; Loading Loading @@ -1834,7 +1838,7 @@ void Camera2Client::notifyAutoFocus(uint8_t newState, int triggerId) { switch (newState) { case ANDROID_CONTROL_AF_STATE_FOCUSED_LOCKED: success = true; // no break FALLTHROUGH_INTENDED; case ANDROID_CONTROL_AF_STATE_NOT_FOCUSED_LOCKED: sendCompletedMessage = true; l.mParameters.currentAfTriggerId = -1; Loading @@ -1858,7 +1862,7 @@ void Camera2Client::notifyAutoFocus(uint8_t newState, int triggerId) { switch (newState) { case ANDROID_CONTROL_AF_STATE_FOCUSED_LOCKED: success = true; // no break FALLTHROUGH_INTENDED; case ANDROID_CONTROL_AF_STATE_NOT_FOCUSED_LOCKED: // Don't send notifications upstream if they're not for // the current AF trigger. For example, if cancel was Loading Loading @@ -1886,7 +1890,7 @@ void Camera2Client::notifyAutoFocus(uint8_t newState, int triggerId) { case ANDROID_CONTROL_AF_STATE_PASSIVE_SCAN: // Start passive scan, inform upstream afInMotion = true; // no break FALLTHROUGH_INTENDED; case ANDROID_CONTROL_AF_STATE_PASSIVE_FOCUSED: case ANDROID_CONTROL_AF_STATE_PASSIVE_UNFOCUSED: // Stop passive scan, inform upstream Loading Loading
services/camera/libcameraservice/api1/Camera2Client.cpp +9 −5 Original line number Diff line number Diff line Loading @@ -37,6 +37,10 @@ #define ALOG1(...) ALOGD_IF(gLogLevel >= 1, __VA_ARGS__); #define ALOG2(...) ALOGD_IF(gLogLevel >= 2, __VA_ARGS__); #ifndef FALLTHROUGH_INTENDED #define FALLTHROUGH_INTENDED [[fallthrough]] #endif namespace android { using namespace camera2; Loading Loading @@ -958,7 +962,7 @@ void Camera2Client::stopPreviewL() { case Parameters::VIDEO_SNAPSHOT: case Parameters::STILL_CAPTURE: mCaptureSequencer->waitUntilIdle(kStopCaptureTimeout); // no break FALLTHROUGH_INTENDED; case Parameters::RECORD: case Parameters::PREVIEW: syncWithDevice(); Loading Loading @@ -988,7 +992,7 @@ void Camera2Client::stopPreviewL() { "stop preview: %s (%d)", __FUNCTION__, mCameraId, strerror(-res), res); } // no break FALLTHROUGH_INTENDED; case Parameters::WAITING_FOR_PREVIEW_WINDOW: { SharedParameters::Lock l(mParameters); l.mParameters.state = Parameters::STOPPED; Loading Loading @@ -1834,7 +1838,7 @@ void Camera2Client::notifyAutoFocus(uint8_t newState, int triggerId) { switch (newState) { case ANDROID_CONTROL_AF_STATE_FOCUSED_LOCKED: success = true; // no break FALLTHROUGH_INTENDED; case ANDROID_CONTROL_AF_STATE_NOT_FOCUSED_LOCKED: sendCompletedMessage = true; l.mParameters.currentAfTriggerId = -1; Loading @@ -1858,7 +1862,7 @@ void Camera2Client::notifyAutoFocus(uint8_t newState, int triggerId) { switch (newState) { case ANDROID_CONTROL_AF_STATE_FOCUSED_LOCKED: success = true; // no break FALLTHROUGH_INTENDED; case ANDROID_CONTROL_AF_STATE_NOT_FOCUSED_LOCKED: // Don't send notifications upstream if they're not for // the current AF trigger. For example, if cancel was Loading Loading @@ -1886,7 +1890,7 @@ void Camera2Client::notifyAutoFocus(uint8_t newState, int triggerId) { case ANDROID_CONTROL_AF_STATE_PASSIVE_SCAN: // Start passive scan, inform upstream afInMotion = true; // no break FALLTHROUGH_INTENDED; case ANDROID_CONTROL_AF_STATE_PASSIVE_FOCUSED: case ANDROID_CONTROL_AF_STATE_PASSIVE_UNFOCUSED: // Stop passive scan, inform upstream Loading