Lines Matching refs:mParameters
66 mParameters(api1CameraId, cameraFacing) in Camera2Client()
70 SharedParameters::Lock l(mParameters); in Camera2Client()
71 l.mParameters.state = Parameters::DISCONNECTED; in Camera2Client()
106 SharedParameters::Lock l(mParameters); in initializeImpl()
108 res = l.mParameters.initialize(mDevice.get(), mDeviceVersion); in initializeImpl()
115 l.mParameters.isDeviceZslSupported = isZslEnabledInStillTemplate(); in initializeImpl()
151 SharedParameters::Lock l(mParameters); in initializeImpl()
154 ALOGD("%s", l.mParameters.paramsFlattened.string()); in initializeImpl()
184 const Parameters& p = mParameters.unsafeAccess(); in dumpClient()
424 SharedParameters::Lock l(mParameters); in disconnect()
425 if (l.mParameters.state == Parameters::DISCONNECTED) return res; in disconnect()
426 l.mParameters.state = Parameters::DISCONNECTED; in disconnect()
520 SharedParameters::Lock l(mParameters); in unlock()
521 if (l.mParameters.state == Parameters::RECORD || in unlock()
522 l.mParameters.state == Parameters::VIDEO_SNAPSHOT) { in unlock()
570 SharedParameters::Lock l(mParameters); in setPreviewWindowL()
571 state = l.mParameters.state; in setPreviewWindowL()
607 SharedParameters::Lock l(mParameters); in setPreviewWindowL()
608 l.mParameters.state = state; in setPreviewWindowL()
609 return startPreviewL(l.mParameters, false); in setPreviewWindowL()
622 SharedParameters::Lock l(mParameters); in setPreviewCallbackFlag()
623 setPreviewCallbackFlagL(l.mParameters, flag); in setPreviewCallbackFlag()
695 SharedParameters::Lock l(mParameters); in setPreviewCallbackTarget()
699 l.mParameters.previewCallbackFlags = CAMERA_FRAME_CALLBACK_FLAG_NOOP; in setPreviewCallbackTarget()
700 l.mParameters.previewCallbackOneShot = false; in setPreviewCallbackTarget()
701 l.mParameters.previewCallbackSurface = true; in setPreviewCallbackTarget()
704 l.mParameters.previewCallbackSurface = false; in setPreviewCallbackTarget()
707 switch(l.mParameters.state) { in setPreviewCallbackTarget()
709 res = startPreviewL(l.mParameters, true); in setPreviewCallbackTarget()
713 res = startRecordingL(l.mParameters, true); in setPreviewCallbackTarget()
721 Parameters::getStateName(l.mParameters.state)); in setPreviewCallbackTarget()
734 SharedParameters::Lock l(mParameters); in startPreview()
735 return startPreviewL(l.mParameters, false); in startPreview()
960 SharedParameters::Lock l(mParameters); in stopPreviewL()
961 state = l.mParameters.state; in stopPreviewL()
1010 SharedParameters::Lock l(mParameters); in stopPreviewL()
1011 l.mParameters.state = Parameters::STOPPED; in stopPreviewL()
1012 commandStopFaceDetectionL(l.mParameters); in stopPreviewL()
1027 SharedParameters::Lock l(mParameters); in previewEnabled()
1028 return l.mParameters.state == Parameters::PREVIEW; in previewEnabled()
1037 SharedParameters::Lock l(mParameters); in setVideoBufferMode()
1038 switch (l.mParameters.state) { in setVideoBufferMode()
1043 Parameters::getStateName(l.mParameters.state)); in setVideoBufferMode()
1055 l.mParameters.videoBufferMode = videoBufferMode; in setVideoBufferMode()
1066 SharedParameters::Lock l(mParameters); in startRecording()
1068 return startRecordingL(l.mParameters, false); in startRecording()
1250 SharedParameters::Lock l(mParameters); in stopRecording()
1255 switch (l.mParameters.state) { in stopRecording()
1266 Parameters::getStateName(l.mParameters.state)); in stopRecording()
1291 l.mParameters.recoverOverriddenJpegSize(); in stopRecording()
1294 res = startPreviewL(l.mParameters, true); in stopRecording()
1312 SharedParameters::Lock l(mParameters); in recordingEnabledL()
1314 return (l.mParameters.state == Parameters::RECORD in recordingEnabledL()
1315 || l.mParameters.state == Parameters::VIDEO_SNAPSHOT); in recordingEnabledL()
1348 SharedParameters::Lock l(mParameters); in autoFocus()
1349 if (l.mParameters.state < Parameters::PREVIEW) { in autoFocus()
1351 __FUNCTION__, mCameraId, l.mParameters.state); in autoFocus()
1363 if (l.mParameters.focusMode == Parameters::FOCUS_MODE_FIXED || in autoFocus()
1364 l.mParameters.focusMode == Parameters::FOCUS_MODE_INFINITY) { in autoFocus()
1373 if ( (l.mParameters.focusMode == Parameters::FOCUS_MODE_CONTINUOUS_PICTURE || in autoFocus()
1374 l.mParameters.focusMode == Parameters::FOCUS_MODE_CONTINUOUS_VIDEO) && in autoFocus()
1375 l.mParameters.focusState == ANDROID_CONTROL_AF_STATE_FOCUSED_LOCKED ) { in autoFocus()
1393 if (l.mParameters.quirks.triggerAfWithAuto && in autoFocus()
1394 l.mParameters.sceneMode != ANDROID_CONTROL_SCENE_MODE_DISABLED && in autoFocus()
1395 l.mParameters.focusMode != Parameters::FOCUS_MODE_AUTO && in autoFocus()
1396 !l.mParameters.focusingAreas[0].isEmpty()) { in autoFocus()
1398 __FUNCTION__, l.mParameters.focusMode); in autoFocus()
1399 l.mParameters.shadowFocusMode = l.mParameters.focusMode; in autoFocus()
1400 l.mParameters.focusMode = Parameters::FOCUS_MODE_AUTO; in autoFocus()
1401 updateRequests(l.mParameters); in autoFocus()
1404 l.mParameters.currentAfTriggerId = ++l.mParameters.afTriggerCounter; in autoFocus()
1405 triggerId = l.mParameters.currentAfTriggerId; in autoFocus()
1425 SharedParameters::Lock l(mParameters); in cancelAutoFocus()
1427 if (l.mParameters.focusMode == Parameters::FOCUS_MODE_FIXED || in cancelAutoFocus()
1428 l.mParameters.focusMode == Parameters::FOCUS_MODE_INFINITY) { in cancelAutoFocus()
1433 if (l.mParameters.afTriggerCounter == l.mParameters.currentAfTriggerId) { in cancelAutoFocus()
1434 ATRACE_ASYNC_END(kAutofocusLabel, l.mParameters.currentAfTriggerId); in cancelAutoFocus()
1437 triggerId = ++l.mParameters.afTriggerCounter; in cancelAutoFocus()
1442 if (l.mParameters.shadowFocusMode != Parameters::FOCUS_MODE_INVALID) { in cancelAutoFocus()
1444 l.mParameters.shadowFocusMode); in cancelAutoFocus()
1445 l.mParameters.focusMode = l.mParameters.shadowFocusMode; in cancelAutoFocus()
1446 l.mParameters.shadowFocusMode = Parameters::FOCUS_MODE_INVALID; in cancelAutoFocus()
1447 updateRequests(l.mParameters); in cancelAutoFocus()
1451 if (l.mParameters.allowZslMode) { in cancelAutoFocus()
1471 SharedParameters::Lock l(mParameters); in takePicture()
1472 switch (l.mParameters.state) { in takePicture()
1481 res = commandStopFaceDetectionL(l.mParameters); in takePicture()
1487 l.mParameters.state = Parameters::STILL_CAPTURE; in takePicture()
1490 if (l.mParameters.isJpegSizeOverridden() && in takePicture()
1514 l.mParameters.recoverOverriddenJpegSize(); in takePicture()
1519 l.mParameters.state = Parameters::VIDEO_SNAPSHOT; in takePicture()
1531 if (!l.mParameters.slowJpegMode) { in takePicture()
1532 res = updateProcessorStream(mJpegProcessor, l.mParameters); in takePicture()
1537 if (res == BAD_VALUE && l.mParameters.state == Parameters::VIDEO_SNAPSHOT) { in takePicture()
1538 overrideVideoSnapshotSize(l.mParameters); in takePicture()
1539 res = updateProcessorStream(mJpegProcessor, l.mParameters); in takePicture()
1546 takePictureCounter = ++l.mParameters.takePictureCounter; in takePicture()
1550 if (l.mParameters.allowZslMode && jpegStreamChanged) { in takePicture()
1560 if (l.mParameters.flashMode != Parameters::FLASH_MODE_ON && in takePicture()
1561 (l.mParameters.aeState == ANDROID_CONTROL_AE_STATE_CONVERGED)) { in takePicture()
1589 SharedParameters::Lock l(mParameters); in setParameters()
1591 Parameters::focusMode_t focusModeBefore = l.mParameters.focusMode; in setParameters()
1592 res = l.mParameters.set(params); in setParameters()
1594 Parameters::focusMode_t focusModeAfter = l.mParameters.focusMode; in setParameters()
1596 if (l.mParameters.allowZslMode && focusModeAfter != focusModeBefore) { in setParameters()
1600 res = updateRequests(l.mParameters); in setParameters()
1612 SharedParameters::ReadLock l(mParameters); in getParameters()
1614 return l.mParameters.get(); in getParameters()
1640 SharedParameters::Lock l(mParameters); in sendCommand()
1641 return commandStopFaceDetectionL(l.mParameters); in sendCommand()
1677 SharedParameters::Lock l(mParameters); in commandSetDisplayOrientationL()
1678 if (transform != l.mParameters.previewTransform && in commandSetDisplayOrientationL()
1682 l.mParameters.previewTransform = transform; in commandSetDisplayOrientationL()
1687 SharedParameters::Lock l(mParameters); in commandEnableShutterSoundL()
1689 l.mParameters.playShutterSound = true; in commandEnableShutterSoundL()
1693 l.mParameters.playShutterSound = false; in commandEnableShutterSoundL()
1706 SharedParameters::Lock l(mParameters); in commandStartFaceDetectionL()
1707 switch (l.mParameters.state) { in commandStartFaceDetectionL()
1722 if (l.mParameters.fastInfo.bestFaceDetectMode == in commandStartFaceDetectionL()
1728 if (l.mParameters.enableFaceDetect) return OK; in commandStartFaceDetectionL()
1730 l.mParameters.enableFaceDetect = true; in commandStartFaceDetectionL()
1732 res = updateRequests(l.mParameters); in commandStartFaceDetectionL()
1756 SharedParameters::Lock l(mParameters); in commandEnableFocusMoveMsgL()
1757 l.mParameters.enableFocusMoveMessages = enable; in commandEnableFocusMoveMsgL()
1764 SharedParameters::Lock l(mParameters); in commandPingL()
1765 if (l.mParameters.state != Parameters::DISCONNECTED) { in commandPingL()
1825 SharedParameters::Lock l(mParameters); in notifyAutoFocus()
1828 if (l.mParameters.afStateCounter > 0) { in notifyAutoFocus()
1830 ANDROID_CONTROL_AF_STATE, l.mParameters.focusState, tmp, sizeof(tmp)); in notifyAutoFocus()
1831 ATRACE_ASYNC_END(tmp, l.mParameters.afStateCounter); in notifyAutoFocus()
1835 l.mParameters.focusState = newState; in notifyAutoFocus()
1836 l.mParameters.afStateCounter++; in notifyAutoFocus()
1841 ANDROID_CONTROL_AF_STATE, l.mParameters.focusState, tmp, sizeof(tmp)); in notifyAutoFocus()
1842 ATRACE_ASYNC_BEGIN(tmp, l.mParameters.afStateCounter); in notifyAutoFocus()
1844 switch (l.mParameters.focusMode) { in notifyAutoFocus()
1850 if (triggerId != l.mParameters.currentAfTriggerId) break; in notifyAutoFocus()
1857 l.mParameters.currentAfTriggerId = -1; in notifyAutoFocus()
1885 if (triggerId != l.mParameters.currentAfTriggerId) break; in notifyAutoFocus()
1888 if (l.mParameters.enableFocusMoveMessages && in notifyAutoFocus()
1889 l.mParameters.afInMotion) { in notifyAutoFocus()
1892 l.mParameters.currentAfTriggerId = -1; in notifyAutoFocus()
1898 if (l.mParameters.enableFocusMoveMessages && in notifyAutoFocus()
1899 l.mParameters.afInMotion) { in notifyAutoFocus()
1910 if (l.mParameters.enableFocusMoveMessages) { in notifyAutoFocus()
1915 l.mParameters.afInMotion = afInMotion; in notifyAutoFocus()
1925 l.mParameters.focusMode); in notifyAutoFocus()
1950 SharedParameters::Lock l(mParameters); in notifyAutoExposure()
1952 l.mParameters.aeState = newState; in notifyAutoExposure()
1967 return mParameters; in getParameters()
2246 SharedParameters::Lock l(mParameters); in setVideoTarget()
2247 state = l.mParameters.state; in setVideoTarget()
2276 SharedParameters::Lock l(mParameters); in setVideoTarget()
2277 l.mParameters.videoFormat = format; in setVideoTarget()
2278 l.mParameters.videoDataSpace = dataSpace; in setVideoTarget()