Home
last modified time | relevance | path

Searched refs:createSocket (Results 1 – 25 of 130) sorted by relevance

123456

/external/mockito/src/test/java/org/mockitousage/stubbing/
DDeepStubbingTest.java80 when(sf.createSocket(anyString(), eq(80))).thenReturn(null); in myTest()
81 sf.createSocket("what", 80); in myTest()
101 when(socketFactory.createSocket().getOutputStream()).thenReturn(out); in oneLevelDeep()
103 assertSame(out, socketFactory.createSocket().getOutputStream()); in oneLevelDeep()
115 when(sf1.createSocket().getOutputStream()).thenReturn(out1); in interactions()
118 when(sf2.createSocket().getOutputStream()).thenReturn(out2); in interactions()
120 assertSame(out1, sf1.createSocket().getOutputStream()); in interactions()
121 assertSame(out2, sf2.createSocket().getOutputStream()); in interactions()
134 when(sf.createSocket().getOutputStream()).thenReturn(out1); in withArguments()
135 when(sf.createSocket("google.com", 80).getOutputStream()).thenReturn(out2); in withArguments()
[all …]
/external/conscrypt/android/src/main/java/org/conscrypt/
DBaseOpenSSLSocketAdapterFactory.java44 public Socket createSocket() throws IOException { in createSocket() method in BaseOpenSSLSocketAdapterFactory
45 return wrap((OpenSSLSocketImpl) delegate.createSocket()); in createSocket()
49 public Socket createSocket(String hostname, int port) in createSocket() method in BaseOpenSSLSocketAdapterFactory
51 return wrap((OpenSSLSocketImpl) delegate.createSocket(hostname, port)); in createSocket()
55 public Socket createSocket(String hostname, int port, InetAddress localHost, int localPort) in createSocket() method in BaseOpenSSLSocketAdapterFactory
58 (OpenSSLSocketImpl) delegate.createSocket(hostname, port, localHost, localPort)); in createSocket()
61 public Socket createSocket(InetAddress address, int port) throws IOException { in createSocket() method in BaseOpenSSLSocketAdapterFactory
62 return wrap((OpenSSLSocketImpl) delegate.createSocket(address, port)); in createSocket()
66 public Socket createSocket(InetAddress address, in createSocket() method in BaseOpenSSLSocketAdapterFactory
72 (OpenSSLSocketImpl) delegate.createSocket(address, port, localAddress, localPort)); in createSocket()
[all …]
/external/conscrypt/testing/src/main/java/tests/net/
DDelegatingSSLSocketFactory.java49 public Socket createSocket() throws IOException { in createSocket() method in DelegatingSSLSocketFactory
50 SSLSocket socket = (SSLSocket) mDelegate.createSocket(); in createSocket()
54 public Socket createSocket(Socket s, String host, int port, boolean autoClose) in createSocket() method in DelegatingSSLSocketFactory
56 SSLSocket socket = (SSLSocket) mDelegate.createSocket(s, host, port, autoClose); in createSocket()
60 public Socket createSocket(String host, int port) throws IOException, UnknownHostException { in createSocket() method in DelegatingSSLSocketFactory
61 SSLSocket socket = (SSLSocket) mDelegate.createSocket(host, port); in createSocket()
65 public Socket createSocket(String host, int port, InetAddress localHost, int localPort) in createSocket() method in DelegatingSSLSocketFactory
67 SSLSocket socket = (SSLSocket) mDelegate.createSocket(host, port, localHost, localPort); in createSocket()
71 public Socket createSocket(InetAddress host, int port) throws IOException { in createSocket() method in DelegatingSSLSocketFactory
72 SSLSocket socket = (SSLSocket) mDelegate.createSocket(host, port); in createSocket()
[all …]
DDelegatingSocketFactory.java40 public Socket createSocket() throws IOException { in createSocket() method in DelegatingSocketFactory
41 Socket socket = mDelegate.createSocket(); in createSocket()
45 public Socket createSocket(String host, int port) throws IOException, UnknownHostException { in createSocket() method in DelegatingSocketFactory
46 Socket socket = mDelegate.createSocket(host, port); in createSocket()
50 public Socket createSocket(String host, int port, InetAddress localHost, int localPort) in createSocket() method in DelegatingSocketFactory
52 Socket socket = mDelegate.createSocket(host, port, localHost, localPort); in createSocket()
56 public Socket createSocket(InetAddress host, int port) throws IOException { in createSocket() method in DelegatingSocketFactory
57 Socket socket = mDelegate.createSocket(host, port); in createSocket()
61 public Socket createSocket(InetAddress address, int port, InetAddress localAddress, in createSocket() method in DelegatingSocketFactory
63 Socket socket = mDelegate.createSocket(address, port, localAddress, localPort); in createSocket()
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/
DDelegatingSSLSocketFactory.java38 @Override public SSLSocket createSocket() throws IOException { in createSocket() method in DelegatingSSLSocketFactory
39 SSLSocket sslSocket = (SSLSocket) delegate.createSocket(); in createSocket()
43 @Override public SSLSocket createSocket(String host, int port) throws IOException { in createSocket() method in DelegatingSSLSocketFactory
44 SSLSocket sslSocket = (SSLSocket) delegate.createSocket(host, port); in createSocket()
48 @Override public SSLSocket createSocket( in createSocket() method in DelegatingSSLSocketFactory
50 SSLSocket sslSocket = (SSLSocket) delegate.createSocket(host, port, localAddress, localPort); in createSocket()
54 @Override public SSLSocket createSocket(InetAddress host, int port) throws IOException { in createSocket() method in DelegatingSSLSocketFactory
55 SSLSocket sslSocket = (SSLSocket) delegate.createSocket(host, port); in createSocket()
59 @Override public SSLSocket createSocket( in createSocket() method in DelegatingSSLSocketFactory
61 SSLSocket sslSocket = (SSLSocket) delegate.createSocket(host, port, localAddress, localPort); in createSocket()
[all …]
DDelegatingSocketFactory.java37 public Socket createSocket() throws IOException { in createSocket() method in DelegatingSocketFactory
38 Socket socket = delegate.createSocket(); in createSocket()
43 public Socket createSocket(String host, int port) throws IOException, UnknownHostException { in createSocket() method in DelegatingSocketFactory
44 Socket socket = delegate.createSocket(host, port); in createSocket()
49 public Socket createSocket(String host, int port, InetAddress localAddress, int localPort) in createSocket() method in DelegatingSocketFactory
51 Socket socket = delegate.createSocket(host, port, localAddress, localPort); in createSocket()
56 public Socket createSocket(InetAddress host, int port) throws IOException { in createSocket() method in DelegatingSocketFactory
57 Socket socket = delegate.createSocket(host, port); in createSocket()
62 public Socket createSocket(InetAddress host, int port, InetAddress localAddress, int localPort) in createSocket() method in DelegatingSocketFactory
64 Socket socket = delegate.createSocket(host, port, localAddress, localPort); in createSocket()
DConnectionSpecTest.java87 SSLSocket socket = (SSLSocket) SSLSocketFactory.getDefault().createSocket(); in tls_defaultCiphers_noFallbackIndicator()
115 SSLSocket socket = (SSLSocket) SSLSocketFactory.getDefault().createSocket(); in tls_defaultCiphers_withFallbackIndicator()
147 SSLSocket socket = (SSLSocket) SSLSocketFactory.getDefault().createSocket(); in tls_explicitCiphers()
185 SSLSocket socket = (SSLSocket) SSLSocketFactory.getDefault().createSocket(); in tls_missingRequiredCipher()
209 SSLSocket sslSocket = (SSLSocket) SSLSocketFactory.getDefault().createSocket(); in allEnabledCipherSuites()
228 SSLSocket sslSocket = (SSLSocket) SSLSocketFactory.getDefault().createSocket(); in allEnabledTlsVersions()
246 SSLSocket socket = (SSLSocket) SSLSocketFactory.getDefault().createSocket(); in tls_missingTlsVersion()
/external/google-tv-pairing-protocol/java/src/com/google/polo/ssl/
DSSLSocketFactoryWrapper.java70 public Socket createSocket() throws IOException { in createSocket() method in SSLSocketFactoryWrapper
71 return mFactory.createSocket(); in createSocket()
76 public Socket createSocket(InetAddress inaddr, int i) in createSocket() method in SSLSocketFactoryWrapper
78 return mFactory.createSocket(inaddr, i); in createSocket()
82 public Socket createSocket(InetAddress inaddr, int i, in createSocket() method in SSLSocketFactoryWrapper
84 return mFactory.createSocket(inaddr, i, inaddr1, j); in createSocket()
88 public Socket createSocket(Socket socket, String s, int i, boolean flag) in createSocket() method in SSLSocketFactoryWrapper
90 return mFactory.createSocket(socket, s, i, flag); in createSocket()
94 public Socket createSocket(String s, int i) throws IOException { in createSocket() method in SSLSocketFactoryWrapper
95 return mFactory.createSocket(s, i); in createSocket()
[all …]
/external/conscrypt/common/src/main/java/org/conscrypt/
DOpenSSLSocketFactoryImpl.java83 public Socket createSocket() throws IOException { in createSocket() method in OpenSSLSocketFactoryImpl
95 public Socket createSocket(String hostname, int port) throws IOException, UnknownHostException { in createSocket() method in OpenSSLSocketFactoryImpl
106 public Socket createSocket(String hostname, int port, InetAddress localHost, int localPort) in createSocket() method in OpenSSLSocketFactoryImpl
118 public Socket createSocket(InetAddress address, int port) throws IOException { in createSocket() method in OpenSSLSocketFactoryImpl
129 public Socket createSocket(InetAddress address, int port, InetAddress localAddress, in createSocket() method in OpenSSLSocketFactoryImpl
141 public Socket createSocket(Socket socket, String hostname, int port, boolean autoClose) in createSocket() method in OpenSSLSocketFactoryImpl
/external/nist-sip/java/gov/nist/core/net/
DDefaultNetworkLayer.java74 public Socket createSocket(InetAddress address, int port) in createSocket() method in DefaultNetworkLayer
107 return (SSLSocket) sslSocketFactory.createSocket(address, port); in createSSLSocket()
113 return (SSLSocket) sslSocketFactory.createSocket(address, port, in createSSLSocket()
117 public Socket createSocket(InetAddress address, int port, in createSocket() method in DefaultNetworkLayer
141 public Socket createSocket(InetAddress address, int port, in createSocket() method in DefaultNetworkLayer
DSslNetworkLayer.java93 public Socket createSocket(InetAddress address, int port) in createSocket() method in SslNetworkLayer
117 return (SSLSocket) sslSocketFactory.createSocket(address, port); in createSSLSocket()
123 return (SSLSocket) sslSocketFactory.createSocket(address, port, in createSSLSocket()
127 public Socket createSocket(InetAddress address, int port, in createSocket() method in SslNetworkLayer
151 public Socket createSocket(InetAddress address, int port, in createSocket() method in SslNetworkLayer
DNetworkLayer.java80 public Socket createSocket(InetAddress address, int port) throws IOException; in createSocket() method
91 …public Socket createSocket(InetAddress address, int port, InetAddress localAddress) throws IOExcep… in createSocket() method
109 public Socket createSocket(InetAddress address, int port, in createSocket() method
/external/conscrypt/openjdk-integ-tests/src/test/java/libcore/javax/net/ssl/
DHttpsURLConnectionTest.java139 public Socket createSocket(Socket s, String host, int port, boolean autoClose) { in createSocket() method in HttpsURLConnectionTest.FakeSSLSocketFactory
144 public Socket createSocket( in createSocket() method in HttpsURLConnectionTest.FakeSSLSocketFactory
150 public Socket createSocket(InetAddress host, int port) { in createSocket() method in HttpsURLConnectionTest.FakeSSLSocketFactory
155 public Socket createSocket(String host, int port, InetAddress localHost, int localPort) { in createSocket() method in HttpsURLConnectionTest.FakeSSLSocketFactory
160 public Socket createSocket(String host, int port) { in createSocket() method in HttpsURLConnectionTest.FakeSSLSocketFactory
DSSLSocketTest.java153 (SSLSocket) SSLSocketFactory.getDefault().createSocket()); in test_SSLSocket_defaultConfiguration()
159 SSLSocket ssl = (SSLSocket) sf.createSocket(); in test_SSLSocket_getSupportedCipherSuites_returnsCopies()
285 SSLSocket ssl = (SSLSocket) sf.createSocket(); in test_SSLSocket_getEnabledCipherSuites_returnsCopies()
292 SSLSocket ssl = (SSLSocket) sf.createSocket(); in test_SSLSocket_setEnabledCipherSuites_storesCopy()
303 SSLSocket ssl = (SSLSocket) sf.createSocket(); in test_SSLSocket_setEnabledCipherSuites()
334 SSLSocket ssl = (SSLSocket) sf.createSocket(); in test_SSLSocket_getSupportedProtocols_returnsCopies()
341 SSLSocket ssl = (SSLSocket) sf.createSocket(); in test_SSLSocket_getEnabledProtocols_returnsCopies()
348 SSLSocket ssl = (SSLSocket) sf.createSocket(); in test_SSLSocket_setEnabledProtocols_storesCopy()
359 SSLSocket ssl = (SSLSocket) sf.createSocket(); in test_SSLSocket_setEnabledProtocols()
402 SSLSocket ssl = (SSLSocket) sf.createSocket(); in test_SSLSocket_getSession()
[all …]
DSSLSocketFactoryTest.java69 sf.createSocket(null, null, -1, false); in test_SSLSocketFactory_createSocket()
77 sf.createSocket(new Socket(), null, -1, false); in test_SSLSocketFactory_createSocket()
89 Socket ssl = sf.createSocket(s, null, -1, false); in test_SSLSocketFactory_createSocket()
/external/conscrypt/testing/src/main/java/org/conscrypt/
DChannelType.java43 return clientMode(factory.createSocket(address, port)); in newClientSocket()
63 return clientMode(factory.createSocket(wrapped, address.getHostName(), port, true)); in newClientSocket()
78 return serverMode(factory.createSocket( in accept()
87 return clientMode(factory.createSocket(wrapped, address.getHostName(), port, true)); in newClientSocket()
109 return serverMode(factory.createSocket( in accept()
/external/conscrypt/testing/src/main/java/libcore/javax/net/ssl/
DTestSSLContext.java430 public Socket createSocket(String host, int port) throws IOException { in clientAuth() method in TestSSLContext
431 return set(sf.createSocket(host, port)); in clientAuth()
434 public Socket createSocket(String host, int port, InetAddress localHost, int localPort) in clientAuth() method in TestSSLContext
436 return set(sf.createSocket(host, port, localHost, localPort)); in clientAuth()
439 public Socket createSocket(InetAddress host, int port) throws IOException { in clientAuth() method in TestSSLContext
440 return set(sf.createSocket(host, port)); in clientAuth()
443 public Socket createSocket(InetAddress address, int port, InetAddress localAddress, in clientAuth() method in TestSSLContext
445 return set(sf.createSocket(address, port)); in clientAuth()
456 public Socket createSocket(Socket s, String host, int port, boolean autoClose) in clientAuth() method in TestSSLContext
458 return set(sf.createSocket(s, host, port, autoClose)); in clientAuth()
/external/conscrypt/openjdk/src/test/java/org/conscrypt/
DConscryptSocketTest.java94 AbstractConscryptSocket socket = (AbstractConscryptSocket) factory.createSocket( in createClientSocket()
105 AbstractConscryptSocket socket = (AbstractConscryptSocket) factory.createSocket( in createServerSocket()
155 abstract AbstractConscryptSocket createSocket(ServerSocket listener) throws IOException; in createSocket() method in ConscryptSocketTest.Hooks
195 AbstractConscryptSocket createSocket(ServerSocket listener) throws IOException { in createSocket() method in ConscryptSocketTest.ClientHooks
221 AbstractConscryptSocket createSocket(ServerSocket listener) throws IOException { in createSocket() method in ConscryptSocketTest.ServerHooks
295 AbstractConscryptSocket socket = hooks.createSocket(listener); in handshake()
378 .createSocket(underlying, null, listening.getLocalPort(), false); in test_setSoTimeout_doesNotCreateSocketImpl()
394 public AbstractConscryptSocket createSocket(ServerSocket listener) throws IOException { in test_setEnabledProtocols_FiltersSSLv3_HandshakeException()
395 AbstractConscryptSocket socket = super.createSocket(listener); in test_setEnabledProtocols_FiltersSSLv3_HandshakeException()
DPlatformTest.java32 Socket socket = new OpenSSLSocketFactoryImpl().createSocket(); in test_setSSLParameters_Socket()
47 Socket socket = new OpenSSLSocketFactoryImpl().createSocket(); in test_getSSLParameters_Socket()
/external/jacoco/org.jacoco.agent.rt/src/org/jacoco/agent/rt/internal/output/
DTcpClientOutput.java49 final Socket socket = createSocket(options); in startup()
83 protected Socket createSocket(final AgentOptions options) in createSocket() method in TcpClientOutput
/external/apache-http/src/org/apache/http/conn/scheme/
DPlainSocketFactory.java84 public Socket createSocket() { in createSocket() method in PlainSocketFactory
102 sock = createSocket(); in connectSocket()
/external/apache-http/src/org/apache/http/impl/conn/
DDefaultClientConnectionOperator.java145 Socket sock = plain_sf.createSocket(); in openConnection()
170 Socket layeredsock = layered_sf.createSocket(sock, in openConnection()
241 sock = lsf.createSocket in updateSecureConnection()
/external/apache-http/src/org/apache/http/conn/
DMultihomePlainSocketFactory.java86 public Socket createSocket() { in createSocket() method in MultihomePlainSocketFactory
118 sock = createSocket(); in connectSocket()
/external/skia/experimental/Networking/
DSkSockets.cpp21 fSockfd = this->createSocket(); in SkSocket()
29 int SkSocket::createSocket() { in createSocket() function in SkSocket
332 fSockfd = this->createSocket(); in onFailedConnection()
/external/mockftpserver/tags/2.x_Before_IDEA/src/main/java/org/mockftpserver/core/socket/
DSocketFactory.java39 public Socket createSocket(InetAddress host, int port) throws IOException; in createSocket() method

123456