/system/netd/libnetdutils/ |
D | SyscallsTest.cpp | 69 TEST_F(SyscallsTest, getsockname) { in TEST_F() argument 75 EXPECT_CALL(mSyscalls, getsockname(kFd, _, _)) in TEST_F() 81 const auto result = sys.getsockname<sockaddr_nl>(kFd); in TEST_F() 87 EXPECT_CALL(mSyscalls, getsockname(kFd, _, _)).WillOnce(Return(kError)); in TEST_F() 88 EXPECT_EQ(kError, sys.getsockname<sockaddr_nl>(kFd).status()); in TEST_F()
|
D | Syscalls.cpp | 60 Status getsockname(Fd sock, sockaddr* addr, socklen_t* addrlen) const override { in getsockname() function in android::netdutils::RealSyscalls 61 auto rv = ::getsockname(sock.get(), addr, addrlen); in getsockname()
|
/system/core/libcutils/ |
D | sockets.cpp | 38 if (getsockname(sock, reinterpret_cast<sockaddr*>(&addr), &addr_size) == 0) { in socket_get_local_port()
|
D | sockets_unix.cpp | 62 int ret = getsockname(fd, (struct sockaddr*)&addr, &addrlen); in android_get_control_socket()
|
/system/netd/libnetdutils/include/netdutils/ |
D | Syscalls.h | 50 virtual Status getsockname(Fd sock, sockaddr* addr, socklen_t* addrlen) const = 0; 117 StatusOr<SockaddrT> getsockname(Fd sock) const { in getsockname() function 120 RETURN_IF_NOT_OK(getsockname(sock, asSockaddrPtr(&addr), &addrlen)); in getsockname()
|
D | MockSyscalls.h | 39 MOCK_CONST_METHOD3(getsockname, Status(Fd sock, sockaddr* addr, socklen_t* addrlen));
|
/system/extras/tests/tcp_nuke_addr/ |
D | tcp_nuke_addr_test.cpp | 133 if (getsockname(listensock, (sockaddr *) &sin, &len) == -1) PERROR_EXIT("getsockname"); in main()
|
/system/netd/tests/benchmarks/ |
D | connect_benchmark.cpp | 90 if (getsockname(s, (sockaddr*) &sin, &len)) { in bindAndListen()
|
/system/core/adb/ |
D | test_adb.py | 42 return s.getsockname()[1] 98 port = serversock.getsockname()[1] 342 port = listener.getsockname()[1]
|
D | socket_spec.cpp | 391 if (getsockname(serverfd.get(), reinterpret_cast<sockaddr*>(&addr), &addr_len) == 0) {
|
D | sysdeps_win32.cpp | 1129 int result = getsockname(fh->fh_socket, sockaddr, optlen); in adb_getsockname()
|
/system/netd/server/ |
D | XfrmControllerTest.cpp | 486 EXPECT_CALL(mockSyscalls, getsockname(Fd(sock), _, _)) in TEST_F() 518 EXPECT_CALL(mockSyscalls, getsockname(_, _, _)) in TEST_P() 555 EXPECT_CALL(mockSyscalls, getsockname(_, _, _)) in TEST_P()
|
D | ClatdController.cpp | 138 getsockname(s, (struct sockaddr*)&sin, &len) == 0 && (size_t)len >= sizeof(sin) && in isIpv4AddressFree() 212 if (getsockname(s, reinterpret_cast<struct sockaddr*>(&sin6), &len) == -1) { in generateIpv6Address()
|
D | XfrmController.cpp | 708 getSyscallInstance().getsockname<sockaddr_storage>(Fd(socketFd)); in ipSecApplyTransportModeTransform() 771 getSyscallInstance().getsockname<sockaddr_storage>(Fd(socketFd)); in ipSecRemoveTransportModeTransform()
|
/system/update_engine/ |
D | test_http_server.cc | 630 if (getsockname(listen_fd, in main()
|
/system/netd/tests/ |
D | binder_test.cpp | 625 ASSERT_EQ(0, getsockname(*serverSocket, (struct sockaddr *) &server6, &addrlen)); in fakeRemoteSocketPair() 632 ASSERT_EQ(0, getsockname(*clientSocket, (struct sockaddr *) &client6, &addrlen)); in fakeRemoteSocketPair()
|