Home
last modified time | relevance | path

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

12

/hardware/ril/libril/
Dril_event.cpp79 static void dump_event(struct ril_event * ev) in dump_event() argument
81 dlog("~~~~ Event %x ~~~~", (unsigned int)ev); in dump_event()
82 dlog(" next = %x", (unsigned int)ev->next); in dump_event()
83 dlog(" prev = %x", (unsigned int)ev->prev); in dump_event()
84 dlog(" fd = %d", ev->fd); in dump_event()
85 dlog(" pers = %d", ev->persist); in dump_event()
86 dlog(" timeout = %ds + %dus", (int)ev->timeout.tv_sec, (int)ev->timeout.tv_usec); in dump_event()
87 dlog(" func = %x", (unsigned int)ev->func); in dump_event()
88 dlog(" param = %x", (unsigned int)ev->param); in dump_event()
112 static void addToList(struct ril_event * ev, struct ril_event * list) in addToList() argument
[all …]
Dril_event.h39 void ril_event_set(struct ril_event * ev, int fd, bool persist, ril_event_cb func, void * param);
42 void ril_event_add(struct ril_event * ev);
45 void ril_timer_add(struct ril_event * ev, struct timeval * tv);
48 void ril_event_del(struct ril_event * ev);
/hardware/qcom/display/msm8226/libhwcomposer/
Dhwc_vsync.cpp118 for(size_t ev = 0; ev < num_events; ev++) { in vsync_loop() local
124 event_list[ev].name); in vsync_loop()
127 ev, dpy, node_path); in vsync_loop()
128 pfd[dpy][ev].fd = open(node_path, O_RDONLY); in vsync_loop()
130 if (dpy == HWC_DISPLAY_PRIMARY && pfd[dpy][ev].fd < 0) { in vsync_loop()
134 __FUNCTION__, dpy, ev, strerror(errno)); in vsync_loop()
135 if (ev == 0) { in vsync_loop()
143 pread(pfd[dpy][ev].fd, vdata , MAX_DATA, 0); in vsync_loop()
144 if (pfd[dpy][ev].fd >= 0) in vsync_loop()
145 pfd[dpy][ev].events = POLLPRI | POLLERR; in vsync_loop()
[all …]
/hardware/qcom/display/msm8994/libhwcomposer/
Dhwc_vsync.cpp134 for(size_t ev = 0; ev < num_events; ev++) { in vsync_loop() local
140 event_list[ev].name); in vsync_loop()
143 ev, dpy, node_path); in vsync_loop()
144 pfd[dpy][ev].fd = open(node_path, O_RDONLY); in vsync_loop()
146 if (dpy == HWC_DISPLAY_PRIMARY && pfd[dpy][ev].fd < 0) { in vsync_loop()
150 __FUNCTION__, dpy, ev, strerror(errno)); in vsync_loop()
151 if (ev == 0) { in vsync_loop()
159 pread(pfd[dpy][ev].fd, vdata , MAX_DATA, 0); in vsync_loop()
160 if (pfd[dpy][ev].fd >= 0) in vsync_loop()
161 pfd[dpy][ev].events = POLLPRI | POLLERR; in vsync_loop()
[all …]
/hardware/qcom/display/msm8084/libhwcomposer/
Dhwc_vsync.cpp130 for(size_t ev = 0; ev < num_events; ev++) { in vsync_loop() local
136 event_list[ev].name); in vsync_loop()
139 ev, dpy, node_path); in vsync_loop()
140 pfd[dpy][ev].fd = open(node_path, O_RDONLY); in vsync_loop()
142 if (dpy == HWC_DISPLAY_PRIMARY && pfd[dpy][ev].fd < 0) { in vsync_loop()
146 __FUNCTION__, dpy, ev, strerror(errno)); in vsync_loop()
147 if (ev == 0) { in vsync_loop()
155 pread(pfd[dpy][ev].fd, vdata , MAX_DATA, 0); in vsync_loop()
156 if (pfd[dpy][ev].fd >= 0) in vsync_loop()
157 pfd[dpy][ev].events = POLLPRI | POLLERR; in vsync_loop()
[all …]
/hardware/qcom/audio/legacy/libalsa-intf/
Dalsa_mixer.c396 struct snd_ctl_elem_value ev; in mixer_ctl_get() local
414 memset(&ev, 0, sizeof(ev)); in mixer_ctl_get()
415 ev.id.numid = ctl->info->id.numid; in mixer_ctl_get()
416 if (ioctl(ctl->mixer->fd, SNDRV_CTL_IOCTL_ELEM_READ, &ev)) in mixer_ctl_get()
423 ALOGV(" %s", ev.value.integer.value[n] ? "on" : "off"); in mixer_ctl_get()
424 *value = ev.value.integer.value[0]; in mixer_ctl_get()
428 ALOGV(" %ld", ev.value.integer.value[n]); in mixer_ctl_get()
429 *value = ev.value.integer.value[0]; in mixer_ctl_get()
434 ALOGV(" %lld", ev.value.integer64.value[n]); in mixer_ctl_get()
435 *value = ev.value.integer64.value[0]; in mixer_ctl_get()
[all …]
/hardware/libhardware/modules/sensors/dynamic_sensor/
DRingBuffer.cpp36 ssize_t RingBuffer::write(const sensors_event_t *ev, size_t size) { in write() argument
53 memcpy(&mData[writePos], ev, copy * sizeof(sensors_event_t)); in write()
56 memcpy(mData, &ev[copy], (size - copy) * sizeof(sensors_event_t)); in write()
68 ssize_t RingBuffer::read(sensors_event_t *ev, size_t size) { in read() argument
92 memcpy(ev, &mData[readPos], copy * sizeof(sensors_event_t)); in read()
95 memcpy(&ev[copy], mData, (size - copy) * sizeof(sensors_event_t)); in read()
DConnectionDetector.cpp163 const struct inotify_event *ev; in handleInotifyData() local
166 for (; data < dataEnd; data += sizeof(struct inotify_event) + ev->len) { in handleInotifyData()
167 ev = reinterpret_cast<const struct inotify_event*>(data); in handleInotifyData()
168 if (ev->mask & IN_ISDIR) { in handleInotifyData()
172 const std::string name(ev->name); in handleInotifyData()
174 if (ev->mask & IN_CREATE) { in handleInotifyData()
177 if (ev->mask & IN_DELETE) { in handleInotifyData()
186 struct inotify_event ev; in readInotifyData() member
DRingBuffer.h33 ssize_t write(const sensors_event_t *ev, size_t size);
34 ssize_t read(sensors_event_t *ev, size_t size);
/hardware/interfaces/sensors/common/vts/utils/
DSensorsHidlEnvironmentBase.cpp48 void SensorsHidlEnvironmentBase::addEvent(const Event& ev) { in addEvent() argument
51 mEvents.push_back(ev); in addEvent()
55 mCallback->onEvent(ev); in addEvent()
/hardware/interfaces/health/2.0/default/
Dhealthd_common.cpp83 struct epoll_event ev; in healthd_register_event() local
85 ev.events = EPOLLIN; in healthd_register_event()
87 if (wakeup == EVENT_WAKEUP_FD) ev.events |= EPOLLWAKEUP; in healthd_register_event()
89 ev.data.ptr = (void*)handler; in healthd_register_event()
90 if (epoll_ctl(epollfd, EPOLL_CTL_ADD, fd, &ev) == -1) { in healthd_register_event()
/hardware/qcom/gps/msm8996/utils/
DLocTimer.cpp427 struct epoll_event ev; in addPoll() local
428 memset(&ev, 0, sizeof(ev)); in addPoll()
430 ev.events = EPOLLIN | EPOLLWAKEUP; in addPoll()
431 ev.data.fd = timerContainer.getTimerFd(); in addPoll()
435 ev.data.ptr = &timerContainer; in addPoll()
437 epoll_ctl(mFd, EPOLL_CTL_ADD, timerContainer.getTimerFd(), &ev); in addPoll()
448 struct epoll_event ev[2]; in run() local
451 int fds = epoll_wait(mFd, ev, 2, -1); in run()
460 LocTimerContainer* container = (LocTimerContainer*)(ev[i].data.ptr); in run()
464 epoll_ctl(mFd, EPOLL_CTL_DEL, ev[i].data.fd, NULL); in run()
/hardware/qcom/gps/msm8909w_3100/utils/
DLocTimer.cpp428 struct epoll_event ev; in addPoll() local
429 memset(&ev, 0, sizeof(ev)); in addPoll()
431 ev.events = EPOLLIN | EPOLLWAKEUP; in addPoll()
432 ev.data.fd = timerContainer.getTimerFd(); in addPoll()
436 ev.data.ptr = &timerContainer; in addPoll()
438 epoll_ctl(mFd, EPOLL_CTL_ADD, timerContainer.getTimerFd(), &ev); in addPoll()
449 struct epoll_event ev[2]; in run() local
452 int fds = epoll_wait(mFd, ev, 2, -1); in run()
461 LocTimerContainer* container = (LocTimerContainer*)(ev[i].data.ptr); in run()
465 epoll_ctl(mFd, EPOLL_CTL_DEL, ev[i].data.fd, NULL); in run()
/hardware/qcom/gps/msm8998/utils/
DLocTimer.cpp427 struct epoll_event ev; in addPoll() local
428 memset(&ev, 0, sizeof(ev)); in addPoll()
430 ev.events = EPOLLIN | EPOLLWAKEUP; in addPoll()
431 ev.data.fd = timerContainer.getTimerFd(); in addPoll()
435 ev.data.ptr = &timerContainer; in addPoll()
437 epoll_ctl(mFd, EPOLL_CTL_ADD, timerContainer.getTimerFd(), &ev); in addPoll()
448 struct epoll_event ev[2]; in run() local
451 int fds = epoll_wait(mFd, ev, 2, -1); in run()
460 LocTimerContainer* container = (LocTimerContainer*)(ev[i].data.ptr); in run()
464 epoll_ctl(mFd, EPOLL_CTL_DEL, ev[i].data.fd, NULL); in run()
/hardware/qcom/sdm845/gps/sdm845/utils/
DLocTimer.cpp430 struct epoll_event ev; in addPoll() local
431 memset(&ev, 0, sizeof(ev)); in addPoll()
433 ev.events = EPOLLIN | EPOLLWAKEUP; in addPoll()
434 ev.data.fd = timerContainer.getTimerFd(); in addPoll()
438 ev.data.ptr = &timerContainer; in addPoll()
440 epoll_ctl(mFd, EPOLL_CTL_ADD, timerContainer.getTimerFd(), &ev); in addPoll()
451 struct epoll_event ev[2]; in run() local
454 int fds = epoll_wait(mFd, ev, 2, -1); in run()
463 LocTimerContainer* container = (LocTimerContainer*)(ev[i].data.ptr); in run()
467 epoll_ctl(mFd, EPOLL_CTL_DEL, ev[i].data.fd, NULL); in run()
/hardware/qcom/sdm845/gps/msm8996/utils/
DLocTimer.cpp426 struct epoll_event ev; in addPoll() local
427 memset(&ev, 0, sizeof(ev)); in addPoll()
429 ev.events = EPOLLIN | EPOLLWAKEUP; in addPoll()
430 ev.data.fd = timerContainer.getTimerFd(); in addPoll()
434 ev.data.ptr = &timerContainer; in addPoll()
436 epoll_ctl(mFd, EPOLL_CTL_ADD, timerContainer.getTimerFd(), &ev); in addPoll()
447 struct epoll_event ev[2]; in run() local
450 int fds = epoll_wait(mFd, ev, 2, -1); in run()
459 LocTimerContainer* container = (LocTimerContainer*)(ev[i].data.ptr); in run()
463 epoll_ctl(mFd, EPOLL_CTL_DEL, ev[i].data.fd, NULL); in run()
/hardware/qcom/sdm845/gps/msm8909/utils/
DLocTimer.cpp428 struct epoll_event ev; in addPoll() local
429 memset(&ev, 0, sizeof(ev)); in addPoll()
431 ev.events = EPOLLIN | EPOLLWAKEUP; in addPoll()
432 ev.data.fd = timerContainer.getTimerFd(); in addPoll()
436 ev.data.ptr = &timerContainer; in addPoll()
438 epoll_ctl(mFd, EPOLL_CTL_ADD, timerContainer.getTimerFd(), &ev); in addPoll()
449 struct epoll_event ev[2]; in run() local
452 int fds = epoll_wait(mFd, ev, 2, -1); in run()
461 LocTimerContainer* container = (LocTimerContainer*)(ev[i].data.ptr); in run()
465 epoll_ctl(mFd, EPOLL_CTL_DEL, ev[i].data.fd, NULL); in run()
/hardware/qcom/sdm845/gps/msm8998/utils/
DLocTimer.cpp427 struct epoll_event ev; in addPoll() local
428 memset(&ev, 0, sizeof(ev)); in addPoll()
430 ev.events = EPOLLIN | EPOLLWAKEUP; in addPoll()
431 ev.data.fd = timerContainer.getTimerFd(); in addPoll()
435 ev.data.ptr = &timerContainer; in addPoll()
437 epoll_ctl(mFd, EPOLL_CTL_ADD, timerContainer.getTimerFd(), &ev); in addPoll()
448 struct epoll_event ev[2]; in run() local
451 int fds = epoll_wait(mFd, ev, 2, -1); in run()
460 LocTimerContainer* container = (LocTimerContainer*)(ev[i].data.ptr); in run()
464 epoll_ctl(mFd, EPOLL_CTL_DEL, ev[i].data.fd, NULL); in run()
/hardware/qcom/gps/msm8909/utils/
DLocTimer.cpp428 struct epoll_event ev; in addPoll() local
429 memset(&ev, 0, sizeof(ev)); in addPoll()
431 ev.events = EPOLLIN | EPOLLWAKEUP; in addPoll()
432 ev.data.fd = timerContainer.getTimerFd(); in addPoll()
436 ev.data.ptr = &timerContainer; in addPoll()
438 epoll_ctl(mFd, EPOLL_CTL_ADD, timerContainer.getTimerFd(), &ev); in addPoll()
449 struct epoll_event ev[2]; in run() local
452 int fds = epoll_wait(mFd, ev, 2, -1); in run()
461 LocTimerContainer* container = (LocTimerContainer*)(ev[i].data.ptr); in run()
465 epoll_ctl(mFd, EPOLL_CTL_DEL, ev[i].data.fd, NULL); in run()
/hardware/interfaces/sensors/2.0/default/
DSensor.cpp88 Event ev; in flush() local
89 ev.sensorHandle = mSensorInfo.sensorHandle; in flush()
90 ev.sensorType = SensorType::META_DATA; in flush()
91 ev.u.meta.what = MetaDataEventType::META_DATA_FLUSH_COMPLETE; in flush()
92 std::vector<Event> evs{ev}; in flush()
188 Event ev = *iter; in readEvents() local
189 if (ev.u.vec3 != mPreviousEvent.u.vec3 || !mPreviousEventSet) { in readEvents()
190 outputEvents.push_back(ev); in readEvents()
191 mPreviousEvent = ev; in readEvents()
/hardware/libhardware/modules/input/evdev/
DInputHub.cpp377 struct input_event ev{}; in vibrate() struct
378 ev.type = EV_FF; in vibrate()
379 ev.code = mFfEffectId; in vibrate()
380 ev.value = 1; in vibrate()
381 size_t written = TEMP_FAILURE_RETRY(write(mFd, &ev, sizeof(ev))); in vibrate()
382 if (written != sizeof(ev)) { in vibrate()
394 struct input_event ev{}; in cancelVibrate() struct
395 ev.type = EV_FF; in cancelVibrate()
396 ev.code = mFfEffectId; in cancelVibrate()
397 ev.value = 0; in cancelVibrate()
[all …]
/hardware/qcom/sdm845/display/libhistogram/
Dhistogram_collector.cpp461 struct epoll_event ev, events[static_cast<int>(EventType::NUM_EVENT_TYPES)]; in collecting_thread() local
468 ev.events = EPOLLIN; in collecting_thread()
469 ev.data.u32 = static_cast<uint32_t>(EventType::DRM); in collecting_thread()
470 if (epoll_ctl(*epollfd, EPOLL_CTL_ADD, *drm, &ev) == -1) { in collecting_thread()
475 ev.events = EPOLLIN; in collecting_thread()
476 ev.data.u32 = static_cast<uint32_t>(EventType::CTL); in collecting_thread()
477 if (epoll_ctl(*epollfd, EPOLL_CTL_ADD, selfpipe, &ev) == -1) { in collecting_thread()
/hardware/ril/include/libril/
Dril_ex.h27 void rilEventAddWakeup_helper(struct ril_event *ev);
/hardware/qcom/audio/hal/audio_extn/
Dsoundtrigger.c403 audio_event_type_t ev; in audio_extn_sound_trigger_update_stream_status() local
426 ev = (event == ST_EVENT_STREAM_BUSY) ? AUDIO_EVENT_CAPTURE_STREAM_ACTIVE : in audio_extn_sound_trigger_update_stream_status()
429 ev = (event == ST_EVENT_STREAM_BUSY) ? AUDIO_EVENT_PLAYBACK_STREAM_ACTIVE : in audio_extn_sound_trigger_update_stream_status()
434 __func__, ev, uc_info->id, uc_info->type); in audio_extn_sound_trigger_update_stream_status()
435 st_dev->st_callback(ev, &ev_info); in audio_extn_sound_trigger_update_stream_status()
/hardware/interfaces/sensors/common/vts/utils/include/sensors-vts-utils/
DSensorsHidlEnvironmentBase.h55 void addEvent(const Event& ev);

12