/device/generic/goldfish/opengl/system/gralloc/ |
D | gralloc.cpp | 86 static int map_buffer(cb_handle_t *cb, void **vaddr) in map_buffer() argument 88 if (cb->fd < 0 || cb->ashmemSize <= 0) { in map_buffer() 92 void *addr = mmap(0, cb->ashmemSize, PROT_READ | PROT_WRITE, in map_buffer() 93 MAP_SHARED, cb->fd, 0); in map_buffer() 98 cb->ashmemBase = intptr_t(addr); in map_buffer() 99 cb->ashmemBasePid = getpid(); in map_buffer() 292 cb_handle_t *cb = new cb_handle_t(fd, ashmem_size, usage, in gralloc_alloc() local 301 int err = map_buffer(cb, &vaddr); in gralloc_alloc() 304 delete cb; in gralloc_alloc() 308 cb->setFd(fd); in gralloc_alloc() [all …]
|
/device/asus/flo/camera/QCamera2/HAL/ |
D | QCamera2HWICallbacks.cpp | 1083 qcamera_callback_argm_t *cb = in cbNotifyRoutine() local 1085 if (NULL != cb) { in cbNotifyRoutine() 1088 cb->cb_type); in cbNotifyRoutine() 1090 if (pme->mParent->msgTypeEnabledWithLock(cb->msg_type)) { in cbNotifyRoutine() 1091 switch (cb->cb_type) { in cbNotifyRoutine() 1094 if (cb->msg_type == CAMERA_MSG_FOCUS) { in cbNotifyRoutine() 1098 pme->mNotifyCb(cb->msg_type, in cbNotifyRoutine() 1099 cb->ext1, in cbNotifyRoutine() 1100 cb->ext2, in cbNotifyRoutine() 1111 pme->mDataCb(cb->msg_type, in cbNotifyRoutine() [all …]
|
/device/lge/hammerhead/camera/QCamera2/HAL/ |
D | QCamera2HWICallbacks.cpp | 1083 qcamera_callback_argm_t *cb = in cbNotifyRoutine() local 1085 if (NULL != cb) { in cbNotifyRoutine() 1088 cb->cb_type); in cbNotifyRoutine() 1090 if (pme->mParent->msgTypeEnabledWithLock(cb->msg_type)) { in cbNotifyRoutine() 1091 switch (cb->cb_type) { in cbNotifyRoutine() 1094 if (cb->msg_type == CAMERA_MSG_FOCUS) { in cbNotifyRoutine() 1098 pme->mNotifyCb(cb->msg_type, in cbNotifyRoutine() 1099 cb->ext1, in cbNotifyRoutine() 1100 cb->ext2, in cbNotifyRoutine() 1111 pme->mDataCb(cb->msg_type, in cbNotifyRoutine() [all …]
|
/device/lge/mako/camera/QCamera/stack/mm-camera-interface/src/ |
D | mm_camera_data.c | 167 if (NULL != cmd_thread->cb) { in mm_camera_cmd_thread() 168 cmd_thread->cb(node, cmd_thread->user_data); in mm_camera_cmd_thread() 183 mm_camera_cmd_cb_t cb, in mm_camera_cmd_thread_launch() argument 190 cmd_thread->cb = cb; in mm_camera_cmd_thread_launch()
|
D | mm_camera_stream.c | 171 if(NULL != my_obj->buf_cb[i].cb) { in mm_stream_handle_rcvd_buf() 235 if(NULL != my_obj->buf_cb[i].cb) { in mm_stream_data_notify() 322 if(NULL != my_obj->buf_cb[i].cb) { in mm_stream_dispatch_app_data() 327 my_obj->buf_cb[i].cb(&super_buf, in mm_stream_dispatch_app_data() 336 my_obj->buf_cb[i].cb = NULL; in mm_stream_dispatch_app_data() 607 mm_stream_data_cb_t cb; in mm_stream_fsm_reg() local 608 memset(&cb, 0, sizeof(mm_stream_data_cb_t)); in mm_stream_fsm_reg() 609 cb.cb_count = 1; /* one time reigstration */ in mm_stream_fsm_reg() 610 cb.user_data = (void*)my_obj; in mm_stream_fsm_reg() 611 cb.cb = mm_stream_buf_notify; in mm_stream_fsm_reg() [all …]
|
D | mm_camera_channel.c | 667 stream_obj->buf_cb[0].cb = buf_cb; in mm_channel_add_stream() 1223 mm_stream_data_cb_t *cb, in mm_channel_reg_stream_cb() argument 1243 rc = mm_stream_reg_buf_cb(dest_stream, cb); in mm_channel_reg_stream_cb()
|
/device/lge/mako/camera/mm-camera-interface/ |
D | mm_camera_notify.c | 66 if((my_obj->ch[MM_CAMERA_CH_RAW].buf_cb[i].cb) && in mm_camera_read_raw_frame() 73 (uint32_t)my_obj->ch[MM_CAMERA_CH_RAW].buf_cb[i].cb, in mm_camera_read_raw_frame() 82 if(buf_cb[i].cb != NULL && my_obj->poll_threads[MM_CAMERA_CH_RAW].data.used == 1){ in mm_camera_read_raw_frame() 83 buf_cb[i].cb(&data[i],buf_cb[i].user_data); in mm_camera_read_raw_frame() 374 if (buf_cb[i].cb && my_obj->poll_threads[MM_CAMERA_CH_SNAPSHOT].data.used == 1) in mm_camera_zsl_frame_cmp_and_enq() 375 buf_cb[i].cb(&data,buf_cb[i].user_data); in mm_camera_zsl_frame_cmp_and_enq() 410 if((my_obj->ch[MM_CAMERA_CH_PREVIEW].buf_cb[i].cb) && in mm_camera_read_preview_frame() 422 (uint32_t)my_obj->ch[MM_CAMERA_CH_PREVIEW].buf_cb[i].cb, in mm_camera_read_preview_frame() 443 if(buf_cb[i].cb != NULL && my_obj->poll_threads[MM_CAMERA_CH_PREVIEW].data.used == 1) { in mm_camera_read_preview_frame() 444 buf_cb[i].cb(&data[i],buf_cb[i].user_data); in mm_camera_read_preview_frame() [all …]
|
D | mm_camera_channel.c | 382 if(my_obj->ch[ch_type].buf_cb[i].cb==NULL) { in mm_camera_ch_util_reg_buf_cb() 655 if( ch->buf_cb[j].cb!=NULL ) in mm_camera_dispatch_buffered_frames() 656 ch->buf_cb[j].cb(&data, ch->buf_cb[j].user_data); in mm_camera_dispatch_buffered_frames()
|
D | mm_camera.h | 76 mm_camera_buf_notify_t cb; member
|
/device/moto/shamu/camera/QCamera/stack/mm-camera-interface/src/ |
D | mm_camera_data.c | 170 if (NULL != cmd_thread->cb) { in mm_camera_cmd_thread() 171 cmd_thread->cb(node, cmd_thread->user_data); in mm_camera_cmd_thread() 187 mm_camera_cmd_cb_t cb, in mm_camera_cmd_thread_launch() argument 194 cmd_thread->cb = cb; in mm_camera_cmd_thread_launch()
|
D | mm_camera_stream.c | 176 if(NULL != my_obj->buf_cb[i].cb) { in mm_stream_handle_rcvd_buf() 243 if(NULL != my_obj->buf_cb[i].cb) { in mm_stream_data_notify() 343 if(NULL != my_obj->buf_cb[i].cb) { in mm_stream_dispatch_app_data() 348 my_obj->buf_cb[i].cb(&super_buf, in mm_stream_dispatch_app_data() 357 my_obj->buf_cb[i].cb = NULL; in mm_stream_dispatch_app_data() 642 mm_stream_data_cb_t cb; in mm_stream_fsm_reg() local 643 memset(&cb, 0, sizeof(mm_stream_data_cb_t)); in mm_stream_fsm_reg() 644 cb.cb_count = my_obj->num_stream_cb_times; /* reigstration cb times */ in mm_stream_fsm_reg() 645 if (cb.cb_count == 0) { in mm_stream_fsm_reg() 646 cb.cb_count = 1; in mm_stream_fsm_reg() [all …]
|
/device/moto/shamu/camera/QCamera2/HAL/ |
D | QCamera2HWICallbacks.cpp | 1988 qcamera_callback_argm_t *cb = in cbNotifyRoutine() local 1991 if (NULL != cb) { in cbNotifyRoutine() 1994 cb->cb_type); in cbNotifyRoutine() 1996 if (pme->mParent->msgTypeEnabledWithLock(cb->msg_type)) { in cbNotifyRoutine() 1997 switch (cb->cb_type) { in cbNotifyRoutine() 2000 if (cb->msg_type == CAMERA_MSG_FOCUS) { in cbNotifyRoutine() 2005 pme->mNotifyCb(cb->msg_type, in cbNotifyRoutine() 2006 cb->ext1, in cbNotifyRoutine() 2007 cb->ext2, in cbNotifyRoutine() 2018 pme->mDataCb(cb->msg_type, in cbNotifyRoutine() [all …]
|
/device/generic/goldfish/camera/ |
D | EmulatedCameraFactory.cpp | 503 const camera_module_callbacks_t* cb = mCallbacks; in onStatusChanged() local 504 if (cb != NULL && cb->camera_device_status_change != NULL) { in onStatusChanged() 505 cb->camera_device_status_change(cb, cameraId, newStatus); in onStatusChanged()
|
/device/asus/flo/camera/QCamera2/stack/mm-camera-interface/src/ |
D | mm_camera_thread.c | 563 if (NULL != cmd_thread->cb) { in mm_camera_cmd_thread() 564 cmd_thread->cb(node, cmd_thread->user_data); in mm_camera_cmd_thread() 580 mm_camera_cmd_cb_t cb, in mm_camera_cmd_thread_launch() argument 587 cmd_thread->cb = cb; in mm_camera_cmd_thread_launch()
|
D | mm_camera_stream.c | 224 if(NULL != my_obj->buf_cb[i].cb) { in mm_stream_data_notify() 287 if(NULL != my_obj->buf_cb[i].cb) { in mm_stream_dispatch_app_data() 299 my_obj->buf_cb[i].cb(&super_buf, in mm_stream_dispatch_app_data() 308 my_obj->buf_cb[i].cb = NULL; in mm_stream_dispatch_app_data() 673 if(NULL != my_obj->buf_cb[i].cb) { in mm_stream_fsm_reg() 756 if(NULL != my_obj->buf_cb[i].cb) { in mm_stream_fsm_active() 818 my_obj->buf_cb[0].cb = config->stream_cb; in mm_stream_config() 2557 if(NULL == my_obj->buf_cb[i].cb) { in mm_stream_reg_buf_cb()
|
/device/moto/shamu/camera/QCamera2/stack/mm-camera-interface/src/ |
D | mm_camera_thread.c | 589 if (NULL != cmd_thread->cb) { in mm_camera_cmd_thread() 590 cmd_thread->cb(node, cmd_thread->user_data); in mm_camera_cmd_thread() 606 mm_camera_cmd_cb_t cb, in mm_camera_cmd_thread_launch() argument 613 cmd_thread->cb = cb; in mm_camera_cmd_thread_launch()
|
D | mm_camera_stream.c | 204 if(NULL != my_obj->buf_cb[i].cb) { in mm_stream_data_notify() 268 if(NULL != my_obj->buf_cb[i].cb) { in mm_stream_dispatch_app_data() 280 my_obj->buf_cb[i].cb(&super_buf, in mm_stream_dispatch_app_data() 289 my_obj->buf_cb[i].cb = NULL; in mm_stream_dispatch_app_data() 657 if(NULL != my_obj->buf_cb[i].cb) { in mm_stream_fsm_reg() 740 if(NULL != my_obj->buf_cb[i].cb) { in mm_stream_fsm_active() 802 my_obj->buf_cb[0].cb = config->stream_cb; in mm_stream_config() 2911 if(NULL == my_obj->buf_cb[i].cb) { in mm_stream_reg_buf_cb()
|
/device/lge/hammerhead/camera/QCamera2/stack/mm-camera-interface/src/ |
D | mm_camera_thread.c | 592 if (NULL != cmd_thread->cb) { in mm_camera_cmd_thread() 593 cmd_thread->cb(node, cmd_thread->user_data); in mm_camera_cmd_thread() 609 mm_camera_cmd_cb_t cb, in mm_camera_cmd_thread_launch() argument 616 cmd_thread->cb = cb; in mm_camera_cmd_thread_launch()
|
D | mm_camera_stream.c | 204 if(NULL != my_obj->buf_cb[i].cb) { in mm_stream_data_notify() 268 if(NULL != my_obj->buf_cb[i].cb) { in mm_stream_dispatch_app_data() 280 my_obj->buf_cb[i].cb(&super_buf, in mm_stream_dispatch_app_data() 289 my_obj->buf_cb[i].cb = NULL; in mm_stream_dispatch_app_data() 654 if(NULL != my_obj->buf_cb[i].cb) { in mm_stream_fsm_reg() 737 if(NULL != my_obj->buf_cb[i].cb) { in mm_stream_fsm_active() 799 my_obj->buf_cb[0].cb = config->stream_cb; in mm_stream_config() 2559 if(NULL == my_obj->buf_cb[i].cb) { in mm_stream_reg_buf_cb()
|
/device/lge/mako/camera/QCamera/stack/mm-camera-interface/inc/ |
D | mm_camera.h | 122 mm_camera_cmd_cb_t cb; /* cb for cmd */ member 192 mm_camera_buf_notify_t cb; member 571 mm_stream_data_cb_t *cb, 617 mm_camera_cmd_cb_t cb,
|
/device/moto/shamu/camera/QCamera/stack/mm-camera-interface/inc/ |
D | mm_camera.h | 127 mm_camera_cmd_cb_t cb; /* cb for cmd */ member 197 mm_camera_buf_notify_t cb; member 646 mm_stream_data_cb_t *cb, 692 mm_camera_cmd_cb_t cb,
|
/device/asus/flo/camera/QCamera2/stack/mm-camera-interface/inc/ |
D | mm_camera.h | 103 mm_camera_cmd_cb_t cb; /* cb for cmd */ member 173 mm_camera_buf_notify_t cb; member 572 mm_camera_cmd_cb_t cb,
|
/device/lge/hammerhead/camera/QCamera2/stack/mm-camera-interface/inc/ |
D | mm_camera.h | 103 mm_camera_cmd_cb_t cb; /* cb for cmd */ member 173 mm_camera_buf_notify_t cb; member 576 mm_camera_cmd_cb_t cb,
|
/device/moto/shamu/camera/QCamera2/stack/mm-camera-interface/inc/ |
D | mm_camera.h | 123 mm_camera_cmd_cb_t cb; /* cb for cmd */ member 193 mm_camera_buf_notify_t cb; member 630 mm_camera_cmd_cb_t cb,
|
/device/generic/goldfish/gps/ |
D | gps_qemu.c | 239 nmea_reader_set_callback( NmeaReader* r, gps_location_callback cb ) in nmea_reader_set_callback() argument 241 r->callback = cb; in nmea_reader_set_callback() 242 if (cb != NULL && r->fix.flags != 0) { in nmea_reader_set_callback()
|