Home
last modified time | relevance | path

Searched refs:addrlen (Results 1 – 7 of 7) sorted by relevance

/frameworks/libs/net/common/netd/libnetdutils/include/netdutils/
DSyscalls.h50 virtual Status getsockname(Fd sock, sockaddr* addr, socklen_t* addrlen) 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;
119 socklen_t addrlen = sizeof(addr); in getsockname() local
120 RETURN_IF_NOT_OK(getsockname(sock, asSockaddrPtr(&addr), &addrlen)); in getsockname()
174 socklen_t addrlen = sizeof(addr); in recvfrom() local
175 ASSIGN_OR_RETURN(auto used, recvfrom(sock, dst, flags, asSockaddrPtr(&addr), &addrlen)); in recvfrom()
DMockSyscalls.h39 MOCK_CONST_METHOD3(getsockname, Status(Fd sock, sockaddr* addr, socklen_t* addrlen));
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));
/frameworks/libs/net/common/netd/libnetdutils/
DSyscalls.cpp60 Status getsockname(Fd sock, sockaddr* addr, socklen_t* addrlen) const override { in getsockname()
61 auto rv = ::getsockname(sock.get(), addr, addrlen); in getsockname()
86 Status bind(Fd sock, const sockaddr* addr, socklen_t addrlen) const override { in bind()
87 auto rv = ::bind(sock.get(), addr, addrlen); in bind()
94 Status connect(Fd sock, const sockaddr* addr, socklen_t addrlen) const override { in connect()
95 auto rv = syscallRetry(::connect, sock.get(), addr, addrlen); in connect()
DSyscallsTest.cpp76 .WillOnce(Invoke([expected](Fd, sockaddr* addr, socklen_t* addrlen) { in TEST_F() argument
78 EXPECT_EQ(*addrlen, static_cast<socklen_t>(sizeof(expected))); in TEST_F()
/frameworks/native/libs/binder/
Dlibbinder_rpc_unstable.cpp41 server->setPerSessionRootObject([=](const sockaddr* addr, socklen_t addrlen) { in RunRpcServerWithFactory() argument
43 LOG_ALWAYS_FATAL_IF(addrlen < sizeof(sockaddr_vm), "sockaddr is truncated"); in RunRpcServerWithFactory()
/frameworks/opt/net/voip/src/jni/rtp/
DAudioGroup.cpp415 socklen_t addrlen = sizeof(remote); in decode() local
419 MSG_TRUNC | MSG_DONTWAIT, (sockaddr *)&remote, &addrlen); in decode()
/frameworks/native/libs/vr/libpdx_uds/
Dservice_endpoint.cpp220 socklen_t addrlen = sizeof(remote); in AcceptConnection() local
223 &addrlen, SOCK_CLOEXEC)}; in AcceptConnection()