/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 | 38 Socket::Socket(cutils_socket_t sock) : sock_(sock) {} in Socket() function in Socket 40 Socket::~Socket() { in ~Socket() 44 int Socket::Close() { in Close() 55 ssize_t Socket::ReceiveAll(void* data, size_t length, int timeout_ms) { in ReceiveAll() 75 int Socket::GetLocalPort() { in GetLocalPort() 83 bool Socket::WaitForRecv(int timeout_ms) { in WaitForRecv() 114 class UdpSocket : public Socket { 131 UdpSocket::UdpSocket(Type type, cutils_socket_t sock) : Socket(sock) { in UdpSocket() 174 class TcpSocket : public Socket { 176 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, 70 explicit TcpTransport(std::unique_ptr<Socket> sock) : socket_(std::move(sock)) {} in TcpTransport() 76 std::unique_ptr<Socket> socket_; 82 std::unique_ptr<TcpTransport> TcpTransport::NewTransport(std::unique_ptr<Socket> socket, in NewTransport() 99 Socket::GetErrorMessage().c_str()); in InitializeProtocol() 108 Socket::GetErrorMessage().c_str()); in InitializeProtocol() 187 return internal::Connect(Socket::NewClient(Socket::Protocol::kTcp, hostname, port, error), in Connect() 193 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, 115 explicit UdpTransport(std::unique_ptr<Socket> socket) : socket_(std::move(socket)) {} in UdpTransport() 134 std::unique_ptr<Socket> socket_; 142 std::unique_ptr<UdpTransport> UdpTransport::NewTransport(std::unique_ptr<Socket> socket, in NewTransport() 262 *error = Socket::GetErrorMessage(); in SendSinglePacketHelper() 274 *error = Socket::GetErrorMessage(); in SendSinglePacketHelper() 379 return internal::Connect(Socket::NewClient(Socket::Protocol::kUdp, hostname, port, error), in Connect() 385 std::unique_ptr<Transport> Connect(std::unique_ptr<Socket> sock, std::string* error) { in Connect()
|
D | fastboot_test.cpp | 208 const Socket::Protocol expected_protocol, in ParseNetworkSerialTest() 231 Socket::Protocol::kTcp, 5554); in TEST() 234 Socket::Protocol::kUdp, 5554); in TEST() 237 Socket::Protocol::kUdp, 9999); in TEST() 240 "2001:db8:3333:4444:5555:6666:7777:8888", Socket::Protocol::kTcp, 5554); in TEST() 242 ParseNetworkSerialTest("empty IPv6 parsed", "tcp:::", "::", Socket::Protocol::kTcp, 5554); in TEST()
|
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);
|
/system/core/fastboot/fuzzer/ |
D | socket_mock_fuzz.h | 28 class SocketMockFuzz : public Socket { 37 virtual std::unique_ptr<Socket> Accept(); 55 void AddAccept(std::unique_ptr<Socket> sock); 62 std::unique_ptr<Socket> _sock); 67 std::unique_ptr<Socket> sock;
|
D | fastboot_fuzzer.cpp | 61 bool MakeConnectedSockets(Socket::Protocol protocol, unique_ptr<Socket>* server, 62 unique_ptr<Socket>* client, const string& hostname); 85 bool FastbootFuzzer::MakeConnectedSockets(Socket::Protocol protocol, unique_ptr<Socket>* server, in MakeConnectedSockets() 86 unique_ptr<Socket>* client, in MakeConnectedSockets() 88 *server = Socket::NewServer(protocol, 0); in MakeConnectedSockets() 92 *client = Socket::NewClient(protocol, hostname, (*server)->GetLocalPort(), nullptr); in MakeConnectedSockets() 96 if (protocol == Socket::Protocol::kTcp) { in MakeConnectedSockets() 106 unique_ptr<Socket> server, client; in InvokeSocket() 108 for (Socket::Protocol protocol : {Socket::Protocol::kUdp, Socket::Protocol::kTcp}) { in InvokeSocket() 137 unique_ptr<Transport> transport = tcp::internal::Connect(unique_ptr<Socket>(tcp_mock), &error); in InvokeTcp() [all …]
|
D | socket_mock_fuzz.cpp | 20 SocketMockFuzz::SocketMockFuzz() : Socket(INVALID_SOCKET) {} in SocketMockFuzz() 86 std::unique_ptr<Socket> SocketMockFuzz::Accept() { in Accept() 95 std::unique_ptr<Socket> sock = std::move(events_.front().sock); in Accept() 120 void SocketMockFuzz::AddAccept(std::unique_ptr<Socket> sock) { in AddAccept() 125 std::unique_ptr<Socket> _sock) in Event()
|
/system/core/fastboot/device/ |
D | tcp_client.h | 36 std::unique_ptr<Socket> service_; 37 std::unique_ptr<Socket> socket_;
|
D | tcp_client.cpp | 49 service_ = Socket::NewServer(Socket::Protocol::kTcp, kDefaultPort); in ClientTcpTransport()
|
/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/prebuilts/api/30.0/private/ |
D | bluetooth.te | 8 # Socket creation under /data/misc/bluedroid. 22 # Socket creation under /data/misc/bluedroid.
|
/system/sepolicy/prebuilts/api/31.0/private/ |
D | bluetooth.te | 8 # Socket creation under /data/misc/bluedroid. 22 # Socket creation under /data/misc/bluedroid.
|
/system/sepolicy/prebuilts/api/32.0/private/ |
D | bluetooth.te | 8 # Socket creation under /data/misc/bluedroid. 22 # Socket creation under /data/misc/bluedroid.
|
/system/sepolicy/private/ |
D | prng_seeder.te | 14 # Socket open and listen are performed by init.
|
/system/sepolicy/prebuilts/api/33.0/private/ |
D | prng_seeder.te | 14 # Socket open and listen are performed by init.
|
D | bluetooth.te | 8 # Socket creation under /data/misc/bluedroid. 22 # Socket creation under /data/misc/bluedroid.
|
/system/sepolicy/microdroid/system/private/ |
D | prng_seeder.te | 14 # Socket open and listen are performed by init.
|
/system/sepolicy/prebuilts/api/34.0/private/ |
D | prng_seeder.te | 14 # Socket open and listen are performed by init.
|
D | bluetooth.te | 8 # Socket creation under /data/misc/bluedroid. 22 # Socket creation under /data/misc/bluedroid.
|