Searched refs:sockets (Results 1 – 4 of 4) 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 | 125 int sockets[2]; in openInputChannelPair() local 126 if (socketpair(AF_UNIX, SOCK_SEQPACKET, 0, sockets)) { in openInputChannelPair() 136 setsockopt(sockets[0], SOL_SOCKET, SO_SNDBUF, &bufferSize, sizeof(bufferSize)); in openInputChannelPair() 137 setsockopt(sockets[0], SOL_SOCKET, SO_RCVBUF, &bufferSize, sizeof(bufferSize)); in openInputChannelPair() 138 setsockopt(sockets[1], SOL_SOCKET, SO_SNDBUF, &bufferSize, sizeof(bufferSize)); in openInputChannelPair() 139 setsockopt(sockets[1], SOL_SOCKET, SO_RCVBUF, &bufferSize, sizeof(bufferSize)); in openInputChannelPair() 143 outServerChannel = new InputChannel(serverChannelName, sockets[0]); in openInputChannelPair() 147 outClientChannel = new InputChannel(clientChannelName, sockets[1]); in openInputChannelPair()
|
/frameworks/support/work/integration-tests/testapp/src/main/assets/ |
D | lstb.txt | 6260 spread in front of them and the candles burned down to their sockets.
|