Home
last modified time | relevance | path

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

/system/bt/btif/co/
Dbta_hh_co.cc63 static int uhid_write(int fd, const struct uhid_event* ev) { in uhid_write() argument
65 OSI_NO_INTR(ret = write(fd, ev, sizeof(*ev))); in uhid_write()
71 } else if (ret != (ssize_t)sizeof(*ev)) { in uhid_write()
73 ret, sizeof(*ev)); in uhid_write()
84 struct uhid_event ev; in uhid_read_event() local
85 memset(&ev, 0, sizeof(ev)); in uhid_read_event()
88 OSI_NO_INTR(ret = read(p_dev->fd, &ev, sizeof(ev))); in uhid_read_event()
99 switch (ev.type) { in uhid_read_event()
117 if (ret < (ssize_t)(sizeof(ev.type) + sizeof(ev.u.output))) { in uhid_read_event()
119 __func__, ret, sizeof(ev.type) + sizeof(ev.u.output)); in uhid_read_event()
[all …]
/system/core/init/
Depoll.cpp49 epoll_event ev; in RegisterHandler() local
50 ev.events = events; in RegisterHandler()
53 ev.data.ptr = reinterpret_cast<void*>(&it->second); in RegisterHandler()
54 if (epoll_ctl(epoll_fd_, EPOLL_CTL_ADD, fd, &ev) == -1) { in RegisterHandler()
79 epoll_event ev[max_events]; in Wait() local
80 auto num_events = TEMP_FAILURE_RETRY(epoll_wait(epoll_fd_, ev, max_events, timeout_ms)); in Wait()
86 pending_functions.emplace_back(reinterpret_cast<std::function<void()>*>(ev[i].data.ptr)); in Wait()
Dkeychords_test.cpp180 TestFrame(const std::vector<const std::vector<int>>& chords, EventHandler* ev = nullptr);
205 TestFrame::TestFrame(const std::vector<const std::vector<int>>& chords, EventHandler* ev) in TestFrame() argument
206 : ev_(ev) { in TestFrame()
303 EventHandler ev; in TEST() local
304 EXPECT_TRUE(ev.init()); in TEST()
312 EventHandler ev; in TEST() local
313 EXPECT_TRUE(ev.init()); in TEST()
314 TestFrame test_frame(chords, &ev); in TEST()
325 EventHandler ev; in TEST() local
326 EXPECT_TRUE(ev.init()); in TEST()
[all …]
/system/tools/hidl/lint/lints/
DnamingConventions.cpp78 for (const EnumValue* ev : enumType->values()) { in namingConventions() local
79 if (StringHelper::ToUpperSnakeCase(ev->name()) != ev->name()) { in namingConventions()
80 errors->push_back(Lint(WARNING, ev->location()) in namingConventions()
81 << "enumeration \"" << ev->name() << "\" of enum \"" in namingConventions()
83 << StringHelper::ToUpperSnakeCase(ev->name()) in namingConventions()
DenumMaxAndAll.cpp44 for (const EnumValue* ev : enumType->values()) { in enumValueNames() local
46 base::Split(StringHelper::Uppercase(ev->name()), "_"); in enumValueNames()
62 errors->push_back(Lint(WARNING, ev->location(), errorString)); in enumValueNames()
/system/chre/apps/sensor_world/
Dsensor_world.cc312 const auto *ev = static_cast<const chreSensorThreeAxisData *>(eventData); in nanoappHandleEvent() local
313 const auto header = ev->header; in nanoappHandleEvent()
314 const auto *data = ev->readings; in nanoappHandleEvent()
349 const auto *ev = static_cast<const chreSensorFloatData *>(eventData); in nanoappHandleEvent() local
350 const auto header = ev->header; in nanoappHandleEvent()
354 v += ev->readings[i].value; in nanoappHandleEvent()
365 const auto *ev = static_cast<const chreSensorByteData *>(eventData); in nanoappHandleEvent() local
366 const auto header = ev->header; in nanoappHandleEvent()
367 const auto reading = ev->readings[0]; in nanoappHandleEvent()
404 const auto *ev = static_cast<const chreSensorOccurrenceData *>(eventData); in nanoappHandleEvent() local
[all …]
/system/extras/slideshow/
Dslideshow.cpp36 struct input_event ev; in input_cb() local
40 if (ev_get_input(fd, epevents, &ev)) { in input_cb()
44 if (ev.type == EV_KEY && ev.value == 1) { in input_cb()
45 *key_code = ev.code; in input_cb()
/system/core/adb/daemon/
Dadb_wifi.cpp60 void OnFdEvent(int fd, unsigned ev);
61 static void StaticOnFdEvent(int fd, unsigned ev, void* opaque);
128 void TlsServer::StaticOnFdEvent(int fd, unsigned ev, void* opaque) { in StaticOnFdEvent() argument
130 server->OnFdEvent(fd, ev); in StaticOnFdEvent()
133 void TlsServer::OnFdEvent(int fd, unsigned ev) { in OnFdEvent() argument
134 if ((ev & FDE_READ) == 0 || fd != fd_event_->fd.get()) { in OnFdEvent()
135 LOG(INFO) << __func__ << ": No read [ev=" << ev << " fd=" << fd << "]"; in OnFdEvent()
/system/bt/vendor_libs/linux/interface/
Dbluetooth_hci.cc118 struct mgmt_pkt ev; in waitHciDev() local
142 ev.opcode = MGMT_OP_INDEX_LIST; in waitHciDev()
143 ev.index = HCI_DEV_NONE; in waitHciDev()
144 ev.len = 0; in waitHciDev()
147 WRITE_NO_INTR(wrote = write(fd, &ev, 6)); in waitHciDev()
168 WRITE_NO_INTR(n = read(fd, &ev, sizeof(struct mgmt_pkt))); in waitHciDev()
176 if (ev.opcode == MGMT_EV_INDEX_ADDED && ev.index == hci_interface) { in waitHciDev()
178 } else if (ev.opcode == MGMT_EV_COMMAND_COMP) { in waitHciDev()
182 cc = (struct mgmt_event_read_index*)ev.data; in waitHciDev()
/system/bt/hci/src/
Dhci_layer_linux.cc283 struct mgmt_pkt ev; in wait_hcidev() local
310 ev.opcode = MGMT_OP_INDEX_LIST; in wait_hcidev()
311 ev.index = HCI_DEV_NONE; in wait_hcidev()
312 ev.len = 0; in wait_hcidev()
315 OSI_NO_INTR(wrote = write(fd, &ev, 6)); in wait_hcidev()
336 OSI_NO_INTR(n = read(fd, &ev, sizeof(struct mgmt_pkt))); in wait_hcidev()
343 if (ev.opcode == MGMT_EV_INDEX_ADDED && ev.index == hci_interface) { in wait_hcidev()
345 } else if (ev.opcode == MGMT_EV_COMMAND_COMP) { in wait_hcidev()
349 cc = (struct mgmt_event_read_index*)ev.data; in wait_hcidev()
/system/core/adb/fdevent/
Dfdevent_epoll.cpp80 epoll_event ev = calculate_epoll_event(fde); in Register() local
81 if (epoll_ctl(epoll_fd_.get(), EPOLL_CTL_ADD, fde->fd.get(), &ev) != 0) { in Register()
101 epoll_event ev = calculate_epoll_event(fde); in Set() local
102 if (epoll_ctl(epoll_fd_.get(), EPOLL_CTL_MOD, fde->fd.get(), &ev) != 0) { in Set()
/system/extras/tests/suspend_stress/
Dsuspend_stress.cpp109 struct epoll_event ev = epoll_event(); in main() local
110 ev.events = EPOLLIN | EPOLLWAKEUP; in main()
111 int ret = epoll_ctl(epoll_fd, EPOLL_CTL_ADD, fd, &ev); in main()
/system/core/debuggerd/tombstoned/
Dtombstoned.cpp209 static void crash_request_cb(evutil_socket_t sockfd, short ev, void* arg);
210 static void crash_completed_cb(evutil_socket_t sockfd, short ev, void* arg);
270 static void crash_request_cb(evutil_socket_t sockfd, short ev, void* arg) { in crash_request_cb() argument
276 if ((ev & EV_TIMEOUT) != 0) { in crash_request_cb()
279 } else if ((ev & EV_READ) == 0) { in crash_request_cb()
337 static void crash_completed_cb(evutil_socket_t sockfd, short ev, void* arg) { in crash_completed_cb() argument
344 if ((ev & EV_READ) == 0) { in crash_completed_cb()
Dintercept_manager.cpp84 static void intercept_request_cb(evutil_socket_t sockfd, short ev, void* arg) { in intercept_request_cb() argument
90 if ((ev & EV_TIMEOUT) != 0) { in intercept_request_cb()
93 } else if ((ev & EV_READ) == 0) { in intercept_request_cb()
/system/core/adb/
Dadb_listeners.cpp77 static void ss_listener_event_func(int _fd, unsigned ev, void *_l) { in ss_listener_event_func() argument
78 if (ev & FDE_READ) { in ss_listener_event_func()
94 static void listener_event_func(int _fd, unsigned ev, void* _l) in listener_event_func() argument
98 if (ev & FDE_READ) { in listener_event_func()
Dsockets.cpp351 static void local_socket_event_func(int fd, unsigned ev, void* _s) { in local_socket_event_func() argument
353 D("LS(%d): event_func(fd=%d(==%d), ev=%04x)", s->id, s->fd, fd, ev); in local_socket_event_func()
358 if (ev & FDE_WRITE) { in local_socket_event_func()
372 if (ev & FDE_READ) { in local_socket_event_func()
378 if (ev & FDE_ERROR) { in local_socket_event_func()
Dtransport.cpp763 static void transport_registration_func(int _fd, unsigned ev, void*) { in transport_registration_func() argument
767 if (!(ev & FDE_READ)) { in transport_registration_func()
/system/core/healthd/
Dhealthd_mode_charger.cpp444 void Charger::UpdateInputState(input_event* ev) { in UpdateInputState() argument
445 if (ev->type != EV_KEY) return; in UpdateInputState()
446 SetKeyCallback(ev->code, ev->value); in UpdateInputState()
603 input_event ev; in InputCallback() local
606 ret = ev_get_input(fd, epevents, &ev); in InputCallback()
608 UpdateInputState(&ev); in InputCallback()
Dhealthd_mode_charger.h60 void UpdateInputState(input_event* ev);
/system/core/adb/client/
Dtransport_mdns.cpp135 static void pump_service_ref(int /*fd*/, unsigned ev, void* data) { in pump_service_ref() argument
138 if (ev & FDE_READ) in pump_service_ref()
/system/ca-certificates/google/files/
D75680d2e.023 l2D4kF501KKaU73yqWjgom7C12yxow+ev+to51byrvLjKzg6CYG1a4XXvi3tPxq3
/system/ca-certificates/files/
D75680d2e.023 l2D4kF501KKaU73yqWjgom7C12yxow+ev+to51byrvLjKzg6CYG1a4XXvi3tPxq3
/system/ca-certificates/google/
Droots.pem31 l2D4kF501KKaU73yqWjgom7C12yxow+ev+to51byrvLjKzg6CYG1a4XXvi3tPxq3