Searched refs:sockets (Results 1 – 3 of 3) sorted by relevance
/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/native/libs/input/ |
D | InputTransport.cpp | 277 int sockets[2]; in openInputChannelPair() local 278 if (socketpair(AF_UNIX, SOCK_SEQPACKET, 0, sockets)) { in openInputChannelPair() 288 setsockopt(sockets[0], SOL_SOCKET, SO_SNDBUF, &bufferSize, sizeof(bufferSize)); in openInputChannelPair() 289 setsockopt(sockets[0], SOL_SOCKET, SO_RCVBUF, &bufferSize, sizeof(bufferSize)); in openInputChannelPair() 290 setsockopt(sockets[1], SOL_SOCKET, SO_SNDBUF, &bufferSize, sizeof(bufferSize)); in openInputChannelPair() 291 setsockopt(sockets[1], SOL_SOCKET, SO_RCVBUF, &bufferSize, sizeof(bufferSize)); in openInputChannelPair() 296 android::base::unique_fd serverFd(sockets[0]); in openInputChannelPair() 300 android::base::unique_fd clientFd(sockets[1]); in openInputChannelPair()
|