Home
last modified time | relevance | path

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

12

/system/core/adb/fdevent/
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()
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()
/system/netd/server/
DIptablesRestoreController.cpp63 struct pollfd pollfd = { .fd = stdIn, .events = POLLOUT }; in outputReady() local
64 int ret = poll(&pollfd, 1, 0); in outputReady()
69 return (ret == 1) && !(pollfd.revents & POLLERR); in outputReady()
110 struct pollfd pollFds[2];
293 const struct pollfd &pollfd = process->pollFds[i]; in drainAndWaitForAck() local
294 if (pollfd.revents & POLLIN) { in drainAndWaitForAck()
297 size = TEMP_FAILURE_RETRY(read(pollfd.fd, buffer, sizeof(buffer))); in drainAndWaitForAck()
326 if (pollfd.revents & POLLHUP) { in drainAndWaitForAck()
DMDnsSdListener.cpp584 mPollFds = (struct pollfd *)calloc(sizeof(struct pollfd), mPollSize); in run()
587 ((int)sizeof(struct pollfd)) * mPollSize); in run()
647 mPollFds = (struct pollfd *)calloc(sizeof(struct pollfd), mPollSize); in rescan()
650 ((int)sizeof(struct pollfd)) * mPollSize); in rescan()
654 memset(mPollFds, 0, sizeof(struct pollfd) * mPollSize); in rescan()
DMDnsSdListener.h100 struct pollfd *mPollFds;
/system/chre/host/common/include/chre_host/
Dsocket_server.h94 struct pollfd mPollFds[1 + kMaxActiveClients] = {};
/system/bt/service/ipc/
Dlinux_ipc_host.h99 std::vector<struct pollfd> pfds_;
/system/testing/gtest_extras/
DIsolate.cpp256 pollfd* pollfd = &running_pollfds_[run_index]; in LaunchTests() local
257 pollfd->fd = test->fd(); in LaunchTests()
258 pollfd->events = POLLIN; in LaunchTests()
271 pollfd* pfd = &running_pollfds_[i]; in ReadTestsOutput()
444 memset(running_pollfds_.data(), 0, running_pollfds_.size() * sizeof(pollfd)); in RunAllTests()
DIsolate.h101 std::vector<pollfd> running_pollfds_;
/system/core/libsysutils/src/
DSocketListener.cpp153 std::vector<pollfd> fds; in runListener()
201 const struct pollfd& p = fds[i]; in runListener()
DSocketListener_test.cpp81 pollfd fds = {.fd = fd, .events = POLLIN}; in recvReply()
/system/media/audio_utils/include/audio_utils/
DFdToString.h100 struct pollfd pfd = { in reader()
/system/bt/btif/src/
Dbtif_sock_thread.cc80 struct pollfd pfd;
466 static void process_data_sock(int h, struct pollfd* pfds, int count) { in process_data_sock()
495 static void prepare_poll_fds(int h, struct pollfd* pfds) { in prepare_poll_fds()
519 struct pollfd pfds[MAX_POLL]; in sock_poll_thread()
/system/netd/libnetdutils/include/netdutils/
DSyscalls.h66 virtual StatusOr<int> ppoll(pollfd* fds, nfds_t nfds, double timeout) const = 0;
147 std::array<pollfd, size> tmp; in ppoll()
DMockSyscalls.h51 MOCK_CONST_METHOD3(ppoll, StatusOr<int>(pollfd* fds, nfds_t nfds, double timeout));
/system/connectivity/wificond/tests/
Dshell_utils.cpp85 struct pollfd shell_output; in RunShellCommand()
/system/netd/client/
DNetdClientTest.cpp46 pollfd fds[1] = {{.fd = dnsProxyFd, .events = POLLIN}}; in serverLoop()
/system/bt/udrv/ulinux/
Duipc.cc137 struct pollfd pfd; in accept_server_socket()
335 struct pollfd pfd; in uipc_flush_ch_locked()
631 struct pollfd pfd; in UIPC_Read()
/system/nvram/hal/
Dfake_nvram.cpp153 struct pollfd poll_fds[kMaxClientSockets]; in ProcessMessages()
/system/core/fs_mgr/
Dfile_wait.cpp154 struct pollfd event = { in WaitImpl()
/system/core/init/
Duevent_listener.cpp187 pollfd ufd; in Poll()
/system/netd/tests/
Dnetd_test.cpp267 struct pollfd p = { in TEST()
/system/core/toolbox/
Dgetevent.c36 static struct pollfd *ufds;
317 struct pollfd *new_ufds; in open_device()
/system/core/logd/
Dmain.cpp197 struct pollfd p; in issueReinit()
/system/core/debuggerd/handler/
Ddebuggerd_fallback.cpp139 struct pollfd pfd = { in forward_output()

12