/hardware/qcom/camera/QCamera2/stack/mm-camera-test/src/ |
H A D | mm_qcamera_unit_test.c | 42 int rc = MM_CAMERA_OK; local 49 rc = mm_app_open(cam_app, i, &test_obj); 50 if (rc != MM_CAMERA_OK) { 52 __func__, i, rc); 56 rc = mm_app_close(&test_obj); 57 if (rc != MM_CAMERA_OK) { 59 __func__, i, rc); 63 if (rc == MM_CAMERA_OK) { 68 CDBG("%s:END, rc = %d\n", __func__, rc); 74 int rc = MM_CAMERA_OK; local 122 int rc = MM_CAMERA_OK; local 170 int rc = MM_CAMERA_OK; local 218 int rc = MM_CAMERA_OK; local 293 int rc = MM_CAMERA_OK; local 392 int rc = MM_CAMERA_OK; local 445 int rc = MM_CAMERA_OK; local 498 int rc = MM_CAMERA_OK, rc2 = MM_CAMERA_OK; local 549 int rc = MM_CAMERA_OK, rc2 = MM_CAMERA_OK; local 618 int rc = MM_CAMERA_OK; local [all...] |
H A D | mm_qcamera_dual_test.c | 82 int rc = MM_CAMERA_OK; local 91 CDBG_ERROR("%s:mm_app_open() back camera err=%d\n",__func__, rc); 92 rc = -1; 96 CDBG_ERROR("%s:system_dimension_set() err=%d\n",__func__, rc); 97 rc = -1; 103 CDBG_ERROR("%s:mm_app_open() front camera err=%d\n",__func__, rc); 104 rc = -1; 109 CDBG_ERROR("%s:system_dimension_set() err=%d\n",__func__, rc); 110 rc = -1; 115 if( MM_CAMERA_OK != (rc 172 int rc = MM_CAMERA_OK; local 261 int rc = MM_CAMERA_OK; local 351 int rc = MM_CAMERA_OK; local 453 int rc = MM_CAMERA_OK; local 562 int rc = MM_CAMERA_OK; local 655 int rc = MM_CAMERA_OK; local 748 int rc = MM_CAMERA_OK; local 805 int rc = MM_CAMERA_OK; local 880 int rc = MM_CAMERA_OK; local 913 int rc = MM_CAMERA_OK; local 950 int rc = MM_CAMERA_OK; local 989 int rc = MM_CAMERA_OK; local 1026 int rc = MM_CAMERA_OK; local 1065 int rc = MM_CAMERA_OK; local 1107 int rc = MM_CAMERA_OK; local 1214 int rc = MM_CAMERA_OK; local 1276 int rc = MM_CAMERA_OK; local 1337 int rc = MM_CAMERA_OK; local 1399 int rc = MM_CAMERA_OK; local 1461 int rc = MM_CAMERA_OK; local 1522 int rc = MM_CAMERA_OK; local 1582 int rc = MM_CAMERA_OK; local 1651 int rc = MM_CAMERA_OK; local 1713 int rc = MM_CAMERA_OK; local 1780 int rc = MM_CAMERA_OK; local 1844 int rc = MM_CAMERA_OK; local 1914 int rc = MM_CAMERA_OK; local [all...] |
H A D | mm_qcamera_video.c | 62 int rc = MM_CAMERA_OK; local 91 rc = mm_app_config_stream(test_obj, channel, stream, &stream->s_config); 92 if (MM_CAMERA_OK != rc) { 93 CDBG_ERROR("%s:config preview stream err=%d\n", __func__, rc); 131 int rc = MM_CAMERA_OK; local 157 rc = mm_app_start_channel(test_obj, p_ch); 158 if (MM_CAMERA_OK != rc) { 159 CDBG_ERROR("%s:start preview failed rc=%d\n", __func__, rc); 163 return rc; 171 int rc = MM_CAMERA_OK; local 200 int rc = MM_CAMERA_OK; local 215 int rc = MM_CAMERA_OK; local 230 int rc = MM_CAMERA_OK; local 245 int rc = MM_CAMERA_OK; local [all...] |
H A D | mm_qcamera_preview.c | 155 int rc = MM_CAMERA_OK; local 184 rc = mm_app_config_stream(test_obj, channel, stream, &stream->s_config); 185 if (MM_CAMERA_OK != rc) { 186 CDBG_ERROR("%s:config preview stream err=%d\n", __func__, rc); 200 int rc = MM_CAMERA_OK; local 234 rc = mm_app_config_stream(test_obj, channel, stream, &stream->s_config); 235 if (MM_CAMERA_OK != rc) { 236 CDBG_ERROR("%s:config preview stream err=%d\n", __func__, rc); 275 int rc = MM_CAMERA_OK; local 279 rc 302 int rc = MM_CAMERA_OK; local 329 int rc = MM_CAMERA_OK; local 344 int32_t rc = MM_CAMERA_OK; local 404 int rc = MM_CAMERA_OK; local [all...] |
H A D | mm_qcamera_rdi.c | 91 int rc = MM_CAMERA_OK; local 144 rc = mm_app_config_stream(test_obj, channel, stream, &stream->s_config); 145 if (MM_CAMERA_OK != rc) { 146 CDBG_ERROR("%s:config rdi stream err=%d\n", __func__, rc); 166 int rc = MM_CAMERA_OK; local 200 rc = mm_app_config_stream(test_obj, channel, stream, &stream->s_config); 201 if (MM_CAMERA_OK != rc) { 202 CDBG_ERROR("%s:config rdi stream err=%d\n", __func__, rc); 243 int rc = MM_CAMERA_OK; local 247 rc 270 int rc = MM_CAMERA_OK; local 291 int rc = MM_CAMERA_OK; local [all...] |
H A D | mm_qcamera_app.c | 47 int rc = 0; local 55 rc = pthread_cond_timedwait(&app_cond_v, &app_mutex,&tw); 59 return rc; 64 int rc = 0; local 71 return rc; 113 int rc = MM_CAMERA_OK; local 133 rc = ioctl(main_ion_fd, ION_IOC_ALLOC, &alloc); 134 if (rc < 0) { 141 rc = ioctl(main_ion_fd, ION_IOC_SHARE, &ion_info_fd); 142 if (rc < 178 int rc = 0; local 319 int i, rc = MM_CAMERA_OK; local 341 int i, rc; local 466 int32_t rc; local 567 uint32_t rc = MM_CAMERA_OK; local 653 int rc = MM_CAMERA_OK; local 754 int rc; local [all...] |
/hardware/qcom/camera/QCamera2/stack/mm-jpeg-interface/src/ |
H A D | mm_jpeg_interface.c | 106 int32_t rc = -1; local 111 return rc; 119 return rc; 121 rc = mm_jpeg_start_job(g_jpeg_obj, job, job_id); 123 return rc; 144 int32_t rc = -1; local 148 return rc; 156 return rc; 159 rc = mm_jpeg_create_session(g_jpeg_obj, client_hdl, p_params, p_session_id); 161 return rc; 178 int32_t rc = -1; local 212 int32_t rc = -1; local 246 int32_t rc = -1; local 290 int32_t rc = 0; local [all...] |
H A D | mm_jpeg_exif.c | 64 int32_t rc = 0; local 82 rc = -1; 97 rc = -1; 110 rc = -1; 125 rc = -1; 140 rc = -1; 154 rc = -1; 166 rc = -1; 181 rc = -1; 195 return rc; 296 int rc = 0; local 357 int rc = 0; local 433 int rc = 0; local 476 int rc = 0; local [all...] |
/hardware/qcom/camera/QCamera2/HAL/ |
H A D | QCameraStateMachine.cpp | 244 int32_t rc = NO_ERROR; local 247 rc = procEvtPreviewStoppedState(evt, payload); 250 rc = procEvtPreviewReadyState(evt, payload); 253 rc = procEvtPreviewingState(evt, payload); 256 rc = procEvtPrepareSnapshotState(evt, payload); 259 rc = procEvtPicTakingState(evt, payload); 262 rc = procEvtRecordingState(evt, payload); 265 rc = procEvtVideoPicTakingState(evt, payload); 268 rc = procEvtPreviewPicTakingState(evt, payload); 274 return rc; 294 int32_t rc = NO_ERROR; local 589 int32_t rc = NO_ERROR; local 870 int32_t rc = NO_ERROR; local 1228 int32_t rc = NO_ERROR; local 1335 int32_t rc = NO_ERROR; local 1627 int32_t rc = NO_ERROR; local 1939 int32_t rc = NO_ERROR; local 2244 int32_t rc = NO_ERROR; local [all...] |
H A D | QCamera2Factory.cpp | 131 int rc; local 138 rc = QCamera2HardwareInterface::getCapabilities(camera_id, info); 140 return rc; 159 int rc = NO_ERROR; local 168 rc = hw->openCamera(hw_device); 169 if (rc != NO_ERROR) { 172 return rc;
|
H A D | QCamera2HWI.cpp | 99 int rc = NO_ERROR; local 108 rc = hw->processAPI(QCAMERA_SM_EVT_SET_PREVIEW_WINDOW, (void *)window); 109 if (rc == NO_ERROR) { 111 rc = hw->m_apiResult.status; 115 return rc; 155 int32_t rc = hw->processAPI(QCAMERA_SM_EVT_SET_CALLBACKS, (void *)&payload); local 156 if (rc == NO_ERROR) { 182 int32_t rc = hw->processAPI(QCAMERA_SM_EVT_ENABLE_MSG_TYPE, (void *)msg_type); local 183 if (rc == NO_ERROR) { 209 int32_t rc local 701 int32_t rc = hw->processAPI(QCAMERA_SM_EVT_GET_PARAMS, NULL); local 995 int rc = NO_ERROR; local 1036 int32_t rc = m_postprocessor.init(jpegEvtHandle, this); local 1080 int rc = NO_ERROR; local 1124 int rc = NO_ERROR; local 1199 int rc = NO_ERROR; local 1351 int rc = NO_ERROR; local 1439 int rc = NO_ERROR; local 1625 int32_t rc = NO_ERROR; local 1695 int32_t rc = NO_ERROR; local 1740 int rc = stopChannel(QCAMERA_CH_TYPE_VIDEO); local 1767 int32_t rc = UNKNOWN_ERROR; local 1790 int rc = NO_ERROR; local 1863 int rc = NO_ERROR; local 1907 int rc = NO_ERROR; local 2029 int rc = NO_ERROR; local 2054 int rc = NO_ERROR; local 2122 int rc = NO_ERROR; local 2154 int rc = NO_ERROR; local 2313 int rc = NO_ERROR; local 2698 int32_t rc = NO_ERROR; local 2734 int32_t rc = NO_ERROR; local 2797 int32_t rc = NO_ERROR; local 2848 int32_t rc = NO_ERROR; local 2896 int32_t rc = NO_ERROR; local 2954 int32_t rc = NO_ERROR; local 3037 int32_t rc = NO_ERROR; local 3111 int32_t rc = NO_ERROR; local 3161 int32_t rc = NO_ERROR; local 3256 int32_t rc = NO_ERROR; local 3323 int32_t rc = UNKNOWN_ERROR; local 3388 int32_t rc = UNKNOWN_ERROR; local 3410 int32_t rc = UNKNOWN_ERROR; local 3431 int32_t rc = NO_ERROR; local 3882 int rc = mParameters.commitParameters(); local 4037 int32_t rc = NO_ERROR; local [all...] |
H A D | QCameraChannel.cpp | 163 int32_t rc = NO_ERROR; local 179 rc = pStream->init(streamInfoBuf, minStreamBufNum, stream_cb, userdata); 180 if (rc == 0) { 186 return rc; 202 int32_t rc = NO_ERROR; local 209 rc = m_camOps->get_bundle_info(m_camHandle, m_handle, &bundleInfo); 210 if (rc != NO_ERROR) { 212 return rc; 228 rc = pStream->setParameter(param); 229 if (rc ! 271 int32_t rc = NO_ERROR; local 298 int32_t rc = NO_ERROR; local 331 int32_t rc = NO_ERROR; local 455 int32_t rc = m_camOps->request_super_buf(m_camHandle, local 474 int32_t rc = m_camOps->cancel_super_buf_request(m_camHandle, m_handle); local 549 int32_t rc = pVideoStream->bufDone(opaque, isMetaData); local 622 int32_t rc = 0; local 733 int32_t rc = 0; local 806 int32_t rc = 0; local [all...] |
H A D | QCameraStream.cpp | 199 int rc = mCamOps->unmap_stream_buf(mCamHandle, local 201 if (rc < 0) { 235 int32_t rc = OK; local 241 rc = UNKNOWN_ERROR; 250 rc = mCamOps->map_stream_buf(mCamHandle, 253 if (rc < 0) { 264 rc = mCamOps->config_stream(mCamHandle, 266 if (rc < 0) { 267 ALOGE("Failed to config stream, rc = %d", rc); 302 int32_t rc = 0; local 320 int32_t rc = 0; local 341 int32_t rc = 0; local 497 int32_t rc = NO_ERROR; local 524 int32_t rc = NO_ERROR; local 559 int rc = NO_ERROR; local 659 int rc = NO_ERROR; local 931 int32_t rc = NO_ERROR; local [all...] |
H A D | QCameraThermalAdapter.cpp | 63 int rc = NO_ERROR; local 71 rc = UNKNOWN_ERROR; 79 rc = UNKNOWN_ERROR; 87 rc = UNKNOWN_ERROR; 96 rc = UNKNOWN_ERROR; 103 rc = UNKNOWN_ERROR; 109 return rc; 120 return rc; 152 int rc = 0; local 157 rc [all...] |
/hardware/qcom/camera/QCamera2/stack/mm-camera-interface/src/ |
H A D | mm_camera.c | 155 int rc; local 163 rc = ioctl(my_obj->ctrl_fd, VIDIOC_DQEVENT, &ev); 165 if (rc >= 0 && ev.id == MSM_CAMERA_MSM_NOTIFY) { 205 int32_t rc = 0; local 220 rc = -1; 223 return rc; 241 int32_t rc = 0; local 269 rc = -1; 291 rc = -1; 312 CDBG("%s: end (rc 394 int rc = -1; local 445 int rc = -1; local 471 int rc = -1; local 501 int32_t rc = 0; local 535 int32_t rc = -1; local 565 int32_t rc = -1; local 590 int32_t rc = -1; local 611 int32_t rc = -1; local 634 int32_t rc = -1; local 655 int32_t rc = -1; local 679 int32_t rc = -1; local 756 int32_t rc = -1; local 797 int32_t rc = -1; local 869 int32_t rc = -1; local 908 int32_t rc = -1; local 947 int32_t rc = -1; local 982 int32_t rc = 0; local 1019 int32_t rc = -1; local 1054 int32_t rc = -1; local 1089 int32_t rc = -1; local 1126 int32_t rc = -1; local 1168 int32_t rc = -1; local 1217 int32_t rc = -1; local 1265 int32_t rc = -1; local 1324 int32_t rc = -1; local 1382 int32_t rc = -1; local 1423 int32_t rc = 0; local 1504 int32_t rc = -1; local 1543 int32_t rc = 0; local 1577 int32_t rc = 0; local 1606 int rc = 0; local 1640 int rc = 0; local [all...] |
H A D | mm_camera_interface.c | 149 int32_t rc = -1; local 160 rc = mm_camera_query_capability(my_obj); 164 CDBG("%s :X rc = %d", __func__, rc); 165 return rc; 187 int32_t rc = -1; local 196 rc = mm_camera_set_parms(my_obj, parms); 200 return rc; 224 int32_t rc = -1; local 233 rc 256 int32_t rc = -1; local 286 int32_t rc = -1; local 318 int32_t rc = -1; local 348 int32_t rc = -1; local 378 int32_t rc = -1; local 408 int32_t rc = -1; local 505 int32_t rc = -1; local 543 int32_t rc = -1; local 579 int32_t rc = -1; local 615 int32_t rc = -1; local 687 int32_t rc = -1; local 727 int32_t rc = -1; local 765 int32_t rc = -1; local 798 int32_t rc = -1; local 834 int32_t rc = -1; local 870 int32_t rc = -1; local 906 int32_t rc = -1; local 943 int32_t rc = -1; local 985 int32_t rc = -1; local 1020 int32_t rc = -1; local 1059 int32_t rc = -1; local 1104 int32_t rc = -1; local 1160 int32_t rc = -1; local 1214 int32_t rc = -1; local 1247 int rc = 0; local 1361 int32_t rc = 0; local [all...] |
H A D | mm_camera_channel.c | 304 int32_t rc = -1; local 309 rc = mm_channel_fsm_fn_notused(my_obj, evt, in_val, out_val); 312 rc = mm_channel_fsm_fn_stopped(my_obj, evt, in_val, out_val); 315 rc = mm_channel_fsm_fn_active(my_obj, evt, in_val, out_val); 318 rc = mm_channel_fsm_fn_paused(my_obj, evt, in_val, out_val); 327 CDBG("%s : X rc = %d", __func__, rc); 328 return rc; 352 int32_t rc = -1; local 361 return rc; 385 int32_t rc = 0; local 499 int32_t rc = 0; local 607 int32_t rc = 0; local 640 int32_t rc = 0; local 691 int32_t rc = 0; local 748 int rc = -1; local 784 int rc = -1; local 822 int32_t rc = 0; local 865 int32_t rc = 0; local 1000 int32_t rc = 0; local 1084 int32_t rc = 0; local 1124 int32_t rc = 0; local 1145 int32_t rc = 0; local 1183 int32_t rc = 0; local 1221 int32_t rc = -1; local 1254 int32_t rc = -1; local 1289 int32_t rc = -1; local 1323 int32_t rc = -1; local 1352 int32_t rc = -1; local 1383 int32_t rc = -1; local 1476 int rc = 0 ; local 1822 int32_t rc = 0, i; local 1868 int32_t rc = 0, i; local 1909 int32_t rc = 0, i; local [all...] |
H A D | mm_camera_stream.c | 197 int32_t idx = -1, i, rc; local 216 rc = mm_stream_read_msm_frame(my_obj, &buf_info, my_obj->frame_offset.num_planes); 217 if (rc != 0) { 342 int32_t rc = -1; local 351 rc = mm_stream_fsm_inited(my_obj, evt, in_val, out_val); 354 rc = mm_stream_fsm_acquired(my_obj, evt, in_val, out_val); 357 rc = mm_stream_fsm_cfg(my_obj, evt, in_val, out_val); 360 rc = mm_stream_fsm_buffed(my_obj, evt, in_val, out_val); 363 rc = mm_stream_fsm_reg(my_obj, evt, in_val, out_val); 366 rc 397 int32_t rc = 0; local 460 int32_t rc = 0; local 525 int32_t rc = 0; local 595 int32_t rc = 0; local 656 int32_t rc = 0; local 742 int32_t rc = 0; local 811 int32_t rc = 0; local 877 int32_t rc; local 908 int32_t rc; local 944 int32_t rc = 0; local 1018 int32_t rc = -1; local 1045 int32_t rc = -1; local 1072 int32_t rc = -1; local 1097 int32_t rc = 0; local 1130 int32_t rc = 0; local 1199 int32_t rc = 0; local 1403 int32_t i, rc = 0; local 1468 int32_t rc = 0; local 1511 int32_t rc = 0; local 1559 int32_t i, rc = 0; local 1661 int32_t rc = 0; local 1819 int32_t rc = 0; local 1973 int32_t rc = 0; local 2252 int32_t rc = 0; local 2285 int32_t rc = 0; local 2347 int32_t rc = 0; local 2425 int32_t rc = 0; local 2452 int32_t rc = 0; local 2503 int32_t rc = 0; local 2551 int32_t rc = -1; local [all...] |
H A D | mm_camera_thread.c | 275 int rc = 0, i; local 284 rc = poll(poll_cb->poll_fds, poll_cb->num_fds, poll_cb->timeoutms); 285 if(rc > 0) { 384 int32_t rc = -1; local 402 rc = mm_camera_poll_sig(poll_cb, MM_CAMERA_PIPE_CMD_POLL_ENTRIES_UPDATED); 404 rc = mm_camera_poll_sig_async(poll_cb, MM_CAMERA_PIPE_CMD_POLL_ENTRIES_UPDATED_ASYNC ); 410 return rc; 429 int32_t rc = -1; local 449 rc = mm_camera_poll_sig(poll_cb, MM_CAMERA_PIPE_CMD_POLL_ENTRIES_UPDATED); 451 rc 466 int32_t rc = 0; local 505 int32_t rc = 0; local 585 int32_t rc = 0; local 602 int32_t rc = 0; local 611 int32_t rc = 0; local 633 int32_t rc = 0; local 642 int32_t rc = 0; local [all...] |
/hardware/qcom/camera/QCamera2/util/ |
H A D | QCameraCmdThread.cpp | 190 int32_t rc = NO_ERROR; local 193 return rc; 196 rc = sendCmd(CAMERA_CMD_TYPE_EXIT, 0, 1); 197 if (NO_ERROR != rc) { 198 ALOGE("%s: Error during exit, rc = %d", __func__, rc); 199 return rc; 207 return rc;
|
/hardware/qcom/camera/QCamera2/HAL3/ |
H A D | QCamera3Stream.cpp | 200 int rc = mCamOps->unmap_stream_buf(mCamHandle, local 202 if (rc < 0) { 239 int32_t rc = OK; local 245 rc = UNKNOWN_ERROR; 253 rc = -ENOMEM; 256 rc = mStreamInfoBuf->allocate(1, sizeof(cam_stream_info_t), false); 257 if (rc < 0) { 259 rc = -ENOMEM; 283 rc = mCamOps->map_stream_buf(mCamHandle, 286 if (rc < 340 int32_t rc = 0; local 358 int32_t rc = 0; local 379 int32_t rc = mProcTh.sendCmd(CAMERA_CMD_TYPE_DO_NEXT_JOB, FALSE, FALSE); local 496 mm_camera_buf_def_t *rc = NULL; local 525 int32_t rc = NO_ERROR; local 560 int rc = NO_ERROR; local 645 int rc = NO_ERROR; local 853 int32_t rc = NO_ERROR; local [all...] |
H A D | QCamera3Factory.cpp | 152 int rc; local 160 rc = QCamera3HardwareInterface::getCamInfo(camera_id, info); 162 return rc; 181 int rc = NO_ERROR; local 190 rc = hw->openCamera(hw_device); 191 if (rc != 0) { 194 return rc;
|
H A D | QCamera3Channel.cpp | 193 int32_t rc = NO_ERROR; local 215 rc = pStream->init(streamType, streamFormat, streamDim, NULL, minStreamBufNum, 217 if (rc == 0) { 223 return rc; 239 int32_t rc = NO_ERROR; local 250 rc = m_camOps->start_channel(m_camHandle, m_handle); 252 if (rc != NO_ERROR) { 262 return rc; 278 int32_t rc = NO_ERROR; local 281 return rc; 310 int32_t rc = NO_ERROR; local 547 int32_t rc = NO_ERROR; local 597 int rc = 0; local 754 int32_t rc; local 809 int rc; local 952 int32_t rc = m_postprocessor.init(jpegEvtHandle, this); local 960 int32_t rc = m_postprocessor.deinit(); local 971 int32_t rc = NO_ERROR; local 1009 int32_t rc = NO_ERROR; local 1106 int rc = 0; local 1191 int rc = 0; local 1624 int32_t rc = NO_ERROR; local 1839 int32_t rc = NO_ERROR; local 1945 int rc = 0; local 2028 int32_t rc; local 2050 int32_t rc = 0; local 2102 int32_t rc = 0; local 2155 int32_t rc = 0; local [all...] |
/hardware/qcom/camera/QCamera2/stack/common/ |
H A D | cam_semaphore.h | 65 int rc = 0; local 68 rc = pthread_cond_wait(&(s->cond), &(s->mutex)); 71 return rc;
|
/hardware/qcom/power/ |
H A D | power.c | 65 int rc; local 78 rc = sendto(client_sockfd, data, strlen(data), 0, (const struct sockaddr *)&client_addr, sizeof(struct sockaddr_un)); 81 rc = sendto(client_sockfd, data, strlen(data), 0, (const struct sockaddr *)&client_addr, sizeof(struct sockaddr_un)); 84 if (rc < 0) { 91 int rc; local 104 rc = sendto(client_sockfd, data, strlen(data), 0, (const struct sockaddr *)&client_addr, sizeof(struct sockaddr_un)); 107 rc = sendto(client_sockfd, data, strlen(data), 0, (const struct sockaddr *)&client_addr, sizeof(struct sockaddr_un)); 110 if (rc < 0) { 148 int rc; local 160 rc [all...] |