/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/ |
D | SocketTest.java | 98 Socket client = socket.accept(); in run() local 99 client.close(); in run() 129 ClientThread client = new ClientThread(); in connectTestImpl() local 130 Thread clientThread = new Thread(client); in connectTestImpl() 262 Socket client = new Socket(InetAddress.getLocalHost(), server.getLocalPort()); in test_close() local 264 client.setSoLinger(false, 100); in test_close() 266 client.close(); in test_close() 268 client.getOutputStream(); in test_close() 346 Socket client = new Socket(); in test_connectLjava_net_SocketAddress() local 347 client.connect(boundAddress); in test_connectLjava_net_SocketAddress() [all …]
|
/libcore/support/src/test/java/tests/resources/manifest/ |
D | hyts_MANIFEST.MF | 4 Bundle-Activator: com.ibm.ive.eccomm.client.support.ClientSupportActivator 5 Import-Package: com.ibm.ive.eccomm.client.services.log, 6 com.ibm.ive.eccomm.client.services.registry, 13 com.ibm.ive.eccomm.client.xml, 14 com.ibm.ive.eccomm.client.http.common, 15 com.ibm.ive.eccomm.client.http.client 19 Export-Package: com.ibm.ive.eccomm.client.services.authentication; specification-version=1.0.0, 22 com.ibm.ive.eccomm.client.services.registry.store; specification-version=1.0.0
|
/libcore/support/src/test/java/libcore/javax/net/ssl/ |
D | TestSSLSocketPair.java | 34 public final SSLSocket client; field in TestSSLSocketPair 38 SSLSocket client) { in TestSSLSocketPair() argument 41 this.client = client; in TestSSLSocketPair() 48 client.close(); in close() 74 final SSLSocket client = (SSLSocket) in connect() local 91 client.setEnabledCipherSuites(clientCipherSuites); in connect() 93 client.startHandshake(); in connect() 123 return new SSLSocket[] { server, client }; in connect()
|
D | TestSSLEnginePair.java | 36 public final SSLEngine client; field in TestSSLEnginePair 40 SSLEngine client) { in TestSSLEnginePair() argument 43 this.client = client; in TestSSLEnginePair() 95 SSLEngine client = c.clientContext.createSSLEngine(c.host.getHostName(), c.port); in connect() local 97 client.setUseClientMode(true); in connect() 99 hooks.beforeBeginHandshake(client, server); in connect() 100 client.beginHandshake(); in connect() 104 boolean clientDone = client.getHandshakeStatus() == HandshakeStatus.NOT_HANDSHAKING; in connect() 112 progress |= handshakeCompleted(client, in connect() 135 return new SSLEngine[] { server, client }; in connect() [all …]
|
D | TestSSLSessions.java | 43 public final SSLSession client; field in TestSSLSessions 53 SSLSession client, in TestSSLSessions() argument 57 this.client = client; in TestSSLSessions() 71 return new TestSSLSessions(invalid, s.server.getSession(), s.client.getSession(), s); in create()
|
D | TestSSLContext.java | 252 public static TestSSLContext create(TestKeyStore client, TestKeyStore server) { in create() argument 253 return createWithAdditionalKeyManagers(client, server, null, null); in create() 261 TestKeyStore client, TestKeyStore server, in createWithAdditionalKeyManagers() argument 264 KeyManager[] clientKeyManagers = concat(client.keyManagers, additionalClientKeyManagers); in createWithAdditionalKeyManagers() 267 createSSLContext(protocol, clientKeyManagers, client.trustManagers); in createWithAdditionalKeyManagers() 270 return create(client.keyStore, client.storePassword, in createWithAdditionalKeyManagers() 274 client.trustManagers[0], in createWithAdditionalKeyManagers()
|
/libcore/luni/src/test/java/libcore/java/nio/channels/ |
D | MembershipKeyTest.java | 39 private DatagramChannel client; field in MembershipKeyTest 45 client = DatagramChannel.open(StandardProtocolFamily.INET) in init() 47 client.configureBlocking(false); in init() 50 key = client.join(MULTICAST_ADDRESS, NETWORK_INTERFACE, sourceAddress); in init() 52 key = client.join(MULTICAST_ADDRESS, NETWORK_INTERFACE); in init() 58 client.close(); in tearDown() 74 client.close(); in check_isValid() 114 client.receive(buffer); in check_drop() 122 client.close(); in test_networkInterface() 148 assertEquals(client, key.channel()); in test_channelWithJoinWithSource() [all …]
|
D | ServerSocketChannelTest.java | 146 SocketChannel client = channel.accept(); in call() local 148 client.close(); in call() 158 SocketChannel client; in clearAcceptQueue() local 159 while ((client = channel.accept()) != null) { in clearAcceptQueue() 160 client.close(); in clearAcceptQueue()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/ |
D | SelectorTest.java | 470 SocketChannel client = null; 486 client = ssc.accept(); 494 if (null != client) { 495 client.close(); 540 SocketChannel client = null; 546 client = ssc.accept(); 549 client.configureBlocking(true); 557 client.write(ByteBuffer.wrap("a".getBytes())); 582 if (null != client) { 584 client.close(); [all …]
|
D | SocketChannelTest.java | 2194 Socket client = new Socket(InetAddress.getLocalHost(), server.socket() in testReadByteBuffer_Direct2() local 2196 client.setTcpNoDelay(false); in testReadByteBuffer_Direct2() 2200 OutputStream out = client.getOutputStream(); in testReadByteBuffer_Direct2() 2218 client.close(); in testReadByteBuffer_Direct2() 2913 SocketChannel client = SocketChannel.open(); in test_write$LByteBuffer2() local 2914 client.connect(server.socket().getLocalSocketAddress()); in test_write$LByteBuffer2() 2925 client.write(buffers); in test_write$LByteBuffer2() 2926 client.close(); in test_write$LByteBuffer2() 2945 SocketChannel client = SocketChannel.open(); in test_write$LByteBuffer_buffers() local 2946 client.connect(server.socket().getLocalSocketAddress()); in test_write$LByteBuffer_buffers() [all …]
|
D | ServerSocketChannelTest.java | 685 SocketChannel client = sc.accept(); in test_accept_SOTIMEOUT() local 686 assertNull(client); in test_accept_SOTIMEOUT()
|
D | DatagramChannelTest.java | 2390 DatagramChannel client = DatagramChannel.open(); in test_bounded_harmony6493() local 2394 client.send(sent, boundedAddress); in test_bounded_harmony6493() 2395 assertTrue(client.socket().isBound()); in test_bounded_harmony6493() 2398 client.close(); in test_bounded_harmony6493()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/ |
D | SSLSessionTest.java | 122 KeyStore store = client.getStore(); in test_getLocalCertificates() 133 KeyStore store = client.getStore(); in test_getLocalPrincipal() 242 TestClient client; field in SSLSessionTest 249 client = new TestClient(true, clientKeys); in setUp() 252 clientThread = new Thread(client); in setUp() 263 && client.exception == null) { in setUp() 275 if (client.exception != null) { in setUp() 276 client.exception.printStackTrace(); in setUp() 278 assertNull("client thread has a pending exception: " + client.exception, in setUp() 279 client.exception); in setUp() [all …]
|
D | HandshakeCompletedEventTest.java | 345 TestClient client = new TestClient(true, clientKeys); in testClientAuth() local 348 Thread clientThread = new Thread(client); in testClientAuth() 364 e = client.getException(); in testClientAuth()
|
/libcore/luni/src/test/java/libcore/libcore/io/ |
D | FdsanTest.java | 118 Socket client = new Socket(serverSocket.getInetAddress(), serverSocket.getLocalPort()); in testSocket() local 120 assertFdOwnedBySocket(client.getFileDescriptor$()); in testSocket() 122 client.close(); in testSocket()
|
/libcore/ojluni/src/main/java/sun/net/ftp/ |
D | FtpClient.java | 122 FtpClient client = create(); in create() local 124 client.connect(dest); in create() 126 return client; in create()
|
/libcore/luni/src/test/java/libcore/libcore/net/ |
D | NetworkSecurityPolicyTest.java | 259 try (Socket client = mSocket.accept()) { in CapturingServerSocket() 262 client.getOutputStream().write(replyOnConnect); in CapturingServerSocket() 263 client.getOutputStream().flush(); in CapturingServerSocket() 268 int chunkSize = client.getInputStream().read(buf); in CapturingServerSocket()
|
/libcore/luni/src/test/java/libcore/java/net/ |
D | ConcurrentCloseTest.java | 210 private Socket client; field in ConcurrentCloseTest.SilentServer 224 client = ss.accept(); in SilentServer() 237 client.close(); in close()
|
D | SocketTest.java | 461 Socket client = new Socket(InetAddress.getLocalHost(), server.getLocalPort()); in testSocketWithProxySet() local 462 client.close(); in testSocketWithProxySet()
|
D | OldSocketTest.java | 214 Socket client = new Socket(InetAddress.getLocalHost(), server.getLocalPort()); in test_getInputStream() local 215 InputStream is = client.getInputStream(); in test_getInputStream() 218 client.close(); in test_getInputStream()
|
/libcore/luni/src/test/java/libcore/javax/net/ssl/ |
D | SSLSocketTest.java | 74 System.out.println("client=" + test.client.getLocalPort() in stress_test_TestSSLSocketPair_create()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | ScannerTest.java | 72 private SocketChannel client; field in ScannerTest 881 s = new Scanner(client); in test_next() 936 s = new Scanner(client); in test_nextLPattern() 981 s = new Scanner(client); in test_nextLString() 1026 s = new Scanner(client); in test_nextBoolean() 2492 s = new Scanner(client); in test_hasNext() 2563 s = new Scanner(client); in test_hasNextLPattern() 2628 s = new Scanner(client); in test_hasNextLString() 2663 s = new Scanner(client); in test_hasNextBoolean() 5672 client = SocketChannel.open(); in setUp() [all …]
|
/libcore/expectations/ |
D | knownfailures.txt | 1692 …"Some tests (ExcludedProxyTest) connect to a public webserver to check that the HTTP client works", 1698 …"Some tests (ExcludedProxyTest) connect to a public webserver to check that the HTTP client works",
|