Searched refs:serverFd (Results 1 – 6 of 6) sorted by relevance
/frameworks/base/services/core/java/com/android/server/am/ |
D | NativeCrashListener.java | 121 FileDescriptor serverFd = Os.socket(AF_UNIX, SOCK_STREAM, 0); in run() local 124 Os.bind(serverFd, sockAddr); in run() 125 Os.listen(serverFd, 1); in run() 132 peerFd = Os.accept(serverFd, null /* peerAddress */); in run()
|
/frameworks/native/libs/binder/ |
D | RpcServer.cpp | 448 unique_fd serverFd(TEMP_FAILURE_RETRY( in setupSocketServer() local 450 if (serverFd == -1) { in setupSocketServer() 456 if (0 != TEMP_FAILURE_RETRY(bind(serverFd.get(), addr.addr(), addr.addrSize()))) { in setupSocketServer() 466 if (0 != TEMP_FAILURE_RETRY(listen(serverFd.get(), 50 /*backlog*/))) { in setupSocketServer() 474 if (status_t status = setupExternalServer(std::move(serverFd)); status != OK) { in setupSocketServer() 510 status_t RpcServer::setupExternalServer(base::unique_fd serverFd) { in setupExternalServer() argument 516 mServer = std::move(serverFd); in setupExternalServer()
|
D | RpcSession.cpp | 178 unique_fd serverFd(TEMP_FAILURE_RETRY(open("/dev/null", O_WRONLY | O_CLOEXEC))); in addNullDebuggingClient() local 180 if (serverFd == -1) { in addNullDebuggingClient() 186 auto server = mCtx->newTransport(std::move(serverFd), mShutdownTrigger.get()); in addNullDebuggingClient() 543 unique_fd serverFd(TEMP_FAILURE_RETRY( in setupOneSocketConnection() local 545 if (serverFd == -1) { in setupOneSocketConnection() 552 if (0 != TEMP_FAILURE_RETRY(connect(serverFd.get(), addr.addr(), addr.addrSize()))) { in setupOneSocketConnection() 557 status_t pollStatus = mShutdownTrigger->triggerablePoll(serverFd, POLLOUT); in setupOneSocketConnection() 566 getsockopt(serverFd.get(), SOL_SOCKET, SO_ERROR, &connErrno, &connErrnoLen); in setupOneSocketConnection() 588 LOG_RPC_DETAIL("Socket at %s client with fd %d", addr.toString().c_str(), serverFd.get()); in setupOneSocketConnection() 590 return initAndAddConnection(std::move(serverFd), sessionId, incoming); in setupOneSocketConnection()
|
/frameworks/native/libs/binder/include/binder/ |
D | RpcServer.h | 96 [[nodiscard]] status_t setupExternalServer(base::unique_fd serverFd);
|
/frameworks/native/libs/binder/tests/ |
D | binderRpcTest.cpp | 469 base::unique_fd serverFd( in connectTo() local 472 CHECK(serverFd.ok()) << "Could not create socket " << addr.toString() << ": " in connectTo() 475 if (0 != TEMP_FAILURE_RETRY(connect(serverFd.get(), addr.addr(), addr.addrSize()))) { in connectTo() 480 return serverFd; in connectTo()
|
/frameworks/native/libs/input/ |
D | InputTransport.cpp | 356 android::base::unique_fd serverFd(sockets[0]); in openInputChannelPair() local 357 outServerChannel = InputChannel::create(serverChannelName, std::move(serverFd), token); in openInputChannelPair()
|