Searched refs:serverSocket (Results 1 – 7 of 7) sorted by relevance
62 final BluetoothServerSocket serverSocket; in openInsecureLeL2capServerSocket() local64 serverSocket = sAdapter.listenUsingInsecureL2capChannel(); in openInsecureLeL2capServerSocket()66 assertThat(serverSocket).isNotNull(); in openInsecureLeL2capServerSocket()67 serverSocket.close(); in openInsecureLeL2capServerSocket()74 final BluetoothServerSocket serverSocket; in openSecureLeL2capServerSocket() local76 serverSocket = sAdapter.listenUsingL2capChannel(); in openSecureLeL2capServerSocket()78 assertThat(serverSocket).isNotNull(); in openSecureLeL2capServerSocket()79 serverSocket.close(); in openSecureLeL2capServerSocket()
80 LocalSocket serverSocket = localServerSocket.accept(); in testLocalConnections() local81 assertTrue(serverSocket.isConnected()); in testLocalConnections()82 assertTrue(serverSocket.isBound()); in testLocalConnections()84 serverSocket.bind(localServerSocket.getLocalSocketAddress()); in testLocalConnections()87 serverSocket.connect(locSockAddr); in testLocalConnections()96 InputStream serverInStream = serverSocket.getInputStream(); in testLocalConnections()100 OutputStream serverOutStream = serverSocket.getOutputStream(); in testLocalConnections()110 FileDescriptor[] out = serverSocket.getAncillaryFileDescriptors(); in testLocalConnections()126 serverSocket.shutdownInput(); in testLocalConnections()130 serverSocket.shutdownOutput(); in testLocalConnections()[all …]
71 SSLServerSocket serverSocket = bindTLSServer(R.raw.valid_chain, R.raw.test_key); in testConfigTrustedCaAccepted() local72 runDownloadManagerTest(serverSocket, true); in testConfigTrustedCaAccepted()78 SSLServerSocket serverSocket = bindTLSServer(R.raw.invalid_chain, R.raw.test_key); in testUntrustedCaRejected() local79 runDownloadManagerTest(serverSocket, true); in testUntrustedCaRejected()87 ServerSocket serverSocket = new ServerSocket(); in testPerDomainCleartextAccepted() local88 serverSocket.bind(null); in testPerDomainCleartextAccepted()89 runDownloadManagerTest(serverSocket, false); in testPerDomainCleartextAccepted()92 private void runDownloadManagerTest(ServerSocket serverSocket, boolean https) throws Exception { in runDownloadManagerTest() argument98 runServer(serverSocket); in runDownloadManagerTest()107 Uri destination = Uri.parse(host + ":" + serverSocket.getLocalPort()); in runDownloadManagerTest()[all …]
387 final ServerSocket serverSocket = new ServerSocket(0); in generateFakeTraffic() local388 final Thread serverThread = startFakeServer(serverSocket); in generateFakeTraffic()390 final int reqNo = makeFakeRequests(serverSocket.getLocalPort()); in generateFakeTraffic()392 serverSocket.close(); in generateFakeTraffic()411 private Thread startFakeServer(ServerSocket serverSocket) throws InterruptedException { in startFakeServer() argument413 while (!serverSocket.isClosed()) { in startFakeServer()415 final Socket socket = serverSocket.accept(); in startFakeServer()431 if (!serverSocket.isClosed()) { in startFakeServer()438 Log.i(TAG, "starting a fake server (" + serverSocket + ") on thread " + serverThread); in startFakeServer()
109 LocalServerSocket serverSocket = createSocket(); in run() local110 if (null == serverSocket) { in run()121 receiverSocket = serverSocket.accept(); in run()183 if (serverSocket != null) { in run()185 serverSocket.close(); in run()
1044 try (ServerSocket serverSocket = new ServerSocket(8080) { in testStagefright_bug_68342866()1047 Socket conn = serverSocket.accept(); in testStagefright_bug_68342866()1343 try (ServerSocket serverSocket = new ServerSocket(8080) { in testStagefright_cve_2016_3880()1346 Socket conn = serverSocket.accept() in testStagefright_cve_2016_3880()
2016 SSLServerSocket serverSocket = (SSLServerSocket) serverContext.getServerSocketFactory() in assertSSLConnectionWithClientAuth() local2019 int port = serverSocket.getLocalPort(); in assertSSLConnectionWithClientAuth()2022 final SSLSocket server = (SSLSocket) serverSocket.accept(); in assertSSLConnectionWithClientAuth()