/hardware/qcom/camera/QCamera/stack/mm-camera-test/src/ |
D | mm_qcamera_dual_test.c | 51 int rc = MM_CAMERA_OK; in mm_app_dtc_0() local 60 CDBG_ERROR("%s:mm_app_open() back camera err=%d\n",__func__, rc); in mm_app_dtc_0() 61 rc = -1; in mm_app_dtc_0() 65 CDBG_ERROR("%s:system_dimension_set() err=%d\n",__func__, rc); in mm_app_dtc_0() 66 rc = -1; in mm_app_dtc_0() 70 if( MM_CAMERA_OK != (rc = startPreview(back_camera))) { in mm_app_dtc_0() 71 CDBG_ERROR("%s: back camera startPreview() err=%d\n", __func__, rc); in mm_app_dtc_0() 77 CDBG_ERROR("%s:mm_app_open() front camera err=%d\n",__func__, rc); in mm_app_dtc_0() 78 rc = -1; in mm_app_dtc_0() 82 CDBG_ERROR("%s:system_dimension_set() err=%d\n",__func__, rc); in mm_app_dtc_0() [all …]
|
D | mm_qcamera_unit_test.c | 50 int rc = MM_CAMERA_OK; in mm_app_tc_0() local 57 rc = -1; in mm_app_tc_0() 62 CDBG_ERROR("%s:mm_app_open() err=%d\n",__func__, rc); in mm_app_tc_0() 63 rc = -1; in mm_app_tc_0() 67 CDBG_ERROR("%s:system_dimension_set() err=%d\n",__func__, rc); in mm_app_tc_0() 68 rc = -1; in mm_app_tc_0() 73 if ( MM_CAMERA_OK != (rc = startPreview(my_cam_app.cam_open))) { in mm_app_tc_0() 74 CDBG_ERROR("%s: startPreview() err=%d\n", __func__, rc); in mm_app_tc_0() 82 if ( MM_CAMERA_OK != (rc = stopPreview(my_cam_app.cam_open))) { in mm_app_tc_0() 83 CDBG("%s: startPreview() err=%d\n", __func__, rc); in mm_app_tc_0() [all …]
|
D | mm_qcamera_rdi.c | 54 int rc = MM_CAMERA_OK; in mm_app_set_rdi_fmt() local 66 return rc; in mm_app_set_rdi_fmt() 71 int rc = MM_CAMERA_OK; in mm_app_open_rdi() local 76 return rc; in mm_app_open_rdi() 79 if (MM_CAMERA_OK != (rc = stopPreview(cam_id))) { in mm_app_open_rdi() 80 CDBG_ERROR("%s:Stop preview err=%d\n", __func__, rc); in mm_app_open_rdi() 85 CDBG("%s: END, rc=%d\n", __func__, rc); in mm_app_open_rdi() 86 return rc; in mm_app_open_rdi() 99 int rc; in mm_app_rdi_notify_cb() local 124 int rc = MM_CAMERA_OK; in mm_app_prepare_rdi() local [all …]
|
D | mm_qcamera_snapshot.c | 65 int rc = 0; in mm_app_dump_snapshot_frame() local 81 rc = -1; in mm_app_dump_snapshot_frame() 89 return rc; in mm_app_dump_snapshot_frame() 109 int rc = MM_CAMERA_OK; in mm_app_set_thumbnail_fmt() local 117 return rc; in mm_app_set_thumbnail_fmt() 123 int rc = MM_CAMERA_OK; in mm_app_set_snapshot_fmt() local 130 return rc; in mm_app_set_snapshot_fmt() 135 int rc = MM_CAMERA_OK; in mm_app_set_live_snapshot_fmt() local 142 return rc; in mm_app_set_live_snapshot_fmt() 147 int rc = MM_CAMERA_OK; in mm_app_set_raw_snapshot_fmt() local [all …]
|
D | mm_qcamera_video.c | 49 int rc = 0; in mm_app_dump_video_frame() local 51 return rc; /* disable dump */ in mm_app_dump_video_frame() 63 rc = -1; in mm_app_dump_video_frame() 71 return rc; in mm_app_dump_video_frame() 76 int rc = MM_CAMERA_OK; in mm_app_set_video_fmt() local 83 return rc; in mm_app_set_video_fmt() 92 int i, rc = MM_CAMERA_OK; 96 rc = my_cam_app.hal_lib.mm_camera_do_munmap_ion (pme->ionfd, &(pme->video_buf.frame[i].fd_data), 98 if(rc != MM_CAMERA_OK) { 100 __func__, bufs[i].fd, rc); [all …]
|
D | mm_qcamera_preview.c | 52 int rc = 0; in mm_camera_do_mmap_ion() local 58 rc = ioctl(ion_fd, ION_IOC_ALLOC, alloc); in mm_camera_do_mmap_ion() 59 if (rc < 0) { in mm_camera_do_mmap_ion() 65 rc = ioctl(ion_fd, ION_IOC_SHARE, ion_info_fd); in mm_camera_do_mmap_ion() 66 if (rc < 0) { in mm_camera_do_mmap_ion() 100 int rc = 0; in mm_camera_do_munmap_ion() local 101 rc = munmap(addr, size); in mm_camera_do_munmap_ion() 107 return rc; in mm_camera_do_munmap_ion() 113 int rc = MM_CAMERA_OK; in mm_app_set_preview_fmt() local 120 return rc; in mm_app_set_preview_fmt() [all …]
|
/hardware/qcom/camera/QCamera/HAL2/wrapper/ |
D | QualcommCamera.cpp | 126 int rc = -1; in get_camera_info() local 129 rc = android::HAL_getCameraInfo(camera_id, info); in get_camera_info() 132 return rc; in get_camera_info() 141 int rc = -1; in camera_device_open() local 154 return rc; in camera_device_open() 166 rc = 0; in camera_device_open() 179 ALOGE("%s: end rc %d", __func__, rc); in camera_device_open() 180 return rc; in camera_device_open() 186 int rc = -1; in close_camera_device() local 202 rc = 0; in close_camera_device() [all …]
|
/hardware/qcom/camera/QCamera/stack/mm-camera-interface/src/ |
D | mm_camera.c | 135 int rc; in mm_camera_event_notify() local 143 rc = ioctl(my_obj->ctrl_fd, VIDIOC_DQEVENT, &ev); in mm_camera_event_notify() 146 if (rc >= 0) { in mm_camera_event_notify() 160 int32_t rc = 0; in mm_camera_enqueue_evt() local 175 rc = -1; in mm_camera_enqueue_evt() 178 return rc; in mm_camera_enqueue_evt() 188 int rc = 0; in mm_camera_send_ch_event() local 196 rc = mm_camera_enqueue_evt(my_obj, &event); in mm_camera_send_ch_event() 197 return rc; in mm_camera_send_ch_event() 203 int32_t rc = 0; in mm_camera_open() local [all …]
|
D | mm_camera_stream.c | 123 int rc = 0; in get_stream_inst_handle() local 130 rc = ioctl(my_obj->fd, MSM_CAM_V4L2_IOCTL_PRIVATE_G_CTRL, &v4l2_ioctl); in get_stream_inst_handle() 131 if (rc) { in get_stream_inst_handle() 133 return rc; in get_stream_inst_handle() 138 my_obj->inst_hdl, rc); in get_stream_inst_handle() 139 return rc; in get_stream_inst_handle() 199 int32_t idx = -1, i, rc; in mm_stream_data_notify() local 218 rc = mm_stream_read_msm_frame(my_obj, &buf_info); in mm_stream_data_notify() 219 if (rc != 0) { in mm_stream_data_notify() 351 int32_t rc = -1; in mm_stream_fsm_fn() local [all …]
|
D | mm_camera_interface.c | 93 int32_t rc = -1; in mm_camera_intf_sync() local 104 rc = mm_camera_sync(my_obj); in mm_camera_intf_sync() 108 CDBG("%s :X rc = %d",__func__,rc); in mm_camera_intf_sync() 109 return rc; in mm_camera_intf_sync() 118 int32_t rc = -1; in mm_camera_intf_is_parm_supported() local 129 rc = mm_camera_is_parm_supported(my_obj, parm_type, support_set_parm, support_get_parm); in mm_camera_intf_is_parm_supported() 133 return rc; in mm_camera_intf_is_parm_supported() 141 int32_t rc = -1; in mm_camera_intf_set_parm() local 150 rc = mm_camera_set_parm(my_obj, parm_type, p_value); in mm_camera_intf_set_parm() 154 return rc; in mm_camera_intf_set_parm() [all …]
|
D | mm_camera_channel.c | 337 int32_t rc = -1; in mm_channel_fsm_fn() local 342 rc = mm_channel_fsm_fn_notused(my_obj, evt, in_val, out_val); in mm_channel_fsm_fn() 345 rc = mm_channel_fsm_fn_stopped(my_obj, evt, in_val, out_val); in mm_channel_fsm_fn() 348 rc = mm_channel_fsm_fn_active(my_obj, evt, in_val, out_val); in mm_channel_fsm_fn() 351 rc = mm_channel_fsm_fn_paused(my_obj, evt, in_val, out_val); in mm_channel_fsm_fn() 360 CDBG("%s : X rc = %d",__func__,rc); in mm_channel_fsm_fn() 361 return rc; in mm_channel_fsm_fn() 369 int32_t rc = -1; in mm_channel_fsm_fn_notused() local 378 return rc; in mm_channel_fsm_fn_notused() 386 int32_t rc = -1; in mm_channel_fsm_fn_stopped() local [all …]
|
D | mm_camera_helper.c | 88 int rc; in mm_camera_do_munmap() local 97 rc = (munmap(addr, size)); in mm_camera_do_munmap() 100 size, rc); in mm_camera_do_munmap() 101 return rc; in mm_camera_do_munmap() 109 int rc = 0; in mm_camera_do_mmap_ion() local 115 rc = ioctl(ion_fd, ION_IOC_ALLOC, alloc); in mm_camera_do_mmap_ion() 116 if (rc < 0) { in mm_camera_do_mmap_ion() 122 rc = ioctl(ion_fd, ION_IOC_SHARE, ion_info_fd); in mm_camera_do_mmap_ion() 123 if (rc < 0) { in mm_camera_do_mmap_ion() 152 int rc = 0; in mm_camera_do_munmap_ion() local [all …]
|
/hardware/qcom/camera/mm-camera-interface/ |
D | mm_camera_stream.c | 194 int idx = -1, rc = MM_CAMERA_OK; in mm_camera_read_msm_frame() local 206 rc = ioctl(stream->fd, VIDIOC_DQBUF, &vb); in mm_camera_read_msm_frame() 207 if (rc < 0) in mm_camera_read_msm_frame() 231 int rc = MM_CAMERA_OK; in mm_camera_stream_util_proc_get_crop() local 234 rc = ioctl(stream->fd, VIDIOC_G_CROP, &crop); in mm_camera_stream_util_proc_get_crop() 235 if (rc < 0) in mm_camera_stream_util_proc_get_crop() 236 return rc; in mm_camera_stream_util_proc_get_crop() 241 return rc; in mm_camera_stream_util_proc_get_crop() 246 int rc = MM_CAMERA_OK; in mm_camera_util_s_ctrl() local 252 rc = ioctl (fd, VIDIOC_S_CTRL, &control); in mm_camera_util_s_ctrl() [all …]
|
D | mm_camera_interface2.c | 129 int32_t rc = -MM_CAMERA_E_GENERAL; in mm_camera_cfg_set_parm() local 139 rc = mm_camera_set_parm(my_obj, &parm); in mm_camera_cfg_set_parm() 142 return rc; in mm_camera_cfg_set_parm() 150 int32_t rc = -MM_CAMERA_E_GENERAL; in mm_camera_cfg_get_parm() local 160 rc = mm_camera_get_parm(my_obj, &parm); in mm_camera_cfg_get_parm() 163 return rc; in mm_camera_cfg_get_parm() 169 int32_t rc = -MM_CAMERA_E_GENERAL; in mm_camera_cfg_request_buf() local 178 rc = mm_camera_request_buf(my_obj, buf); in mm_camera_cfg_request_buf() 181 return rc; in mm_camera_cfg_request_buf() 187 int32_t rc = -MM_CAMERA_E_GENERAL; in mm_camera_cfg_enqueue_buf() local [all …]
|
D | mm_camera.c | 50 int rc = 0; in mm_camera_ctrl_set_specialEffect() local 54 rc = ioctl(my_obj->ctrl_fd, VIDIOC_S_CTRL, &ctrl); in mm_camera_ctrl_set_specialEffect() 55 return rc; in mm_camera_ctrl_set_specialEffect() 59 int rc = 0; in mm_camera_ctrl_set_antibanding() local 64 rc = ioctl(my_obj->ctrl_fd, VIDIOC_S_CTRL, &ctrl); in mm_camera_ctrl_set_antibanding() 65 return rc; in mm_camera_ctrl_set_antibanding() 70 int rc = 0; in mm_camera_ctrl_set_auto_focus() local 85 if(0 != (rc = mm_camera_util_s_ctrl(my_obj->ctrl_fd, in mm_camera_ctrl_set_auto_focus() 88 __func__, V4L2_CID_FOCUS_AUTO, value, rc); in mm_camera_ctrl_set_auto_focus() 89 rc = -1; in mm_camera_ctrl_set_auto_focus() [all …]
|
D | mm_camera_channel.c | 132 int32_t rc = MM_CAMERA_OK; in mm_camera_ch_util_set_fmt() local 165 rc = -1; in mm_camera_ch_util_set_fmt() 171 rc = mm_camera_stream_fsm_fn_vtbl(my_obj, stream1, in mm_camera_ch_util_set_fmt() 173 if(stream2 && !rc) in mm_camera_ch_util_set_fmt() 174 rc = mm_camera_stream_fsm_fn_vtbl(my_obj, stream2, in mm_camera_ch_util_set_fmt() 176 return rc; in mm_camera_ch_util_set_fmt() 182 int32_t rc = MM_CAMERA_OK; in mm_camera_ch_util_acquire() local 189 rc = MM_CAMERA_OK; in mm_camera_ch_util_acquire() 220 if(stream1) rc = mm_camera_stream_fsm_fn_vtbl(my_obj, stream1, in mm_camera_ch_util_acquire() 222 if(stream2 && !rc) rc = mm_camera_stream_fsm_fn_vtbl(my_obj, stream2, in mm_camera_ch_util_acquire() [all …]
|
/hardware/qcom/camera/QCamera/HAL/wrapper/ |
D | QualcommCamera.cpp | 162 int rc = -1; in get_camera_info() local 169 rc = 0; in get_camera_info() 175 return rc; in get_camera_info() 184 int rc = -1; in camera_device_open() local 196 return rc; in camera_device_open() 207 rc = 0; in camera_device_open() 220 LOGE("%s: end rc %d", __func__, rc); in camera_device_open() 221 return rc; in camera_device_open() 227 int rc = -1; in close_camera_device() local 243 rc = 0; in close_camera_device() [all …]
|
/hardware/qcom/camera/ |
D | QualcommCamera2.cpp | 161 int rc = -1; in get_camera_info() local 168 rc = 0; in get_camera_info() 174 return rc; in get_camera_info() 185 int rc = -1; in camera_device_open() local 206 return rc; in camera_device_open() 218 rc = 0; in camera_device_open() 231 ALOGV("%s: end rc %d", __func__, rc); in camera_device_open() 233 return rc; in camera_device_open() 239 int rc = -1; in close_camera_device() local 259 rc = 0; in close_camera_device() [all …]
|
D | QCameraStream.cpp | 107 int rc = MM_CAMERA_OK; in initChannel() 116 rc = cam_config_get_parm(cameraId, MM_CAMERA_PARM_DIMENSION, &dim); in initChannel() 117 if (MM_CAMERA_OK != rc) { in initChannel() 124 rc = cam_ops_ch_acquire(cameraId, MM_CAMERA_CH_PREVIEW); in initChannel() 125 ALOGV("%s:ch_acquire MM_CAMERA_CH_PREVIEW, rc=%d\n",__func__, rc); in initChannel() 127 if(MM_CAMERA_OK != rc) { in initChannel() 128 ALOGE("%s: preview channel acquir error =%d\n", __func__, rc); in initChannel() 143 rc = cam_config_set_parm(cameraId, MM_CAMERA_PARM_CH_IMAGE_FMT, &fmt); in initChannel() 144 ALOGV("%s: preview MM_CAMERA_PARM_CH_IMAGE_FMT rc = %d\n", __func__, rc); in initChannel() 145 if(MM_CAMERA_OK != rc) { in initChannel() [all …]
|
D | QualcommCamera.cpp | 313 int rc = -1; in get_camera_info() local 320 rc = 0; in get_camera_info() 326 return rc; in get_camera_info() 336 int rc = -1; in camera_device_open() local 355 rc = 0; in camera_device_open() 369 return rc; in camera_device_open() 375 int rc = -1; in close_camera_device() local 394 rc = 0; in close_camera_device() 396 return rc; in close_camera_device() 404 int rc = -1; in set_preview_window() local [all …]
|
/hardware/qcom/camera/QCamera/stack/mm-jpeg-interface/src/ |
D | mm_jpeg_interface.c | 70 int32_t rc = -1; in mm_jpeg_intf_start_job() local 76 return rc; in mm_jpeg_intf_start_job() 84 return rc; in mm_jpeg_intf_start_job() 87 rc = mm_jpeg_start_job(g_jpeg_obj, client_hdl, job, jobId); in mm_jpeg_intf_start_job() 89 return rc; in mm_jpeg_intf_start_job() 94 int32_t rc = -1; in mm_jpeg_intf_abort_job() local 98 return rc; in mm_jpeg_intf_abort_job() 106 return rc; in mm_jpeg_intf_abort_job() 109 rc = mm_jpeg_abort_job(g_jpeg_obj, client_hdl, jobId); in mm_jpeg_intf_abort_job() 111 return rc; in mm_jpeg_intf_abort_job() [all …]
|
D | mm_jpeg.c | 74 int32_t rc = 0; in mm_jpeg_omx_load() local 80 rc = OMX_GetHandle(&my_obj->omx_handle, in mm_jpeg_omx_load() 85 if (0 != rc) { in mm_jpeg_omx_load() 86 CDBG_ERROR("%s : OMX_GetHandle failed (%d)",__func__, rc); in mm_jpeg_omx_load() 87 return rc; in mm_jpeg_omx_load() 90 rc = OMX_Init(); in mm_jpeg_omx_load() 91 if (0 != rc) { in mm_jpeg_omx_load() 92 CDBG_ERROR("%s : OMX_Init failed (%d)",__func__, rc); in mm_jpeg_omx_load() 96 return rc; in mm_jpeg_omx_load() 101 int32_t rc = 0; in mm_jpeg_omx_unload() local [all …]
|
/hardware/qcom/camera/QCamera/HAL/core/src/ |
D | QCameraStream.cpp | 106 int rc = MM_CAMERA_OK; in initChannel() 115 rc = cam_config_get_parm(cameraId, MM_CAMERA_PARM_DIMENSION, &dim); in initChannel() 116 if (MM_CAMERA_OK != rc) { in initChannel() 123 rc = cam_ops_ch_acquire(cameraId, MM_CAMERA_CH_PREVIEW); in initChannel() 124 LOGV("%s:ch_acquire MM_CAMERA_CH_PREVIEW, rc=%d\n",__func__, rc); in initChannel() 126 if(MM_CAMERA_OK != rc) { in initChannel() 127 LOGE("%s: preview channel acquir error =%d\n", __func__, rc); in initChannel() 142 rc = cam_config_set_parm(cameraId, MM_CAMERA_PARM_CH_IMAGE_FMT, &fmt); in initChannel() 143 LOGV("%s: preview MM_CAMERA_PARM_CH_IMAGE_FMT rc = %d\n", __func__, rc); in initChannel() 144 if(MM_CAMERA_OK != rc) { in initChannel() [all …]
|
/hardware/ril/mock-ril/src/java/com/android/internal/communication/ |
D | Msg.java | 43 private static void sendHeader(RilChannel rc, MsgHeader mh) throws IOException { in sendHeader() argument 51 rc.rewindSendAll(lenBuffer); in sendHeader() 52 rc.rewindSendAll(mhBuffer); in sendHeader() 61 private static MsgHeader recvHeader(RilChannel rc) throws IOException { in recvHeader() argument 64 int lenRead = rc.recvAllRewind(lenBuffer); in recvHeader() 68 lenRead = rc.recvAllRewind(mhBuffer); in recvHeader() 102 public static final void send(RilChannel rc, MsgHeader mh, ByteBuffer data) in send() argument 113 sendHeader(rc, mh); in send() 115 rc.sendAll(data); in send() 129 public static final void send(RilChannel rc, int cmd, long token, int status, MessageMicro pb) in send() argument [all …]
|
/hardware/msm7k/librpc/ |
D | ops.c | 30 int rc = read((int) handle, (void *)buf, size); in r_read() local 31 if (rc < 0) in r_read() 35 int len = rc / 4; in r_read() 37 fprintf(stdout, "RPC in %02d:", rc); in r_read() 43 return rc; in r_read() 48 int rc = write(handle, (void *)buf, size); in r_write() local 49 if (rc < 0) in r_write() 53 int len = rc / 4; in r_write() 55 fprintf(stdout, "RPC out %02d:", rc); in r_write() 61 return rc; in r_write()
|