/system/netd/libnetdutils/include/netdutils/ |
D | MockSyscalls.h | 39 MOCK_CONST_METHOD3(getsockname, Status(Fd sock, sockaddr* addr, socklen_t* addrlen)); 41 socklen_t *optlen)); 43 socklen_t optlen)); 45 MOCK_CONST_METHOD3(bind, Status(Fd sock, const sockaddr* addr, socklen_t addrlen)); 46 MOCK_CONST_METHOD3(connect, Status(Fd sock, const sockaddr* addr, socklen_t addrlen)); 57 const sockaddr* dst, socklen_t dstlen)); 59 socklen_t* srclen));
|
D | Syscalls.h | 50 virtual Status getsockname(Fd sock, sockaddr* addr, socklen_t* addrlen) const = 0; 53 socklen_t *optlen) const = 0; 56 socklen_t optlen) const = 0; 58 virtual Status bind(Fd sock, const sockaddr* addr, socklen_t addrlen) const = 0; 60 virtual Status connect(Fd sock, const sockaddr* addr, socklen_t addrlen) const = 0; 75 socklen_t dstlen) const = 0; 78 socklen_t* srclen) const = 0; 119 socklen_t addrlen = sizeof(addr); in getsockname() 125 Status getsockopt(Fd sock, int level, int optname, void* optval, socklen_t* optlen) const { in getsockopt() 174 socklen_t addrlen = sizeof(addr); in recvfrom()
|
/system/netd/libnetdutils/ |
D | Syscalls.cpp | 60 Status getsockname(Fd sock, sockaddr* addr, socklen_t* addrlen) const override { in getsockname() 69 socklen_t* optlen) const override { in getsockopt() 78 socklen_t optlen) const override { in setsockopt() 86 Status bind(Fd sock, const sockaddr* addr, socklen_t addrlen) const override { in bind() 94 Status connect(Fd sock, const sockaddr* addr, socklen_t addrlen) const override { in connect() 154 socklen_t dstlen) const override { in sendto() 163 socklen_t* srclen) const override { in recvfrom()
|
D | SyscallsTest.cpp | 76 .WillOnce(Invoke([expected](Fd, sockaddr* addr, socklen_t* addrlen) { in TEST_F() 78 EXPECT_EQ(*addrlen, static_cast<socklen_t>(sizeof(expected))); in TEST_F() 115 socklen_t optLen = 0; in TEST_F() 190 [expected, used](Fd, const Slice, int, sockaddr* src, socklen_t* srclen) { in TEST_F()
|
/system/core/adb/sysdeps/posix/ |
D | network.cpp | 38 static sockaddr* loopback_addr4(sockaddr_storage* addr, socklen_t* addrlen, int port) { in loopback_addr4() 48 static sockaddr* loopback_addr6(sockaddr_storage* addr, socklen_t* addrlen, int port) { in loopback_addr6() 66 socklen_t addrlen = sizeof(addr_storage); in _network_loopback_client() 104 socklen_t addrlen = sizeof(addr_storage); in _network_loopback_server()
|
/system/netd/client/ |
D | NetdClient.cpp | 65 typedef int (*Accept4FunctionType)(int, sockaddr*, socklen_t*, int); 66 typedef int (*ConnectFunctionType)(int, const sockaddr*, socklen_t); 72 typedef int (*SendtoFunctionType)(int, const void*, size_t, int, const sockaddr*, socklen_t); 103 socklen_t familyLen = sizeof(family); in checkSocket() 126 int netdClientAccept4(int sockfd, sockaddr* addr, socklen_t* addrlen, int flags) { in netdClientAccept4() 135 socklen_t familyLen = sizeof(family); in netdClientAccept4() 149 int netdClientConnect(int sockfd, const sockaddr* addr, socklen_t addrlen) { in netdClientConnect() 235 socklen_t addrlen) { in netdClientSendto() 464 socklen_t fwmarkLen = sizeof(fwmark.intValue); in getNetworkForSocket()
|
/system/bt/osi/include/socket_utils/ |
D | socket_local.h | 36 struct sockaddr_un* p_addr, socklen_t* alen);
|
/system/bt/osi/src/socket_utils/ |
D | socket_local_client.cc | 35 struct sockaddr_un* p_addr, socklen_t* alen) { in osi_socket_make_sockaddr_un() 115 socklen_t alen; in osi_socket_local_client_connect()
|
D | socket_local_server.cc | 44 socklen_t alen;
|
/system/core/libcutils/ |
D | socket_local_client_unix.cpp | 46 struct sockaddr_un *p_addr, socklen_t *alen) in socket_make_sockaddr_un() 126 socklen_t alen; in socket_local_client_connect()
|
D | socket_local_unix.h | 37 struct sockaddr_un *p_addr, socklen_t *alen);
|
D | sockets.cpp | 36 socklen_t addr_size = sizeof(addr); in socket_get_local_port()
|
D | socket_local_server_unix.cpp | 58 socklen_t alen;
|
D | sockets_unix.cpp | 61 socklen_t addrlen = sizeof(addr); in android_get_control_socket()
|
D | socket_network_client_unix.cpp | 96 socklen_t len = sizeof(error); in socket_network_client_timeout()
|
D | uevent.cpp | 99 socklen_t optlen = sizeof(buf_sz_readback); in uevent_open_socket()
|
/system/bt/gd/shim/ |
D | dumpsys_test.cc | 88 socklen_t optlen = sizeof(socket_buffer_size); in GetSocketBufferSize() 94 socklen_t optlen = sizeof(socket_buffer_size); in SetSocketBufferSize()
|
/system/netd/tests/benchmarks/ |
D | connect_benchmark.cpp | 89 socklen_t len = sizeof(sin); in bindAndListen() 135 socklen_t clientlen = sizeof(client); in ipv4_loopback() 192 socklen_t clientlen = sizeof(client); in ipv6_loopback()
|
/system/bt/vendor_libs/test_vendor_lib/model/devices/ |
D | server_port_factory.cc | 37 socklen_t sockaddr_in_size = sizeof(struct sockaddr_in); in SetUp() 78 socklen_t sockaddr_in_size = sizeof(struct sockaddr_in); in Accept()
|
/system/netd/server/ |
D | FwmarkServer.cpp | 156 socklen_t familyLen = sizeof(family); in processClient() 165 socklen_t fwmarkLen = sizeof(fwmark.intValue); in processClient() 229 socklen_t intSize = sizeof(socketProto); in processClient()
|
/system/core/libcutils/include/cutils/ |
D | sockets.h | 31 typedef int socklen_t; typedef
|
/system/core/libcutils/include_vndk/cutils/ |
D | sockets.h | 31 typedef int socklen_t; typedef
|
/system/core/init/ |
D | property_service_test.cpp | 44 socklen_t addr_len = strlen(property_service_socket) + offsetof(sockaddr_un, sun_path) + 1; in TEST()
|
/system/core/fastboot/ |
D | socket.cpp | 122 socklen_t addr_size_ = 0; 158 socklen_t* addr_size_ptr = nullptr; in Receive()
|
/system/bpf/libbpf_android/ |
D | BpfUtils.cpp | 52 socklen_t cookie_len = sizeof(sock_cookie); in getSocketCookie()
|