/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/http/ |
D | ResponseCacheTest.java | 114 private HttpURLConnection openConnection(URL url) { in openConnection() method in ResponseCacheTest 158 HttpURLConnection urlConnection = openConnection(server.getUrl("/")); in testResponseCaching() 166 urlConnection = openConnection(server.getUrl("/")); // cached! in testResponseCaching() 184 HttpsURLConnection c1 = (HttpsURLConnection) openConnection(server.getUrl("/")); in secureResponseCaching() 196 HttpsURLConnection c2 = (HttpsURLConnection) openConnection(server.getUrl("/")); // cached! in secureResponseCaching() 216 HttpsURLConnection connection1 = (HttpsURLConnection) openConnection(server.getUrl("/")); in cacheReturnsInsecureResponseForSecureRequest() 222 HttpsURLConnection connection2 = (HttpsURLConnection) openConnection(server.getUrl("/")); in cacheReturnsInsecureResponseForSecureRequest() 239 HttpURLConnection connection = openConnection(server.getUrl("/")); in responseCachingAndRedirects() 242 connection = openConnection(server.getUrl("/")); // cached! in responseCachingAndRedirects() 253 assertEquals("ABC", readAscii(openConnection(server.getUrl("/foo")))); in redirectToCachedResult() [all …]
|
D | HttpResponseCacheTest.java | 120 private HttpURLConnection openConnection(URL url) { in openConnection() method in HttpResponseCacheTest 187 HttpURLConnection conn = openConnection(url); in originServerSends407() 217 HttpURLConnection conn = openConnection(url); in assertCached() 262 HttpURLConnection connection = openConnection(url); in responseCacheCallbackApis() 319 HttpURLConnection urlConnection = openConnection(server.getUrl("/")); in testResponseCaching() 329 urlConnection = openConnection(server.getUrl("/")); // cached! in testResponseCaching() 390 HttpURLConnection connection = openConnection(server.getUrl("/")); in responseCachingAndRedirects() 393 connection = openConnection(server.getUrl("/")); // cached! in responseCachingAndRedirects() 408 assertEquals("ABC", readAscii(openConnection(server.getUrl("/foo")))); in redirectToCachedResult() 413 assertEquals("ABC", readAscii(openConnection(server.getUrl("/bar")))); in redirectToCachedResult() [all …]
|
/external/okhttp/mockwebserver/src/test/java/com/squareup/okhttp/mockwebserver/ |
D | MockWebServerTest.java | 119 HttpURLConnection connection = (HttpURLConnection) url.openConnection(); in testExpect100ContinueWithBody() 142 HttpURLConnection connection = (HttpURLConnection) url.openConnection(); in testExpect100ContinueWithNoBody() 165 HttpURLConnection connection = (HttpURLConnection) url.openConnection(); in testRegularResponse() 185 URLConnection connection = server.getUrl("/").openConnection(); in testRedirect() 213 URLConnection connection = server.getUrl("/").openConnection(); in testDispatchBlocksWaitingForEnqueue() 226 URLConnection connection = server.getUrl("/").openConnection(); in testNonHexadecimalChunkSize() 244 URLConnection urlConnection = server.getUrl("/").openConnection(); in testResponseTimeout() 256 URLConnection urlConnection2 = server.getUrl("/").openConnection(); in testResponseTimeout() 273 server.getUrl("/a").openConnection().getInputStream(); in testDisconnectAtStart() 277 server.getUrl("/b").openConnection().getInputStream(); // Should succeed. in testDisconnectAtStart() [all …]
|
D | CustomDispatcherTest.java | 49 final HttpURLConnection conn = (HttpURLConnection) url.openConnection(); in testSimpleDispatch() 91 conn = (HttpURLConnection) url.openConnection(); in buildRequestThread()
|
/external/mockwebserver/src/test/java/com/google/mockwebserver/ |
D | MockWebServerTest.java | 105 HttpURLConnection connection = (HttpURLConnection) url.openConnection(); in testRegularResponse() 125 URLConnection connection = server.getUrl("/").openConnection(); in testRedirect() 153 URLConnection connection = server.getUrl("/").openConnection(); in testDispatchBlocksWaitingForEnqueue() 166 URLConnection connection = server.getUrl("/").openConnection(); in testNonHexadecimalChunkSize() 184 URLConnection urlConnection = server.getUrl("/").openConnection(); in testResponseTimeout() 196 URLConnection urlConnection2 = server.getUrl("/").openConnection(); in testResponseTimeout() 213 server.getUrl("/a").openConnection().getInputStream(); in testDisconnectAtStart() 217 server.getUrl("/b").openConnection().getInputStream(); // Should succeed. in testDisconnectAtStart() 225 InputStream in = server.getUrl("/").openConnection().getInputStream(); in testStreamingResponseBody()
|
D | CustomDispatcherTest.java | 50 final HttpURLConnection conn = (HttpURLConnection) url.openConnection(); in testSimpleDispatch() 92 conn = (HttpURLConnection) url.openConnection(); in buildRequestThread()
|
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/net/ |
D | ExcludedProxyTest.java | 51 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()
|
D | URLConnectionTest.java | 60 protected URLConnection openConnection(URL u) throws IOException { in openConnection() method in URLConnectionTest.NewHandler 84 return url.openConnection().getContentType(); 92 uc = url.openConnection(); 183 JarURLConnection con1 = (JarURLConnection) fUrl1.openConnection(); 515 URLConnection urlCon = url.openConnection(); 531 URLConnection urlCon = url.openConnection(); 640 URLConnection uc = new URL("http://localhost").openConnection(); 700 URLConnection connection = url.openConnection(); 716 URLConnection uc = new URL("http://localhost").openConnection();
|
D | ContentHandlerTest.java | 34 URLConnection conn = new URL("http://www.apache.org").openConnection(); in test_getContent()
|
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/internal/net/www/protocol/https/ |
D | HttpsURLConnectionTest.java | 143 .openConnection(); in testHttpsConnection() 183 .openConnection(); in testHttpsPersistentConnection() 221 .openConnection(); in testHttpsConnection_Not_Found_Response() 266 .openConnection(); in testSetDefaultSSLSocketFactory() 307 .openConnection(); in testSetSSLSocketFactory() 345 .openConnection(); in testUnconnectedStateParameters() 395 .openConnection(); in testSetHostnameVerifier() 437 .openConnection(); in test_doOutput() 473 .openConnection(); in testPersistence_doOutput() 508 .openConnection(new Proxy(Proxy.Type.HTTP, in testProxyConnection() [all …]
|
/external/okhttp/android/main/java/com/squareup/okhttp/ |
D | HttpHandler.java | 32 @Override protected URLConnection openConnection(URL url) throws IOException { in openConnection() method in HttpHandler 36 @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/ |
D | JDWPUnitDebuggeeWrapper.java | 94 openConnection(); in start() 123 protected void openConnection() { in openConnection() method in JDWPUnitDebuggeeWrapper
|
/external/ksoap2/ksoap2-j2se/src/main/java/org/ksoap2/transport/ |
D | ServiceConnectionSE.java | 66 ? (HttpURLConnection) new URL(url).openConnection() in ServiceConnectionSE() 67 : (HttpURLConnection) new URL(url).openConnection(proxy); in ServiceConnectionSE()
|
/external/chromium_org/third_party/libjingle/source/talk/examples/android/src/org/appspot/apprtc/ |
D | AppRTCClient.java | 185 new URL(url).openConnection(); in followRedirect() 239 drainStream((new URL(url)).openConnection().getInputStream())); in getParametersForRoomUrl() 368 URLConnection connection = (new URL(url)).openConnection(); in requestTurnServer() 427 appRTCSignalingParameters.postMessageUrl).openConnection(); in maybeDrainQueue()
|
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/net/test_protocol/ |
D | Handler.java | 26 protected URLConnection openConnection(URL u) throws IOException { in openConnection() method in Handler
|
/external/apache-http/src/org/apache/http/conn/ |
D | ClientConnectionOperator.java | 92 void openConnection(OperatedClientConnection conn, in openConnection() method
|
/external/nanohttpd/core/src/test/java/fi/iki/elonen/integration/ |
D | ShutdownTest.java | 31 …pURLConnection connection = (HttpURLConnection) new URL("http://localhost:8092/").openConnection(); in makeRequest()
|
/external/apache-harmony/support/src/test/java/tests/support/ |
D | Support_URLConnector.java | 40 instance = new URL(address).openConnection(); in open()
|
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/MultiSession/ |
D | ResumeTest.java | 63 openConnection(); in testResume()
|
D | ClassObjectIDTest.java | 68 openConnection(); in testClassObjectID001()
|
D | RefTypeIDTest.java | 67 openConnection(); in testRefTypeID001()
|
/external/chromium_org/net/test/android/javatests/src/org/chromium/net/test/util/ |
D | TestWebServer.java | 136 URLConnection connection = openConnection(url); in shutdown() 319 private URLConnection openConnection(URL url) in openConnection() method in TestWebServer 326 HttpsURLConnection connection = (HttpsURLConnection) url.openConnection(); in openConnection() 336 return url.openConnection(); in openConnection()
|
/external/okhttp/okhttp-apache/src/main/java/com/squareup/okhttp/apache/ |
D | OkApacheClient.java | 90 protected HttpURLConnection openConnection(URL url) { in openConnection() method in OkApacheClient 120 HttpURLConnection connection = openConnection(url); in execute()
|
/external/okhttp/benchmarks/src/main/java/com/squareup/okhttp/benchmarks/ |
D | UrlConnection.java | 63 HttpURLConnection urlConnection = (HttpURLConnection) url.openConnection(); in run()
|
/external/chromium_org/chrome/common/extensions/docs/examples/apps/hello-java/ |
D | HelloLicenseServlet.java | 81 ).openConnection(); in doGet()
|