/external/jacoco/org.jacoco.agent.rt.test/src/org/jacoco/agent/rt/internal/output/ |
MockServerSocket.java | 18 import java.net.Socket; 33 private Socket connection; 49 public Socket connect() throws Exception { 87 public Socket accept() throws IOException { 94 throw new SocketException("socket closed"); 109 // unsupported server socket methods:
|
/external/webrtc/webrtc/base/ |
firewallsocketserver.h | 44 // Settings to control whether CreateSocket or Socket::Listen succeed. 61 Socket* CreateSocket(int type) override; 62 Socket* CreateSocket(int family, int type) override; 71 Socket * WrapSocket(Socket * sock, int type);
|
macsocketserver.h | 32 Socket* CreateSocket(int type) override; 33 Socket* CreateSocket(int family, int type) override; 41 void RegisterSocket(MacAsyncSocket* socket); 42 void UnregisterSocket(MacAsyncSocket* socket); 61 // Core Foundation implementation of the socket server. While idle it 62 // will run the current CF run loop. When the socket server has work 87 // waiting for events. When the socket server has work to do, it will 110 // idle. When the socket server has work to do, it will post an event
|
sslsocketfactory.h | 54 Socket* CreateSocket(int type) override; 55 Socket* CreateSocket(int family, int type) override;
|
testclient.h | 38 // Creates a client that will send and receive with the given socket and 40 explicit TestClient(AsyncPacketSocket* socket); 46 // Checks that the socket moves to the specified connect state. 49 // Checks that the socket is connected to the remote side. 54 // Sends using the clients socket. 57 // Sends using the clients socket to the given destination. 73 int SetOption(Socket::Option opt, int value); 81 Socket::ConnState GetState(); 82 // Slot for packets read on the socket. 83 void OnPacket(AsyncPacketSocket* socket, const char* buf, size_t len [all...] |
socket.h | 18 #include <sys/socket.h> 33 // Reuse the POSIX socket api errors. Note this depends on 136 // General interface for the socket implementations of various networks. The 138 class Socket { 140 virtual ~Socket() {} 142 // Returns the address to which the socket is bound. If the socket is not 146 // Returns the address to which the socket is connected. If the socket is 157 virtual Socket *Accept(SocketAddress *paddr) = 0 [all...] |
/libcore/ojluni/src/main/java/sun/nio/ch/ |
SelectorProviderImpl.java | 31 import java.net.Socket;
|
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/ |
SSLSocketFactoryWrapper.java | 24 import java.net.Socket; 111 public Socket createSocket()throws IOException { 115 public Socket createSocket(final Socket socket, final String host, final int port, 117 final SSLSocket sslSocket = (SSLSocket)mFactory.createSocket(socket, host, port, autoClose); 127 public Socket createSocket(String host, int port) throws IOException, UnknownHostException { 138 public Socket createSocket(String host, int i, InetAddress inetAddress, int i2) throws 150 public Socket createSocket(InetAddress inetAddress, int i) throws IOException { 158 public Socket createSocket(InetAddress inetAddress, int i, InetAddress inetAddress2, int i2 [all...] |
SSLSocketFactory.java | 55 import java.net.Socket; 65 * Layered socket factory for TLS/SSL connections, based on JSSE. 76 * certificates. The client secure socket will reject the connection during 91 * pair. The client secure socket will use the private key to authenticate 237 * Creates the default SSL socket factory. 273 public Socket createSocket() 283 public Socket connectSocket( 284 final Socket sock, 330 // close the socket before re-throwing the exception 340 * Checks whether a socket connection is secure [all...] |
/prebuilts/gcc/linux-x86/host/x86_64-w64-mingw32-4.8/x86_64-w64-mingw32/include/ |
adptif.h | 13 HANDLE WINAPI CreateSocketPort(USHORT Socket);
|
/external/conscrypt/openjdk/src/test/java/org/conscrypt/ |
ConscryptSocketTest.java | 34 import java.net.Socket; 77 Socket newClientSocket( 83 Socket newServerSocket(OpenSSLContextImpl context, ServerSocket server, 90 Socket newClientSocket(OpenSSLContextImpl context, ServerSocket server, 92 return new Socket(server.getInetAddress(), server.getLocalPort()); 96 Socket newServerSocket(OpenSSLContextImpl context, ServerSocket server, 103 Socket newClientSocket(OpenSSLContextImpl context, ServerSocket server, 112 Socket newServerSocket(OpenSSLContextImpl context, ServerSocket server, 121 abstract Socket newClientSocket(OpenSSLContextImpl context, ServerSocket server, 123 abstract Socket newServerSocket(OpenSSLContextImpl context, ServerSocket server 284 AbstractConscryptSocket socket = local 314 AbstractConscryptSocket socket = local [all...] |
/external/deqp/execserver/ |
xsExecutionServer.hpp | 51 ConnectionHandler* createHandler (de::Socket* socket, const de::SocketAddress& clientAddress); 88 ExecutionRequestHandler (ExecutionServer* server, de::Socket* socket);
|
/external/parameter-framework/upstream/remote-process/ |
main.cpp | 39 #include "Socket.h" 43 bool sendAndDisplayCommand(asio::ip::tcp::socket &socket, CRequestMessage &requestMessage) 47 if (requestMessage.serialize(Socket(socket), true, strError) != CRequestMessage::success) { 55 if (answerMessage.serialize(Socket(socket), false, strError) != CRequestMessage::success) { 94 tcp::socket connectionSocket(io_service);
|
/external/parameter-framework/upstream/remote-processor/ |
Message.h | 39 class Socket; 64 * @param[in,out] socket is the socket on wich IO operation will be made. 71 * peerDisconnected if the peer disconnected before the first socket access. 74 Result serialize(Socket &&socket, bool bOut, std::string &strError);
|
/frameworks/base/core/tests/coretests/src/android/net/ |
SSLTest.java | 22 import java.net.Socket; 31 Socket ssl = SSLCertificateSocketFactory.getDefault().createSocket("www.fortify.net",443);
|
/libcore/luni/src/test/java/libcore/javax/net/ssl/ |
SSLSocketFactoryTest.java | 25 import java.net.Socket; 109 public Socket createSocket(Socket s, String host, int port, boolean autoClose) { 114 public Socket createSocket(InetAddress address, int port, InetAddress localAddress, 120 public Socket createSocket(InetAddress host, int port) { 125 public Socket createSocket(String host, int port, InetAddress localHost, int localPort) { 130 public Socket createSocket(String host, int port) { 212 Socket sslSocket = sf.createSocket(null, (InputStream) null, false);
|
/tools/tradefederation/core/tests/src/com/android/tradefed/util/sl4a/ |
FakeSocketServerHelper.java | 25 import java.net.Socket; 52 Socket client = null;
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/ |
ServerSocketTest.java | 36 import java.net.Socket; 58 Socket sconn; 63 Socket cs; 75 cs = new Socket(InetAddress.getLocalHost().getHostName(), port); 189 // The new socket should not be blocking. 411 // create servers socket, bind it and then validate basic state 426 assertTrue("Server socket not bound when it should be:", theSocket 431 Socket clientSocket = new Socket(); 435 Socket servSock = theSocket.accept() [all...] |
/sdk/hierarchyviewer/src/com/android/hierarchyviewer/scene/ |
CaptureLoader.java | 37 import java.net.Socket; 42 Socket socket = null; local 48 socket = new Socket(); 49 socket.connect(new InetSocketAddress("127.0.0.1", 52 out = new BufferedWriter(new OutputStreamWriter(socket.getOutputStream())); 53 in = new DataInputStream(new BufferedInputStream(socket.getInputStream())); 80 if (socket != null) { 81 socket.close() 130 Socket socket = null; local [all...] |
/system/core/fastboot/ |
socket_mock.cpp | 33 SocketMock::SocketMock() : Socket(INVALID_SOCKET) {} 109 std::unique_ptr<Socket> SocketMock::Accept() { 111 ADD_FAILURE() << "Accept() was called when no socket was ready"; 120 std::unique_ptr<Socket> sock = std::move(events_.front().sock); 145 void SocketMock::AddAccept(std::unique_ptr<Socket> sock) { 150 std::unique_ptr<Socket> _sock)
|
udp.cpp | 43 #include "socket.h" 105 static std::unique_ptr<UdpTransport> NewTransport(std::unique_ptr<Socket> socket, 114 explicit UdpTransport(std::unique_ptr<Socket> socket) : socket_(std::move(socket)) {} 133 std::unique_ptr<Socket> socket_; 141 std::unique_ptr<UdpTransport> UdpTransport::NewTransport(std::unique_ptr<Socket> socket, 143 std::unique_ptr<UdpTransport> transport(new UdpTransport(std::move(socket))); [all...] |
/frameworks/base/core/java/org/apache/http/conn/ssl/ |
SSLSocketFactory.java | 49 import java.net.Socket; 59 * Layered socket factory for TLS/SSL connections, based on JSSE. 70 * certificates. The client secure socket will reject the connection during 85 * pair. The client secure socket will use the private key to authenticate 244 * Creates the default SSL socket factory. 279 public Socket createSocket() 288 public Socket connectSocket( 289 final Socket sock, 343 // close the socket before re-throwing the exception 353 * Checks whether a socket connection is secure [all...] |
/libcore/luni/src/test/java/libcore/java/net/ |
ServerSocketConcurrentCloseTest.java | 22 import java.net.Socket; 44 * delegating to the {@link ServerSocket#implAccept(Socket)}, however this is not 45 * sufficient for correctness because the socket might be closed after the check. 56 public void implAcceptExposedForTest(Socket socket) throws IOException { 57 implAccept(socket); 69 Socket socket = new Socket((SocketImpl) null) { }; 70 serverSocket.implAcceptExposedForTest(socket); 202 Socket socket = new Socket(); local 236 Socket socket = serverSocket.accept(); local [all...] |
/cts/tests/tests/location/src/android/location/cts/ |
EmergencyCallWifiTest.java | 30 import java.net.Socket; 87 try (Socket soc = new Socket()) {
|
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/http/ |
DisconnectTest.java | 29 import java.net.Socket; 43 // The size of the socket buffers in bytes. 54 // required. These socket factories explicitly set the buffer sizes on sockets created. 66 protected Socket configureSocket(Socket socket) throws IOException { 67 socket.setSendBufferSize(SOCKET_BUFFER_SIZE); 68 socket.setReceiveBufferSize(SOCKET_BUFFER_SIZE); 69 return socket;
|