/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 | 90 int sock = socket(AF_INET6, SOCK_STREAM | SOCK_CLOEXEC, 0); in TEST_F() 108 int sock = socket(AF_INET6, SOCK_STREAM | SOCK_CLOEXEC, 0); in TEST_F()
|
D | netlink_listener_test.cpp | 116 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/logging/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 doSIOCGIF() 97 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()
|
D | NetlinkCommands.cpp | 35 int sock = socket(AF_NETLINK, SOCK_DGRAM | SOCK_CLOEXEC, protocol); in openNetlinkSocket()
|
/system/vold/ |
D | NetlinkManager.cpp | 57 if ((mSock = socket(PF_NETLINK, SOCK_DGRAM | SOCK_CLOEXEC, NETLINK_KOBJECT_UEVENT)) < 0) { in start()
|
/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/bpf/libbpf_android/ |
D | BpfUtils.cpp | 67 int pfSocket = socket(AF_KEY, SOCK_RAW | SOCK_CLOEXEC, PF_KEY_V2); in synchronizeKernelRCU()
|
/system/core/libstats/push_compat/ |
D | statsd_writer.c | 83 #ifdef SOCK_CLOEXEC in statsdOpen() 84 flags |= SOCK_CLOEXEC; in statsdOpen()
|
/system/memory/lmkd/ |
D | liblmkd_utils.cpp | 31 SOCK_SEQPACKET | SOCK_CLOEXEC); in lmkd_connect()
|
/system/core/init/ |
D | property_service_test.cpp | 37 int fd = socket(AF_LOCAL, SOCK_STREAM | SOCK_CLOEXEC, 0); in TEST()
|
D | firmware_handler.cpp | 109 if (!Socketpair(AF_UNIX, SOCK_STREAM | SOCK_CLOEXEC, 0, &child_stdout, &parent_stdout)) { in RunExternalHandler() 115 if (!Socketpair(AF_UNIX, SOCK_STREAM | SOCK_CLOEXEC, 0, &child_stderr, &parent_stderr)) { in RunExternalHandler()
|
/system/logging/logd/ |
D | libaudit.cpp | 159 return socket(PF_NETLINK, SOCK_RAW | SOCK_CLOEXEC, NETLINK_AUDIT); in audit_open()
|
/system/memory/libmemunreachable/ |
D | LeakPipe.h | 39 int ret = socketpair(AF_UNIX, SOCK_STREAM | SOCK_CLOEXEC, 0, sv_); in LeakPipe()
|
/system/logging/liblog/ |
D | logd_writer.cpp | 91 int flags = SOCK_DGRAM | SOCK_CLOEXEC; in GetSocket()
|
/system/core/libnetutils/ |
D | ifc_utils.c | 131 ifc_ctl_sock = socket(AF_INET, SOCK_DGRAM | SOCK_CLOEXEC, 0); in ifc_init() 146 ifc_ctl_sock6 = socket(AF_INET6, SOCK_DGRAM | SOCK_CLOEXEC, 0); in ifc_init6() 335 s = socket(PF_NETLINK, SOCK_RAW | SOCK_CLOEXEC, NETLINK_ROUTE); in ifc_act_on_address()
|