Lines Matching refs:l

66     SharedParameters::Lock l(mParameters);  in Camera2Client()  local
67 l.mParameters.state = Parameters::DISCONNECTED; in Camera2Client()
101 SharedParameters::Lock l(mParameters); in initializeImpl() local
103 res = l.mParameters.initialize(mDevice.get(), mDeviceVersion); in initializeImpl()
110 l.mParameters.isDeviceZslSupported = isZslEnabledInStillTemplate(); in initializeImpl()
146 SharedParameters::Lock l(mParameters); in initializeImpl() local
149 ALOGD("%s", l.mParameters.paramsFlattened.string()); in initializeImpl()
418 SharedParameters::Lock l(mParameters); in disconnect() local
419 if (l.mParameters.state == Parameters::DISCONNECTED) return res; in disconnect()
420 l.mParameters.state = Parameters::DISCONNECTED; in disconnect()
511 SharedParameters::Lock l(mParameters); in unlock() local
512 if (l.mParameters.state == Parameters::RECORD || in unlock()
513 l.mParameters.state == Parameters::VIDEO_SNAPSHOT) { in unlock()
561 SharedParameters::Lock l(mParameters); in setPreviewWindowL() local
562 state = l.mParameters.state; in setPreviewWindowL()
598 SharedParameters::Lock l(mParameters); in setPreviewWindowL() local
599 l.mParameters.state = state; in setPreviewWindowL()
600 return startPreviewL(l.mParameters, false); in setPreviewWindowL()
613 SharedParameters::Lock l(mParameters); in setPreviewCallbackFlag() local
614 setPreviewCallbackFlagL(l.mParameters, flag); in setPreviewCallbackFlag()
686 SharedParameters::Lock l(mParameters); in setPreviewCallbackTarget() local
690 l.mParameters.previewCallbackFlags = CAMERA_FRAME_CALLBACK_FLAG_NOOP; in setPreviewCallbackTarget()
691 l.mParameters.previewCallbackOneShot = false; in setPreviewCallbackTarget()
692 l.mParameters.previewCallbackSurface = true; in setPreviewCallbackTarget()
695 l.mParameters.previewCallbackSurface = false; in setPreviewCallbackTarget()
698 switch(l.mParameters.state) { in setPreviewCallbackTarget()
700 res = startPreviewL(l.mParameters, true); in setPreviewCallbackTarget()
704 res = startRecordingL(l.mParameters, true); in setPreviewCallbackTarget()
712 Parameters::getStateName(l.mParameters.state)); in setPreviewCallbackTarget()
725 SharedParameters::Lock l(mParameters); in startPreview() local
726 return startPreviewL(l.mParameters, false); in startPreview()
946 SharedParameters::Lock l(mParameters); in stopPreviewL() local
947 state = l.mParameters.state; in stopPreviewL()
990 SharedParameters::Lock l(mParameters); in stopPreviewL() local
991 l.mParameters.state = Parameters::STOPPED; in stopPreviewL()
992 commandStopFaceDetectionL(l.mParameters); in stopPreviewL()
1007 SharedParameters::Lock l(mParameters); in previewEnabled() local
1008 return l.mParameters.state == Parameters::PREVIEW; in previewEnabled()
1017 SharedParameters::Lock l(mParameters); in setVideoBufferMode() local
1018 switch (l.mParameters.state) { in setVideoBufferMode()
1023 Parameters::getStateName(l.mParameters.state)); in setVideoBufferMode()
1035 l.mParameters.videoBufferMode = videoBufferMode; in setVideoBufferMode()
1046 SharedParameters::Lock l(mParameters); in startRecording() local
1048 return startRecordingL(l.mParameters, false); in startRecording()
1230 SharedParameters::Lock l(mParameters); in stopRecording() local
1235 switch (l.mParameters.state) { in stopRecording()
1246 Parameters::getStateName(l.mParameters.state)); in stopRecording()
1271 l.mParameters.recoverOverriddenJpegSize(); in stopRecording()
1274 res = startPreviewL(l.mParameters, true); in stopRecording()
1292 SharedParameters::Lock l(mParameters); in recordingEnabledL() local
1294 return (l.mParameters.state == Parameters::RECORD in recordingEnabledL()
1295 || l.mParameters.state == Parameters::VIDEO_SNAPSHOT); in recordingEnabledL()
1328 SharedParameters::Lock l(mParameters); in autoFocus() local
1329 if (l.mParameters.state < Parameters::PREVIEW) { in autoFocus()
1331 __FUNCTION__, mCameraId, l.mParameters.state); in autoFocus()
1343 if (l.mParameters.focusMode == Parameters::FOCUS_MODE_FIXED || in autoFocus()
1344 l.mParameters.focusMode == Parameters::FOCUS_MODE_INFINITY) { in autoFocus()
1353 if ( (l.mParameters.focusMode == Parameters::FOCUS_MODE_CONTINUOUS_PICTURE || in autoFocus()
1354 l.mParameters.focusMode == Parameters::FOCUS_MODE_CONTINUOUS_VIDEO) && in autoFocus()
1355 l.mParameters.focusState == ANDROID_CONTROL_AF_STATE_FOCUSED_LOCKED ) { in autoFocus()
1363 SharedCameraCallbacks::Lock l(mSharedCameraCallbacks); in autoFocus() local
1364 if (l.mRemoteCallback != 0) { in autoFocus()
1365 l.mRemoteCallback->notifyCallback(CAMERA_MSG_FOCUS, in autoFocus()
1373 if (l.mParameters.quirks.triggerAfWithAuto && in autoFocus()
1374 l.mParameters.sceneMode != ANDROID_CONTROL_SCENE_MODE_DISABLED && in autoFocus()
1375 l.mParameters.focusMode != Parameters::FOCUS_MODE_AUTO && in autoFocus()
1376 !l.mParameters.focusingAreas[0].isEmpty()) { in autoFocus()
1378 __FUNCTION__, l.mParameters.focusMode); in autoFocus()
1379 l.mParameters.shadowFocusMode = l.mParameters.focusMode; in autoFocus()
1380 l.mParameters.focusMode = Parameters::FOCUS_MODE_AUTO; in autoFocus()
1381 updateRequests(l.mParameters); in autoFocus()
1384 l.mParameters.currentAfTriggerId = ++l.mParameters.afTriggerCounter; in autoFocus()
1385 triggerId = l.mParameters.currentAfTriggerId; in autoFocus()
1405 SharedParameters::Lock l(mParameters); in cancelAutoFocus() local
1407 if (l.mParameters.focusMode == Parameters::FOCUS_MODE_FIXED || in cancelAutoFocus()
1408 l.mParameters.focusMode == Parameters::FOCUS_MODE_INFINITY) { in cancelAutoFocus()
1413 if (l.mParameters.afTriggerCounter == l.mParameters.currentAfTriggerId) { in cancelAutoFocus()
1414 ATRACE_ASYNC_END(kAutofocusLabel, l.mParameters.currentAfTriggerId); in cancelAutoFocus()
1417 triggerId = ++l.mParameters.afTriggerCounter; in cancelAutoFocus()
1422 if (l.mParameters.shadowFocusMode != Parameters::FOCUS_MODE_INVALID) { in cancelAutoFocus()
1424 l.mParameters.shadowFocusMode); in cancelAutoFocus()
1425 l.mParameters.focusMode = l.mParameters.shadowFocusMode; in cancelAutoFocus()
1426 l.mParameters.shadowFocusMode = Parameters::FOCUS_MODE_INVALID; in cancelAutoFocus()
1427 updateRequests(l.mParameters); in cancelAutoFocus()
1431 if (l.mParameters.allowZslMode) { in cancelAutoFocus()
1451 SharedParameters::Lock l(mParameters); in takePicture() local
1452 switch (l.mParameters.state) { in takePicture()
1461 res = commandStopFaceDetectionL(l.mParameters); in takePicture()
1467 l.mParameters.state = Parameters::STILL_CAPTURE; in takePicture()
1470 if (l.mParameters.isJpegSizeOverridden() && in takePicture()
1494 l.mParameters.recoverOverriddenJpegSize(); in takePicture()
1499 l.mParameters.state = Parameters::VIDEO_SNAPSHOT; in takePicture()
1511 if (!l.mParameters.slowJpegMode) { in takePicture()
1512 res = updateProcessorStream(mJpegProcessor, l.mParameters); in takePicture()
1517 if (res == BAD_VALUE && l.mParameters.state == Parameters::VIDEO_SNAPSHOT) { in takePicture()
1518 overrideVideoSnapshotSize(l.mParameters); in takePicture()
1519 res = updateProcessorStream(mJpegProcessor, l.mParameters); in takePicture()
1526 takePictureCounter = ++l.mParameters.takePictureCounter; in takePicture()
1530 if (l.mParameters.allowZslMode && jpegStreamChanged) { in takePicture()
1540 if (l.mParameters.flashMode != Parameters::FLASH_MODE_ON && in takePicture()
1541 (l.mParameters.aeState == ANDROID_CONTROL_AE_STATE_CONVERGED)) { in takePicture()
1569 SharedParameters::Lock l(mParameters); in setParameters() local
1571 Parameters::focusMode_t focusModeBefore = l.mParameters.focusMode; in setParameters()
1572 res = l.mParameters.set(params); in setParameters()
1574 Parameters::focusMode_t focusModeAfter = l.mParameters.focusMode; in setParameters()
1576 if (l.mParameters.allowZslMode && focusModeAfter != focusModeBefore) { in setParameters()
1580 res = updateRequests(l.mParameters); in setParameters()
1592 SharedParameters::ReadLock l(mParameters); in getParameters() local
1594 return l.mParameters.get(); in getParameters()
1620 SharedParameters::Lock l(mParameters); in sendCommand() local
1621 return commandStopFaceDetectionL(l.mParameters); in sendCommand()
1657 SharedParameters::Lock l(mParameters); in commandSetDisplayOrientationL() local
1658 if (transform != l.mParameters.previewTransform && in commandSetDisplayOrientationL()
1662 l.mParameters.previewTransform = transform; in commandSetDisplayOrientationL()
1667 SharedParameters::Lock l(mParameters); in commandEnableShutterSoundL() local
1669 l.mParameters.playShutterSound = true; in commandEnableShutterSoundL()
1673 l.mParameters.playShutterSound = false; in commandEnableShutterSoundL()
1686 SharedParameters::Lock l(mParameters); in commandStartFaceDetectionL() local
1687 switch (l.mParameters.state) { in commandStartFaceDetectionL()
1702 if (l.mParameters.fastInfo.bestFaceDetectMode == in commandStartFaceDetectionL()
1708 if (l.mParameters.enableFaceDetect) return OK; in commandStartFaceDetectionL()
1710 l.mParameters.enableFaceDetect = true; in commandStartFaceDetectionL()
1712 res = updateRequests(l.mParameters); in commandStartFaceDetectionL()
1736 SharedParameters::Lock l(mParameters); in commandEnableFocusMoveMsgL() local
1737 l.mParameters.enableFocusMoveMessages = enable; in commandEnableFocusMoveMsgL()
1744 SharedParameters::Lock l(mParameters); in commandPingL() local
1745 if (l.mParameters.state != Parameters::DISCONNECTED) { in commandPingL()
1780 SharedCameraCallbacks::Lock l(mSharedCameraCallbacks); in notifyError() local
1781 if (l.mRemoteCallback != nullptr) { in notifyError()
1782 l.mRemoteCallback->notifyCallback(CAMERA_MSG_ERROR, err, 0); in notifyError()
1797 SharedParameters::Lock l(mParameters); in notifyAutoFocus() local
1800 if (l.mParameters.afStateCounter > 0) { in notifyAutoFocus()
1802 ANDROID_CONTROL_AF_STATE, l.mParameters.focusState, tmp, sizeof(tmp)); in notifyAutoFocus()
1803 ATRACE_ASYNC_END(tmp, l.mParameters.afStateCounter); in notifyAutoFocus()
1807 l.mParameters.focusState = newState; in notifyAutoFocus()
1808 l.mParameters.afStateCounter++; in notifyAutoFocus()
1813 ANDROID_CONTROL_AF_STATE, l.mParameters.focusState, tmp, sizeof(tmp)); in notifyAutoFocus()
1814 ATRACE_ASYNC_BEGIN(tmp, l.mParameters.afStateCounter); in notifyAutoFocus()
1816 switch (l.mParameters.focusMode) { in notifyAutoFocus()
1822 if (triggerId != l.mParameters.currentAfTriggerId) break; in notifyAutoFocus()
1829 l.mParameters.currentAfTriggerId = -1; in notifyAutoFocus()
1857 if (triggerId != l.mParameters.currentAfTriggerId) break; in notifyAutoFocus()
1860 if (l.mParameters.enableFocusMoveMessages && in notifyAutoFocus()
1861 l.mParameters.afInMotion) { in notifyAutoFocus()
1864 l.mParameters.currentAfTriggerId = -1; in notifyAutoFocus()
1870 if (l.mParameters.enableFocusMoveMessages && in notifyAutoFocus()
1871 l.mParameters.afInMotion) { in notifyAutoFocus()
1882 if (l.mParameters.enableFocusMoveMessages) { in notifyAutoFocus()
1887 l.mParameters.afInMotion = afInMotion; in notifyAutoFocus()
1897 l.mParameters.focusMode); in notifyAutoFocus()
1902 SharedCameraCallbacks::Lock l(mSharedCameraCallbacks); in notifyAutoFocus() local
1903 if (l.mRemoteCallback != 0) { in notifyAutoFocus()
1904 l.mRemoteCallback->notifyCallback(CAMERA_MSG_FOCUS_MOVE, in notifyAutoFocus()
1910 SharedCameraCallbacks::Lock l(mSharedCameraCallbacks); in notifyAutoFocus() local
1911 if (l.mRemoteCallback != 0) { in notifyAutoFocus()
1912 l.mRemoteCallback->notifyCallback(CAMERA_MSG_FOCUS, in notifyAutoFocus()
1922 SharedParameters::Lock l(mParameters); in notifyAutoExposure() local
1924 l.mParameters.aeState = newState; in notifyAutoExposure()
2218 SharedParameters::Lock l(mParameters); in setVideoTarget() local
2219 state = l.mParameters.state; in setVideoTarget()
2248 SharedParameters::Lock l(mParameters); in setVideoTarget() local
2249 l.mParameters.videoFormat = format; in setVideoTarget()
2250 l.mParameters.videoDataSpace = dataSpace; in setVideoTarget()