Home
last modified time | relevance | path

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

/cts/tests/tests/bluetooth/src/android/bluetooth/cts/
DLeL2capSocketTest.java62 final BluetoothServerSocket serverSocket; in openInsecureLeL2capServerSocket() local
64 serverSocket = sAdapter.listenUsingInsecureL2capChannel(); in openInsecureLeL2capServerSocket()
66 assertThat(serverSocket).isNotNull(); in openInsecureLeL2capServerSocket()
67 serverSocket.close(); in openInsecureLeL2capServerSocket()
74 final BluetoothServerSocket serverSocket; in openSecureLeL2capServerSocket() local
76 serverSocket = sAdapter.listenUsingL2capChannel(); in openSecureLeL2capServerSocket()
78 assertThat(serverSocket).isNotNull(); in openSecureLeL2capServerSocket()
79 serverSocket.close(); in openSecureLeL2capServerSocket()
/cts/tests/net/src/android/net/cts/
DLocalSocketTest.java80 LocalSocket serverSocket = localServerSocket.accept(); in testLocalConnections() local
81 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 …]
/cts/tests/tests/networksecurityconfig/networksecurityconfig-downloadmanager/src/android/security/net/config/cts/
DDownloadManagerTest.java71 SSLServerSocket serverSocket = bindTLSServer(R.raw.valid_chain, R.raw.test_key); in testConfigTrustedCaAccepted() local
72 runDownloadManagerTest(serverSocket, true); in testConfigTrustedCaAccepted()
78 SSLServerSocket serverSocket = bindTLSServer(R.raw.invalid_chain, R.raw.test_key); in testUntrustedCaRejected() local
79 runDownloadManagerTest(serverSocket, true); in testUntrustedCaRejected()
87 ServerSocket serverSocket = new ServerSocket(); in testPerDomainCleartextAccepted() local
88 serverSocket.bind(null); in testPerDomainCleartextAccepted()
89 runDownloadManagerTest(serverSocket, false); in testPerDomainCleartextAccepted()
92 private void runDownloadManagerTest(ServerSocket serverSocket, boolean https) throws Exception { in runDownloadManagerTest() argument
98 runServer(serverSocket); in runDownloadManagerTest()
107 Uri destination = Uri.parse(host + ":" + serverSocket.getLocalPort()); in runDownloadManagerTest()
[all …]
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DNetworkLoggingTest.java387 final ServerSocket serverSocket = new ServerSocket(0); in generateFakeTraffic() local
388 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() argument
413 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()
/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/security/src/android/security/cts/
DStagefrightTest.java1044 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()
/cts/tests/tests/keystore/src/android/keystore/cts/
DKeyPairGeneratorTest.java2016 SSLServerSocket serverSocket = (SSLServerSocket) serverContext.getServerSocketFactory() in assertSSLConnectionWithClientAuth() local
2019 int port = serverSocket.getLocalPort(); in assertSSLConnectionWithClientAuth()
2022 final SSLSocket server = (SSLSocket) serverSocket.accept(); in assertSSLConnectionWithClientAuth()