Home
last modified time | relevance | path

Searched refs:pollfd (Results 1 – 16 of 16) sorted by relevance

/packages/modules/adb/fdevent/
Dfdevent_poll.cpp90 for (const auto& pollfd : pollfds) { in dump_pollfds() local
92 if (pollfd.events & POLLIN) { in dump_pollfds()
95 if (pollfd.events & POLLOUT) { in dump_pollfds()
98 android::base::StringAppendF(&result, " %d(%s)", pollfd.fd, op.c_str()); in dump_pollfds()
154 for (const auto& pollfd : pollfds) { in Loop() local
156 if (pollfd.revents & POLLIN) { in Loop()
159 if (pollfd.revents & POLLOUT) { in Loop()
162 if (pollfd.revents & (POLLERR | POLLHUP | POLLNVAL)) { in Loop()
168 if (pollfd.revents & POLLRDHUP) { in Loop()
173 auto it = this->installed_fdevents_.find(pollfd.fd); in Loop()
Dfdevent_poll.h33 adb_pollfd pollfd; member
36 memset(&pollfd, 0, sizeof(pollfd)); in PollNode()
37 pollfd.fd = fde->fd.get(); in PollNode()
42 pollfd.events = POLLRDHUP; in PollNode()
/packages/modules/DnsResolver/
Dres_send.cpp907 struct pollfd fds = {.fd = sock, .events = events}; in retrying_poll()
932 static std::vector<pollfd> extractUdpFdset(res_state statp, const short events = POLLIN) { in extractUdpFdset()
933 std::vector<pollfd> fdset(statp->nsaddrs.size()); in extractUdpFdset()
946 std::vector<pollfd> fdset = extractUdpFdset(statp); in udpRetryingPoll()
955 for (const auto& pollfd : fdset) { in udpRetryingPoll() local
956 if (pollfd.revents & (POLLIN | POLLERR)) { in udpRetryingPoll()
957 fdsToRead.push_back(pollfd.fd); in udpRetryingPoll()
DDnsTlsSocket.cpp62 pollfd fds = {.fd = fd, .events = POLLIN}; in waitForReading()
67 pollfd fds = {.fd = fd, .events = POLLOUT}; in waitForWriting()
323 pollfd fds[2] = { in sslConnectV2()
425 struct pollfd fds[2] = { { .fd = -1 }, { .fd = -1 } }; in loop()
DDnsTlsTransport.cpp124 pollfd fds = {.fd = fd, .events = POLLIN}; in sendUdpQuery()
/packages/modules/DnsResolver/tests/dns_responder/
Ddns_tls_frontend.cpp176 pollfd fds[2] = {{.fd = event_fd_.get(), .events = POLLIN}, in requestHandler()
240 pollfd fds = {.fd = clientFd, .events = POLLIN}; in handleRequests()
/packages/services/Car/tools/keventreader/server/
Deventgatherer.h37 std::vector<pollfd> mFds;
/packages/modules/Connectivity/tests/cts/hostside/app/src/com/android/cts/net/hostside/
DVpnTest.java371 StructPollfd pollfd = new StructPollfd(); in checkPing() local
372 pollfd.events = (short) POLLIN; // "error: possible loss of precision" in checkPing()
373 pollfd.fd = s; in checkPing()
374 int ret = Os.poll(new StructPollfd[] { pollfd }, SOCKET_TIMEOUT_MS); in checkPing()
/packages/apps/TV/jni/
DDvbManager.cpp70 struct pollfd pollFd; in isFeLocked()
488 struct pollfd pollFd; in readTsStream()
/packages/modules/NeuralNetworks/common/
DTypes.cpp144 struct pollfd fds; in syncWait()
DLegacyUtils.cpp1823 struct pollfd fds; in syncWait()
/packages/modules/Connectivity/tests/cts/net/native/dns/
DNativeDnsAsyncTest.cpp38 struct pollfd wait_fd[1]; in getAsyncResponse()
/packages/modules/DnsResolver/tests/
Dtun_forwarder.cpp172 struct pollfd wait_fd[] = { in loop()
Dresolv_integration_test.cpp2209 struct pollfd wait_fd[1]; in getAsyncResponse()
/packages/modules/Connectivity/tests/cts/net/jni/
DNativeMultinetworkJni.cpp81 struct pollfd wait_fd = { .fd = fd, .events = POLLIN }; in getAsyncResponse()
/packages/modules/adb/
Dsysdeps.h720 typedef struct pollfd adb_pollfd;