Searched refs:pfds (Results 1 – 3 of 3) sorted by relevance
/system/bt/btif/src/ |
D | btif_sock_thread.c | 503 static void process_data_sock(int h, struct pollfd *pfds, int count) in process_data_sock() argument 509 if(pfds[i].revents) in process_data_sock() 512 asrt(pfds[i].fd == ts[h].ps[ps_i].pfd.fd); in process_data_sock() 516 print_events(pfds[i].revents); in process_data_sock() 517 if(IS_READ(pfds[i].revents)) in process_data_sock() 521 if(IS_WRITE(pfds[i].revents)) in process_data_sock() 525 if(IS_EXCEPTION(pfds[i].revents)) in process_data_sock() 534 ts[h].callback(pfds[i].fd, type, flags, user_id); in process_data_sock() 539 static void prepare_poll_fds(int h, struct pollfd* pfds) in prepare_poll_fds() argument 545 memset(pfds, 0, sizeof(pfds[0])*ts[h].poll_count); in prepare_poll_fds() [all …]
|
/system/core/adb/ |
D | sysdeps_test.cpp | 223 std::vector<adb_pollfd> pfds; in TEST_F() local 231 pfds.push_back(pfd); in TEST_F() 234 ASSERT_EQ(num_sockets, adb_poll(pfds.data(), pfds.size(), 0)); in TEST_F() 236 ASSERT_NE(0, pfds[i].revents & POLLIN); in TEST_F() 239 ASSERT_EQ(adb_read(pfds[i].fd, buf, sizeof(buf)), static_cast<ssize_t>(sizeof(int32_t))); in TEST_F()
|
/system/bt/btif/co/ |
D | bta_hh_co.c | 201 struct pollfd pfds[1]; in btif_hh_poll_event_thread() local 203 pfds[0].fd = p_dev->fd; in btif_hh_poll_event_thread() 204 pfds[0].events = POLLIN; in btif_hh_poll_event_thread() 211 OSI_NO_INTR(ret = poll(pfds, 1, 50)); in btif_hh_poll_event_thread() 216 if (pfds[0].revents & POLLIN) { in btif_hh_poll_event_thread()
|