/system/netd/tests/ |
D | netd_client_test.cpp | 41 android::base::unique_fd sock(socket(AF_INET6, SOCK_DGRAM | SOCK_CLOEXEC, IPPROTO_UDP)); in checkNetworkConnectivity() 49 sock.reset(socket(AF_INET, SOCK_DGRAM | SOCK_CLOEXEC, IPPROTO_UDP)); in checkNetworkConnectivity() 61 android::base::unique_fd ipv4(socket(AF_INET, SOCK_STREAM | SOCK_CLOEXEC, 0)), in expectHasNetworking() 62 ipv6(socket(AF_INET6, SOCK_STREAM | SOCK_CLOEXEC, 0)); in expectHasNetworking() 80 android::base::unique_fd unixSocket(socket(AF_UNIX, SOCK_STREAM | SOCK_CLOEXEC, 0)); in expectNoNetworking() 82 android::base::unique_fd ipv4(socket(AF_INET, SOCK_STREAM | SOCK_CLOEXEC, 0)); in expectNoNetworking() 85 android::base::unique_fd ipv6(socket(AF_INET6, SOCK_STREAM | SOCK_CLOEXEC, 0)); in expectNoNetworking()
|
D | bpf_base_test.cpp | 104 int sock = socket(AF_INET6, SOCK_STREAM | SOCK_CLOEXEC, 0); in TEST_F() 124 int sock = socket(AF_INET6, SOCK_STREAM | SOCK_CLOEXEC, 0); in TEST_F()
|
D | netlink_listener_test.cpp | 120 fds[i] = socket(AF_INET, SOCK_STREAM | SOCK_CLOEXEC, 0); in checkMassiveSocketDestroy()
|
/system/netd/client/ |
D | NetdClientTest.cpp | 64 android::base::unique_fd ipv4(socketFuncPtr(AF_INET, SOCK_STREAM | SOCK_CLOEXEC, 0)), in expectAllowNetworkingForProcess() 65 ipv6(socketFuncPtr(AF_INET6, SOCK_STREAM | SOCK_CLOEXEC, 0)); in expectAllowNetworkingForProcess() 76 android::base::unique_fd unixSocket(socketFuncPtr(AF_UNIX, SOCK_STREAM | SOCK_CLOEXEC, 0)); in expectNotAllowNetworkingForProcess() 78 android::base::unique_fd ipv4(socketFuncPtr(AF_INET, SOCK_STREAM | SOCK_CLOEXEC, 0)); in expectNotAllowNetworkingForProcess() 81 android::base::unique_fd ipv6(socketFuncPtr(AF_INET6, SOCK_STREAM | SOCK_CLOEXEC, 0)); in expectNotAllowNetworkingForProcess() 122 int s = socket(AF_UNIX, SOCK_STREAM | SOCK_CLOEXEC, 0); in TEST() 129 int s = socket(AF_INET6, SOCK_STREAM | SOCK_CLOEXEC, 0); in TEST()
|
D | FwmarkClient.cpp | 74 mChannel = socket(AF_UNIX, SOCK_STREAM | SOCK_CLOEXEC, 0); in send()
|
/system/core/libcutils/ |
D | android_get_control_socket_test.cpp | 31 #ifndef SOCK_CLOEXEC 32 #define SOCK_CLOEXEC 0 macro 43 ASSERT_GE(fd = socket(PF_UNIX, SOCK_STREAM | SOCK_CLOEXEC | SOCK_NONBLOCK, 0), 0); in TEST()
|
D | uevent.cpp | 107 s = socket(PF_NETLINK, SOCK_DGRAM | SOCK_CLOEXEC, NETLINK_KOBJECT_UEVENT); in uevent_open_socket()
|
/system/netd/tests/benchmarks/ |
D | connect_benchmark.cpp | 100 const int listensocket = socket(AF_INET6, SOCK_STREAM | SOCK_CLOEXEC, 0); in ipv4_loopback() 112 int sock = socket(AF_INET, SOCK_STREAM | SOCK_CLOEXEC, 0); in ipv4_loopback() 136 int accepted = accept4(listensocket, (sockaddr*) &client, &clientlen, SOCK_CLOEXEC); in ipv4_loopback() 157 const int listensocket = socket(AF_INET6, SOCK_STREAM | SOCK_CLOEXEC, 0); in ipv6_loopback() 169 int sock = socket(AF_INET6, SOCK_STREAM | SOCK_CLOEXEC, 0); in ipv6_loopback() 193 int accepted = accept4(listensocket, (sockaddr*) &client, &clientlen, SOCK_CLOEXEC); in ipv6_loopback()
|
/system/core/liblog/tests/ |
D | logd_writer_test.cpp | 42 server_socket.reset(TEMP_FAILURE_RETRY(socket(AF_UNIX, SOCK_DGRAM | SOCK_CLOEXEC, 0))); in TEST() 58 unique_fd{TEMP_FAILURE_RETRY(socket(AF_UNIX, SOCK_DGRAM | SOCK_NONBLOCK | SOCK_CLOEXEC, 0))}; in TEST()
|
/system/netd/server/ |
D | SockDiagTest.cpp | 76 int v4socket = socket(AF_INET, SOCK_STREAM | SOCK_CLOEXEC, 0); in TEST_F() 78 int v6socket = socket(AF_INET6, SOCK_STREAM | SOCK_CLOEXEC, 0); in TEST_F() 80 int listensocket = socket(AF_INET6, SOCK_STREAM | SOCK_CLOEXEC, 0); in TEST_F() 97 listensocket, (sockaddr *) &client46, &clientlen, SOCK_CLOEXEC); in TEST_F() 99 listensocket, (sockaddr *) &client6, &clientlen, SOCK_CLOEXEC); in TEST_F() 463 int listensocket = socket(AF_INET6, SOCK_STREAM | SOCK_CLOEXEC, 0); in TEST_P() 479 int s = socket(AF_INET6, SOCK_STREAM | SOCK_CLOEXEC, 0); in TEST_P() 485 listensocket, (sockaddr *) &client, &clientlen, SOCK_CLOEXEC); in TEST_P()
|
D | XfrmControllerTest.cpp | 144 unique_fd sockFd(socket(AF_INET, SOCK_DGRAM | SOCK_CLOEXEC, 0)); in TEST_F() 166 unique_fd sockFd(socket(AF_INET, SOCK_DGRAM | SOCK_CLOEXEC, 0)); in TEST_F() 182 unique_fd sockFd(socket(AF_INET, SOCK_STREAM | SOCK_CLOEXEC, 0)); in TEST_F() 193 unique_fd sockFd(socket(AF_INET, SOCK_DGRAM | SOCK_CLOEXEC, 0)); in TEST_F() 484 unique_fd sock(socket(AF_INET, SOCK_STREAM | SOCK_CLOEXEC, 0)); in TEST_F() 516 unique_fd sock(socket(sockFamily, SOCK_STREAM | SOCK_CLOEXEC, 0)); in TEST_P() 553 unique_fd sock(socket(family, SOCK_STREAM | SOCK_CLOEXEC, 0)); in TEST_P()
|
D | OffloadUtils.cpp | 42 base::unique_fd ufd(socket(AF_INET6, SOCK_DGRAM | SOCK_CLOEXEC, 0)); in hardwareAddressType() 87 base::unique_fd fd(socket(AF_NETLINK, SOCK_RAW | SOCK_CLOEXEC, NETLINK_ROUTE)); in sendAndProcessNetlinkResponse()
|
D | NetlinkManager.cpp | 80 if ((*sock = socket(PF_NETLINK, SOCK_DGRAM | SOCK_CLOEXEC, netlinkFamily)) < 0) { in setupSocket()
|
/system/core/adb/libs/adbconnection/ |
D | adbconnection_server.cpp | 46 unique_fd s(socket(AF_UNIX, SOCK_SEQPACKET | SOCK_NONBLOCK | SOCK_CLOEXEC, 0)); in adbconnection_listen() 83 TEMP_FAILURE_RETRY(accept4(s.get(), nullptr, nullptr, SOCK_NONBLOCK | SOCK_CLOEXEC))); in adbconnection_listen()
|
D | adbconnection_client.cpp | 95 ctx->control_socket_.reset(socket(AF_UNIX, SOCK_SEQPACKET | SOCK_CLOEXEC, 0)); in adbconnection_client_new()
|
/system/core/libsysutils/src/ |
D | SocketListener_test.cpp | 49 unique_fd fd(socket(PF_UNIX, SOCK_STREAM | SOCK_CLOEXEC | SOCK_NONBLOCK, 0)); in serverSocket() 63 unique_fd fd(socket(PF_UNIX, SOCK_STREAM | SOCK_CLOEXEC | SOCK_NONBLOCK, 0)); in clientSocket()
|
/system/vold/ |
D | NetlinkManager.cpp | 57 if ((mSock = socket(PF_NETLINK, SOCK_DGRAM | SOCK_CLOEXEC, NETLINK_KOBJECT_UEVENT)) < 0) { in start()
|
/system/core/libstats/push_compat/ |
D | statsd_writer.c | 83 #ifdef SOCK_CLOEXEC in statsdOpen() 84 flags |= SOCK_CLOEXEC; in statsdOpen()
|
/system/core/libstats/socket/ |
D | statsd_writer.c | 85 #ifdef SOCK_CLOEXEC in statsdOpen() 86 flags |= SOCK_CLOEXEC; in statsdOpen()
|
/system/core/init/ |
D | property_service_test.cpp | 36 int fd = socket(AF_LOCAL, SOCK_STREAM | SOCK_CLOEXEC, 0); in TEST()
|
D | firmware_handler.cpp | 76 if (!Socketpair(AF_UNIX, SOCK_STREAM | SOCK_CLOEXEC, 0, &child_stdout, &parent_stdout)) { in RunExternalHandler() 82 if (!Socketpair(AF_UNIX, SOCK_STREAM | SOCK_CLOEXEC, 0, &child_stderr, &parent_stderr)) { in RunExternalHandler()
|
/system/memory/lmkd/ |
D | liblmkd_utils.cpp | 31 SOCK_SEQPACKET | SOCK_CLOEXEC); in lmkd_connect()
|
/system/bpf/libbpf_android/ |
D | BpfUtils.cpp | 68 int pfSocket = socket(AF_KEY, SOCK_RAW | SOCK_CLOEXEC, PF_KEY_V2); in synchronizeKernelRCU()
|
/system/memory/libmemunreachable/ |
D | LeakPipe.h | 39 int ret = socketpair(AF_UNIX, SOCK_STREAM | SOCK_CLOEXEC, 0, sv_); in LeakPipe()
|
/system/core/logd/ |
D | libaudit.c | 187 return socket(PF_NETLINK, SOCK_RAW | SOCK_CLOEXEC, NETLINK_AUDIT); in audit_open()
|