Searched refs:pfd (Results 1 – 8 of 8) sorted by relevance
/system/core/adb/ |
D | sysdeps_test.cpp | 81 adb_pollfd pfd[2] = {}; in TEST_F() local 82 pfd[0].fd = fds[0]; in TEST_F() 83 pfd[0].events = POLLRDNORM; in TEST_F() 84 pfd[1].fd = fds[1]; in TEST_F() 85 pfd[1].events = POLLWRNORM; in TEST_F() 87 pfd[0].revents = -1; in TEST_F() 88 pfd[1].revents = -1; in TEST_F() 89 EXPECT_EQ(1, adb_poll(pfd, 2, 0)); in TEST_F() 90 EXPECT_EQ(0, pfd[0].revents); in TEST_F() 91 EXPECT_EQ(POLLWRNORM, pfd[1].revents); in TEST_F() [all …]
|
D | services.cpp | 360 adb_pollfd pfd = {.fd = fd, .events = POLLIN }; in wait_for_state() local 361 int rc = adb_poll(&pfd, 1, 1000); in wait_for_state() 365 } else if (rc > 0 && (pfd.revents & POLLHUP) != 0) { in wait_for_state()
|
D | file_sync_client.cpp | 238 adb_pollfd pfd = {.fd = fd, .events = POLLIN}; in ReceivedError() local 239 int rc = adb_poll(&pfd, 1, 0); in ReceivedError()
|
/system/bt/udrv/ulinux/ |
D | uipc.cc | 137 struct pollfd pfd; in accept_server_socket() local 144 pfd.fd = sfd; in accept_server_socket() 145 pfd.events = POLLIN; in accept_server_socket() 148 OSI_NO_INTR(poll_ret = poll(&pfd, 1, 0)); in accept_server_socket() 335 struct pollfd pfd; in uipc_flush_ch_locked() local 337 pfd.events = POLLIN; in uipc_flush_ch_locked() 338 pfd.fd = uipc.ch[ch_id].fd; in uipc_flush_ch_locked() 347 OSI_NO_INTR(ret = poll(&pfd, 1, 1)); in uipc_flush_ch_locked() 360 pfd.fd, pfd.revents, ret); in uipc_flush_ch_locked() 361 if (pfd.revents & (POLLERR | POLLHUP)) { in uipc_flush_ch_locked() [all …]
|
/system/bt/btif/src/ |
D | btif_sock_thread.cc | 80 struct pollfd pfd; member 349 ts[h].ps[i].pfd.fd = -1; in init_poll() 364 ps->pfd.fd = fd; in set_poll() 372 ps->pfd.events = flags2pevents(flags); in set_poll() 373 ps->pfd.revents = 0; in set_poll() 383 if (ps[i].pfd.fd == fd) { in add_poll() 388 } else if (empty < 0 && ps[i].pfd.fd == -1) in add_poll() 404 ps->pfd.fd = -1; in remove_poll() 409 ps->pfd.events = flags2pevents(ps->flags); in remove_poll() 431 if (poll_slot->pfd.fd == cmd.fd) { in process_cmd_sock() [all …]
|
/system/core/libnetutils/ |
D | dhcpclient.c | 398 struct pollfd pfd; in dhcp_init_ifc() local 420 pfd.fd = s; in dhcp_init_ifc() 421 pfd.events = POLLIN; in dhcp_init_ifc() 422 pfd.revents = 0; in dhcp_init_ifc() 423 r = poll(&pfd, 1, timeout); in dhcp_init_ifc()
|
/system/core/debuggerd/client/ |
D | debuggerd_client.cpp | 192 struct pollfd pfd = { in debuggerd_trigger_dump() local 196 rc = poll(&pfd, 1, remaining_ms); in debuggerd_trigger_dump()
|
/system/core/debuggerd/handler/ |
D | debuggerd_fallback.cpp | 130 struct pollfd pfd = { in forward_output() local 135 if (poll(&pfd, 1, 1000) != 1) { in forward_output()
|