Home
last modified time | relevance | path

Searched refs:socketpair (Results 1 – 21 of 21) sorted by relevance

/packages/modules/adb/
Dsysdeps_test.cpp60 int socketpair[2]; in TEST() local
62 while (adb_socketpair(socketpair) == 0) { in TEST()
63 fds.push_back(socketpair[0]); in TEST()
64 fds.push_back(socketpair[1]); in TEST()
71 ASSERT_EQ(0, adb_socketpair(socketpair)); in TEST()
72 ASSERT_EQ(socketpair[0], fds[0]); in TEST()
73 ASSERT_EQ(socketpair[1], fds[1]); in TEST()
74 ASSERT_EQ(0, adb_close(socketpair[0])); in TEST()
75 ASSERT_EQ(0, adb_close(socketpair[1])); in TEST()
Dsysdeps.h679 return socketpair(d, type, protocol, sv); in unix_socketpair()
693 #undef socketpair
694 #define socketpair ___xxx_socketpair macro
Dprotocol.txt230 reading, one for writing) and a datagram socketpair to provide the
243 service, the bridge program will create a stream socketpair and spawn
Dtest_adb.py57 readsock, writesock = socket.socketpair()
/packages/modules/Bluetooth/system/gd/shim/
Ddumpsys_test.cc107 ASSERT_EQ(0, socketpair(AF_LOCAL, SOCK_STREAM | SOCK_NONBLOCK, 0, sv)); in TEST_F()
124 ASSERT_EQ(0, socketpair(AF_LOCAL, SOCK_STREAM | SOCK_NONBLOCK, 0, sv)); in TEST_F()
/packages/modules/Virtualization/vmclient/src/
Dlib.rs69 use nix::sys::socket::{socketpair, AddressFamily, SockFlag, SockType}; in posix_socketpair()
74 Ok(socketpair(AddressFamily::Unix, SockType::Stream, None, SockFlag::SOCK_CLOEXEC)?) in posix_socketpair()
/packages/modules/NetworkStack/tests/unit/src/android/net/apf/
DApfTestUtils.java380 Os.socketpair(AF_UNIX, SOCK_STREAM, 0, mWriteSocket, readSocket); in maybeStartFilter()
476 Os.socketpair(AF_UNIX, SOCK_STREAM, 0, mWriteSocket, readSocket); in maybeStartFilter()
/packages/modules/Bluetooth/system/stack/test/
Dstack_l2cap_test.cc264 ASSERT_EQ(0, socketpair(AF_UNIX, SOCK_STREAM, 0, sv)); in TEST_F()
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/util/
DTetheringUtilsTest.java140 Os.socketpair(AF_UNIX, SOCK_DGRAM | SOCK_NONBLOCK | SOCK_CLOEXEC, 0, in, out); in checkIcmpSocketFilter()
/packages/modules/Bluetooth/system/btif/src/
Dbtif_sock_sco.cc143 if (socketpair(AF_LOCAL, SOCK_STREAM, 0, pair) == -1) { in sco_socket_establish_locked()
Dbtif_sock_thread.cc184 if (socketpair(AF_UNIX, SOCK_STREAM, 0, &ts[h].cmd_fdr) < 0) { in init_cmd_fd()
Dbtif_sock_l2cap.cc305 if (socketpair(AF_LOCAL, sock_type, 0, fds)) { in btsock_l2cap_alloc_l()
Dbtif_sock_rfc.cc204 if (socketpair(AF_LOCAL, SOCK_STREAM, 0, fds) == -1) { in alloc_rfc_slot()
/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/ip/
DConntrackMonitorTest.java93 Os.socketpair(AF_UNIX, SOCK_DGRAM, 0, mWriteFd, mReadFd); in TestConntrackMonitor()
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/
DOffloadHardwareInterfaceTest.java293 Os.socketpair(AF_UNIX, SOCK_STREAM, 0, writeSocket, readSocket); in testSendIpv4NfGenMsg()
/packages/modules/DnsResolver/
DREADME-DoT.md51 "reliable datagram pipe" (`socketpair()` in `SOCK_SEQPACKET` mode).
/packages/modules/Connectivity/staticlibs/testutils/devicetests/com/android/testutils/async/
DFakeOsAccess.java307 public synchronized ParcelFileDescriptor[] socketpair() throws IOException { in socketpair() method in FakeOsAccess
/packages/modules/Bluetooth/system/udrv/ulinux/
Duipc.cc191 if (socketpair(AF_UNIX, SOCK_STREAM, 0, uipc.signal_fds) < 0) { in uipc_main_init()
/packages/modules/Bluetooth/system/btif/test/
Dbtif_core_test.cc848 ASSERT_EQ(0, socketpair(AF_LOCAL, SOCK_STREAM | SOCK_NONBLOCK, 0, fds)); in TEST_F()
995 ASSERT_EQ(0, socketpair(AF_LOCAL, SOCK_STREAM | SOCK_NONBLOCK, 0, fds)); in SetUp()
/packages/modules/Connectivity/clatd/
Dclatd_test.cpp437 if (socketpair(AF_UNIX, SOCK_DGRAM | SOCK_NONBLOCK, 0, fds)) { in do_translate_packet()
/packages/modules/Bluetooth/system/bta/has/
Dhas_client_test.cc3035 ASSERT_EQ(0, socketpair(AF_LOCAL, SOCK_STREAM | SOCK_NONBLOCK, 0, sv)); in TEST_F()