/system/core/adb/ |
H A D | adb_listeners.cpp | 76 static void ss_listener_event_func(int _fd, unsigned ev, void *_l) { argument 77 if (ev & FDE_READ) { 94 static void listener_event_func(int _fd, unsigned ev, void* _l) argument 99 if (ev & FDE_READ) {
|
H A D | fdevent.cpp | 307 static void fdevent_run_func(int fd, unsigned ev, void* /* userdata */) { argument 309 CHECK(ev & FDE_READ);
|
H A D | transport_mdns.cpp | 57 static void pump_service_ref(int /*fd*/, unsigned ev, void* data) { argument 60 if (ev & FDE_READ)
|
H A D | sockets.cpp | 300 static void local_socket_event_func(int fd, unsigned ev, void* _s) { argument 302 D("LS(%d): event_func(fd=%d(==%d), ev=%04x)", s->id, s->fd, fd, ev); 307 if (ev & FDE_WRITE) { 321 if (ev & FDE_READ) { 327 if (ev & FDE_ERROR) {
|
H A D | transport.cpp | 562 static void transport_registration_func(int _fd, unsigned ev, void* data) { argument 567 if (!(ev & FDE_READ)) {
|
/system/core/debuggerd/tombstoned/ |
H A D | intercept_manager.cpp | 82 static void intercept_request_cb(evutil_socket_t sockfd, short ev, void* arg) { argument 88 if ((ev & EV_TIMEOUT) != 0) { 91 } else if ((ev & EV_READ) == 0) {
|
H A D | tombstoned.cpp | 207 static void crash_request_cb(evutil_socket_t sockfd, short ev, void* arg); 208 static void crash_completed_cb(evutil_socket_t sockfd, short ev, void* arg); 260 static void crash_request_cb(evutil_socket_t sockfd, short ev, void* arg) { argument 266 if ((ev & EV_TIMEOUT) != 0) { 269 } else if ((ev & EV_READ) == 0) { 327 static void crash_completed_cb(evutil_socket_t sockfd, short ev, void* arg) { argument 334 if ((ev & EV_READ) == 0) {
|
/system/extras/slideshow/ |
H A D | slideshow.cpp | 36 struct input_event ev; local 40 if (ev_get_input(fd, epevents, &ev)) { 44 if (ev.type == EV_KEY && ev.value == 1) { 45 *key_code = ev.code;
|
/system/extras/tests/suspend_stress/ |
H A D | suspend_stress.cpp | 109 struct epoll_event ev = epoll_event(); local 110 ev.events = EPOLLIN | EPOLLWAKEUP; 111 int ret = epoll_ctl(epoll_fd, EPOLL_CTL_ADD, fd, &ev);
|
/system/bt/btif/co/ |
H A D | bta_hh_co.cc | 60 static int uhid_write(int fd, const struct uhid_event* ev) { argument 62 OSI_NO_INTR(ret = write(fd, ev, sizeof(*ev))); 68 } else if (ret != (ssize_t)sizeof(*ev)) { 70 ret, sizeof(*ev)); 81 struct uhid_event ev; local 82 memset(&ev, 0, sizeof(ev)); 85 OSI_NO_INTR(ret = read(p_dev->fd, &ev, sizeof(ev))); 231 struct uhid_event ev; local 242 struct uhid_event ev; local 458 struct uhid_event ev; local [all...] |
/system/chre/apps/sensor_world/ |
H A D | sensor_world.cc | 312 const auto *ev = static_cast<const chreSensorThreeAxisData *>(eventData); local 313 const auto header = ev->header; 314 const auto *data = ev->readings; 349 const auto *ev = static_cast<const chreSensorFloatData *>(eventData); local 350 const auto header = ev->header; 354 v += ev->readings[i].value; 365 const auto *ev = static_cast<const chreSensorByteData *>(eventData); local 366 const auto header = ev->header; 367 const auto reading = ev->readings[0]; 404 const auto *ev local 413 const auto *ev = static_cast<const chreSensorSamplingStatusEvent *>( local [all...] |
/system/bt/hci/src/ |
H A D | hci_layer_linux.cc | 284 struct mgmt_pkt ev; local 311 ev.opcode = MGMT_OP_INDEX_LIST; 312 ev.index = HCI_DEV_NONE; 313 ev.len = 0; 316 OSI_NO_INTR(wrote = write(fd, &ev, 6)); 337 OSI_NO_INTR(n = read(fd, &ev, sizeof(struct mgmt_pkt))); 344 if (ev.opcode == MGMT_EV_INDEX_ADDED && ev.index == hci_interface) { 346 } else if (ev.opcode == MGMT_EV_COMMAND_COMP) { 350 cc = (struct mgmt_event_read_index*)ev [all...] |
/system/bt/vendor_libs/linux/interface/ |
H A D | bluetooth_hci.cc | 119 struct mgmt_pkt ev; local 143 ev.opcode = MGMT_OP_INDEX_LIST; 144 ev.index = HCI_DEV_NONE; 145 ev.len = 0; 148 WRITE_NO_INTR(wrote = write(fd, &ev, 6)); 169 WRITE_NO_INTR(n = read(fd, &ev, sizeof(struct mgmt_pkt))); 177 if (ev.opcode == MGMT_EV_INDEX_ADDED && ev.index == hci_interface) { 179 } else if (ev.opcode == MGMT_EV_COMMAND_COMP) { 183 cc = (struct mgmt_event_read_index*)ev [all...] |
/system/core/healthd/ |
H A D | healthd_mode_charger.cpp | 409 static void update_input_state(charger* charger, input_event* ev) { argument 410 if (ev->type != EV_KEY) return; 411 set_key_callback(charger, ev->code, ev->value); 556 input_event ev; local 559 ret = ev_get_input(fd, epevents, &ev); 561 update_input_state(charger, &ev);
|
/system/core/init/ |
H A D | init.cpp | 134 epoll_event ev; local 135 ev.events = EPOLLIN; 136 ev.data.ptr = reinterpret_cast<void*>(fn); 137 if (epoll_ctl(epoll_fd, EPOLL_CTL_ADD, fd, &ev) == -1) { 780 epoll_event ev; local 781 int nr = TEMP_FAILURE_RETRY(epoll_wait(epoll_fd, &ev, 1, epoll_timeout_ms)); 785 ((void (*)()) ev.data.ptr)();
|
/system/netd/tests/dns_responder/ |
H A D | dns_responder.cpp | 633 epoll_event ev; local 634 ev.events = EPOLLIN; 635 ev.data.fd = s; 636 if (epoll_ctl(ep_fd, EPOLL_CTL_ADD, s, &ev) < 0) {
|