Home
last modified time | relevance | path

Searched refs:asSockaddrPtr (Results 1 – 3 of 3) sorted by relevance

/system/netd/libnetdutils/include/netdutils/
DSocket.h29 inline sockaddr* asSockaddrPtr(void* addr) { in asSockaddrPtr() function
33 inline const sockaddr* asSockaddrPtr(const void* addr) { in asSockaddrPtr() function
DSyscalls.h120 RETURN_IF_NOT_OK(getsockname(sock, asSockaddrPtr(&addr), &addrlen)); in getsockname()
136 return bind(sock, asSockaddrPtr(&addr), sizeof(addr)); in bind()
141 return connect(sock, asSockaddrPtr(&addr), sizeof(addr)); in connect()
163 return sendto(sock, buf, flags, asSockaddrPtr(&dst), sizeof(dst)); in sendto()
175 ASSIGN_OR_RETURN(auto used, recvfrom(sock, dst, flags, asSockaddrPtr(&addr), &addrlen)); in recvfrom()
/system/netd/libnetdutils/
DSyscallsTest.cpp136 EXPECT_CALL(mSyscalls, bind(kFd, asSockaddrPtr(&expected), sizeof(expected))) in TEST_F()
142 EXPECT_CALL(mSyscalls, bind(kFd, asSockaddrPtr(&expected), sizeof(expected))) in TEST_F()
153 EXPECT_CALL(mSyscalls, connect(kFd, asSockaddrPtr(&expected), sizeof(expected))) in TEST_F()
159 EXPECT_CALL(mSyscalls, connect(kFd, asSockaddrPtr(&expected), sizeof(expected))) in TEST_F()
173 EXPECT_CALL(mSyscalls, sendto(kFd, slice, kFlags, asSockaddrPtr(&expected), sizeof(expected))) in TEST_F()