Lines Matching refs:hw

137     QCamera2HardwareInterface *hw =  in set_preview_window()  local
139 if (!hw) { in set_preview_window()
143 LOGD("E camera id %d window = %p", hw->getCameraId(), window); in set_preview_window()
145 hw->lockAPI(); in set_preview_window()
147 rc = hw->processAPI(QCAMERA_SM_EVT_SET_PREVIEW_WINDOW, (void *)window); in set_preview_window()
149 hw->waitAPIResult(QCAMERA_SM_EVT_SET_PREVIEW_WINDOW, &apiResult); in set_preview_window()
152 hw->unlockAPI(); in set_preview_window()
153 LOGD("X camera id %d", hw->getCameraId()); in set_preview_window()
181 QCamera2HardwareInterface *hw = in set_CallBacks() local
183 if (!hw) { in set_CallBacks()
187 LOGD("E camera id %d", hw->getCameraId()); in set_CallBacks()
196 hw->lockAPI(); in set_CallBacks()
198 int32_t rc = hw->processAPI(QCAMERA_SM_EVT_SET_CALLBACKS, (void *)&payload); in set_CallBacks()
200 hw->waitAPIResult(QCAMERA_SM_EVT_SET_CALLBACKS, &apiResult); in set_CallBacks()
202 hw->unlockAPI(); in set_CallBacks()
203 LOGD("X camera id %d", hw->getCameraId()); in set_CallBacks()
221 QCamera2HardwareInterface *hw = in enable_msg_type() local
223 if (!hw) { in enable_msg_type()
227 LOGD("E camera id %d", hw->getCameraId()); in enable_msg_type()
229 hw->lockAPI(); in enable_msg_type()
231 int32_t rc = hw->processAPI(QCAMERA_SM_EVT_ENABLE_MSG_TYPE, (void *)&msg_type); in enable_msg_type()
233 hw->waitAPIResult(QCAMERA_SM_EVT_ENABLE_MSG_TYPE, &apiResult); in enable_msg_type()
235 hw->unlockAPI(); in enable_msg_type()
236 LOGD("X camera id %d", hw->getCameraId()); in enable_msg_type()
254 QCamera2HardwareInterface *hw = in disable_msg_type() local
256 if (!hw) { in disable_msg_type()
260 LOGD("E camera id %d", hw->getCameraId()); in disable_msg_type()
262 hw->lockAPI(); in disable_msg_type()
264 int32_t rc = hw->processAPI(QCAMERA_SM_EVT_DISABLE_MSG_TYPE, (void *)&msg_type); in disable_msg_type()
266 hw->waitAPIResult(QCAMERA_SM_EVT_DISABLE_MSG_TYPE, &apiResult); in disable_msg_type()
268 hw->unlockAPI(); in disable_msg_type()
269 LOGD("X camera id %d", hw->getCameraId()); in disable_msg_type()
289 QCamera2HardwareInterface *hw = in msg_type_enabled() local
291 if (!hw) { in msg_type_enabled()
295 LOGD("E camera id %d", hw->getCameraId()); in msg_type_enabled()
297 hw->lockAPI(); in msg_type_enabled()
299 ret = hw->processAPI(QCAMERA_SM_EVT_MSG_TYPE_ENABLED, (void *)&msg_type); in msg_type_enabled()
301 hw->waitAPIResult(QCAMERA_SM_EVT_MSG_TYPE_ENABLED, &apiResult); in msg_type_enabled()
304 hw->unlockAPI(); in msg_type_enabled()
305 LOGD("X camera id %d", hw->getCameraId()); in msg_type_enabled()
326 QCamera2HardwareInterface *hw = in prepare_preview() local
328 if (!hw) { in prepare_preview()
333 hw->getCameraId()); in prepare_preview()
334 hw->lockAPI(); in prepare_preview()
337 ret = hw->processAPI(evt, NULL); in prepare_preview()
339 hw->waitAPIResult(evt, &apiResult); in prepare_preview()
342 hw->unlockAPI(); in prepare_preview()
364 QCamera2HardwareInterface *hw = in start_preview() local
366 if (!hw) { in start_preview()
371 hw->getCameraId()); in start_preview()
373 hw->m_perfLockMgr.acquirePerfLockIfExpired(PERF_LOCK_START_PREVIEW); in start_preview()
374 hw->lockAPI(); in start_preview()
377 if (hw->isNoDisplayMode()) { in start_preview()
380 ret = hw->processAPI(evt, NULL); in start_preview()
382 hw->waitAPIResult(evt, &apiResult); in start_preview()
385 hw->unlockAPI(); in start_preview()
386 hw->m_bPreviewStarted = true; in start_preview()
404 QCamera2HardwareInterface *hw = in stop_preview() local
406 if (!hw) { in stop_preview()
411 hw->getCameraId()); in stop_preview()
414 hw->m_perfLockMgr.releasePerfLock(PERF_LOCK_POWERHINT_PREVIEW); in stop_preview()
416 hw->m_perfLockMgr.acquirePerfLockIfExpired(PERF_LOCK_STOP_PREVIEW); in stop_preview()
418 hw->lockAPI(); in stop_preview()
420 int32_t ret = hw->processAPI(QCAMERA_SM_EVT_STOP_PREVIEW, NULL); in stop_preview()
422 hw->waitAPIResult(QCAMERA_SM_EVT_STOP_PREVIEW, &apiResult); in stop_preview()
424 hw->unlockAPI(); in stop_preview()
443 QCamera2HardwareInterface *hw = in preview_enabled() local
445 if (!hw) { in preview_enabled()
449 LOGD("E camera id %d", hw->getCameraId()); in preview_enabled()
451 hw->lockAPI(); in preview_enabled()
453 ret = hw->processAPI(QCAMERA_SM_EVT_PREVIEW_ENABLED, NULL); in preview_enabled()
455 hw->waitAPIResult(QCAMERA_SM_EVT_PREVIEW_ENABLED, &apiResult); in preview_enabled()
461 hw->m_stateMachine.setPreviewCallbackNeeded(true); in preview_enabled()
463 hw->unlockAPI(); in preview_enabled()
464 LOGD("X camera id %d", hw->getCameraId()); in preview_enabled()
486 QCamera2HardwareInterface *hw = in store_meta_data_in_buffers() local
488 if (!hw) { in store_meta_data_in_buffers()
492 LOGD("E camera id %d", hw->getCameraId()); in store_meta_data_in_buffers()
494 hw->lockAPI(); in store_meta_data_in_buffers()
496 ret = hw->processAPI(QCAMERA_SM_EVT_STORE_METADATA_IN_BUFS, (void *)&enable); in store_meta_data_in_buffers()
498 hw->waitAPIResult(QCAMERA_SM_EVT_STORE_METADATA_IN_BUFS, &apiResult); in store_meta_data_in_buffers()
501 hw->unlockAPI(); in store_meta_data_in_buffers()
502 LOGD("X camera id %d", hw->getCameraId()); in store_meta_data_in_buffers()
523 QCamera2HardwareInterface *hw = in restart_start_preview() local
525 if (!hw) { in restart_start_preview()
529 LOGI("E camera id %d", hw->getCameraId()); in restart_start_preview()
530 hw->lockAPI(); in restart_start_preview()
533 if (hw->getRelatedCamSyncInfo()->sync_control == CAM_SYNC_RELATED_SENSORS_ON) { in restart_start_preview()
534 ret = hw->processAPI(QCAMERA_SM_EVT_RESTART_START_PREVIEW, NULL); in restart_start_preview()
536 hw->waitAPIResult(QCAMERA_SM_EVT_RESTART_START_PREVIEW, &apiResult); in restart_start_preview()
544 hw->mPreviewRestartNeeded = false; in restart_start_preview()
545 hw->unlockAPI(); in restart_start_preview()
546 LOGI("X camera id %d", hw->getCameraId()); in restart_start_preview()
567 QCamera2HardwareInterface *hw = in restart_stop_preview() local
569 if (!hw) { in restart_stop_preview()
573 LOGI("E camera id %d", hw->getCameraId()); in restart_stop_preview()
574 hw->lockAPI(); in restart_stop_preview()
577 if (hw->getRelatedCamSyncInfo()->sync_control == CAM_SYNC_RELATED_SENSORS_ON) { in restart_stop_preview()
578 ret = hw->processAPI(QCAMERA_SM_EVT_RESTART_STOP_PREVIEW, NULL); in restart_stop_preview()
580 hw->waitAPIResult(QCAMERA_SM_EVT_RESTART_STOP_PREVIEW, &apiResult); in restart_stop_preview()
588 hw->unlockAPI(); in restart_stop_preview()
589 LOGI("X camera id %d", hw->getCameraId()); in restart_stop_preview()
610 QCamera2HardwareInterface *hw = in pre_start_recording() local
612 if (!hw) { in pre_start_recording()
617 hw->getCameraId()); in pre_start_recording()
618 hw->lockAPI(); in pre_start_recording()
620 ret = hw->processAPI(QCAMERA_SM_EVT_PRE_START_RECORDING, NULL); in pre_start_recording()
622 hw->waitAPIResult(QCAMERA_SM_EVT_PRE_START_RECORDING, &apiResult); in pre_start_recording()
625 hw->unlockAPI(); in pre_start_recording()
646 QCamera2HardwareInterface *hw = in start_recording() local
648 if (!hw) { in start_recording()
653 hw->m_perfLockMgr.acquirePerfLockIfExpired(PERF_LOCK_START_RECORDING); in start_recording()
656 hw->getCameraId()); in start_recording()
659 if (hw->getRelatedCamSyncInfo()->sync_control != CAM_SYNC_RELATED_SENSORS_ON) { in start_recording()
663 hw->m_perfLockMgr.releasePerfLock(PERF_LOCK_START_RECORDING); in start_recording()
668 hw->lockAPI(); in start_recording()
670 ret = hw->processAPI(QCAMERA_SM_EVT_START_RECORDING, NULL); in start_recording()
672 hw->waitAPIResult(QCAMERA_SM_EVT_START_RECORDING, &apiResult); in start_recording()
675 hw->unlockAPI(); in start_recording()
676 hw->m_bRecordStarted = true; in start_recording()
695 QCamera2HardwareInterface *hw = in stop_recording() local
697 if (!hw) { in stop_recording()
702 hw->m_perfLockMgr.acquirePerfLockIfExpired(PERF_LOCK_STOP_RECORDING); in stop_recording()
705 hw->getCameraId()); in stop_recording()
707 hw->lockAPI(); in stop_recording()
709 int32_t ret = hw->processAPI(QCAMERA_SM_EVT_STOP_RECORDING, NULL); in stop_recording()
711 hw->waitAPIResult(QCAMERA_SM_EVT_STOP_RECORDING, &apiResult); in stop_recording()
713 hw->unlockAPI(); in stop_recording()
732 QCamera2HardwareInterface *hw = in recording_enabled() local
734 if (!hw) { in recording_enabled()
738 LOGD("E camera id %d", hw->getCameraId()); in recording_enabled()
739 hw->lockAPI(); in recording_enabled()
741 ret = hw->processAPI(QCAMERA_SM_EVT_RECORDING_ENABLED, NULL); in recording_enabled()
743 hw->waitAPIResult(QCAMERA_SM_EVT_RECORDING_ENABLED, &apiResult); in recording_enabled()
746 hw->unlockAPI(); in recording_enabled()
747 LOGD("X camera id %d", hw->getCameraId()); in recording_enabled()
768 QCamera2HardwareInterface *hw = in release_recording_frame() local
770 if (!hw) { in release_recording_frame()
778 LOGD("E camera id %d", hw->getCameraId()); in release_recording_frame()
780 hw->lockAPI(); in release_recording_frame()
782 ret = hw->processAPI(QCAMERA_SM_EVT_RELEASE_RECORIDNG_FRAME, (void *)opaque); in release_recording_frame()
784 hw->waitAPIResult(QCAMERA_SM_EVT_RELEASE_RECORIDNG_FRAME, &apiResult); in release_recording_frame()
786 hw->unlockAPI(); in release_recording_frame()
787 LOGD("X camera id %d", hw->getCameraId()); in release_recording_frame()
806 QCamera2HardwareInterface *hw = in auto_focus() local
808 if (!hw) { in auto_focus()
813 hw->getCameraId()); in auto_focus()
814 hw->lockAPI(); in auto_focus()
816 ret = hw->processAPI(QCAMERA_SM_EVT_START_AUTO_FOCUS, NULL); in auto_focus()
818 hw->waitAPIResult(QCAMERA_SM_EVT_START_AUTO_FOCUS, &apiResult); in auto_focus()
821 hw->unlockAPI(); in auto_focus()
843 QCamera2HardwareInterface *hw = in cancel_auto_focus() local
845 if (!hw) { in cancel_auto_focus()
850 hw->getCameraId()); in cancel_auto_focus()
851 hw->lockAPI(); in cancel_auto_focus()
853 ret = hw->processAPI(QCAMERA_SM_EVT_STOP_AUTO_FOCUS, NULL); in cancel_auto_focus()
855 hw->waitAPIResult(QCAMERA_SM_EVT_STOP_AUTO_FOCUS, &apiResult); in cancel_auto_focus()
858 hw->unlockAPI(); in cancel_auto_focus()
879 QCamera2HardwareInterface *hw = in pre_take_picture() local
881 if (!hw) { in pre_take_picture()
886 hw->getCameraId()); in pre_take_picture()
887 hw->lockAPI(); in pre_take_picture()
889 ret = hw->processAPI(QCAMERA_SM_EVT_PRE_TAKE_PICTURE, NULL); in pre_take_picture()
891 hw->waitAPIResult(QCAMERA_SM_EVT_PRE_TAKE_PICTURE, &apiResult); in pre_take_picture()
894 hw->unlockAPI(); in pre_take_picture()
915 QCamera2HardwareInterface *hw = in take_picture() local
917 if (!hw) { in take_picture()
922 hw->getCameraId()); in take_picture()
925 if (hw->mParameters.isJpegPictureFormat()) { in take_picture()
926 hw->m_perfLockMgr.acquirePerfLock(PERF_LOCK_TAKE_SNAPSHOT); in take_picture()
938 hw->isLiveSnapshot(), hw->isZSLMode(), hw->isHDRMode(), in take_picture()
939 hw->isLongshotEnabled()); in take_picture()
942 if ((hw->mParameters.getNumOfRetroSnapshots() > 0) && in take_picture()
943 !hw->isLiveSnapshot() && hw->isZSLMode() && in take_picture()
944 !hw->isHDRMode() && !hw->isLongshotEnabled()) { in take_picture()
946 hw->setRetroPicture(1); in take_picture()
947 hw->m_bLedAfAecLock = 0; in take_picture()
952 if (hw->getRelatedCamSyncInfo()->sync_control != CAM_SYNC_RELATED_SENSORS_ON) { in take_picture()
962 hw->lockAPI(); in take_picture()
963 ret = hw->processAPI(QCAMERA_SM_EVT_TAKE_PICTURE, NULL); in take_picture()
967 hw->waitAPIResult(QCAMERA_SM_EVT_TAKE_PICTURE, &apiResult); in take_picture()
971 hw->unlockAPI(); in take_picture()
975 ret = hw->prepare_snapshot(device); in take_picture()
978 hw->setRetroPicture(0); in take_picture()
980 if (!hw->mPrepSnapRun) { in take_picture()
982 hw->prepare_snapshot(device); in take_picture()
987 if (hw->getRelatedCamSyncInfo()->sync_control != CAM_SYNC_RELATED_SENSORS_ON) { in take_picture()
1000 hw->lockAPI(); in take_picture()
1001 ret = hw->processAPI(QCAMERA_SM_EVT_TAKE_PICTURE, NULL); in take_picture()
1003 hw->waitAPIResult(QCAMERA_SM_EVT_TAKE_PICTURE, &apiResult); in take_picture()
1006 hw->unlockAPI(); in take_picture()
1007 if (!hw->isLongshotEnabled()){ in take_picture()
1009 hw->mPrepSnapRun = false; in take_picture()
1032 QCamera2HardwareInterface *hw = in cancel_picture() local
1034 if (!hw) { in cancel_picture()
1039 hw->getCameraId()); in cancel_picture()
1040 hw->lockAPI(); in cancel_picture()
1042 ret = hw->processAPI(QCAMERA_SM_EVT_CANCEL_PICTURE, NULL); in cancel_picture()
1044 hw->waitAPIResult(QCAMERA_SM_EVT_CANCEL_PICTURE, &apiResult); in cancel_picture()
1047 hw->unlockAPI(); in cancel_picture()
1048 LOGI("[KPI Perf]: X camera id %d ret = %d", hw->getCameraId(), ret); in cancel_picture()
1071 QCamera2HardwareInterface *hw = in set_parameters() local
1073 if (!hw) { in set_parameters()
1077 LOGD("E camera id %d", hw->getCameraId()); in set_parameters()
1078 hw->lockAPI(); in set_parameters()
1080 ret = hw->processAPI(QCAMERA_SM_EVT_SET_PARAMS, (void *)parms); in set_parameters()
1082 hw->waitAPIResult(QCAMERA_SM_EVT_SET_PARAMS, &apiResult); in set_parameters()
1088 if (hw->getRelatedCamSyncInfo()->sync_control != CAM_SYNC_RELATED_SENSORS_ON) { in set_parameters()
1089 if ((ret == NO_ERROR) && hw->getNeedRestart()) { in set_parameters()
1091 ret = hw->processAPI(QCAMERA_SM_EVT_SET_PARAMS_STOP, NULL); in set_parameters()
1093 hw->waitAPIResult(QCAMERA_SM_EVT_SET_PARAMS_STOP, &apiResult); in set_parameters()
1100 ret = hw->processAPI(QCAMERA_SM_EVT_SET_PARAMS_COMMIT, NULL); in set_parameters()
1102 hw->waitAPIResult(QCAMERA_SM_EVT_SET_PARAMS_COMMIT, &apiResult); in set_parameters()
1107 if ((ret == NO_ERROR) && hw->getNeedRestart()) { in set_parameters()
1109 ret = hw->processAPI(QCAMERA_SM_EVT_SET_PARAMS_RESTART, NULL); in set_parameters()
1111 hw->waitAPIResult(QCAMERA_SM_EVT_SET_PARAMS_RESTART, &apiResult); in set_parameters()
1117 hw->unlockAPI(); in set_parameters()
1118 LOGD("X camera id %d ret %d", hw->getCameraId(), ret); in set_parameters()
1139 QCamera2HardwareInterface *hw = in stop_after_set_params() local
1141 if (!hw) { in stop_after_set_params()
1145 LOGD("E camera id %d", hw->getCameraId()); in stop_after_set_params()
1146 hw->lockAPI(); in stop_after_set_params()
1149 if (hw->getRelatedCamSyncInfo()->sync_control == CAM_SYNC_RELATED_SENSORS_ON) { in stop_after_set_params()
1150 ret = hw->processAPI(QCAMERA_SM_EVT_SET_PARAMS_STOP, NULL); in stop_after_set_params()
1152 hw->waitAPIResult(QCAMERA_SM_EVT_SET_PARAMS_STOP, &apiResult); in stop_after_set_params()
1160 hw->unlockAPI(); in stop_after_set_params()
1161 LOGD("X camera id %d", hw->getCameraId()); in stop_after_set_params()
1182 QCamera2HardwareInterface *hw = in commit_params() local
1184 if (!hw) { in commit_params()
1188 LOGD("E camera id %d", hw->getCameraId()); in commit_params()
1189 hw->lockAPI(); in commit_params()
1192 if (hw->getRelatedCamSyncInfo()->sync_control == CAM_SYNC_RELATED_SENSORS_ON) { in commit_params()
1193 ret = hw->processAPI(QCAMERA_SM_EVT_SET_PARAMS_COMMIT, NULL); in commit_params()
1195 hw->waitAPIResult(QCAMERA_SM_EVT_SET_PARAMS_COMMIT, &apiResult); in commit_params()
1203 hw->unlockAPI(); in commit_params()
1204 LOGD("X camera id %d", hw->getCameraId()); in commit_params()
1225 QCamera2HardwareInterface *hw = in restart_after_set_params() local
1227 if (!hw) { in restart_after_set_params()
1231 LOGD("E camera id %d", hw->getCameraId()); in restart_after_set_params()
1232 hw->lockAPI(); in restart_after_set_params()
1235 if (hw->getRelatedCamSyncInfo()->sync_control == CAM_SYNC_RELATED_SENSORS_ON) { in restart_after_set_params()
1236 ret = hw->processAPI(QCAMERA_SM_EVT_SET_PARAMS_RESTART, NULL); in restart_after_set_params()
1238 hw->waitAPIResult(QCAMERA_SM_EVT_SET_PARAMS_RESTART, &apiResult); in restart_after_set_params()
1246 hw->unlockAPI(); in restart_after_set_params()
1247 LOGD("X camera id %d", hw->getCameraId()); in restart_after_set_params()
1265 QCamera2HardwareInterface *hw = in get_parameters() local
1267 if (!hw) { in get_parameters()
1271 LOGD("E camera id %d", hw->getCameraId()); in get_parameters()
1272 hw->lockAPI(); in get_parameters()
1274 int32_t rc = hw->processAPI(QCAMERA_SM_EVT_GET_PARAMS, NULL); in get_parameters()
1276 hw->waitAPIResult(QCAMERA_SM_EVT_GET_PARAMS, &apiResult); in get_parameters()
1279 hw->unlockAPI(); in get_parameters()
1280 LOGD("E camera id %d", hw->getCameraId()); in get_parameters()
1300 QCamera2HardwareInterface *hw = in put_parameters() local
1302 if (!hw) { in put_parameters()
1306 LOGD("E camera id %d", hw->getCameraId()); in put_parameters()
1307 hw->lockAPI(); in put_parameters()
1309 int32_t ret = hw->processAPI(QCAMERA_SM_EVT_PUT_PARAMS, (void *)parm); in put_parameters()
1311 hw->waitAPIResult(QCAMERA_SM_EVT_PUT_PARAMS, &apiResult); in put_parameters()
1313 hw->unlockAPI(); in put_parameters()
1314 LOGD("E camera id %d", hw->getCameraId()); in put_parameters()
1339 QCamera2HardwareInterface *hw = in send_command() local
1341 if (!hw) { in send_command()
1345 LOGD("E camera id %d", hw->getCameraId()); in send_command()
1352 hw->lockAPI(); in send_command()
1354 ret = hw->processAPI(QCAMERA_SM_EVT_SEND_COMMAND, (void *)&payload); in send_command()
1356 hw->waitAPIResult(QCAMERA_SM_EVT_SEND_COMMAND, &apiResult); in send_command()
1359 hw->unlockAPI(); in send_command()
1360 LOGD("E camera id %d", hw->getCameraId()); in send_command()
1387 QCamera2HardwareInterface *hw = in send_command_restart() local
1389 if (!hw) { in send_command_restart()
1399 hw->lockAPI(); in send_command_restart()
1401 ret = hw->processAPI(QCAMERA_SM_EVT_SEND_COMMAND_RESTART, (void *)&payload); in send_command_restart()
1403 hw->waitAPIResult(QCAMERA_SM_EVT_SEND_COMMAND_RESTART, &apiResult); in send_command_restart()
1406 hw->unlockAPI(); in send_command_restart()
1407 LOGD("E camera id %d", hw->getCameraId()); in send_command_restart()
1425 QCamera2HardwareInterface *hw = in release() local
1427 if (!hw) { in release()
1431 LOGD("E camera id %d", hw->getCameraId()); in release()
1432 hw->lockAPI(); in release()
1434 int32_t ret = hw->processAPI(QCAMERA_SM_EVT_RELEASE, NULL); in release()
1436 hw->waitAPIResult(QCAMERA_SM_EVT_RELEASE, &apiResult); in release()
1438 hw->unlockAPI(); in release()
1439 LOGD("E camera id %d", hw->getCameraId()); in release()
1463 QCamera2HardwareInterface *hw = in dump() local
1465 if (!hw) { in dump()
1469 LOGD("E camera id %d", hw->getCameraId()); in dump()
1470 hw->lockAPI(); in dump()
1472 ret = hw->processAPI(QCAMERA_SM_EVT_DUMP, (void *)&fd); in dump()
1474 hw->waitAPIResult(QCAMERA_SM_EVT_DUMP, &apiResult); in dump()
1477 hw->unlockAPI(); in dump()
1478 LOGD("E camera id %d", hw->getCameraId()); in dump()
1500 QCamera2HardwareInterface *hw = in close_camera_device() local
1503 if (!hw) { in close_camera_device()
1507 LOGI("[KPI Perf]: E camera id %d", hw->getCameraId()); in close_camera_device()
1508 delete hw; in close_camera_device()
1535 QCamera2HardwareInterface *hw = in register_face_image() local
1537 if (!hw) { in register_face_image()
1541 LOGD("E camera id %d", hw->getCameraId()); in register_face_image()
1546 hw->lockAPI(); in register_face_image()
1548 ret = hw->processAPI(QCAMERA_SM_EVT_REG_FACE_IMAGE, (void *)&payload); in register_face_image()
1550 hw->waitAPIResult(QCAMERA_SM_EVT_REG_FACE_IMAGE, &apiResult); in register_face_image()
1553 hw->unlockAPI(); in register_face_image()
1554 LOGD("E camera id %d", hw->getCameraId()); in register_face_image()
1575 QCamera2HardwareInterface *hw = in prepare_snapshot() local
1577 if (!hw) { in prepare_snapshot()
1581 if (hw->isLongshotEnabled() && hw->mPrepSnapRun == true) { in prepare_snapshot()
1587 hw->getCameraId()); in prepare_snapshot()
1588 hw->lockAPI(); in prepare_snapshot()
1592 if (hw->mFlashNeeded || hw->mParameters.isChromaFlashEnabled()) { in prepare_snapshot()
1594 ret = hw->processAPI(QCAMERA_SM_EVT_PREPARE_SNAPSHOT, NULL); in prepare_snapshot()
1596 hw->waitAPIResult(QCAMERA_SM_EVT_PREPARE_SNAPSHOT, &apiResult); in prepare_snapshot()
1599 hw->mPrepSnapRun = true; in prepare_snapshot()
1601 hw->unlockAPI(); in prepare_snapshot()
5499 QCamera2HardwareInterface *hw = reinterpret_cast<QCamera2HardwareInterface *>(data); in Live_Snapshot_thread() local
5500 if (!hw) { in Live_Snapshot_thread()
5504 if (hw->bLiveSnapshot) { in Live_Snapshot_thread()
5505 hw->takeLiveSnapshot_internal(); in Live_Snapshot_thread()
5507 hw->cancelLiveSnapshot_internal(); in Live_Snapshot_thread()
5525 QCamera2HardwareInterface *hw = reinterpret_cast<QCamera2HardwareInterface *>(data); in Int_Pic_thread() local
5527 if (!hw) { in Int_Pic_thread()
5537 rc = hw->takeBackendPic_internal(&JpegMemOpt, &raw_format[0]); in Int_Pic_thread()
5539 hw->checkIntPicPending(JpegMemOpt, &raw_format[0]); in Int_Pic_thread()
5542 hw->clearIntPendingEvents(); in Int_Pic_thread()