Home
last modified time | relevance | path

Searched refs:revents (Results 1 – 25 of 34) 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 …]
Dfdevent.cpp254 if (pollfd.revents != 0) { in fdevent_process()
255 D("for fd %d, revents = %x", pollfd.fd, pollfd.revents); in fdevent_process()
258 if (pollfd.revents & POLLIN) { in fdevent_process()
261 if (pollfd.revents & POLLOUT) { in fdevent_process()
264 if (pollfd.revents & (POLLERR | POLLHUP | POLLNVAL)) { in fdevent_process()
270 if (pollfd.revents & POLLRDHUP) { in fdevent_process()
/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.cpp113 ASSIGN_OR_RETURN(auto revents, sys.ppoll(fds, events, timeout)); in run()
115 if (revents[0] & POLLIN) { in run()
118 if (revents[1] & POLLIN) { 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.cpp608 if (mPollFds[i].revents != 0) { in run()
611 i, mPollFds[i].revents); in run()
614 mPollFds[i].revents = 0; in run()
617 if (VDBG) ALOGD("controlSocket shows revent= %d", mPollFds[0].revents); in run()
618 switch (mPollFds[0].revents) { in run()
628 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()
Dbtif_pan.cc738 ufd.revents = 0; in btu_exec_tap_fd_read()
742 if (ret <= 0 || IS_EXCEPTION(ufd.revents)) break; in btu_exec_tap_fd_read()
/system/core/init/
Duevent_listener.cpp190 ufd.revents = 0; in Poll()
208 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/netd/libnetdutils/include/netdutils/
DSyscalls.h136 tmp[i].revents = 0; in ppoll()
141 out[i] = tmp[i].revents; in ppoll()
/system/connectivity/wificond/tests/
Dshell_utils.cpp105 if (shell_output.revents & POLLHUP) { in RunShellCommand()
/system/vold/
Dvdc.cpp139 if (!(poll_sock.revents & POLLIN)) { in do_monitor()
/system/bt/udrv/ulinux/
Duipc.cc388 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/
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.c657 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/
Dusbhost.c695 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/logwrapper/
Dlogwrap.c357 if (poll_fds[0].revents & POLLIN) { in parent()
400 if (poll_fds[0].revents & POLLHUP) { in parent()
/system/core/debuggerd/client/
Ddebuggerd_client.cpp193 .fd = pipe_read.get(), .events = POLLIN, .revents = 0, in debuggerd_trigger_dump()
/system/nfc/halimpl/bcm2079x/adaptation/
Duserial_linux.c508 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/
Dlogd_reader.c303 if (!(p.revents & POLLIN)) { in send_log_msg()
644 if ((ret > 0) && !(p.revents & POLLIN)) { in logdPoll()
/system/bt/vendor_libs/linux/interface/
Dbluetooth_hci.cc168 if (fds[0].revents & POLLIN) { in waitHciDev()
/system/bt/hci/src/
Dhci_layer_linux.cc336 if (fds[0].revents & POLLIN) { in wait_hcidev()
/system/core/libsync/
Dsync.c117 if (fds.revents & (POLLERR | POLLNVAL)) { in sync_wait()
/system/core/liblog/tests/
Dliblog_benchmark.cpp936 struct pollfd p = {.fd = sock, .events = POLLIN, .revents = 0 }; in send_to_control()
939 if ((ret <= 0) || !(p.revents & POLLIN)) { in send_to_control()

12