Home
last modified time | relevance | path

Searched refs:pfds (Results 1 – 4 of 4) 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/
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.cpp193 std::vector<adb_pollfd> pfds; in TEST_F() local
201 pfds.push_back(pfd); in TEST_F()
204 ASSERT_EQ(num_sockets, adb_poll(pfds.data(), pfds.size(), 0)); in TEST_F()
206 ASSERT_NE(0, pfds[i].revents & POLLIN); in TEST_F()
209 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.cc211 struct pollfd pfds[1]; in btif_hh_poll_event_thread() local
224 pfds[0].fd = p_dev->fd; in btif_hh_poll_event_thread()
225 pfds[0].events = POLLIN; in btif_hh_poll_event_thread()
232 OSI_NO_INTR(ret = poll(pfds, 1, 50)); in btif_hh_poll_event_thread()
238 if (pfds[0].revents & POLLIN) { in btif_hh_poll_event_thread()