Home
last modified time | relevance | path

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

12

/system/core/adb/
Dsysdeps_test.cpp135 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 …]
Dfdevent.cpp248 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/
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/init/
Dueventd.cpp84 ufd.revents = 0; in ueventd_main()
89 if (ufd.revents & POLLIN) { in ueventd_main()
/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.cc747 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/
DIptablesRestoreController.cpp65 return (ret == 1) && !(pollfd.revents & POLLERR); in outputReady()
292 if (pollfd.revents & POLLIN) { in drainAndWaitForAck()
324 if (pollfd.revents & POLLHUP) { in drainAndWaitForAck()
DMDnsSdListener.cpp615 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/
Dsocket_server.cc275 if (mPollFds[kListenIndex].revents & POLLIN) { in serviceSocket()
284 if (mPollFds[i].revents & POLLIN) { in serviceSocket()
/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/debuggerd/client/
Ddebuggerd_client.cpp189 .fd = pipe_read.get(), .events = POLLIN, .revents = 0, in debuggerd_trigger_dump()
/system/core/logwrapper/
Dlogwrap.c357 if (poll_fds[0].revents & POLLIN) { in parent()
400 if (poll_fds[0].revents & POLLHUP) { in parent()
/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()
634 if ((ret > 0) && !(p.revents & POLLIN)) { in logdPoll()
/system/bt/vendor_libs/linux/
Dbt_vendor_linux.cc199 if (fds[0].revents & POLLIN) { in bt_vendor_wait_hcidev()
/system/core/logd/
Dmain.cpp392 if ((ret == 0) || !(p.revents & POLLIN)) return -ETIME; in issueReinit()
/system/core/libsync/
Dsync.c117 if (fds.revents & (POLLERR | POLLNVAL)) { in sync_wait()
/system/bt/hci/src/
Dhci_layer_linux.cc334 if (fds[0].revents & POLLIN) { in wait_hcidev()
/system/core/liblog/tests/
Dliblog_benchmark.cpp912 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/
Dadfhwc.cpp305 if (fds[i].revents & (POLLIN | POLLPRI)) in adf_event_thread()

12