Home
last modified time | relevance | path

Searched refs:revents (Results 1 – 25 of 43) sorted by relevance

12

/system/core/adb/
Dsysdeps_test.cpp87 pfd[0].revents = -1; in TEST_F()
88 pfd[1].revents = -1; in TEST_F()
90 EXPECT_EQ(0, pfd[0].revents); in TEST_F()
91 EXPECT_EQ(POLLWRNORM, pfd[1].revents); in TEST_F()
96 pfd[0].revents = -1; in TEST_F()
98 EXPECT_EQ(POLLRDNORM, pfd[0].revents); in TEST_F()
99 pfd[0].revents = -1; in TEST_F()
100 pfd[1].revents = -1; in TEST_F()
102 EXPECT_EQ(POLLRDNORM, pfd[0].revents); in TEST_F()
103 EXPECT_EQ(POLLWRNORM, pfd[1].revents); in TEST_F()
[all …]
Dtransport_fd.cpp85 if (pfds[0].revents) { in Run()
86 if ((pfds[0].revents & POLLOUT)) { in Run()
94 if (pfds[0].revents & POLLIN) { in Run()
129 if (pfds[1].revents) { in Run()
Dfdevent.cpp311 if (pollfd.revents != 0) { in fdevent_process()
312 D("for fd %d, revents = %x", pollfd.fd, pollfd.revents); in fdevent_process()
315 if (pollfd.revents & POLLIN) { in fdevent_process()
318 if (pollfd.revents & POLLOUT) { in fdevent_process()
321 if (pollfd.revents & (POLLERR | POLLHUP | POLLNVAL)) { in fdevent_process()
327 if (pollfd.revents & POLLRDHUP) { in fdevent_process()
Dservices.cpp130 } else if (rc > 0 && (pfd.revents & POLLHUP) != 0) { in wait_for_state()
/system/nvram/hal/
Dfake_nvram.cpp157 poll_fds[0].revents = 0; in ProcessMessages()
160 if (poll_fds[0].revents & POLLIN) { in ProcessMessages()
172 poll_fds[poll_fds_count].revents = 0; in ProcessMessages()
187 if (poll_fds[i].revents & POLLIN) { in ProcessMessages()
197 poll_fds[i].revents = 0; in ProcessMessages()
/system/netd/server/
DNetlinkListener.cpp130 ASSIGN_OR_RETURN(auto revents, sys.ppoll(fds, events, timeout)); in run()
132 if (revents[0] & POLLIN) { in run()
135 if (revents[1] & (POLLIN|POLLERR)) { in run()
DIptablesRestoreController.cpp69 return (ret == 1) && !(pollfd.revents & POLLERR); in outputReady()
295 if (pollfd.revents & POLLIN) { in drainAndWaitForAck()
327 if (pollfd.revents & POLLHUP) { in drainAndWaitForAck()
DMDnsSdListener.cpp603 if (mPollFds[i].revents != 0) { in run()
606 i, mPollFds[i].revents); in run()
610 mPollFds[i].revents = 0; in run()
613 if (VDBG) ALOGD("controlSocket shows revent= %d", mPollFds[0].revents); in run()
614 switch (mPollFds[0].revents) { in run()
624 mPollFds[0].revents = 0; in run()
/system/bt/btif/src/
Dbtif_sock_thread.cc373 ps->pfd.revents = 0; in set_poll()
470 if (pfds[i].revents) { in process_data_sock()
476 print_events(pfds[i].revents); in process_data_sock()
477 if (IS_READ(pfds[i].revents)) { in process_data_sock()
480 if (IS_WRITE(pfds[i].revents)) { in process_data_sock()
483 if (IS_EXCEPTION(pfds[i].revents)) { in process_data_sock()
533 if (pfds[0].revents) // cmd fd always is the first one in sock_poll_thread()
/system/core/libsysutils/src/
DSocketListener.cpp175 if (fds[0].revents & (POLLIN | POLLERR)) { in runListener()
183 if (mListen && (fds[1].revents & (POLLIN | POLLERR))) { in runListener()
202 if (p.revents & (POLLIN | POLLERR)) { in runListener()
/system/netd/client/
DNetdClientTest.cpp42 if (fds[SERVERFD].revents & POLLIN) { in serverLoop()
/system/core/init/
Duevent_listener.cpp193 ufd.revents = 0; in Poll()
211 if (ufd.revents & POLLIN) { in Poll()
/system/chre/host/common/
Dsocket_server.cc275 if (mPollFds[kListenIndex].revents & POLLIN) { in serviceSocket()
284 if (mPollFds[i].revents & POLLIN) { in serviceSocket()
/system/media/audio_utils/include/audio_utils/
DFdToString.h108 if (retval <= 0 || (pfd.revents & POLLIN) != POLLIN) break; // error or timeout in reader()
/system/netd/libnetdutils/include/netdutils/
DSyscalls.h151 tmp[i].revents = 0; in ppoll()
156 out[i] = tmp[i].revents; in ppoll()
/system/netd/resolv/
DDnsTlsSocket.cpp369 if (fds[SSLFD].revents & (POLLIN | POLLERR | POLLHUP)) { in loop()
375 if (fds[EVENTFD].revents & (POLLIN | POLLERR)) { in loop()
393 } else if (fds[SSLFD].revents & POLLOUT) { in loop()
/system/connectivity/wificond/tests/
Dshell_utils.cpp105 if (shell_output.revents & POLLHUP) { in RunShellCommand()
/system/bt/udrv/ulinux/
Duipc.cc360 pfd.fd, pfd.revents, ret); in uipc_flush_ch_locked()
361 if (pfd.revents & (POLLERR | POLLHUP)) { in uipc_flush_ch_locked()
660 if (pfd.revents & (POLLHUP | POLLNVAL)) { in UIPC_Read()
/system/bt/service/ipc/
Dlinux_ipc_host.cc89 if (pfds_[kFdIpc].revents && !OnMessage()) { in EventLoop()
93 if (pfds_.size() == kPossibleFds && pfds_[kFdGatt].revents && in EventLoop()
/system/netd/resolv/dns_responder/
Ddns_tls_frontend.cpp283 if (fds[EVENT_FD].revents & (POLLIN | POLLERR)) { in requestHandler()
287 if (fds[LISTEN_FD].revents & (POLLIN | POLLERR)) { in requestHandler()
/system/core/toolbox/
Dgetevent.c660 if(ufds[0].revents & POLLIN) { in getevent_main()
664 if(ufds[i].revents) { in getevent_main()
665 if(ufds[i].revents & POLLIN) { in getevent_main()
/system/core/libusbhost/
Dusbhost.c746 struct pollfd p = {.fd = dev->fd, .events = POLLOUT, .revents = 0}; in usb_request_wait()
750 if (res != 1 || p.revents != POLLOUT) { in usb_request_wait()
751 D("[ poll - event %d, error %d]\n", p.revents, errno); in usb_request_wait()
/system/core/adb/daemon/
Dusb.cpp279 { .fd = control_fd_.get(), .events = POLLIN, .revents = 0 }, in StartMonitor()
280 { .fd = monitor_event_fd_.get(), .events = POLLIN, .revents = 0 }, in StartMonitor()
294 if (pfd[1].revents) { in StartMonitor()
/system/core/logwrapper/
Dlogwrap.c356 if (poll_fds[0].revents & POLLIN) { in parent()
399 if (poll_fds[0].revents & POLLHUP) { in parent()
/system/core/liblog/
Dlogd_reader.cpp172 if (!(p.revents & POLLIN)) { in send_log_msg()
504 if ((ret > 0) && !(p.revents & POLLIN)) { in logdPoll()

12