Home
last modified time | relevance | path

Searched refs:pfd (Results 1 – 8 of 8) sorted by relevance

/system/core/adb/
Dsysdeps_test.cpp129 adb_pollfd pfd[2] = {}; in TEST_F() local
130 pfd[0].fd = fds[0]; in TEST_F()
131 pfd[0].events = POLLRDNORM; in TEST_F()
132 pfd[1].fd = fds[1]; in TEST_F()
133 pfd[1].events = POLLWRNORM; in TEST_F()
135 pfd[0].revents = -1; in TEST_F()
136 pfd[1].revents = -1; in TEST_F()
137 EXPECT_EQ(1, adb_poll(pfd, 2, 0)); in TEST_F()
138 EXPECT_EQ(0, pfd[0].revents); in TEST_F()
139 EXPECT_EQ(POLLWRNORM, pfd[1].revents); in TEST_F()
[all …]
Dservices.cpp358 adb_pollfd pfd = {.fd = fd, .events = POLLIN }; in wait_for_state() local
359 int rc = adb_poll(&pfd, 1, 1000); in wait_for_state()
363 } else if (rc > 0 && (pfd.revents & POLLHUP) != 0) { in wait_for_state()
Dfile_sync_client.cpp238 adb_pollfd pfd = {.fd = fd, .events = POLLIN}; in ReceivedError() local
239 int rc = adb_poll(&pfd, 1, 0); in ReceivedError()
/system/bt/udrv/ulinux/
Duipc.cc164 struct pollfd pfd; in accept_server_socket() local
171 pfd.fd = sfd; in accept_server_socket()
172 pfd.events = POLLIN; in accept_server_socket()
175 OSI_NO_INTR(poll_ret = poll(&pfd, 1, 0)); in accept_server_socket()
363 struct pollfd pfd; in uipc_flush_ch_locked() local
365 pfd.events = POLLIN; in uipc_flush_ch_locked()
366 pfd.fd = uipc_main.ch[ch_id].fd; in uipc_flush_ch_locked()
375 OSI_NO_INTR(ret = poll(&pfd, 1, 1)); in uipc_flush_ch_locked()
388 pfd.fd, pfd.revents, ret); in uipc_flush_ch_locked()
389 if (pfd.revents & (POLLERR | POLLHUP)) { in uipc_flush_ch_locked()
[all …]
/system/bt/btif/src/
Dbtif_sock_thread.cc80 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/
Ddhcpclient.c398 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/handler/
Ddebuggerd_fallback.cpp105 struct pollfd pfd = { in forward_output() local
110 if (poll(&pfd, 1, 1000) != 1) { in forward_output()
/system/core/debuggerd/client/
Ddebuggerd_client.cpp188 struct pollfd pfd = { in debuggerd_trigger_dump() local
192 rc = poll(&pfd, 1, remaining_ms); in debuggerd_trigger_dump()