Home
last modified time | relevance | path

Searched refs:pfds (Results 1 – 5 of 5) sorted by relevance

/system/bt/btif/src/
Dbtif_sock_thread.cc466 static void process_data_sock(int h, struct pollfd* pfds, int count) { in process_data_sock() argument
470 if (pfds[i].revents) { in process_data_sock()
472 asrt(pfds[i].fd == ts[h].ps[ps_i].pfd.fd); in process_data_sock()
476 print_events(pfds[i].revents); in process_data_sock()
477 if (IS_READ(pfds[i].revents)) { in process_data_sock()
480 if (IS_WRITE(pfds[i].revents)) { in process_data_sock()
483 if (IS_EXCEPTION(pfds[i].revents)) { in process_data_sock()
490 if (flags) ts[h].callback(pfds[i].fd, type, flags, user_id); in process_data_sock()
495 static void prepare_poll_fds(int h, struct pollfd* pfds) { in prepare_poll_fds() argument
500 memset(pfds, 0, sizeof(pfds[0]) * ts[h].poll_count); in prepare_poll_fds()
[all …]
/system/core/adb/daemon/
Dshell_service.cpp145 adb_pollfd pfds[3]; member
147 adb_pollfd* data() { return pfds; } in data()
150 adb_pollfd* begin() { return pfds; } in begin()
151 adb_pollfd* end() { return pfds + size(); } in end()
153 adb_pollfd& stdinout_pfd() { return pfds[0]; } in stdinout_pfd()
154 adb_pollfd& stderr_pfd() { return pfds[1]; } in stderr_pfd()
155 adb_pollfd& protocol_pfd() { return pfds[2]; } in protocol_pfd()
193 unique_fd* PollLoop(SubprocessPollfds* pfds);
561 SubprocessPollfds pfds; in PassDataStreams() local
562 pfds.stdinout_pfd() = {.fd = stdinout_sfd_.get(), .events = POLLIN}; in PassDataStreams()
[all …]
/system/core/adb/
Dtransport_fd.cpp65 adb_pollfd pfds[2] = { in Run() local
73 pfds[0].events |= POLLOUT; in Run()
77 int rc = adb_poll(pfds, 2, -1); in Run()
85 if (pfds[0].revents) { in Run()
86 if ((pfds[0].revents & POLLOUT)) { in Run()
94 if (pfds[0].revents & POLLIN) { in Run()
129 if (pfds[1].revents) { in Run()
Dsysdeps_test.cpp210 std::vector<adb_pollfd> pfds; in TEST_F() local
218 pfds.push_back(pfd); in TEST_F()
221 ASSERT_EQ(num_sockets, adb_poll(pfds.data(), pfds.size(), 0)); in TEST_F()
223 ASSERT_NE(0, pfds[i].revents & POLLIN); in TEST_F()
226 ASSERT_EQ(adb_read(pfds[i].fd, buf, sizeof(buf)), static_cast<ssize_t>(sizeof(int32_t))); in TEST_F()
/system/bt/btif/co/
Dbta_hh_co.cc233 struct pollfd pfds[1]; in btif_hh_poll_event_thread() local
246 pfds[0].fd = p_dev->fd; in btif_hh_poll_event_thread()
247 pfds[0].events = POLLIN; in btif_hh_poll_event_thread()
254 OSI_NO_INTR(ret = poll(pfds, 1, 50)); in btif_hh_poll_event_thread()
260 if (pfds[0].revents & POLLIN) { in btif_hh_poll_event_thread()