Home
last modified time | relevance | path

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

1234

/external/okhttp/okhttp-android-support/src/test/java/com/squareup/okhttp/internal/huc/
DResponseCacheTest.java131 private HttpURLConnection openConnection(URL url) { in openConnection() method in ResponseCacheTest
210 HttpURLConnection connection = openConnection(url); in assertCached()
250 HttpURLConnection urlConnection = openConnection(server.getUrl("/")); in testResponseCaching()
258 urlConnection = openConnection(server.getUrl("/")); // cached! in testResponseCaching()
276 HttpsURLConnection c1 = (HttpsURLConnection) openConnection(server.getUrl("/")); in secureResponseCaching()
288 HttpsURLConnection c2 = (HttpsURLConnection) openConnection(server.getUrl("/")); // cached! in secureResponseCaching()
313 HttpURLConnection connection = openConnection(server.getUrl("/")); in responseCachingAndRedirects()
316 connection = openConnection(server.getUrl("/")); // cached! in responseCachingAndRedirects()
330 assertEquals("ABC", readAscii(openConnection(server.getUrl("/foo")))); in redirectToCachedResult()
335 assertEquals("ABC", readAscii(openConnection(server.getUrl("/bar")))); in redirectToCachedResult()
[all …]
/external/mockwebserver/src/test/java/com/google/mockwebserver/
DMockWebServerTest.java105 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()
DCustomDispatcherTest.java50 final HttpURLConnection conn = (HttpURLConnection) url.openConnection(); in testSimpleDispatch()
92 conn = (HttpURLConnection) url.openConnection(); in buildRequestThread()
/external/okhttp/mockwebserver/src/test/java/com/squareup/okhttp/mockwebserver/
DMockWebServerTest.java79 HttpURLConnection connection = (HttpURLConnection) url.openConnection(); in regularResponse()
98 URLConnection connection = server.getUrl("/").openConnection(); in redirect()
124 URLConnection connection = server.getUrl("/").openConnection(); in dispatchBlocksWaitingForEnqueue()
136 URLConnection connection = server.getUrl("/").openConnection(); in nonHexadecimalChunkSize()
152 URLConnection urlConnection = server.getUrl("/").openConnection(); in responseTimeout()
164 URLConnection urlConnection2 = server.getUrl("/").openConnection(); in responseTimeout()
180 server.getUrl("/a").openConnection().getInputStream(); in disconnectAtStart()
183 server.getUrl("/b").openConnection().getInputStream(); // Should succeed. in disconnectAtStart()
195 URLConnection connection = server.getUrl("/").openConnection(); in throttleRequest()
217 URLConnection connection = server.getUrl("/").openConnection();
[all …]
DCustomDispatcherTest.java50 final HttpURLConnection conn = (HttpURLConnection) url.openConnection(); in simpleDispatch()
92 conn = (HttpURLConnection) url.openConnection(); in buildRequestThread()
/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()
DURLConnectionTest.java60 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();
DContentHandlerTest.java34 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/
DHttpsURLConnectionTest.java143 .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/mockwebserver/src/test/java/com/squareup/okhttp/mockwebserver/rule/
DMockWebServerRuleTest.java54 server.getUrl("/").openConnection().connect(); in beforePlaysServer()
62 server.getUrl("/").openConnection().connect(); in afterStopsServer()
74 HttpURLConnection connection = (HttpURLConnection) url.openConnection(); in typicalUsage()
/external/jmonkeyengine/engine/src/core-plugins/com/jme3/asset/plugins/
DUrlAssetInfo.java25 URLConnection conn = url.openConnection(); in create()
57 URLConnection conn = url.openConnection(); in openStream()
/external/okhttp/android/main/java/com/squareup/okhttp/
DHttpHandler.java38 @Override protected URLConnection openConnection(URL url) throws IOException { in openConnection() method in HttpHandler
42 @Override protected URLConnection openConnection(URL url, Proxy proxy) throws IOException { in openConnection() method in HttpHandler
/external/okhttp/okhttp-urlconnection/src/main/java/com/squareup/okhttp/
DOkUrlFactory.java75 @Override protected URLConnection openConnection(URL url) { in createURLStreamHandler()
79 @Override protected URLConnection openConnection(URL url, Proxy proxy) { in createURLStreamHandler() method in OkUrlFactory
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/share/
DJDWPUnitDebuggeeWrapper.java94 openConnection(); in start()
123 protected void openConnection() { in openConnection() method in JDWPUnitDebuggeeWrapper
/external/ksoap2/ksoap2-j2se/src/main/java/org/ksoap2/transport/
DServiceConnectionSE.java66 ? (HttpURLConnection) new URL(url).openConnection() in ServiceConnectionSE()
67 : (HttpURLConnection) new URL(url).openConnection(proxy); in ServiceConnectionSE()
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/net/test_protocol/
DHandler.java26 protected URLConnection openConnection(URL u) throws IOException { in openConnection() method in Handler
/external/apache-http/src/org/apache/http/conn/
DClientConnectionOperator.java92 void openConnection(OperatedClientConnection conn, in openConnection() method
/external/jmonkeyengine/engine/src/desktop/com/jme3/system/
DNatives.java104 URLConnection conn = url.openConnection(); in computeNativesHash()
134 URLConnection conn = url.openConnection(); in extractNativeLib()
/external/nanohttpd/core/src/test/java/fi/iki/elonen/integration/
DShutdownTest.java31 …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()
DClassObjectIDTest.java68 openConnection(); in testClassObjectID001()
DRefTypeIDTest.java67 openConnection(); in testRefTypeID001()
/external/apache-http/android/src/android/net/http/
DHttpConnection.java45 AndroidHttpClientConnection openConnection(Request req) throws IOException { in openConnection() method in HttpConnection
/external/apache-harmony/support/src/test/java/tests/support/
DSupport_URLConnector.java40 instance = new URL(address).openConnection(); in open()
/external/jetty/src/java/org/eclipse/jetty/util/resource/
DJarFileResource.java172 JarURLConnection c=(JarURLConnection)((new URL(_jarUrl)).openConnection()); in exists()
309 JarURLConnection jc=(JarURLConnection)((new URL(_jarUrl)).openConnection()); in listEntries()

1234