Home
last modified time | relevance | path

Searched refs:sockets (Results 1 – 25 of 312) sorted by relevance

12345678910>>...13

/aosp12/frameworks/native/libs/sensor/
H A DBitTube.cpp69 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()
/aosp12/frameworks/native/libs/gui/
H A DBitTube.cpp48 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()
/aosp12/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
H A DIpSecBaseTest.java674 checkSocketPair(sockets.mLeftSock, sockets.mRightSock); in testJavaTcpSocketPair()
685 SocketPair<JavaUdpSocket> sockets = in testJavaUdpSocketPair() local
687 checkSocketPair(sockets.mLeftSock, sockets.mRightSock); in testJavaUdpSocketPair()
698 SocketPair<JavaUdpSocket> sockets = in testJavaUdpSocketPairUnconnected() local
700 checkUnconnectedUdpSocketPair(sockets.mLeftSock, sockets.mRightSock, local); in testJavaUdpSocketPairUnconnected()
711 SocketPair<NativeTcpSocket> sockets = in testNativeTcpSocketPair() local
713 checkSocketPair(sockets.mLeftSock, sockets.mRightSock); in testNativeTcpSocketPair()
724 SocketPair<NativeUdpSocket> sockets = in testNativeUdpSocketPair() local
726 checkSocketPair(sockets.mLeftSock, sockets.mRightSock); in testNativeUdpSocketPair()
737 SocketPair<NativeUdpSocket> sockets = in testNativeUdpSocketPairUnconnected() local
[all …]
H A DIpSecManagerTest.java182 sockLeft = sockets.mLeftSock; in checkUnconnectedUdp()
183 sockRight = sockets.mRightSock; in checkUnconnectedUdp()
185 SocketPair<NativeUdpSocket> sockets = in checkUnconnectedUdp() local
187 sockLeft = sockets.mLeftSock; in checkUnconnectedUdp()
188 sockRight = sockets.mRightSock; in checkUnconnectedUdp()
211 SocketPair<JavaTcpSocket> sockets = getJavaTcpSocketPair(local, mISM, transform); in checkTcp() local
212 client = sockets.mLeftSock; in checkTcp()
213 accepted = sockets.mRightSock; in checkTcp()
215 SocketPair<NativeTcpSocket> sockets = getNativeTcpSocketPair(local, mISM, transform); in checkTcp() local
216 client = sockets.mLeftSock; in checkTcp()
[all …]
/aosp12/packages/modules/adb/
H A Dsysdeps_test.cpp209 std::vector<int> sockets; in TEST_F() local
211 sockets.resize(num_sockets * 2); in TEST_F()
213 ASSERT_EQ(0, adb_socketpair(&sockets[i * 2])) << strerror(errno); in TEST_F()
214 ASSERT_TRUE(WriteFdExactly(sockets[i * 2], &i, sizeof(i))); in TEST_F()
217 pfd.fd = sockets[i * 2 + 1]; in TEST_F()
230 for (int fd : sockets) { in TEST_F()
H A DSOCKET-ACTIVATION.txt28 WantedBy=sockets.target
40 and listening. inetd-style pre-accepted sockets do _not_ work in this
/aosp12/system/bt/osi/src/socket_utils/
H A DREADME18 implement some of the sources in libcutils / sockets to provide a short -
25 sockets,
27 .The developers who want to pull sockets sources other than the
34 osi / include / socket_utils / sockets.h -
/aosp12/frameworks/native/libs/binder/
H A DRpcSession.cpp368 std::vector<sp<RpcConnection>>& sockets, in findConnection() argument
370 LOG_ALWAYS_FATAL_IF(sockets.size() > 0 && socketsIndexHint >= sockets.size(), in findConnection()
371 "Bad index %zu >= %zu", socketsIndexHint, sockets.size()); in findConnection()
375 for (size_t i = 0; i < sockets.size(); i++) { in findConnection()
376 sp<RpcConnection>& socket = sockets[(i + socketsIndexHint) % sockets.size()]; in findConnection()
/aosp12/system/sepolicy/prebuilts/api/28.0/public/
H A Dwificond.te14 # create sockets to set interfaces up and down
21 # newer kernels (e.g. 4.4 but not 4.1) have a new class for sockets
H A Dhal_configstore.te22 # Should never need network access. Disallow sockets except for
23 # for unix stream/dgram sockets used for logging/debugging.
/aosp12/system/sepolicy/prebuilts/api/29.0/public/
H A Dwificond.te14 # create sockets to set interfaces up and down
21 # newer kernels (e.g. 4.4 but not 4.1) have a new class for sockets
H A Dhal_configstore.te17 # Should never need network access. Disallow sockets except for
18 # for unix stream/dgram sockets used for logging/debugging.
/aosp12/bionic/tests/
H A Dfdtrack_test.cpp332 int sockets[2];
333 ASSERT_NE(-1, socketpair(AF_UNIX, SOCK_SEQPACKET, 0, sockets));
334 ASSERT_EQ(3, SendFileDescriptors(sockets[0], "foo", 3, STDIN_FILENO));
339 ASSERT_EQ(3, ReceiveFileDescriptors(sockets[1], buf, sizeof(buf), &received_fd));
/aosp12/system/sepolicy/prebuilts/api/27.0/public/
H A Dwificond.te13 # create sockets to set interfaces up and down
20 # newer kernels (e.g. 4.4 but not 4.1) have a new class for sockets
H A Dhal_configstore.te22 # Should never need network access. Disallow sockets except for
23 # for unix stream/dgram sockets used for logging/debugging.
/aosp12/system/sepolicy/prebuilts/api/26.0/public/
H A Dwificond.te13 # create sockets to set interfaces up and down
20 # newer kernels (e.g. 4.4 but not 4.1) have a new class for sockets
/aosp12/system/sepolicy/prebuilts/api/30.0/public/
H A Dwificond.te15 # create sockets to set interfaces up and down
22 # newer kernels (e.g. 4.4 but not 4.1) have a new class for sockets
H A Dhal_configstore.te17 # Should never need network access. Disallow sockets except for
18 # for unix stream/dgram sockets used for logging/debugging.
/aosp12/system/sepolicy/prebuilts/api/31.0/public/
H A Dwificond.te11 # create sockets to set interfaces up and down
18 # newer kernels (e.g. 4.4 but not 4.1) have a new class for sockets
H A Dhal_configstore.te17 # Should never need network access. Disallow sockets except for
18 # for unix stream/dgram sockets used for logging/debugging.
/aosp12/system/sepolicy/prebuilts/api/32.0/public/
H A Dwificond.te11 # create sockets to set interfaces up and down
18 # newer kernels (e.g. 4.4 but not 4.1) have a new class for sockets
H A Dhal_configstore.te17 # Should never need network access. Disallow sockets except for
18 # for unix stream/dgram sockets used for logging/debugging.
/aosp12/system/sepolicy/public/
H A Dwificond.te11 # create sockets to set interfaces up and down
18 # newer kernels (e.g. 4.4 but not 4.1) have a new class for sockets
H A Dhal_configstore.te17 # Should never need network access. Disallow sockets except for
18 # for unix stream/dgram sockets used for logging/debugging.
/aosp12/packages/apps/Bluetooth/src/com/android/bluetooth/
H A DObexServerSockets.java176 ObexServerSockets sockets = new ObexServerSockets(validator, rfcommSocket, l2capSocket); in create() local
177 sockets.startAccept(); in create()
178 return sockets; in create()

12345678910>>...13