Home
last modified time | relevance | path

Searched refs:serverFd (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/services/core/java/com/android/server/am/
DNativeCrashListener.java126 FileDescriptor serverFd = Os.socket(AF_UNIX, SOCK_STREAM, 0); in run() local
129 Os.bind(serverFd, sockAddr); in run()
130 Os.listen(serverFd, 1); in run()
137 peerFd = Os.accept(serverFd, null /* peerAddress */); in run()
/frameworks/native/libs/binder/include/binder/
DRpcServer.h64 setupUnixDomainSocketBootstrapServer(binder::unique_fd serverFd);
124 [[nodiscard]] LIBBINDER_EXPORTED status_t setupExternalServer(binder::unique_fd serverFd);
257 binder::unique_fd serverFd,
/frameworks/native/libs/binder/
DRpcSession.cpp157 unique_fd clientFd(socks[0]), serverFd(socks[1]); in setupUnixDomainSocketBootstrapClient() local
162 fds.push_back(std::move(serverFd)); in setupUnixDomainSocketBootstrapClient()
209 unique_fd serverFd(TEMP_FAILURE_RETRY(open("/dev/null", O_WRONLY | O_CLOEXEC))); in addNullDebuggingClient() local
211 if (!serverFd.ok()) { in addNullDebuggingClient()
217 RpcTransportFd transportFd(std::move(serverFd)); in addNullDebuggingClient()
595 unique_fd serverFd(TEMP_FAILURE_RETRY( in setupOneSocketConnection() local
597 if (!serverFd.ok()) { in setupOneSocketConnection()
607 setsockopt(serverFd.get(), IPPROTO_TCP, TCP_NODELAY, &noDelay, sizeof(noDelay)); in setupOneSocketConnection()
616 RpcTransportFd transportFd(std::move(serverFd)); in setupOneSocketConnection()
DRpcServer.cpp648 unique_fd serverFd, std::function<status_t(const RpcServer&, RpcTransportFd*)>&& acceptFn) { in setupExternalServer() argument
654 mServer = std::move(serverFd); in setupExternalServer()
659 status_t RpcServer::setupExternalServer(unique_fd serverFd) { in setupExternalServer() argument
660 return setupExternalServer(std::move(serverFd), &RpcServer::acceptSocketConnection); in setupExternalServer()
/frameworks/native/libs/binder/tests/
DbinderRpcTest.cpp211 unique_fd serverFd( in connectTo() local
213 if (!serverFd.ok()) { in connectTo()
217 if (0 != TEMP_FAILURE_RETRY(connect(serverFd.get(), addr.addr(), addr.addrSize()))) { in connectTo()
220 return serverFd; in connectTo()
1157 unique_fd serverFd( in testSupportVsockLoopback() local
1164 LOG_ALWAYS_FATAL_IF(!serverFd.ok(), "Could not create socket: %s", strerror(errno)); in testSupportVsockLoopback()
1172 bind(serverFd.get(), reinterpret_cast<sockaddr*>(&serverAddr), sizeof(serverAddr))); in testSupportVsockLoopback()
1176 ret = TEMP_FAILURE_RETRY(listen(serverFd.get(), 1 /*backlog*/)); in testSupportVsockLoopback()
1201 {.fd = serverFd.get(), .events = POLLIN, .revents = 0}, in testSupportVsockLoopback()
1210 ret = TEMP_FAILURE_RETRY(accept4(serverFd.get(), in testSupportVsockLoopback()
/frameworks/native/libs/input/
DInputTransport.cpp379 android::base::unique_fd serverFd(sockets[0]); in openInputChannelPair() local
380 outServerChannel = InputChannel::create(serverChannelName, std::move(serverFd), token); in openInputChannelPair()