Searched refs:pfd (Results 1 – 6 of 6) sorted by relevance
/system/core/adb/ |
D | sysdeps_test.cpp | 125 adb_pollfd pfd[2] = {}; in TEST_F() local 126 pfd[0].fd = fds[0]; in TEST_F() 127 pfd[0].events = POLLRDNORM; in TEST_F() 128 pfd[1].fd = fds[1]; in TEST_F() 129 pfd[1].events = POLLWRNORM; in TEST_F() 131 pfd[0].revents = -1; in TEST_F() 132 pfd[1].revents = -1; in TEST_F() 133 EXPECT_EQ(1, adb_poll(pfd, 2, 0)); in TEST_F() 134 EXPECT_EQ(0, pfd[0].revents); in TEST_F() 135 EXPECT_EQ(POLLWRNORM, pfd[1].revents); in TEST_F() [all …]
|
D | services.cpp | 386 adb_pollfd pfd = {.fd = fd, .events = POLLIN }; in wait_for_state() local 387 int rc = adb_poll(&pfd, 1, 1000); in wait_for_state() 391 } else if (rc > 0 && (pfd.revents & POLLHUP) != 0) { in wait_for_state()
|
D | file_sync_client.cpp | 134 adb_pollfd pfd = {.fd = fd, .events = POLLIN}; in ReceivedError() local 135 int rc = adb_poll(&pfd, 1, 0); in ReceivedError()
|
/system/bt/udrv/ulinux/ |
D | uipc.c | 173 struct pollfd pfd; in accept_server_socket() local 180 pfd.fd = sfd; in accept_server_socket() 181 pfd.events = POLLIN; in accept_server_socket() 184 OSI_NO_INTR(poll_ret = poll(&pfd, 1, 0)); in accept_server_socket() 389 struct pollfd pfd; in uipc_flush_ch_locked() local 391 pfd.events = POLLIN; in uipc_flush_ch_locked() 392 pfd.fd = uipc_main.ch[ch_id].fd; in uipc_flush_ch_locked() 403 OSI_NO_INTR(ret = poll(&pfd, 1, 1)); in uipc_flush_ch_locked() 415 __FUNCTION__, pfd.fd, pfd.revents, ret); in uipc_flush_ch_locked() 416 if (pfd.revents & (POLLERR|POLLHUP)) in uipc_flush_ch_locked() [all …]
|
/system/bt/btif/src/ |
D | btif_sock_thread.c | 83 struct pollfd pfd; member 385 ts[h].ps[i].pfd.fd = -1; in init_poll() 403 ps->pfd.fd = fd; in set_poll() 409 ps->pfd.events = flags2pevents(flags); in set_poll() 410 ps->pfd.revents = 0; in set_poll() 421 if(ps[i].pfd.fd == fd) in add_poll() 428 else if(empty < 0 && ps[i].pfd.fd == -1) in add_poll() 447 ps->pfd.fd = -1; in remove_poll() 454 ps->pfd.events = flags2pevents(ps->flags); in remove_poll() 480 if (poll_slot->pfd.fd == cmd.fd) in process_cmd_sock() [all …]
|
/system/core/libnetutils/ |
D | dhcpclient.c | 400 struct pollfd pfd; in dhcp_init_ifc() local 422 pfd.fd = s; in dhcp_init_ifc() 423 pfd.events = POLLIN; in dhcp_init_ifc() 424 pfd.revents = 0; in dhcp_init_ifc() 425 r = poll(&pfd, 1, timeout); in dhcp_init_ifc()
|