Searched refs:ev (Results 1 - 16 of 16) sorted by relevance

/system/bt/btif/co/
H A Dbta_hh_co.cc60 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/extras/slideshow/
H A Dslideshow.cpp36 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/bt/vendor_libs/linux/interface/
H A Dbluetooth_hci.cc119 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/chre/apps/sensor_world/
H A Dsensor_world.cc312 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 Dhci_layer_linux.cc284 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/extras/tests/suspend_stress/
H A Dsuspend_stress.cpp109 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/core/adb/
H A Dadb_listeners.cpp76 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 Dtransport_mdns.cpp57 static void pump_service_ref(int /*fd*/, unsigned ev, void* data) { argument
60 if (ev & FDE_READ)
H A Dfdevent.cpp307 static void fdevent_run_func(int fd, unsigned ev, void* /* userdata */) { argument
309 CHECK(ev & FDE_READ);
H A Dsockets.cpp300 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 Dtransport.cpp562 static void transport_registration_func(int _fd, unsigned ev, void* data) { argument
567 if (!(ev & FDE_READ)) {
/system/core/debuggerd/tombstoned/
H A Dtombstoned.cpp207 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) {
H A Dintercept_manager.cpp82 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) {
/system/core/healthd/
H A Dhealthd_mode_charger.cpp409 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 Dinit.cpp134 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 Ddns_responder.cpp633 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) {

Completed in 416 milliseconds