Home
last modified time | relevance | path

Searched refs:wait_fd (Results 1 – 4 of 4) sorted by relevance

/packages/modules/Connectivity/tests/cts/net/native/dns/
DNativeDnsAsyncTest.cpp38 struct pollfd wait_fd[1]; in getAsyncResponse() local
39 wait_fd[0].fd = fd; in getAsyncResponse()
40 wait_fd[0].events = POLLIN; in getAsyncResponse()
43 ret = poll(wait_fd, 1, timeoutMs); in getAsyncResponse()
44 revents = wait_fd[0].revents; in getAsyncResponse()
/packages/modules/DnsResolver/tests/
Dtun_forwarder.cpp172 struct pollfd wait_fd[] = { in loop() local
177 if (int ret = poll(wait_fd, std::size(wait_fd), kPollTimeoutMs); ret <= 0) { in loop()
181 if (wait_fd[0].revents & (POLLIN | POLLERR)) { in loop()
186 if (wait_fd[1].revents & (POLLIN | POLLERR)) { in loop()
187 handlePacket(wait_fd[1].fd); in loop()
Dresolv_integration_test.cpp2209 struct pollfd wait_fd[1]; in getAsyncResponse() local
2210 wait_fd[0].fd = fd; in getAsyncResponse()
2211 wait_fd[0].events = POLLIN; in getAsyncResponse()
2215 ret = poll(wait_fd, 1, -1); in getAsyncResponse()
2216 revents = wait_fd[0].revents; in getAsyncResponse()
/packages/modules/Connectivity/tests/cts/net/jni/
DNativeMultinetworkJni.cpp81 struct pollfd wait_fd = { .fd = fd, .events = POLLIN }; in getAsyncResponse() local
83 poll(&wait_fd, 1, timeoutMs); in getAsyncResponse()
84 if (wait_fd.revents & POLLIN) { in getAsyncResponse()