/system/core/fastboot/ |
D | socket_test.cpp | 35 bool MakeConnectedSockets(Socket::Protocol protocol, std::unique_ptr<Socket>* server, in MakeConnectedSockets() 36 std::unique_ptr<Socket>* client, in MakeConnectedSockets() 38 *server = Socket::NewServer(protocol, 0); in MakeConnectedSockets() 44 *client = Socket::NewClient(protocol, hostname, (*server)->GetLocalPort(), nullptr); in MakeConnectedSockets() 51 if (protocol == Socket::Protocol::kTcp) { in MakeConnectedSockets() 64 static bool SendString(Socket* sock, const std::string& message) { in SendString() 70 static bool ReceiveString(Socket* sock, const std::string& message) { in ReceiveString() 78 std::unique_ptr<Socket> server, client; in TEST() 80 for (Socket::Protocol protocol : {Socket::Protocol::kUdp, Socket::Protocol::kTcp}) { in TEST() 92 std::unique_ptr<Socket> server, client; in TEST() [all …]
|
D | socket.cpp | 34 Socket::Socket(cutils_socket_t sock) : sock_(sock) {} in Socket() function in Socket 36 Socket::~Socket() { in ~Socket() 40 int Socket::Close() { in Close() 51 ssize_t Socket::ReceiveAll(void* data, size_t length, int timeout_ms) { in ReceiveAll() 69 int Socket::GetLocalPort() { in GetLocalPort() 77 bool Socket::WaitForRecv(int timeout_ms) { in WaitForRecv() 108 class UdpSocket : public Socket { 125 UdpSocket::UdpSocket(Type type, cutils_socket_t sock) : Socket(sock) { in UdpSocket() 168 class TcpSocket : public Socket { 170 explicit TcpSocket(cutils_socket_t sock) : Socket(sock) {} in TcpSocket() [all …]
|
D | socket.h | 46 class Socket { 57 static std::unique_ptr<Socket> NewClient(Protocol protocol, const std::string& hostname, 64 static std::unique_ptr<Socket> NewServer(Protocol protocol, int port); 67 virtual ~Socket(); 99 virtual std::unique_ptr<Socket> Accept() { return nullptr; } in Accept() 106 explicit Socket(cutils_socket_t sock); 125 DISALLOW_COPY_AND_ASSIGN(Socket);
|
D | socket_mock.h | 53 class SocketMock : public Socket { 62 virtual std::unique_ptr<Socket> Accept(); 80 void AddAccept(std::unique_ptr<Socket> sock); 87 std::unique_ptr<Socket> _sock); 92 std::unique_ptr<Socket> sock;
|
D | tcp.cpp | 59 static std::unique_ptr<TcpTransport> NewTransport(std::unique_ptr<Socket> socket, 69 explicit TcpTransport(std::unique_ptr<Socket> sock) : socket_(std::move(sock)) {} in TcpTransport() 75 std::unique_ptr<Socket> socket_; 81 std::unique_ptr<TcpTransport> TcpTransport::NewTransport(std::unique_ptr<Socket> socket, in NewTransport() 98 Socket::GetErrorMessage().c_str()); in InitializeProtocol() 107 Socket::GetErrorMessage().c_str()); in InitializeProtocol() 182 return internal::Connect(Socket::NewClient(Socket::Protocol::kTcp, hostname, port, error), in Connect() 188 std::unique_ptr<Transport> Connect(std::unique_ptr<Socket> sock, std::string* error) { in Connect()
|
D | socket_mock.cpp | 33 SocketMock::SocketMock() : Socket(INVALID_SOCKET) {} in SocketMock() 109 std::unique_ptr<Socket> SocketMock::Accept() { in Accept() 120 std::unique_ptr<Socket> sock = std::move(events_.front().sock); in Accept() 145 void SocketMock::AddAccept(std::unique_ptr<Socket> sock) { in AddAccept() 150 std::unique_ptr<Socket> _sock) in Event()
|
D | udp.cpp | 105 static std::unique_ptr<UdpTransport> NewTransport(std::unique_ptr<Socket> socket, 114 explicit UdpTransport(std::unique_ptr<Socket> socket) : socket_(std::move(socket)) {} in UdpTransport() 133 std::unique_ptr<Socket> socket_; 141 std::unique_ptr<UdpTransport> UdpTransport::NewTransport(std::unique_ptr<Socket> socket, in NewTransport() 261 *error = Socket::GetErrorMessage(); in SendSinglePacketHelper() 273 *error = Socket::GetErrorMessage(); in SendSinglePacketHelper() 374 return internal::Connect(Socket::NewClient(Socket::Protocol::kUdp, hostname, port, error), in Connect() 380 std::unique_ptr<Transport> Connect(std::unique_ptr<Socket> sock, std::string* error) { in Connect()
|
D | tcp.h | 52 std::unique_ptr<Transport> Connect(std::unique_ptr<Socket> sock, std::string* error);
|
D | udp.h | 74 std::unique_ptr<Transport> Connect(std::unique_ptr<Socket> sock, std::string* error);
|
D | tcp_test.cpp | 103 transport_ = tcp::internal::Connect(std::unique_ptr<Socket>(mock_), &error); in SetUp()
|
D | fastboot.cpp | 286 Socket::Protocol protocol = Socket::Protocol::kTcp; in open_device() 293 protocol = Socket::Protocol::kTcp; in open_device() 297 protocol = Socket::Protocol::kUdp; in open_device() 314 if (protocol == Socket::Protocol::kTcp) { in open_device() 316 } else if (protocol == Socket::Protocol::kUdp) { in open_device()
|
/system/sepolicy/prebuilts/api/27.0/private/ |
D | bluetooth.te | 8 # Socket creation under /data/misc/bluedroid. 22 # Socket creation under /data/misc/bluedroid.
|
D | mls | 22 # Socket constraints
|
/system/sepolicy/prebuilts/api/26.0/private/ |
D | bluetooth.te | 9 # Socket creation under /data/misc/bluedroid. 23 # Socket creation under /data/misc/bluedroid.
|
D | mls | 22 # Socket constraints
|
/system/netd/libnetdutils/ |
D | Android.bp | 11 "Socket.cpp",
|
/system/sepolicy/prebuilts/api/29.0/private/ |
D | bluetooth.te | 8 # Socket creation under /data/misc/bluedroid. 22 # Socket creation under /data/misc/bluedroid.
|
/system/sepolicy/private/ |
D | bluetooth.te | 8 # Socket creation under /data/misc/bluedroid. 22 # Socket creation under /data/misc/bluedroid.
|
/system/sepolicy/prebuilts/api/28.0/private/ |
D | bluetooth.te | 8 # Socket creation under /data/misc/bluedroid. 22 # Socket creation under /data/misc/bluedroid.
|
D | mls | 22 # Socket constraints
|
/system/sepolicy/prebuilts/api/28.0/public/ |
D | ioctl_macros | 4 # Socket ioctls for gathering information about the interface
|
/system/sepolicy/prebuilts/api/26.0/public/ |
D | ioctl_macros | 4 # Socket ioctls for gathering information about the interface
|
/system/sepolicy/prebuilts/api/27.0/public/ |
D | ioctl_macros | 4 # Socket ioctls for gathering information about the interface
|
/system/sepolicy/public/ |
D | ioctl_macros | 4 # Socket ioctls for gathering information about the interface
|
/system/sepolicy/prebuilts/api/29.0/public/ |
D | ioctl_macros | 4 # Socket ioctls for gathering information about the interface
|