Home
last modified time | relevance | path

Searched refs:ev (Results 1 – 23 of 23) sorted by relevance

/device/google/contexthub/sensorhal/
Dactivity.cpp94 activity_event_t ev; in onActivityEvent() local
95 memset(&ev, 0, sizeof(ev)); in onActivityEvent()
97 ev.event_type = ACTIVITY_EVENT_FLUSH_COMPLETE; in onActivityEvent()
98 ev.activity = 0; in onActivityEvent()
99 ev.timestamp = 0ll; in onActivityEvent()
101 (*mCallback->activity_callback)(mCallback, &ev, 1); in onActivityEvent()
114 activity_event_t ev[8]; in onActivityEvent() local
115 memset(&ev, 0, 8*sizeof(activity_event_t)); in onActivityEvent()
128 activity_event_t *curr_ev = &ev[num_events]; in onActivityEvent()
141 activity_event_t *curr_ev = &ev[num_events]; in onActivityEvent()
[all …]
Dhubconnection.cpp321 sensors_event_t *HubConnection::initEv(sensors_event_t *ev, uint64_t timestamp, uint32_t type, uint… in initEv() argument
323 memset(ev, 0x00, sizeof(sensors_event_t)); in initEv()
324 ev->version = sizeof(sensors_event_t); in initEv()
325 ev->timestamp = timestamp; in initEv()
326 ev->type = type; in initEv()
327 ev->sensor = sensor; in initEv()
329 return ev; in initEv()
430 sensors_event_t *ev; in processSample() local
511 ev = initEv(&nev[cnt++], timestamp, type, sensor); in processSample()
512 ev->data[0] = sample->x; in processSample()
[all …]
Dhubconnection.h62 ssize_t read(sensors_event_t *ev, size_t size);
208 … sensors_event_t *initEv(sensors_event_t *ev, uint64_t timestamp, uint32_t type, uint32_t sensor);
/device/google/contexthub/util/common/
Dring.cpp40 ssize_t RingBuffer::write(const sensors_event_t *ev, size_t size) { in write() argument
57 memcpy(&mData[writePos], ev, copy * sizeof(sensors_event_t)); in write()
60 memcpy(mData, &ev[copy], (size - copy) * sizeof(sensors_event_t)); in write()
72 ssize_t RingBuffer::read(sensors_event_t *ev, size_t size) { in read() argument
96 memcpy(ev, &mData[readPos], copy * sizeof(sensors_event_t)); in read()
99 memcpy(&ev[copy], mData, (size - copy) * sizeof(sensors_event_t)); in read()
Dring.h32 ssize_t write(const sensors_event_t *ev, size_t size);
33 ssize_t read(sensors_event_t *ev, size_t size);
/device/google/contexthub/firmware/src/drivers/orientation/
Dorientation.c88 struct TripleAxisDataEvent *ev; member
171 static void fillSamples(struct TripleAxisDataEvent *ev, enum RawSensorType index) in fillSamples() argument
196 curr_sample = ev->samples; in fillSamples()
198 num_samples = ev->samples[0].firstSample.numSamples; in fillSamples()
199 curr_time = ev->referenceTime; in fillSamples()
202 next_sample = ev->samples; in fillSamples()
203 num_samples = ev->samples[0].firstSample.numSamples + 1; in fillSamples()
209 if (next_sample == ev->samples) in fillSamples()
210 next_time = ev->referenceTime; in fillSamples()
268 mSensor->ev = slabAllocatorAlloc(mDataSlab); in allocateDataEvt()
[all …]
/device/google/contexthub/firmware/src/drivers/window_orientation/
Dwindow_orientation.c329 static bool add_samples(struct TripleAxisDataEvent *ev) in add_samples() argument
334 uint64_t now_nsec = ev->referenceTime, now; in add_samples()
337 size_t sampleCnt = ev->samples[0].firstSample.numSamples; in add_samples()
346 x = ev->samples[i].x; in add_samples()
347 y = ev->samples[i].y; in add_samples()
348 z = ev->samples[i].z; in add_samples()
353 now_nsec += i > 0 ? ev->samples[i].deltaTime : 0; in add_samples()
544 struct TripleAxisDataEvent *ev; in windowOrientationHandleEvent() local
553 ev = (struct TripleAxisDataEvent *)evtData; in windowOrientationHandleEvent()
554 rotation_changed = add_samples(ev); in windowOrientationHandleEvent()
/device/generic/goldfish/qemud/
Dqemud.c396 struct epoll_event ev; in looper_grow() local
399 ev.events = hook->wanted; in looper_grow()
400 ev.data.ptr = hook; in looper_grow()
401 epoll_ctl( l->epoll_fd, EPOLL_CTL_MOD, hook->fd, &ev ); in looper_grow()
411 struct epoll_event ev; in looper_add() local
428 ev.events = 0; in looper_add()
429 ev.data.ptr = hook; in looper_add()
430 epoll_ctl( l->epoll_fd, EPOLL_CTL_ADD, fd, &ev ); in looper_add()
467 struct epoll_event ev; in looper_enable() local
470 ev.events = hook->wanted; in looper_enable()
[all …]
/device/google/contexthub/firmware/src/drivers/tilt_detection/
Dtilt_detection.c74 static bool algoUpdate(struct TripleAxisDataEvent *ev) in algoUpdate() argument
81 uint64_t sample_ts = ev->referenceTime; in algoUpdate()
82 uint32_t numSamples = ev->samples[0].firstSample.numSamples; in algoUpdate()
88 sample = &ev->samples[i]; in algoUpdate()
/device/asus/fugu/original-kernel-headers/linux/
Dkct.h102 extern int kct_add_attchmt(struct ct_event **ev,
106 extern void kct_free_event(struct ct_event *ev) __weak;
107 extern int kct_log_event(struct ct_event *ev, gfp_t flags) __weak;
/device/moto/shamu/camera/QCamera/stack/mm-camera-test/src/
Dmm_qcamera_main_menu.c1079 int32_t ev = 0; in increase_EV() local
1081 ev = (ev_num << 16) | 6; in increase_EV()
1085 ev = ev_num; in increase_EV()
1107 control.value = ev; in increase_EV()
1124 int32_t ev = 0; in decrease_EV() local
1126 ev = (ev_num << 16) | 6; in decrease_EV()
1130 ev = ev_num; in decrease_EV()
1152 control.value = ev; in decrease_EV()
/device/generic/goldfish/opengl/
Dcommon.mk206 emugl-gen-wrapper-generic = $(eval $(emugl-gen-wrapper-generic-ev))
208 define emugl-gen-wrapper-generic-ev
/device/moto/shamu/camera/QCamera2/stack/mm-camera-interface/src/
Dmm_camera.c148 struct v4l2_event ev; in mm_camera_event_notify() local
157 memset(&ev, 0, sizeof(ev)); in mm_camera_event_notify()
158 rc = ioctl(my_obj->ctrl_fd, VIDIOC_DQEVENT, &ev); in mm_camera_event_notify()
160 if (rc >= 0 && ev.id == MSM_CAMERA_MSM_NOTIFY) { in mm_camera_event_notify()
161 msm_evt = (struct msm_v4l2_event_data *)ev.u.data; in mm_camera_event_notify()
/device/generic/goldfish/camera/
DEmulatedCameraDevice.cpp114 void EmulatedCameraDevice::setExposureCompensation(const float ev) { in setExposureCompensation() argument
121 mExposureCompensation = std::pow(2.0f, ev / GAMMA_CORRECTION); in setExposureCompensation()
DEmulatedCameraDevice.h166 void setExposureCompensation(const float ev);
/device/lge/bullhead/camera/QCamera2/stack/mm-camera-interface/src/
Dmm_camera.c152 struct v4l2_event ev; in mm_camera_event_notify() local
161 memset(&ev, 0, sizeof(ev)); in mm_camera_event_notify()
162 rc = ioctl(my_obj->ctrl_fd, VIDIOC_DQEVENT, &ev); in mm_camera_event_notify()
164 if (rc >= 0 && ev.id == MSM_CAMERA_MSM_NOTIFY) { in mm_camera_event_notify()
165 msm_evt = (struct msm_v4l2_event_data *)ev.u.data; in mm_camera_event_notify()
/device/huawei/angler/camera/QCamera2/stack/mm-camera-interface/src/
Dmm_camera.c152 struct v4l2_event ev; in mm_camera_event_notify() local
161 memset(&ev, 0, sizeof(ev)); in mm_camera_event_notify()
162 rc = ioctl(my_obj->ctrl_fd, VIDIOC_DQEVENT, &ev); in mm_camera_event_notify()
164 if (rc >= 0 && ev.id == MSM_CAMERA_MSM_NOTIFY) { in mm_camera_event_notify()
165 msm_evt = (struct msm_v4l2_event_data *)ev.u.data; in mm_camera_event_notify()
/device/generic/goldfish/gps/
Dgps_qemu.c645 struct epoll_event ev; in epoll_register() local
652 ev.events = EPOLLIN; in epoll_register()
653 ev.data.fd = fd; in epoll_register()
655 ret = epoll_ctl( epoll_fd, EPOLL_CTL_ADD, fd, &ev ); in epoll_register()
/device/huawei/angler/camera/QCamera2/stack/mm-camera-test/src/
Dmm_qcamera_app.c1175 int setEVCompensation(mm_camera_test_obj_t *test_obj, int ev) in setEVCompensation() argument
1182 if ( (ev >= camera_cap->exposure_compensation_min) && in setEVCompensation()
1183 (ev <= camera_cap->exposure_compensation_max) ) { in setEVCompensation()
1192 CAM_INTF_PARM_EXPOSURE_COMPENSATION, ev)) { in setEVCompensation()
1204 CDBG_ERROR("%s: EV compensation set to: %d", __func__, ev); in setEVCompensation()
2098 int ev = *(( int * )in_data); in mm_camera_lib_send_command() local
2099 rc = setEVCompensation(&handle->test_obj, ev); in mm_camera_lib_send_command()
/device/lge/bullhead/camera/QCamera2/stack/mm-camera-test/src/
Dmm_qcamera_app.c1175 int setEVCompensation(mm_camera_test_obj_t *test_obj, int ev) in setEVCompensation() argument
1182 if ( (ev >= camera_cap->exposure_compensation_min) && in setEVCompensation()
1183 (ev <= camera_cap->exposure_compensation_max) ) { in setEVCompensation()
1192 CAM_INTF_PARM_EXPOSURE_COMPENSATION, ev)) { in setEVCompensation()
1204 CDBG_ERROR("%s: EV compensation set to: %d", __func__, ev); in setEVCompensation()
2098 int ev = *(( int * )in_data); in mm_camera_lib_send_command() local
2099 rc = setEVCompensation(&handle->test_obj, ev); in mm_camera_lib_send_command()
/device/moto/shamu/camera/QCamera/stack/mm-camera-interface/src/
Dmm_camera.c134 struct v4l2_event ev; in mm_camera_event_notify() local
142 memset(&ev, 0, sizeof(ev)); in mm_camera_event_notify()
143 rc = ioctl(my_obj->ctrl_fd, VIDIOC_DQEVENT, &ev); in mm_camera_event_notify()
144 evt = (mm_camera_event_t *)ev.u.data; in mm_camera_event_notify()
147 if(ev.type == V4L2_EVENT_PRIVATE_START+MSM_CAM_APP_NOTIFY_ERROR_EVENT) { in mm_camera_event_notify()
/device/moto/shamu/camera/QCamera2/stack/mm-camera-test/src/
Dmm_qcamera_app.c1282 int setEVCompensation(mm_camera_test_obj_t *test_obj, int ev) in setEVCompensation() argument
1289 if ( (ev >= camera_cap->exposure_compensation_min) && in setEVCompensation()
1290 (ev <= camera_cap->exposure_compensation_max) ) { in setEVCompensation()
1298 uint32_t value = ev; in setEVCompensation()
2261 int ev = *(( int * )in_data); in mm_camera_lib_send_command() local
2262 rc = setEVCompensation(&handle->test_obj, ev); in mm_camera_lib_send_command()
/device/google/contexthub/firmware/src/drivers/bosch_bmi160/
Dbosch_bmi160.c635 struct TripleAxisDataEvent *ev = (struct TripleAxisDataEvent *)ptr; in dataEvtFree() local
636 slabAllocatorFree(T(mDataSlab), ev); in dataEvtFree()