/system/core/adb/ |
D | sysdeps_test.cpp | 102 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 …]
|
D | transport_fd.cpp | 85 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/ |
D | fake_nvram.cpp | 157 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/ |
D | fdevent_poll.cpp | 132 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/ |
D | NetlinkListener.cpp | 130 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()
|
D | IptablesRestoreController.cpp | 69 return (ret == 1) && !(pollfd.revents & POLLERR); in outputReady() 294 if (pollfd.revents & POLLIN) { in drainAndWaitForAck() 326 if (pollfd.revents & POLLHUP) { in drainAndWaitForAck()
|
D | MDnsSdListener.cpp | 603 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/ |
D | btif_sock_thread.cc | 373 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/ |
D | NetdClientTest.cpp | 52 if (fds[SERVERFD].revents & POLLERR) return; in serverLoop() 53 if (fds[SERVERFD].revents & POLLIN) { in serverLoop()
|
/system/core/libsysutils/src/ |
D | SocketListener.cpp | 175 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/ |
D | shell_service.cpp | 619 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()
|
D | usb.cpp | 295 { .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/ |
D | file_wait.cpp | 157 .revents = 0, in WaitImpl() 167 if (event.revents & POLLERR) { in WaitImpl()
|
/system/core/init/ |
D | uevent_listener.cpp | 194 ufd.revents = 0; in Poll() 212 if (ufd.revents & POLLIN) { in Poll()
|
/system/chre/host/common/ |
D | socket_server.cc | 275 if (mPollFds[kListenIndex].revents & POLLIN) { in serviceSocket() 284 if (mPollFds[i].revents & POLLIN) { in serviceSocket()
|
/system/media/audio_utils/include/audio_utils/ |
D | FdToString.h | 108 if (retval <= 0 || (pfd.revents & POLLIN) != POLLIN) break; // error or timeout in reader()
|
/system/netd/libnetdutils/include/netdutils/ |
D | Syscalls.h | 151 tmp[i].revents = 0; in ppoll() 156 out[i] = tmp[i].revents; in ppoll()
|
/system/connectivity/wificond/tests/ |
D | shell_utils.cpp | 105 if (shell_output.revents & POLLHUP) { in RunShellCommand()
|
/system/teeui/libteeui/src/ |
D | evdev.cpp | 141 if (fds[i].revents & receiver.eventFlags) { in start() 142 receiver.handleEvent(fds[i].revents); in start()
|
/system/core/logwrapper/ |
D | logwrap.cpp | 398 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/ |
D | uipc.cc | 360 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/ |
D | linux_ipc_host.cc | 89 if (pfds_[kFdIpc].revents && !OnMessage()) { in EventLoop() 93 if (pfds_.size() == kPossibleFds && pfds_[kFdGatt].revents && in EventLoop()
|
/system/core/toolbox/ |
D | getevent.c | 660 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/ |
D | usbhost.c | 751 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/ |
D | netd_test.cpp | 282 EXPECT_EQ(p.revents, POLLIN); in TEST()
|