Searched refs:fds (Results 1 – 5 of 5) sorted by relevance
/packages/modules/DnsResolver/ |
D | DnsTlsSocket.cpp | 60 pollfd fds = {.fd = fd, .events = POLLIN}; in waitForReading() local 61 return TEMP_FAILURE_RETRY(poll(&fds, 1, timeoutMs)); in waitForReading() 65 pollfd fds = {.fd = fd, .events = POLLOUT}; in waitForWriting() local 66 return TEMP_FAILURE_RETRY(poll(&fds, 1, timeoutMs)); in waitForWriting() 315 struct pollfd fds[2] = { { .fd = -1 }, { .fd = -1 } }; in loop() local 319 fds[SSLFD].fd = mSslFd.get(); in loop() 320 fds[SSLFD].events = POLLIN; in loop() 327 fds[SSLFD].events |= POLLOUT; in loop() 329 fds[EVENTFD].fd = mEventFd.get(); in loop() 330 fds[EVENTFD].events = POLLIN; in loop() [all …]
|
D | res_send.cpp | 907 struct pollfd fds = {.fd = sock, .events = events}; in retrying_poll() local 908 int n = ppoll(&fds, 1, &timeout, /*__mask=*/NULL); in retrying_poll() 919 if (fds.revents & (POLLIN | POLLOUT | POLLERR)) { in retrying_poll()
|
/packages/modules/DnsResolver/tests/dns_responder/ |
D | dns_tls_frontend.cpp | 175 pollfd fds[2] = {{.fd = event_fd_.get(), .events = POLLIN}, in requestHandler() local 180 int poll_code = poll(fds, std::size(fds), -1); in requestHandler() 186 if (fds[EVENT_FD].revents & (POLLIN | POLLERR)) { in requestHandler() 190 if (fds[LISTEN_FD].revents & (POLLIN | POLLERR)) { in requestHandler() 232 pollfd fds = {.fd = clientFd, .events = POLLIN}; in handleRequests() local 274 } while (poll(&fds, 1, 1) > 0); in handleRequests()
|
/packages/apps/Bluetooth/lib/mapapi/com/android/bluetooth/mapapi/ |
D | BluetoothMapEmailProvider.java | 371 final ParcelFileDescriptor[] fds = ParcelFileDescriptor.createPipe(); in openInversePipeHelper() local 376 func.readDataFromPipe(fds[0], uri, mimeType, opts, args); in openInversePipeHelper() 378 fds[0].close(); in openInversePipeHelper() 387 return fds[1]; in openInversePipeHelper()
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | ContactsProvider2.java | 9067 final ParcelFileDescriptor[] fds = ParcelFileDescriptor.createPipe(); in buildAssetFileDescriptor() local 9068 final FileDescriptor outFd = fds[1].getFileDescriptor(); in buildAssetFileDescriptor() 9084 return makeAssetFileDescriptor(fds[0]); in buildAssetFileDescriptor()
|