Home
last modified time | relevance | path

Searched refs:openConnection (Results 1 – 25 of 94) sorted by relevance

1234

/external/okhttp/okhttp-android-support/src/test/java/com/squareup/okhttp/internal/huc/
DResponseCacheTest.java120 private HttpURLConnection openConnection(URL url) { in openConnection() method in ResponseCacheTest
199 HttpURLConnection connection = openConnection(url); in assertCached()
239 HttpURLConnection urlConnection = openConnection(server.getUrl("/")); in testResponseCaching()
247 urlConnection = openConnection(server.getUrl("/")); // cached! in testResponseCaching()
265 HttpsURLConnection c1 = (HttpsURLConnection) openConnection(server.getUrl("/")); in secureResponseCaching()
277 HttpsURLConnection c2 = (HttpsURLConnection) openConnection(server.getUrl("/")); // cached! in secureResponseCaching()
302 HttpURLConnection connection = openConnection(server.getUrl("/")); in responseCachingAndRedirects()
305 connection = openConnection(server.getUrl("/")); // cached! in responseCachingAndRedirects()
319 assertEquals("ABC", readAscii(openConnection(server.getUrl("/foo")))); in redirectToCachedResult()
324 assertEquals("ABC", readAscii(openConnection(server.getUrl("/bar")))); in redirectToCachedResult()
[all …]
/external/okhttp/mockwebserver/src/test/java/com/squareup/okhttp/mockwebserver/
DMockWebServerTest.java87 HttpURLConnection connection = (HttpURLConnection) url.openConnection(); in regularResponse()
106 URLConnection connection = server.getUrl("/").openConnection(); in redirect()
132 URLConnection connection = server.getUrl("/").openConnection(); in dispatchBlocksWaitingForEnqueue()
144 URLConnection connection = server.getUrl("/").openConnection(); in nonHexadecimalChunkSize()
160 URLConnection urlConnection = server.getUrl("/").openConnection(); in responseTimeout()
172 URLConnection urlConnection2 = server.getUrl("/").openConnection(); in responseTimeout()
188 server.getUrl("/a").openConnection().getInputStream(); in disconnectAtStart()
191 server.getUrl("/b").openConnection().getInputStream(); // Should succeed. in disconnectAtStart()
203 URLConnection connection = server.getUrl("/").openConnection(); in throttleRequest()
225 URLConnection connection = server.getUrl("/").openConnection();
[all …]
DCustomDispatcherTest.java50 final HttpURLConnection conn = (HttpURLConnection) url.openConnection(); in simpleDispatch()
92 conn = (HttpURLConnection) url.openConnection(); in buildRequestThread()
/external/mockwebserver/src/test/java/com/google/mockwebserver/
DMockWebServerTest.java111 HttpURLConnection connection = (HttpURLConnection) url.openConnection(); in testRegularResponse()
131 URLConnection connection = server.getUrl("/").openConnection(); in testRedirect()
159 URLConnection connection = server.getUrl("/").openConnection(); in testDispatchBlocksWaitingForEnqueue()
172 URLConnection connection = server.getUrl("/").openConnection(); in testNonHexadecimalChunkSize()
190 URLConnection urlConnection = server.getUrl("/").openConnection(); in testResponseTimeout()
202 URLConnection urlConnection2 = server.getUrl("/").openConnection(); in testResponseTimeout()
219 server.getUrl("/a").openConnection().getInputStream(); in testDisconnectAtStart()
223 server.getUrl("/b").openConnection().getInputStream(); // Should succeed. in testDisconnectAtStart()
231 InputStream in = server.getUrl("/").openConnection().getInputStream(); in testStreamingResponseBody()
DCustomDispatcherTest.java50 final HttpURLConnection conn = (HttpURLConnection) url.openConnection(); in testSimpleDispatch()
92 conn = (HttpURLConnection) url.openConnection(); in buildRequestThread()
/external/conscrypt/repackaged/common/src/test/java/com/android/org/conscrypt/javax/net/ssl/
DHttpsURLConnectionTest.java55 (HttpsURLConnection) new URL(UNRESOLVABLE_HTTPS_URL).openConnection(); in testDefaultHostnameVerifierUsedForNewConnectionsByDefault()
65 connection = (HttpsURLConnection) new URL(UNRESOLVABLE_HTTPS_URL).openConnection(); in testDefaultHostnameVerifierUsedForNewConnectionsByDefault()
73 connection = (HttpsURLConnection) new URL(UNRESOLVABLE_HTTPS_URL).openConnection(); in testDefaultHostnameVerifierUsedForNewConnectionsByDefault()
93 (HttpsURLConnection) new URL(UNRESOLVABLE_HTTPS_URL).openConnection(); in testDefaultSSLSocketFactoryUsedForNewConnectionsByDefault()
103 connection = (HttpsURLConnection) new URL(UNRESOLVABLE_HTTPS_URL).openConnection(); in testDefaultSSLSocketFactoryUsedForNewConnectionsByDefault()
111 connection = (HttpsURLConnection) new URL(UNRESOLVABLE_HTTPS_URL).openConnection(); in testDefaultSSLSocketFactoryUsedForNewConnectionsByDefault()
/external/conscrypt/common/src/test/java/org/conscrypt/javax/net/ssl/
DHttpsURLConnectionTest.java51 (HttpsURLConnection) new URL(UNRESOLVABLE_HTTPS_URL).openConnection(); in testDefaultHostnameVerifierUsedForNewConnectionsByDefault()
61 connection = (HttpsURLConnection) new URL(UNRESOLVABLE_HTTPS_URL).openConnection(); in testDefaultHostnameVerifierUsedForNewConnectionsByDefault()
69 connection = (HttpsURLConnection) new URL(UNRESOLVABLE_HTTPS_URL).openConnection(); in testDefaultHostnameVerifierUsedForNewConnectionsByDefault()
89 (HttpsURLConnection) new URL(UNRESOLVABLE_HTTPS_URL).openConnection(); in testDefaultSSLSocketFactoryUsedForNewConnectionsByDefault()
99 connection = (HttpsURLConnection) new URL(UNRESOLVABLE_HTTPS_URL).openConnection(); in testDefaultSSLSocketFactoryUsedForNewConnectionsByDefault()
107 connection = (HttpsURLConnection) new URL(UNRESOLVABLE_HTTPS_URL).openConnection(); in testDefaultSSLSocketFactoryUsedForNewConnectionsByDefault()
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/net/
DExcludedProxyTest.java51 URLConnection conn1 = u1.openConnection(); in test_usingProxy()
58 URLConnection conn3 = u3.openConnection(); in test_usingProxy()
71 .openConnection(); in test_usingProxy()
93 .openConnection(); in test_usingProxy()
172 .openConnection(proxyList[i]); in test_openConnectionLjava_net_Proxy()
201 urlList[i].openConnection(null); in test_openConnectionLjava_net_Proxy()
207 fileUrl.openConnection(Proxy.NO_PROXY); in test_openConnectionLjava_net_Proxy()
/external/okhttp/repackaged/android/src/main/java/com/android/okhttp/internalandroidapi/
DHttpURLConnectionFactory.java87 public URLConnection openConnection(URL url) throws IOException { in openConnection() method in HttpURLConnectionFactory
97 public URLConnection openConnection(URL url, Proxy proxy) throws IOException { in openConnection() method in HttpURLConnectionFactory
108 public URLConnection openConnection(URL url, SocketFactory socketFactory) throws IOException { in openConnection() method in HttpURLConnectionFactory
119 public URLConnection openConnection(URL url, SocketFactory socketFactory, Proxy proxy) in openConnection() method in HttpURLConnectionFactory
/external/okhttp/android/src/main/java/com/android/okhttp/internalandroidapi/
DHttpURLConnectionFactory.java85 public URLConnection openConnection(URL url) throws IOException { in openConnection() method in HttpURLConnectionFactory
95 public URLConnection openConnection(URL url, Proxy proxy) throws IOException { in openConnection() method in HttpURLConnectionFactory
106 public URLConnection openConnection(URL url, SocketFactory socketFactory) throws IOException { in openConnection() method in HttpURLConnectionFactory
117 public URLConnection openConnection(URL url, SocketFactory socketFactory, Proxy proxy) in openConnection() method in HttpURLConnectionFactory
/external/okhttp/repackaged/okhttp-urlconnection/src/main/java/com/android/okhttp/
DOkUrlFactory.java85 @Override protected URLConnection openConnection(URL url) { in createURLStreamHandler()
89 @Override protected URLConnection openConnection(URL url, Proxy proxy) { in createURLStreamHandler() method in OkUrlFactory
/external/okhttp/okhttp-urlconnection/src/main/java/com/squareup/okhttp/
DOkUrlFactory.java81 @Override protected URLConnection openConnection(URL url) { in createURLStreamHandler()
85 @Override protected URLConnection openConnection(URL url, Proxy proxy) { in createURLStreamHandler() method in OkUrlFactory
/external/okhttp/android/src/main/java/com/squareup/okhttp/
DHttpHandler.java51 @Override protected URLConnection openConnection(URL url) throws IOException { in openConnection() method in HttpHandler
55 @Override protected URLConnection openConnection(URL url, Proxy proxy) throws IOException { in openConnection() method in HttpHandler
/external/okhttp/repackaged/android/src/main/java/com/android/okhttp/
DHttpHandler.java55 @Override protected URLConnection openConnection(URL url) throws IOException { in openConnection() method in HttpHandler
59 @Override protected URLConnection openConnection(URL url, Proxy proxy) throws IOException { in openConnection() method in HttpHandler
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/share/
DJDWPUnitDebuggeeWrapper.java115 openConnection(); in start()
144 protected void openConnection() { in openConnection() method in JDWPUnitDebuggeeWrapper
/external/ksoap2/ksoap2-j2se/src/main/java/org/ksoap2/transport/
DServiceConnectionSE.java67 ? (HttpURLConnection) new URL(url).openConnection() in ServiceConnectionSE()
68 : (HttpURLConnection) new URL(url).openConnection(proxy); in ServiceConnectionSE()
DHttpsServiceConnectionSE.java69 file).openConnection(); in HttpsServiceConnectionSE()
73 file).openConnection(proxy); in HttpsServiceConnectionSE()
/external/volley/src/main/java/com/android/volley/toolbox/
DHurlStack.java83 HttpURLConnection connection = openConnection(parsedUrl, request); in executeRequest()
197 HttpURLConnection connection = (HttpURLConnection) url.openConnection(); in createConnection()
214 private HttpURLConnection openConnection(URL url, Request<?> request) throws IOException { in openConnection() method in HurlStack
/external/jimfs/jimfs/src/test/java/com/google/common/jimfs/
DUrlTest.java82 URLConnection conn = url.openConnection(); in headers()
117 URLConnection conn = url.openConnection(); in contentType()
/external/testng/src/main/java/org/testng/internal/
DPackageUtils.java100 JarFile jar = ((JarURLConnection) url.openConnection()).getJarFile(); in findClassesInPackage()
130 URLConnection connection = url.openConnection(); in findClassesInPackage()
131 Method thisMethod = url.openConnection().getClass() in findClassesInPackage()
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/DDM/
DDDMTest.java140 openConnection(); in testChunk001()
158 openConnection(); in testChunk001()
/external/apache-http/src/org/apache/http/conn/
DClientConnectionOperator.java92 void openConnection(OperatedClientConnection conn, in openConnection() method
/external/nanohttpd/core/src/test/java/fi/iki/elonen/integration/
DShutdownTest.java77 …pURLConnection connection = (HttpURLConnection) new URL("http://localhost:8092/").openConnection(); in makeRequest()
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/MultiSession/
DResumeTest.java63 openConnection(); in testResume()
/external/apache-http/android/src/android/net/http/
DHttpConnection.java45 AndroidHttpClientConnection openConnection(Request req) throws IOException { in openConnection() method in HttpConnection

1234