/system/core/adb/ |
D | sysdeps_test.cpp | 135 pfd[0].revents = -1; in TEST_F() 136 pfd[1].revents = -1; in TEST_F() 138 EXPECT_EQ(0, pfd[0].revents); in TEST_F() 139 EXPECT_EQ(POLLWRNORM, pfd[1].revents); in TEST_F() 144 pfd[0].revents = -1; in TEST_F() 146 EXPECT_EQ(POLLRDNORM, pfd[0].revents); in TEST_F() 147 pfd[0].revents = -1; in TEST_F() 148 pfd[1].revents = -1; in TEST_F() 150 EXPECT_EQ(POLLRDNORM, pfd[0].revents); in TEST_F() 151 EXPECT_EQ(POLLWRNORM, pfd[1].revents); in TEST_F() [all …]
|
D | fdevent.cpp | 248 if (pollfd.revents != 0) { in fdevent_process() 249 D("for fd %d, revents = %x", pollfd.fd, pollfd.revents); in fdevent_process() 252 if (pollfd.revents & POLLIN) { in fdevent_process() 255 if (pollfd.revents & POLLOUT) { in fdevent_process() 258 if (pollfd.revents & (POLLERR | POLLHUP | POLLNVAL)) { in fdevent_process() 264 if (pollfd.revents & POLLRDHUP) { in fdevent_process()
|
/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/init/ |
D | ueventd.cpp | 84 ufd.revents = 0; in ueventd_main() 89 if (ufd.revents & POLLIN) { in ueventd_main()
|
/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()
|
D | btif_pan.cc | 747 ufd.revents = 0; in btu_exec_tap_fd_read() 751 if (ret <= 0 || IS_EXCEPTION(ufd.revents)) break; in btu_exec_tap_fd_read()
|
/system/netd/server/ |
D | IptablesRestoreController.cpp | 65 return (ret == 1) && !(pollfd.revents & POLLERR); in outputReady() 292 if (pollfd.revents & POLLIN) { in drainAndWaitForAck() 324 if (pollfd.revents & POLLHUP) { in drainAndWaitForAck()
|
D | MDnsSdListener.cpp | 615 if (mPollFds[i].revents != 0) { in run() 618 i, mPollFds[i].revents); in run() 621 mPollFds[i].revents = 0; in run() 624 if (VDBG) ALOGD("controlSocket shows revent= %d", mPollFds[0].revents); in run() 625 switch (mPollFds[0].revents) { in run() 635 mPollFds[0].revents = 0; in run()
|
/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/connectivity/wificond/tests/ |
D | shell_utils.cpp | 105 if (shell_output.revents & POLLHUP) { in RunShellCommand()
|
/system/vold/ |
D | vdc.cpp | 139 if (!(poll_sock.revents & POLLIN)) { in do_monitor()
|
/system/bt/udrv/ulinux/ |
D | uipc.cc | 388 pfd.fd, pfd.revents, ret); in uipc_flush_ch_locked() 389 if (pfd.revents & (POLLERR | POLLHUP)) { in uipc_flush_ch_locked() 690 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 | 657 if(ufds[0].revents & POLLIN) { in getevent_main() 661 if(ufds[i].revents) { in getevent_main() 662 if(ufds[i].revents & POLLIN) { in getevent_main()
|
/system/core/libusbhost/ |
D | usbhost.c | 695 struct pollfd p = {.fd = dev->fd, .events = POLLOUT, .revents = 0}; in usb_request_wait() 699 if (res != 1 || p.revents != POLLOUT) { in usb_request_wait() 700 D("[ poll - event %d, error %d]\n", p.revents, errno); in usb_request_wait()
|
/system/core/debuggerd/client/ |
D | debuggerd_client.cpp | 189 .fd = pipe_read.get(), .events = POLLIN, .revents = 0, in debuggerd_trigger_dump()
|
/system/core/logwrapper/ |
D | logwrap.c | 357 if (poll_fds[0].revents & POLLIN) { in parent() 400 if (poll_fds[0].revents & POLLHUP) { in parent()
|
/system/nfc/halimpl/bcm2079x/adaptation/ |
D | userial_linux.c | 508 return ((set->revents & POLLIN) == POLLIN) || in is_signaled() 509 ((set->revents & POLLRDNORM) == POLLRDNORM); in is_signaled() 620 fds[0].revents = 0; in my_read() 624 fds[1].revents = 0; in my_read()
|
/system/core/liblog/ |
D | logd_reader.c | 303 if (!(p.revents & POLLIN)) { in send_log_msg() 634 if ((ret > 0) && !(p.revents & POLLIN)) { in logdPoll()
|
/system/bt/vendor_libs/linux/ |
D | bt_vendor_linux.cc | 199 if (fds[0].revents & POLLIN) { in bt_vendor_wait_hcidev()
|
/system/core/logd/ |
D | main.cpp | 392 if ((ret == 0) || !(p.revents & POLLIN)) return -ETIME; in issueReinit()
|
/system/core/libsync/ |
D | sync.c | 117 if (fds.revents & (POLLERR | POLLNVAL)) { in sync_wait()
|
/system/bt/hci/src/ |
D | hci_layer_linux.cc | 334 if (fds[0].revents & POLLIN) { in wait_hcidev()
|
/system/core/liblog/tests/ |
D | liblog_benchmark.cpp | 912 struct pollfd p = {.fd = sock, .events = POLLIN, .revents = 0 }; in send_to_control() 915 if ((ret <= 0) || !(p.revents & POLLIN)) { in send_to_control()
|
/system/core/adf/libadfhwc/ |
D | adfhwc.cpp | 305 if (fds[i].revents & (POLLIN | POLLPRI)) in adf_event_thread()
|