/frameworks/native/libs/binder/ |
D | RpcSocketAddress.h | 35 virtual const sockaddr* addr() const = 0; 53 const sockaddr* addr() const override { return reinterpret_cast<const sockaddr*>(&mAddr); } in addr() 72 const sockaddr* addr() const override { return reinterpret_cast<const sockaddr*>(&mAddr); } in addr() 81 InetSocketAddress(const sockaddr* sockAddr, size_t size, const char* addr, unsigned int port) in InetSocketAddress() 86 [[nodiscard]] const sockaddr* addr() const override { return mSockAddr; } in addr() 110 const sockaddr* mSockAddr;
|
D | vm_sockets.h | 45 unsigned char svm_zero[sizeof(struct sockaddr) - sizeof(sa_family_t) - sizeof(unsigned short) -
|
D | RpcServer.cpp | 86 if (0 != getsockname(mServer.get(), reinterpret_cast<sockaddr*>(&addr), &len)) { in setupInetServer() 137 std::function<sp<IBinder>(const sockaddr*, socklen_t)>&& makeObject) { in setPerSessionRootObject() argument 184 TEMP_FAILURE_RETRY(accept4(mServer.get(), reinterpret_cast<sockaddr*>(&addr), in join() 399 server->mRootObjectFactory(reinterpret_cast<const sockaddr*>(&addr), in establishConnection()
|
D | libbinder_rpc_unstable.cpp | 41 server->setPerSessionRootObject([=](const sockaddr* addr, socklen_t addrlen) { in RunRpcServerWithFactory()
|
/frameworks/libs/net/common/netd/libnetdutils/include/netdutils/ |
D | Socket.h | 29 inline sockaddr* asSockaddrPtr(void* addr) { in asSockaddrPtr() 30 return reinterpret_cast<sockaddr*>(addr); in asSockaddrPtr() 33 inline const sockaddr* asSockaddrPtr(const void* addr) { in asSockaddrPtr() 34 return reinterpret_cast<const sockaddr*>(addr); in asSockaddrPtr()
|
D | MockSyscalls.h | 39 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)); 57 const sockaddr* dst, socklen_t dstlen)); 58 MOCK_CONST_METHOD5(recvfrom, StatusOr<Slice>(Fd sock, const Slice dst, int flags, sockaddr* src,
|
D | Syscalls.h | 50 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; 74 virtual StatusOr<size_t> sendto(Fd sock, const Slice buf, int flags, const sockaddr* dst, 77 virtual StatusOr<Slice> recvfrom(Fd sock, const Slice dst, int flags, sockaddr* src,
|
D | InternetAddresses.h | 259 static IPSockAddr toIPSockAddr(const sockaddr& sa) { in toIPSockAddr() 270 return toIPSockAddr(*reinterpret_cast<const sockaddr*>(&ss)); in toIPSockAddr()
|
/frameworks/opt/net/voip/src/jni/rtp/ |
D | RtpStream.cpp | 50 if (socket == -1 || bind(socket, (sockaddr *)&ss, sizeof(ss)) != 0 || in create() 51 getsockname(socket, (sockaddr *)&ss, &len) != 0) { in create() 77 if (bind(socket, (sockaddr *)&ss, sizeof(ss)) == 0) { in create()
|
D | AudioGroup.cpp | 301 (sockaddr *)&mRemote, sizeof(mRemote)); in encode() 360 sendto(mSocket, buffer, length + 12, MSG_DONTWAIT, (sockaddr *)&mRemote, in encode() 419 MSG_TRUNC | MSG_DONTWAIT, (sockaddr *)&remote, &addrlen); in decode()
|
/frameworks/av/media/libstagefright/rtsp/ |
D | UDPPusher.cpp | 46 CHECK_EQ(0, bind(mSocket, (const struct sockaddr *)&addr, sizeof(addr))); in UDPPusher() 90 (const struct sockaddr *)&mRemoteAddr, sizeof(mRemoteAddr)); in onPush() 135 (const struct sockaddr *)&tmp, in onMessageReceived()
|
D | ARTPConnection.cpp | 162 (const struct sockaddr *)&addr, sizeof(addr)) < 0) { in MakePortPair() 169 (const struct sockaddr *)&addr, sizeof(addr)) == 0) { in MakePortPair() 237 struct sockaddr *addr; in MakeRTPSocketPair() 242 addr = (struct sockaddr *)&addr6; in MakeRTPSocketPair() 248 addr = (struct sockaddr *)&addr4; in MakeRTPSocketPair() 731 struct sockaddr* pRemoteRTCPAddr; in send() 737 pRemoteRTCPAddr = (struct sockaddr *)&info->mRemoteRTCPAddr6; in send() 740 pRemoteRTCPAddr = (struct sockaddr *)&info->mRemoteRTCPAddr; in send()
|
D | ARTPWriter.cpp | 630 struct sockaddr *remAddr; in send() 635 remAddr = (struct sockaddr *)&mRTCPAddr6; in send() 637 remAddr = (struct sockaddr *)&mRTPAddr6; in send() 641 remAddr = (struct sockaddr *)&mRTCPAddr; in send() 643 remAddr = (struct sockaddr *)&mRTPAddr; in send() 1676 struct sockaddr *localAddr = mIsIPv6 ? in makeSocketPairAndBind() 1677 (struct sockaddr*)&mLocalAddr6 : (struct sockaddr*)&mLocalAddr; in makeSocketPairAndBind()
|
D | ARTPSession.cpp | 110 CHECK_EQ(0, bind(s, (const struct sockaddr *)&addr, sizeof(addr))); in MakeUDPSocket()
|
/frameworks/libs/net/common/netd/libnetdutils/ |
D | Syscalls.cpp | 60 Status getsockname(Fd sock, sockaddr* addr, socklen_t* addrlen) const override { in getsockname() 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() 153 StatusOr<size_t> sendto(Fd sock, const Slice buf, int flags, const sockaddr* dst, in sendto() 162 StatusOr<Slice> recvfrom(Fd sock, const Slice dst, int flags, sockaddr* src, in recvfrom()
|
D | SyscallsTest.cpp | 76 .WillOnce(Invoke([expected](Fd, sockaddr* addr, socklen_t* addrlen) { in TEST_F() 190 [expected, used](Fd, const Slice, int, sockaddr* src, socklen_t* srclen) { in TEST_F()
|
/frameworks/native/libs/binder/include/binder/ |
D | RpcServer.h | 130 void setPerSessionRootObject(std::function<sp<IBinder>(const sockaddr*, socklen_t)>&& object); 195 std::function<sp<IBinder>(const sockaddr*, socklen_t)> mRootObjectFactory;
|
/frameworks/base/cmds/interrupter/ |
D | interrupter.c | 52 DEFINE_INTERCEPT(accept, int, int, struct sockaddr*, socklen_t*);
|
/frameworks/native/cmds/ip-up-vpn/ |
D | ip-up-vpn.c | 41 static int set_address(struct sockaddr *sa, const char *address) { in set_address()
|
/frameworks/native/libs/vr/libpdx_uds/ |
D | client_channel_factory.cpp | 98 socket_.Get(), reinterpret_cast<sockaddr*>(&remote), sizeof(remote))); in Connect()
|
D | service_endpoint.cpp | 165 bind(fd.Get(), reinterpret_cast<sockaddr*>(&local), sizeof(local)); 222 reinterpret_cast<sockaddr*>(&remote), in AcceptConnection()
|
/frameworks/native/libs/binder/tests/rpc_fuzzer/ |
D | main.cpp | 142 connect(fd.get(), reinterpret_cast<sockaddr*>(&addr), sizeof(addr)))) in LLVMFuzzerTestOneInput()
|
/frameworks/libs/net/common/native/tcutils/ |
D | tcutils.cpp | 390 if (bind(fd, (const struct sockaddr *)&KERNEL_NLADDR, in sendAndProcessNetlinkResponse() 398 if (connect(fd, (const struct sockaddr *)&KERNEL_NLADDR, in sendAndProcessNetlinkResponse()
|
/frameworks/base/core/jni/ |
D | fd_utils.cpp | 418 sockaddr* addr = reinterpret_cast<sockaddr*>(&ss); in GetSocketName()
|
/frameworks/base/services/core/jni/ |
D | com_android_server_connectivity_Vpn.cpp | 50 static inline in_addr_t *as_in_addr(sockaddr *sa) { in as_in_addr()
|