Searched refs:serverSocket (Results 1 – 9 of 9) sorted by relevance
/cts/tests/tests/bluetooth/src/android/bluetooth/cts/ |
D | LeL2capSocketTest.java | 64 final BluetoothServerSocket serverSocket = mAdapter.listenUsingInsecureL2capChannel(); in testOpenInsecureLeL2capServerSocketOnce() local 65 assertNotNull("Failed to get server socket", serverSocket); in testOpenInsecureLeL2capServerSocketOnce() 66 serverSocket.close(); in testOpenInsecureLeL2capServerSocketOnce() 80 final BluetoothServerSocket serverSocket = in testOpenInsecureLeL2capServerSocketRepeatedly() local 82 assertNotNull("Failed to get server socket", serverSocket); in testOpenInsecureLeL2capServerSocketRepeatedly() 83 serverSocket.close(); in testOpenInsecureLeL2capServerSocketRepeatedly() 97 final BluetoothServerSocket serverSocket = mAdapter.listenUsingL2capChannel(); in testOpenSecureLeL2capServerSocketOnce() local 98 assertNotNull("Failed to get server socket", serverSocket); in testOpenSecureLeL2capServerSocketOnce() 99 serverSocket.close(); in testOpenSecureLeL2capServerSocketOnce() 113 final BluetoothServerSocket serverSocket = mAdapter.listenUsingL2capChannel(); in testOpenSecureLeL2capServerSocketRepeatedly() local [all …]
|
/cts/tests/tests/net/src/android/net/cts/ |
D | LocalSocketTest.java | 54 LocalSocket serverSocket = localServerSocket.accept(); in testLocalConnections() local 55 assertTrue(serverSocket.isConnected()); in testLocalConnections() 56 assertTrue(serverSocket.isBound()); in testLocalConnections() 58 serverSocket.bind(localServerSocket.getLocalSocketAddress()); in testLocalConnections() 63 serverSocket.connect(locSockAddr); in testLocalConnections() 74 InputStream serverInStream = serverSocket.getInputStream(); in testLocalConnections() 78 OutputStream serverOutStream = serverSocket.getOutputStream(); in testLocalConnections() 88 FileDescriptor[] out = serverSocket.getAncillaryFileDescriptors(); in testLocalConnections() 107 serverSocket.shutdownInput(); in testLocalConnections() 111 serverSocket.shutdownOutput(); in testLocalConnections() [all …]
|
D | LocalServerSocketTest.java | 39 LocalSocket serverSocket = localServerSocket.accept(); in testLocalServerSocket() local 41 assertTrue(serverSocket.isConnected()); in testLocalServerSocket() 42 assertTrue(serverSocket.isBound()); in testLocalServerSocket() 47 InputStream serverInStream = serverSocket.getInputStream(); in testLocalServerSocket() 51 OutputStream serverOutStream = serverSocket.getOutputStream(); in testLocalServerSocket()
|
D | IpSecBaseTest.java | 404 ServerSocket serverSocket = new ServerSocket(); in getJavaTcpSocketPair() local 405 serverSocket.bind(new InetSocketAddress(localAddr, 0)); in getJavaTcpSocketPair() 414 FileDescriptor serverFd = serverSocket.getImpl().getFD$(); in getJavaTcpSocketPair() 419 clientSock.mSocket.connect(new InetSocketAddress(localAddr, serverSocket.getLocalPort())); in getJavaTcpSocketPair() 420 JavaTcpSocket acceptedSock = new JavaTcpSocket(serverSocket.accept()); in getJavaTcpSocketPair() 423 serverSocket.close(); in getJavaTcpSocketPair()
|
/cts/tests/tests/networksecurityconfig/networksecurityconfig-downloadmanager/src/android/security/net/config/cts/ |
D | DownloadManagerTest.java | 68 SSLServerSocket serverSocket = bindTLSServer(R.raw.valid_chain, R.raw.test_key); in testConfigTrustedCaAccepted() local 69 runDownloadManagerTest(serverSocket, true); in testConfigTrustedCaAccepted() 74 SSLServerSocket serverSocket = bindTLSServer(R.raw.invalid_chain, R.raw.test_key); in testUntrustedCaRejected() local 75 runDownloadManagerTest(serverSocket, true); in testUntrustedCaRejected() 82 ServerSocket serverSocket = new ServerSocket(); in testPerDomainCleartextAccepted() local 83 serverSocket.bind(null); in testPerDomainCleartextAccepted() 84 runDownloadManagerTest(serverSocket, false); in testPerDomainCleartextAccepted() 87 private void runDownloadManagerTest(ServerSocket serverSocket, boolean https) throws Exception { in runDownloadManagerTest() argument 94 runServer(serverSocket); in runDownloadManagerTest() 103 Uri destination = Uri.parse(host + ":" + serverSocket.getLocalPort()); in runDownloadManagerTest() [all …]
|
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/ |
D | NetworkLoggingTest.java | 344 final ServerSocket serverSocket = new ServerSocket(0); in generateDummyTraffic() local 345 final Thread serverThread = startDummyServer(serverSocket); in generateDummyTraffic() 347 final int reqNo = makeDummyRequests(serverSocket.getLocalPort()); in generateDummyTraffic() 349 serverSocket.close(); in generateDummyTraffic() 370 private Thread startDummyServer(ServerSocket serverSocket) throws InterruptedException { in startDummyServer() argument 372 while (!serverSocket.isClosed()) { in startDummyServer() 374 final Socket socket = serverSocket.accept(); in startDummyServer() 390 if (!serverSocket.isClosed()) { in startDummyServer()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/helpers/ |
D | PowerTestHostLink.java | 109 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/security/src/android/security/cts/ |
D | StagefrightTest.java | 1027 try (ServerSocket serverSocket = new ServerSocket(8080) { in testStagefright_bug_68342866() 1030 Socket conn = serverSocket.accept(); in testStagefright_bug_68342866() 1136 try (ServerSocket serverSocket = new ServerSocket(8080) { in testStagefright_cve_2017_13279() 1139 Socket conn = serverSocket.accept() in testStagefright_cve_2017_13279()
|
/cts/tests/tests/keystore/src/android/keystore/cts/ |
D | KeyPairGeneratorTest.java | 1767 SSLServerSocket serverSocket = (SSLServerSocket) serverContext.getServerSocketFactory() in assertSSLConnectionWithClientAuth() local 1770 int port = serverSocket.getLocalPort(); in assertSSLConnectionWithClientAuth() 1773 final SSLSocket server = (SSLSocket) serverSocket.accept(); in assertSSLConnectionWithClientAuth()
|