• Home
  • Raw
  • Download

Lines Matching refs:mParameters

72         mParameters(api1CameraId, cameraFacing)  in Camera2Client()
80 SharedParameters::Lock l(mParameters); in Camera2Client()
81 l.mParameters.state = Parameters::DISCONNECTED; in Camera2Client()
83 l.mParameters.isSlowJpegModeForced = true; in Camera2Client()
119 SharedParameters::Lock l(mParameters); in initializeImpl()
121 res = l.mParameters.initialize(mDevice.get()); in initializeImpl()
128 l.mParameters.isDeviceZslSupported = isZslEnabledInStillTemplate(); in initializeImpl()
172 SharedParameters::Lock l(mParameters); in initializeImpl()
175 ALOGD("%s", l.mParameters.paramsFlattened.string()); in initializeImpl()
205 const Parameters& p = mParameters.unsafeAccess(); in dumpClient()
445 SharedParameters::Lock l(mParameters); in disconnect()
446 if (l.mParameters.state == Parameters::DISCONNECTED) return res; in disconnect()
447 l.mParameters.state = Parameters::DISCONNECTED; in disconnect()
541 SharedParameters::Lock l(mParameters); in unlock()
542 if (l.mParameters.state == Parameters::RECORD || in unlock()
543 l.mParameters.state == Parameters::VIDEO_SNAPSHOT) { in unlock()
591 SharedParameters::Lock l(mParameters); in setPreviewWindowL()
592 state = l.mParameters.state; in setPreviewWindowL()
628 SharedParameters::Lock l(mParameters); in setPreviewWindowL()
629 l.mParameters.state = state; in setPreviewWindowL()
630 return startPreviewL(l.mParameters, false); in setPreviewWindowL()
643 SharedParameters::Lock l(mParameters); in setPreviewCallbackFlag()
644 setPreviewCallbackFlagL(l.mParameters, flag); in setPreviewCallbackFlag()
716 SharedParameters::Lock l(mParameters); in setPreviewCallbackTarget()
720 l.mParameters.previewCallbackFlags = CAMERA_FRAME_CALLBACK_FLAG_NOOP; in setPreviewCallbackTarget()
721 l.mParameters.previewCallbackOneShot = false; in setPreviewCallbackTarget()
722 l.mParameters.previewCallbackSurface = true; in setPreviewCallbackTarget()
725 l.mParameters.previewCallbackSurface = false; in setPreviewCallbackTarget()
728 switch(l.mParameters.state) { in setPreviewCallbackTarget()
730 res = startPreviewL(l.mParameters, true); in setPreviewCallbackTarget()
734 res = startRecordingL(l.mParameters, true); in setPreviewCallbackTarget()
742 Parameters::getStateName(l.mParameters.state)); in setPreviewCallbackTarget()
755 SharedParameters::Lock l(mParameters); in startPreview()
756 return startPreviewL(l.mParameters, false); in startPreview()
981 SharedParameters::Lock l(mParameters); in stopPreviewL()
982 state = l.mParameters.state; in stopPreviewL()
1031 SharedParameters::Lock l(mParameters); in stopPreviewL()
1032 l.mParameters.state = Parameters::STOPPED; in stopPreviewL()
1033 commandStopFaceDetectionL(l.mParameters); in stopPreviewL()
1048 SharedParameters::Lock l(mParameters); in previewEnabled()
1049 return l.mParameters.state == Parameters::PREVIEW; in previewEnabled()
1058 SharedParameters::Lock l(mParameters); in setVideoBufferMode()
1059 switch (l.mParameters.state) { in setVideoBufferMode()
1064 Parameters::getStateName(l.mParameters.state)); in setVideoBufferMode()
1076 l.mParameters.videoBufferMode = videoBufferMode; in setVideoBufferMode()
1087 SharedParameters::Lock l(mParameters); in startRecording()
1089 return startRecordingL(l.mParameters, false); in startRecording()
1271 SharedParameters::Lock l(mParameters); in stopRecording()
1276 switch (l.mParameters.state) { in stopRecording()
1287 Parameters::getStateName(l.mParameters.state)); in stopRecording()
1312 l.mParameters.recoverOverriddenJpegSize(); in stopRecording()
1315 res = startPreviewL(l.mParameters, true); in stopRecording()
1333 SharedParameters::Lock l(mParameters); in recordingEnabledL()
1335 return (l.mParameters.state == Parameters::RECORD in recordingEnabledL()
1336 || l.mParameters.state == Parameters::VIDEO_SNAPSHOT); in recordingEnabledL()
1369 SharedParameters::Lock l(mParameters); in autoFocus()
1370 if (l.mParameters.state < Parameters::PREVIEW) { in autoFocus()
1372 __FUNCTION__, mCameraId, l.mParameters.state); in autoFocus()
1384 if (l.mParameters.focusMode == Parameters::FOCUS_MODE_FIXED || in autoFocus()
1385 l.mParameters.focusMode == Parameters::FOCUS_MODE_INFINITY) { in autoFocus()
1394 if ( (l.mParameters.focusMode == Parameters::FOCUS_MODE_CONTINUOUS_PICTURE || in autoFocus()
1395 l.mParameters.focusMode == Parameters::FOCUS_MODE_CONTINUOUS_VIDEO) && in autoFocus()
1396 l.mParameters.focusState == ANDROID_CONTROL_AF_STATE_FOCUSED_LOCKED ) { in autoFocus()
1414 if (l.mParameters.quirks.triggerAfWithAuto && in autoFocus()
1415 l.mParameters.sceneMode != ANDROID_CONTROL_SCENE_MODE_DISABLED && in autoFocus()
1416 l.mParameters.focusMode != Parameters::FOCUS_MODE_AUTO && in autoFocus()
1417 !l.mParameters.focusingAreas[0].isEmpty()) { in autoFocus()
1419 __FUNCTION__, l.mParameters.focusMode); in autoFocus()
1420 l.mParameters.shadowFocusMode = l.mParameters.focusMode; in autoFocus()
1421 l.mParameters.focusMode = Parameters::FOCUS_MODE_AUTO; in autoFocus()
1422 updateRequests(l.mParameters); in autoFocus()
1425 l.mParameters.currentAfTriggerId = ++l.mParameters.afTriggerCounter; in autoFocus()
1426 triggerId = l.mParameters.currentAfTriggerId; in autoFocus()
1446 SharedParameters::Lock l(mParameters); in cancelAutoFocus()
1448 if (l.mParameters.focusMode == Parameters::FOCUS_MODE_FIXED || in cancelAutoFocus()
1449 l.mParameters.focusMode == Parameters::FOCUS_MODE_INFINITY) { in cancelAutoFocus()
1454 if (l.mParameters.afTriggerCounter == l.mParameters.currentAfTriggerId) { in cancelAutoFocus()
1455 ATRACE_ASYNC_END(kAutofocusLabel, l.mParameters.currentAfTriggerId); in cancelAutoFocus()
1458 triggerId = ++l.mParameters.afTriggerCounter; in cancelAutoFocus()
1463 if (l.mParameters.shadowFocusMode != Parameters::FOCUS_MODE_INVALID) { in cancelAutoFocus()
1465 l.mParameters.shadowFocusMode); in cancelAutoFocus()
1466 l.mParameters.focusMode = l.mParameters.shadowFocusMode; in cancelAutoFocus()
1467 l.mParameters.shadowFocusMode = Parameters::FOCUS_MODE_INVALID; in cancelAutoFocus()
1468 updateRequests(l.mParameters); in cancelAutoFocus()
1472 if (l.mParameters.allowZslMode) { in cancelAutoFocus()
1492 SharedParameters::Lock l(mParameters); in takePicture()
1493 switch (l.mParameters.state) { in takePicture()
1502 res = commandStopFaceDetectionL(l.mParameters); in takePicture()
1508 l.mParameters.state = Parameters::STILL_CAPTURE; in takePicture()
1511 if (l.mParameters.isJpegSizeOverridden() && in takePicture()
1535 l.mParameters.recoverOverriddenJpegSize(); in takePicture()
1540 l.mParameters.state = Parameters::VIDEO_SNAPSHOT; in takePicture()
1552 if (!l.mParameters.slowJpegMode) { in takePicture()
1553 res = updateProcessorStream(mJpegProcessor, l.mParameters); in takePicture()
1558 if (res == BAD_VALUE && l.mParameters.state == Parameters::VIDEO_SNAPSHOT) { in takePicture()
1559 overrideVideoSnapshotSize(l.mParameters); in takePicture()
1560 res = updateProcessorStream(mJpegProcessor, l.mParameters); in takePicture()
1567 takePictureCounter = ++l.mParameters.takePictureCounter; in takePicture()
1571 if (l.mParameters.allowZslMode && jpegStreamChanged) { in takePicture()
1581 if (l.mParameters.flashMode != Parameters::FLASH_MODE_ON && in takePicture()
1582 (l.mParameters.aeState == ANDROID_CONTROL_AE_STATE_CONVERGED)) { in takePicture()
1610 SharedParameters::Lock l(mParameters); in setParameters()
1612 Parameters::focusMode_t focusModeBefore = l.mParameters.focusMode; in setParameters()
1613 res = l.mParameters.set(params); in setParameters()
1615 Parameters::focusMode_t focusModeAfter = l.mParameters.focusMode; in setParameters()
1617 if (l.mParameters.allowZslMode && focusModeAfter != focusModeBefore) { in setParameters()
1621 res = updateRequests(l.mParameters); in setParameters()
1633 SharedParameters::ReadLock l(mParameters); in getParameters()
1635 return l.mParameters.get(); in getParameters()
1661 SharedParameters::Lock l(mParameters); in sendCommand()
1662 return commandStopFaceDetectionL(l.mParameters); in sendCommand()
1706 SharedParameters::Lock l(mParameters); in commandSetDisplayOrientationL()
1707 if (transform != l.mParameters.previewTransform && in commandSetDisplayOrientationL()
1711 l.mParameters.previewTransform = transform; in commandSetDisplayOrientationL()
1716 SharedParameters::Lock l(mParameters); in commandEnableShutterSoundL()
1718 l.mParameters.playShutterSound = true; in commandEnableShutterSoundL()
1722 l.mParameters.playShutterSound = false; in commandEnableShutterSoundL()
1735 SharedParameters::Lock l(mParameters); in commandStartFaceDetectionL()
1736 switch (l.mParameters.state) { in commandStartFaceDetectionL()
1751 if (l.mParameters.fastInfo.bestFaceDetectMode == in commandStartFaceDetectionL()
1757 if (l.mParameters.enableFaceDetect) return OK; in commandStartFaceDetectionL()
1759 l.mParameters.enableFaceDetect = true; in commandStartFaceDetectionL()
1761 res = updateRequests(l.mParameters); in commandStartFaceDetectionL()
1785 SharedParameters::Lock l(mParameters); in commandEnableFocusMoveMsgL()
1786 l.mParameters.enableFocusMoveMessages = enable; in commandEnableFocusMoveMsgL()
1793 SharedParameters::Lock l(mParameters); in commandPingL()
1794 if (l.mParameters.state != Parameters::DISCONNECTED) { in commandPingL()
1854 SharedParameters::Lock l(mParameters); in notifyAutoFocus()
1857 if (l.mParameters.afStateCounter > 0) { in notifyAutoFocus()
1859 ANDROID_CONTROL_AF_STATE, l.mParameters.focusState, tmp, sizeof(tmp)); in notifyAutoFocus()
1860 ATRACE_ASYNC_END(tmp, l.mParameters.afStateCounter); in notifyAutoFocus()
1864 l.mParameters.focusState = newState; in notifyAutoFocus()
1865 l.mParameters.afStateCounter++; in notifyAutoFocus()
1870 ANDROID_CONTROL_AF_STATE, l.mParameters.focusState, tmp, sizeof(tmp)); in notifyAutoFocus()
1871 ATRACE_ASYNC_BEGIN(tmp, l.mParameters.afStateCounter); in notifyAutoFocus()
1873 switch (l.mParameters.focusMode) { in notifyAutoFocus()
1879 if (triggerId != l.mParameters.currentAfTriggerId) break; in notifyAutoFocus()
1886 l.mParameters.currentAfTriggerId = -1; in notifyAutoFocus()
1914 if (triggerId != l.mParameters.currentAfTriggerId) break; in notifyAutoFocus()
1917 if (l.mParameters.enableFocusMoveMessages && in notifyAutoFocus()
1918 l.mParameters.afInMotion) { in notifyAutoFocus()
1921 l.mParameters.currentAfTriggerId = -1; in notifyAutoFocus()
1927 if (l.mParameters.enableFocusMoveMessages && in notifyAutoFocus()
1928 l.mParameters.afInMotion) { in notifyAutoFocus()
1939 if (l.mParameters.enableFocusMoveMessages) { in notifyAutoFocus()
1944 l.mParameters.afInMotion = afInMotion; in notifyAutoFocus()
1954 l.mParameters.focusMode); in notifyAutoFocus()
1979 SharedParameters::Lock l(mParameters); in notifyAutoExposure()
1981 l.mParameters.aeState = newState; in notifyAutoExposure()
1996 return mParameters; in getParameters()
2275 SharedParameters::Lock l(mParameters); in setVideoTarget()
2276 state = l.mParameters.state; in setVideoTarget()
2305 SharedParameters::Lock l(mParameters); in setVideoTarget()
2306 l.mParameters.videoFormat = format; in setVideoTarget()
2307 l.mParameters.videoDataSpace = dataSpace; in setVideoTarget()