Home
last modified time | relevance | path

Searched refs:serverSocket (Results 1 – 6 of 6) sorted by relevance

/cts/tests/tests/net/src/android/net/cts/
DLocalSocketTest.java47 LocalSocket serverSocket = localServerSocket.accept(); in testLocalConnections() local
55 InputStream serverInStream = serverSocket.getInputStream(); in testLocalConnections()
59 OutputStream serverOutStream = serverSocket.getOutputStream(); in testLocalConnections()
69 FileDescriptor[] out = serverSocket.getAncillaryFileDescriptors(); in testLocalConnections()
88 serverSocket.shutdownInput(); in testLocalConnections()
92 serverSocket.shutdownOutput(); in testLocalConnections()
110 serverSocket.close(); in testLocalConnections()
189 LocalSocket serverSocket = localServerSocket.accept(); in testAvailable() local
192 InputStream serverInputStream = serverSocket.getInputStream(); in testAvailable()
200 OutputStream serverOutputStream = serverSocket.getOutputStream(); in testAvailable()
[all …]
DLocalServerSocketTest.java39 LocalSocket serverSocket = localServerSocket.accept(); in testLocalServerSocket() local
44 InputStream serverInStream = serverSocket.getInputStream(); in testLocalServerSocket()
48 OutputStream serverOutStream = serverSocket.getOutputStream(); in testLocalServerSocket()
/cts/tests/tests/security/src/android/security/cts/
DOpenSSLEarlyCCSTest.java287 SSLServerSocket serverSocket = getServerListeningSocket(); in serverAcceptAndHandshake() local
290 socket = (SSLSocket) serverSocket.accept(); in serverAcceptAndHandshake()
328 Socket serverSocket = null; in mitmAcceptAndForward() local
335 serverSocket = SocketFactory.getDefault().createSocket(); in mitmAcceptAndForward()
336 setMitmServerSocket(serverSocket); in mitmAcceptAndForward()
338 serverSocket.connect(serverAddress, 10000); in mitmAcceptAndForward()
339 Log.i(TAG, "MiTM connected to server from " + serverSocket.getLocalSocketAddress()); in mitmAcceptAndForward()
340 final InputStream serverInputStream = serverSocket.getInputStream(); in mitmAcceptAndForward()
359 serverSocket.getOutputStream(), in mitmAcceptAndForward()
369 OpenSSLHeartbleedTest.closeQuietly(serverSocket); in mitmAcceptAndForward()
DOpenSSLHeartbleedTest.java289 SSLServerSocket serverSocket = getServerListeningSocket(); in serverAcceptAndHandshake() local
292 socket = (SSLSocket) serverSocket.accept(); in serverAcceptAndHandshake()
329 Socket serverSocket = null; in mitmAcceptAndForward() local
336 serverSocket = SocketFactory.getDefault().createSocket(); in mitmAcceptAndForward()
337 setMitmServerSocket(serverSocket); in mitmAcceptAndForward()
339 serverSocket.connect(serverAddress, 10000); in mitmAcceptAndForward()
340 Log.i(TAG, "MiTM connected to server from " + serverSocket.getLocalSocketAddress()); in mitmAcceptAndForward()
341 final InputStream serverInputStream = serverSocket.getInputStream(); in mitmAcceptAndForward()
360 serverSocket.getOutputStream(), in mitmAcceptAndForward()
369 closeQuietly(serverSocket); in mitmAcceptAndForward()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/helpers/
DPowerTestHostLink.java109 LocalServerSocket serverSocket = createSocket(); in run() local
110 if (null == serverSocket) { in run()
121 receiverSocket = serverSocket.accept(); in run()
183 if (serverSocket != null) { in run()
185 serverSocket.close(); in run()
/cts/tests/tests/keystore/src/android/keystore/cts/
DKeyPairGeneratorTest.java1415 SSLServerSocket serverSocket = (SSLServerSocket) serverContext.getServerSocketFactory() in assertSSLConnectionWithClientAuth() local
1418 int port = serverSocket.getLocalPort(); in assertSSLConnectionWithClientAuth()
1421 final SSLSocket server = (SSLSocket) serverSocket.accept(); in assertSSLConnectionWithClientAuth()