Home
last modified time | relevance | path

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

/system/core/adb/
Dfdevent.c119 struct epoll_event ev; in fdevent_connect() local
121 memset(&ev, 0, sizeof(ev)); in fdevent_connect()
122 ev.events = 0; in fdevent_connect()
123 ev.data.ptr = fde; in fdevent_connect()
126 if(epoll_ctl(epoll_fd, EPOLL_CTL_ADD, fde->fd, &ev)) { in fdevent_connect()
135 struct epoll_event ev; in fdevent_disconnect() local
137 memset(&ev, 0, sizeof(ev)); in fdevent_disconnect()
138 ev.events = 0; in fdevent_disconnect()
139 ev.data.ptr = fde; in fdevent_disconnect()
146 epoll_ctl(epoll_fd, EPOLL_CTL_DEL, fde->fd, &ev); in fdevent_disconnect()
[all …]
Dsockets.c283 static void local_socket_event_func(int fd, unsigned ev, void *_s) in local_socket_event_func() argument
287 D("LS(%d): event_func(fd=%d(==%d), ev=%04x)\n", s->id, s->fd, fd, ev); in local_socket_event_func()
292 if(ev & FDE_WRITE){ in local_socket_event_func()
340 if(ev & FDE_READ){ in local_socket_event_func()
401 if(ev & FDE_ERROR){ in local_socket_event_func()
Dadb.c672 static void ss_listener_event_func(int _fd, unsigned ev, void *_l) in ss_listener_event_func() argument
676 if(ev & FDE_READ) { in ss_listener_event_func()
697 static void listener_event_func(int _fd, unsigned ev, void *_l) in listener_event_func() argument
702 if(ev & FDE_READ) { in listener_event_func()
Dtransport.c571 static void transport_registration_func(int _fd, unsigned ev, void *data) in transport_registration_func() argument
579 if(!(ev & FDE_READ)) { in transport_registration_func()
/system/extras/tests/suspend_stress/
Dsuspend_stress.cpp108 struct epoll_event ev = epoll_event(); in main() local
109 ev.events = EPOLLIN | EPOLLWAKEUP; in main()
110 int ret = epoll_ctl(epoll_fd, EPOLL_CTL_ADD, fd, &ev); in main()
/system/core/healthd/
Dhealthd.cpp138 struct epoll_event ev; in healthd_register_event() local
140 ev.events = EPOLLIN | EPOLLWAKEUP; in healthd_register_event()
141 ev.data.ptr = (void *)handler; in healthd_register_event()
142 if (epoll_ctl(epollfd, EPOLL_CTL_ADD, fd, &ev) == -1) { in healthd_register_event()
Dhealthd_mode_charger.cpp493 struct input_event *ev) in update_input_state() argument
495 if (ev->type != EV_KEY) in update_input_state()
497 set_key_callback(ev->code, ev->value, charger); in update_input_state()
621 struct input_event ev; in healthd_mode_charger_preparetowait() local
646 struct input_event ev; in input_callback() local
649 ret = ev_get_input(fd, epevents, &ev); in input_callback()
652 update_input_state(charger, &ev); in input_callback()
/system/core/toolbox/
Dsendevent.c34 #define EVIOCGBIT(ev,len) _IOC(_IOC_READ, 'E', 0x20 + ev, len) /* get event bits */ argument
/system/extras/tests/framebuffer/
Dminui.h45 int ev_get(event *ev, unsigned dont_wait);