Home
last modified time | relevance | path

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

12

/system/core/adb/
Dsysdeps_test.cpp102 pfd[0].revents = -1; in TEST_F()
103 pfd[1].revents = -1; in TEST_F()
105 EXPECT_EQ(0, pfd[0].revents); in TEST_F()
106 EXPECT_EQ(POLLWRNORM, pfd[1].revents); in TEST_F()
111 pfd[0].revents = -1; in TEST_F()
113 EXPECT_EQ(POLLRDNORM, pfd[0].revents); in TEST_F()
114 pfd[0].revents = -1; in TEST_F()
115 pfd[1].revents = -1; in TEST_F()
117 EXPECT_EQ(POLLRDNORM, pfd[0].revents); in TEST_F()
118 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()
/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/core/adb/fdevent/
Dfdevent_poll.cpp132 pfd.revents = 0; in Loop()
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()
/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()
294 if (pollfd.revents & POLLIN) { in drainAndWaitForAck()
326 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/netd/client/
DNetdClientTest.cpp52 if (fds[SERVERFD].revents & POLLERR) return; in serverLoop()
53 if (fds[SERVERFD].revents & POLLIN) { in serverLoop()
/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/core/adb/daemon/
Dshell_service.cpp619 if (stdinout_pfd.fd != -1 && (stdinout_pfd.revents & POLLIN)) { in PollLoop()
624 if (!dead_sfd && stderr_pfd.fd != 1 && (stderr_pfd.revents & POLLIN)) { in PollLoop()
629 if (!dead_sfd && protocol_pfd.fd != -1 && (protocol_pfd.revents & POLLIN)) { in PollLoop()
639 if (!dead_sfd && stdinout_pfd.fd != -1 && (stdinout_pfd.revents & POLLOUT)) { in PollLoop()
655 if (poll_finished(stdinout_pfd.revents)) { in PollLoop()
659 if (poll_finished(stderr_pfd.revents)) { in PollLoop()
663 if (poll_finished(protocol_pfd.revents)) { in PollLoop()
Dusb.cpp295 { .fd = control_fd_.get(), .events = POLLIN, .revents = 0 }, in StartMonitor()
296 { .fd = monitor_event_fd_.get(), .events = POLLIN, .revents = 0 }, in StartMonitor()
310 if (pfd[1].revents) { in StartMonitor()
/system/core/fs_mgr/
Dfile_wait.cpp157 .revents = 0, in WaitImpl()
167 if (event.revents & POLLERR) { in WaitImpl()
/system/core/init/
Duevent_listener.cpp194 ufd.revents = 0; in Poll()
212 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/connectivity/wificond/tests/
Dshell_utils.cpp105 if (shell_output.revents & POLLHUP) { in RunShellCommand()
/system/teeui/libteeui/src/
Devdev.cpp141 if (fds[i].revents & receiver.eventFlags) { in start()
142 receiver.handleEvent(fds[i].revents); in start()
/system/core/logwrapper/
Dlogwrap.cpp398 if (poll_fds[0].revents & POLLIN) { in parent()
441 if (!received_messages || (poll_fds[0].revents & POLLHUP)) { in parent()
453 int flags = (poll_fds[0].revents & POLLHUP) ? 0 : WNOHANG; in parent()
/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/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.c751 struct pollfd p = {.fd = dev->fd, .events = POLLOUT, .revents = 0}; in usb_request_wait()
755 if (res != 1 || p.revents != POLLOUT) { in usb_request_wait()
756 D("[ poll - event %d, error %d]\n", p.revents, errno); in usb_request_wait()
/system/netd/tests/
Dnetd_test.cpp282 EXPECT_EQ(p.revents, POLLIN); in TEST()

12