Searched defs:ev (Results 1 - 12 of 12) sorted by relevance

/system/extras/slideshow/
H A Dslideshow.cpp33 struct input_event ev; local
38 if (ev_get_input(fd, epevents, &ev)) {
42 if (ev.type == EV_KEY && ev.value == 1) {
43 *key_code = ev.code;
/system/extras/tests/suspend_stress/
H A Dsuspend_stress.cpp110 struct epoll_event ev = epoll_event(); local
111 ev.events = EPOLLIN | EPOLLWAKEUP;
112 int ret = epoll_ctl(epoll_fd, EPOLL_CTL_ADD, fd, &ev);
/system/core/adb/
H A Dadb_listeners.cpp35 static void ss_listener_event_func(int _fd, unsigned ev, void *_l) { argument
36 if (ev & FDE_READ) {
56 static void listener_event_func(int _fd, unsigned ev, void* _l) argument
61 if (ev & FDE_READ) {
H A Dfdevent.cpp295 static void fdevent_subproc_event_func(int fd, unsigned ev, argument
299 D("subproc handling on fd = %d, ev = %x", fd, ev);
303 if (ev & FDE_READ) {
H A Dsockets.cpp250 static void local_socket_event_func(int fd, unsigned ev, void* _s) { argument
252 D("LS(%d): event_func(fd=%d(==%d), ev=%04x)", s->id, s->fd, fd, ev);
257 if (ev & FDE_WRITE) {
307 if (ev & FDE_READ) {
375 if (ev & FDE_ERROR) {
H A Dtransport.cpp481 static void transport_registration_func(int _fd, unsigned ev, void *data) argument
487 if(!(ev & FDE_READ)) {
/system/bt/btif/co/
H A Dbta_hh_co.c60 static int uhid_write(int fd, const struct uhid_event *ev) argument
63 OSI_NO_INTR(ret = write(fd, ev, sizeof(*ev)));
70 } else if (ret != (ssize_t)sizeof(*ev)) {
72 __FUNCTION__, ret, sizeof(*ev));
84 struct uhid_event ev; local
85 memset(&ev, 0, sizeof(ev));
88 OSI_NO_INTR(ret = read(p_dev->fd, &ev, sizeof(ev)));
240 struct uhid_event ev; local
252 struct uhid_event ev; local
456 struct uhid_event ev; local
[all...]
/system/core/healthd/
H A Dhealthd.cpp140 struct epoll_event ev; local
142 ev.events = EPOLLIN | EPOLLWAKEUP;
143 ev.data.ptr = (void *)handler;
144 if (epoll_ctl(epollfd, EPOLL_CTL_ADD, fd, &ev) == -1) {
H A Dhealthd_mode_charger.cpp492 struct input_event *ev)
494 if (ev->type != EV_KEY)
496 set_key_callback(ev->code, ev->value, charger);
656 struct input_event ev; local
659 ret = ev_get_input(fd, epevents, &ev);
662 update_input_state(charger, &ev);
491 update_input_state(struct charger *charger, struct input_event *ev) argument
/system/bt/vendor_libs/linux/
H A Dbt_vendor_linux.c152 struct mgmt_pkt ev; local
179 ev.opcode = MGMT_OP_INDEX_LIST;
180 ev.index = HCI_DEV_NONE;
181 ev.len = 0;
184 OSI_NO_INTR(wrote = write(fd, &ev, 6));
205 n = read(fd, &ev, sizeof(struct mgmt_pkt));
213 if (ev.opcode == MGMT_EV_INDEX_ADDED && ev.index == hci_interface) {
215 } else if (ev.opcode == MGMT_EV_COMMAND_COMP) {
219 cc = (struct mgmt_event_read_index *)ev
[all...]
/system/core/init/
H A Dinit.cpp89 epoll_event ev; local
90 ev.events = EPOLLIN;
91 ev.data.ptr = reinterpret_cast<void*>(fn);
92 if (epoll_ctl(epoll_fd, EPOLL_CTL_ADD, fd, &ev) == -1) {
739 epoll_event ev; local
740 int nr = TEMP_FAILURE_RETRY(epoll_wait(epoll_fd, &ev, 1, timeout));
744 ((void (*)()) ev.data.ptr)();
/system/netd/tests/
H A Ddns_responder.cpp623 epoll_event ev; local
624 ev.events = EPOLLIN;
625 ev.data.fd = s;
626 if (epoll_ctl(ep_fd, EPOLL_CTL_ADD, s, &ev) < 0) {

Completed in 224 milliseconds