/frameworks/native/libs/sensor/ |
D | BitTube.cpp | 69 int sockets[2]; in init() local 70 if (socketpair(AF_UNIX, SOCK_SEQPACKET, 0, sockets) == 0) { in init() 72 setsockopt(sockets[0], SOL_SOCKET, SO_RCVBUF, &rcvbuf, sizeof(rcvbuf)); in init() 73 setsockopt(sockets[1], SOL_SOCKET, SO_SNDBUF, &sndbuf, sizeof(sndbuf)); in init() 75 setsockopt(sockets[0], SOL_SOCKET, SO_SNDBUF, &size, sizeof(size)); in init() 76 setsockopt(sockets[1], SOL_SOCKET, SO_RCVBUF, &size, sizeof(size)); in init() 77 fcntl(sockets[0], F_SETFL, O_NONBLOCK); in init() 78 fcntl(sockets[1], F_SETFL, O_NONBLOCK); in init() 79 mReceiveFd = sockets[0]; in init() 80 mSendFd = sockets[1]; in init()
|
/frameworks/native/libs/gui/ |
D | BitTube.cpp | 48 int sockets[2]; in init() local 49 if (socketpair(AF_UNIX, SOCK_SEQPACKET, 0, sockets) == 0) { in init() 51 setsockopt(sockets[0], SOL_SOCKET, SO_RCVBUF, &rcvbuf, sizeof(rcvbuf)); in init() 52 setsockopt(sockets[1], SOL_SOCKET, SO_SNDBUF, &sndbuf, sizeof(sndbuf)); in init() 54 setsockopt(sockets[0], SOL_SOCKET, SO_SNDBUF, &size, sizeof(size)); in init() 55 setsockopt(sockets[1], SOL_SOCKET, SO_RCVBUF, &size, sizeof(size)); in init() 56 fcntl(sockets[0], F_SETFL, O_NONBLOCK); in init() 57 fcntl(sockets[1], F_SETFL, O_NONBLOCK); in init() 58 mReceiveFd.reset(sockets[0]); in init() 59 mSendFd.reset(sockets[1]); in init()
|
/frameworks/base/apct-tests/perftests/core/src/android/libcore/regression/ |
D | SSLLoopbackPerfTest.java | 46 SSLSocket[] sockets = TestSSLSocketPair.connect(context, null, null); in time() local 48 sockets[0].close(); in time() 49 sockets[1].close(); in time()
|
/frameworks/native/libs/input/ |
D | InputTransport.cpp | 360 int sockets[2]; in openInputChannelPair() local 361 if (socketpair(AF_UNIX, SOCK_SEQPACKET, 0, sockets)) { in openInputChannelPair() 371 setsockopt(sockets[0], SOL_SOCKET, SO_SNDBUF, &bufferSize, sizeof(bufferSize)); in openInputChannelPair() 372 setsockopt(sockets[0], SOL_SOCKET, SO_RCVBUF, &bufferSize, sizeof(bufferSize)); in openInputChannelPair() 373 setsockopt(sockets[1], SOL_SOCKET, SO_SNDBUF, &bufferSize, sizeof(bufferSize)); in openInputChannelPair() 374 setsockopt(sockets[1], SOL_SOCKET, SO_RCVBUF, &bufferSize, sizeof(bufferSize)); in openInputChannelPair() 379 android::base::unique_fd serverFd(sockets[0]); in openInputChannelPair() 383 android::base::unique_fd clientFd(sockets[1]); in openInputChannelPair()
|
/frameworks/native/libs/binder/ |
D | RpcSession.cpp | 959 std::vector<sp<RpcConnection>>& sockets, in findConnection() argument 961 LOG_ALWAYS_FATAL_IF(sockets.size() > 0 && socketsIndexHint >= sockets.size(), in findConnection() 962 "Bad index %zu >= %zu", socketsIndexHint, sockets.size()); in findConnection() 966 for (size_t i = 0; i < sockets.size(); i++) { in findConnection() 967 sp<RpcConnection>& socket = sockets[(i + socketsIndexHint) % sockets.size()]; in findConnection()
|
/frameworks/native/libs/binder/include/binder/ |
D | RpcSession.h | 335 std::vector<sp<RpcConnection>>& sockets,
|
/frameworks/native/libs/binder/tests/ |
D | binderLibTest.cpp | 1996 std::array<int, 2> sockets; in onTransact() local 1997 const bool created = socketpair(AF_UNIX, SOCK_SEQPACKET, 0, sockets.data()) == 0; in onTransact() 2003 const int result = fcntl(sockets[0], F_SETFL, O_NONBLOCK); in onTransact() 2008 unique_fd out(sockets[0]); in onTransact() 2014 close(sockets[1]); // we don't need the other side of the fd in onTransact()
|