/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/ |
D | JarURLConnectionTest.java | 59 juc = (JarURLConnection) u.openConnection(); in test_getAttributes() 71 juc = (JarURLConnection) u.openConnection(); in test_getEntryName() 75 juc = (JarURLConnection) u.openConnection(); in test_getEntryName() 79 …assertEquals("foo.jar!/Bugs/HelloWorld.class", ((JarURLConnection) url.openConnection()).getEntryN… in test_getEntryName() 87 juc = (JarURLConnection) u.openConnection(); in test_getJarEntry() 91 juc = (JarURLConnection) u.openConnection(); in test_getJarEntry() 102 connection = (JarURLConnection) url.openConnection(); in test_getJarFile() 122 JarURLConnection con1 = (JarURLConnection) fUrl1.openConnection(); in test_getJarFile() 124 JarURLConnection con2 = (JarURLConnection) fUrl1.openConnection(); in test_getJarFile() 129 con1 = (JarURLConnection) fUrl1.openConnection(); in test_getJarFile() [all …]
|
D | URLTest.java | 39 protected URLConnection openConnection(URL u) in openConnection() method in URLTest.MyHandler 744 u.openConnection(); in test_getContent() 773 u.openConnection(); in test_getContent_LJavaLangClass() 791 URLConnection uConn = u.openConnection(); in test_openConnection() 973 URLConnection conn = new URL(fileUrlString).openConnection(); in test_openConnection_FileProtocol() 978 conn = new URL(nonLocalUrlString).openConnection(); in test_openConnection_FileProtocol() 987 public URLConnection openConnection(URL arg0) throws IOException { in openConnection() method in URLTest.TestURLStreamHandler 989 return arg0.openConnection(); in openConnection() 995 public URLConnection openConnection(URL arg0, Proxy proxy) in openConnection() method in URLTest.TestURLStreamHandler 997 return super.openConnection(u, proxy); in openConnection() [all …]
|
/libcore/luni/src/test/java/libcore/java/net/ |
D | OldJarURLConnectionTest.java | 59 juc = (JarURLConnection) u.openConnection(); in test_getAttributes() 65 JarURLConnection juConn = (JarURLConnection) invURL.openConnection(); in test_getAttributes() 77 juc = (JarURLConnection) u.openConnection(); in test_getCertificates() 90 JarURLConnection juConn = (JarURLConnection) invURL.openConnection(); in test_getCertificates() 102 juc = (JarURLConnection) u.openConnection(); in test_getManifest() 110 JarURLConnection juConn = (JarURLConnection) invURL.openConnection(); in test_getManifest() 122 juc = (JarURLConnection) u.openConnection(); in test_getEntryName() 128 juc = (JarURLConnection) u.openConnection(); in test_getEntryName() 133 …assertEquals("foo.jar!/Bugs/HelloWorld.class",((JarURLConnection)url.openConnection()).getEntryNam… in test_getEntryName() 139 juc = (JarURLConnection) u.openConnection(); in test_getJarEntry() [all …]
|
D | URLConnectionTest.java | 208 HttpURLConnection urlConnection = (HttpURLConnection) url.openConnection(); in assertForbiddenRequestHeaderName() 220 HttpURLConnection urlConnection = (HttpURLConnection) url.openConnection(); in assertForbiddenRequestHeaderValue() 230 HttpURLConnection urlConnection = (HttpURLConnection) url.openConnection(); in setAndReturnRequestHeaderValue() 239 HttpURLConnection urlConnection = (HttpURLConnection) server.getUrl("/").openConnection(); in requestHeaders() 300 HttpURLConnection urlConnection = (HttpURLConnection) server.getUrl("/").openConnection(); in getRequestPropertyReturnsLastValue() 315 HttpURLConnection urlConnection = (HttpURLConnection) server.getUrl("/").openConnection(); in responseHeaders() 344 HttpURLConnection connection = (HttpURLConnection) server.getUrl("/").openConnection(); in getErrorStreamOnSuccessfulRequest() 351 HttpURLConnection connection = (HttpURLConnection) server.getUrl("/").openConnection(); in getErrorStreamOnUnsuccessfulRequest() 365 assertContent("ABCDE", server.getUrl("/").openConnection(), 5); in bug2939() 366 assertContent("ABCDE", server.getUrl("/").openConnection(), 5); in bug2939() [all …]
|
D | URLStreamHandlerFactoryTest.java | 60 URLConnection connection = url.openConnection(); in testCreateURLStreamHandler() 93 URLConnection connection = new URL("http://android.com/").openConnection(); in testInstallCustomProtocolHandler() 106 URLConnection connection1 = new URL("http://android.com/").openConnection(); in testFirstUseIsCached() 112 URLConnection connection2 = new URL("http://android.com/").openConnection(); in testFirstUseIsCached()
|
D | FtpURLConnectionTest.java | 92 URLConnection connection = fileUrl.openConnection(); in testInputUrl() 103 URLConnection noPasswordConnection = noPasswordUrl.openConnection(); in testInputUrl_missingPassword() 114 URLConnection connection = fileUrl.openConnection(); in checkInputUrl_invalidUserOrPassword() 129 URLConnection connection = fileUrl.openConnection(); in testOutputUrl() 142 URLConnection connection = fileUrl.openConnection(proxy); in testConnectOverProxy_noProxy() 181 URLConnection connection = fileUrl.openConnection(proxy); in testConnectOverProxy_explicit_http_uses_direct_connection() 205 URLConnection connection = fileUrl.openConnection(); in testConnectOverProxy_implicit_http_fails() 226 URLConnection connection = url.openConnection(); in testInputUrlWithSpaces() 234 assertContents(data, url.openConnection().getInputStream()); in testBinaryFileContents() 245 assertContents(fileContents, url.openConnection().getInputStream()); in testInputUrlWithSpacesViaProxySelector() [all …]
|
D | OldURLStreamHandlerTest.java | 91 assertNull(handler.openConnection(null)); in test_openConnectionLjava_net_URL() 96 handler.openConnection(null, null); in test_openConnectionLjava_net_URLLjava_net_Proxy() 176 @Override protected URLConnection openConnection(URL arg0) throws IOException { in openConnection() method in OldURLStreamHandlerTest.MockURLStreamHandler 200 @Override public URLConnection openConnection(URL u, Proxy p) throws IOException { in openConnection() method in OldURLStreamHandlerTest.MockURLStreamHandler 201 return super.openConnection(u, p); in openConnection()
|
D | OldURLTest.java | 328 u.openConnection(); in testOpenConnection() 339 URLConnection conn = u.openConnection(); in testOpenConnection() 553 protected URLConnection openConnection(URL u) in openConnection() method in OldURLTest.MyHandler 606 protected URLConnection openConnection(URL arg0) throws IOException { in openConnection() method in OldURLTest.MyURLStreamHandler 608 URLConnection con = arg0.openConnection(); in openConnection() 637 public URLConnection openConnection(URL arg0) throws IOException { in openConnection() method in OldURLTest.TestURLStreamHandler 639 URLConnection con = arg0.openConnection(); in openConnection() 648 public URLConnection openConnection(URL arg0, Proxy proxy) in openConnection() method in OldURLTest.TestURLStreamHandler 650 return super.openConnection(u, proxy); in openConnection() 720 u.openConnection(); in test_getContent_LJavaLangClass()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/jar/ |
D | JarInputStreamTest.java | 57 InputStream is = new URL(jarName).openConnection().getInputStream(); in test_ConstructorLjava_io_InputStream() 97 InputStream is = new URL(jarName).openConnection().getInputStream(); in test_getNextJarEntry_Ex() 131 InputStream is = new URL(jarName2).openConnection().getInputStream(); in test_getManifest() 136 is = new URL(jarName).openConnection().getInputStream(); in test_getManifest() 146 InputStream is = new URL(jarName).openConnection().getInputStream(); in test_getNextJarEntry() 159 InputStream is = new URL(intJarName).openConnection() in test_JarInputStream_Integrate_Jar_getNextEntry() 175 InputStream is = new URL(modJarName).openConnection() in test_JarInputStream_Modified_Class_getNextEntry() 202 InputStream is = new URL(modJarName).openConnection() in test_JarInputStream_Modified_Manifest_MainAttributes_getNextEntry() 223 InputStream is = new URL(modJarName).openConnection() in test_JarInputStream_Modified_Manifest_EntryAttributes_getNextEntry() 250 InputStream is = new URL(modJarName).openConnection() in test_JarInputStream_Modified_SF_EntryAttributes_getNextEntry() [all …]
|
/libcore/ojluni/src/main/java/sun/net/www/protocol/file/ |
D | Handler.java | 70 public synchronized URLConnection openConnection(URL u) in openConnection() method in Handler 72 return openConnection(u, null); in openConnection() 75 public synchronized URLConnection openConnection(URL u, Proxy p) in openConnection() method in Handler 94 uc = ru.openConnection(p); in openConnection() 96 uc = ru.openConnection(); in openConnection()
|
/libcore/ojluni/src/main/java/sun/net/www/protocol/ftp/ |
D | Handler.java | 50 protected java.net.URLConnection openConnection(URL u) in openConnection() method in Handler 52 return openConnection(u, null); in openConnection() 55 protected java.net.URLConnection openConnection(URL u, Proxy p) in openConnection() method in Handler
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
D | ClassLoaderTest.java | 140 JarURLConnection uncachedConnection = (JarURLConnection) resourceFromJar.openConnection(); in testUncachedJarStreamBehavior() 155 JarURLConnection cachedConnection1 = (JarURLConnection) resourceFromJar.openConnection(); in testCachedJarStreamBehavior() 158 JarURLConnection cachedConnection2 = (JarURLConnection) resourceFromJar.openConnection(); in testCachedJarStreamBehavior() 178 JarURLConnection urlConnection1 = (JarURLConnection) resourceFromJar.openConnection(); in testResourceJarFileBehavior() 181 JarURLConnection urlConnection2 = (JarURLConnection) resourceFromJar.openConnection(); in testResourceJarFileBehavior() 185 JarURLConnection uncachedConnection = (JarURLConnection) resourceFromJar.openConnection(); in testResourceJarFileBehavior()
|
/libcore/luni/src/test/java/libcore/libcore/net/ |
D | NetworkSecurityPolicyTest.java | 102 url.openConnection().getContent(); in testCleartextTrafficPolicyWithHttpURLConnection() 115 url.openConnection().getContent(); in testCleartextTrafficPolicyWithHttpURLConnection() 130 url.openConnection().getContent(); in testCleartextTrafficPolicyWithFtpURLConnection() 143 url.openConnection().getContent(); in testCleartextTrafficPolicyWithFtpURLConnection() 157 ((JarURLConnection) url.openConnection()).getManifest(); in testCleartextTrafficPolicyWithJarHttpURLConnection() 170 ((JarURLConnection) url.openConnection()).getManifest(); in testCleartextTrafficPolicyWithJarHttpURLConnection() 185 ((JarURLConnection) url.openConnection()).getManifest(); in testCleartextTrafficPolicyWithJarFtpURLConnection() 198 ((JarURLConnection) url.openConnection()).getManifest(); in testCleartextTrafficPolicyWithJarFtpURLConnection()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/ |
D | GZIPInputStreamTest.java | 70 .openConnection().getInputStream()); in test_ConstructorLjava_io_InputStream() 98 .openConnection().getInputStream(), 200); in test_ConstructorLjava_io_InputStreamI() 107 .openConnection().getInputStream(), 0); in test_ConstructorLjava_io_InputStreamI() 117 .openConnection().getInputStream(), 200); in test_ConstructorLjava_io_InputStreamI() 140 .openConnection().getInputStream()); in test_read$BII() 256 .openConnection().getInputStream()); in test_close()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/ |
D | HttpsURLConnectionTest.java | 66 HttpsURLConnection connection = (HttpsURLConnection) url.openConnection(); in test_getCipherSuite() 82 HttpsURLConnection connection = (HttpsURLConnection) url.openConnection(); in test_getLocalCertificates() 124 HttpsURLConnection connection = (HttpsURLConnection) url.openConnection(); in test_getLocalPrincipal() 142 HttpsURLConnection connection = (HttpsURLConnection) url.openConnection(); in test_getPeerPrincipal() 165 HttpsURLConnection connection = (HttpsURLConnection) url.openConnection(); in test_getServerCertificates()
|
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/internal/net/www/protocol/http/ |
D | HttpURLConnectionTest.java | 172 new URL("http://localhost:" + httpServer.port()).openConnection(); in testGetOutputStream() 194 .openConnection(new Proxy(Proxy.Type.HTTP, in testUsingProxy() 218 HttpURLConnection huc = (HttpURLConnection)url.openConnection(Proxy.NO_PROXY); in testUsingProxy() 241 (HttpURLConnection) url.openConnection(); in testUsingProxySelector() 287 (HttpURLConnection) url.openConnection( in testProxyAuthorization()
|
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/internal/net/www/protocol/https/ |
D | HttpsURLConnectionTest.java | 140 HttpsURLConnection connection = (HttpsURLConnection) url.openConnection(); in testHttpsConnection() 173 HttpsURLConnection connection = (HttpsURLConnection) url.openConnection(); in testHttpsConnection_Not_Found_Response() 218 HttpsURLConnection connection = (HttpsURLConnection) url.openConnection(); in testSetDefaultSSLSocketFactory() 258 HttpsURLConnection connection = (HttpsURLConnection) url.openConnection(); in testSetSSLSocketFactory() 291 HttpsURLConnection connection = (HttpsURLConnection) url.openConnection(); in testUnconnectedStateParameters() 334 HttpsURLConnection connection = (HttpsURLConnection) url.openConnection(); in testSetHostnameVerifier() 370 HttpsURLConnection connection = (HttpsURLConnection) url.openConnection(); in test_doOutput() 410 url.openConnection(new Proxy(Proxy.Type.HTTP, proxyAddress)); in testProxyConnection() 459 url.openConnection(new Proxy(Proxy.Type.HTTP, proxyAddress)); in testProxyAuthConnection() 493 url.openConnection(new Proxy(Proxy.Type.HTTP, proxyAddress)); in testConsequentProxyConnection() [all …]
|
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/net/ |
D | URLConnectionTest.java | 181 protected URLConnection openConnection(URL u) throws IOException { in openConnection() method in URLConnectionTest.NewHandler 224 uc = url.openConnection(); 226 uc2 = url2.openConnection(); 228 uc3 = url3.openConnection(); 231 fileURLCon = fileURL.openConnection(); 290 new URL("http://localhost:" + port + path).openConnection(); 368 URLConnection fakeCon = url.openConnection(); 857 URLConnection urlCon = url.openConnection(); 874 URLConnection urlCon = url.openConnection(); 1014 URLConnection uc = new URL("http://localhost").openConnection(); [all …]
|
D | ContentHandlerTest.java | 34 URLConnection conn = new URL("http://www.apache.org").openConnection(); in test_getContent()
|
/libcore/luni/src/main/java/libcore/net/http/ |
D | HttpURLConnectionFactory.java | 106 public URLConnection openConnection(@NonNull URL url, @NonNull SocketFactory socketFactory, in openConnection() method in HttpURLConnectionFactory 108 return mFactory.openConnection(url, socketFactory, proxy); in openConnection()
|
/libcore/luni/src/test/java/libcore/libcore/io/ |
D | ClassPathURLStreamHandlerTest.java | 158 standardUrl.openConnection().connect(); in assertOpenConnectionConnectFails() 165 actualUrl.openConnection().connect(); in assertOpenConnectionConnectFails() 174 URLConnection standardUrlConnection = standardUrl.openConnection(); in assertOpenConnectionOk() 178 URLConnection actualUrlConnection = actualUrl.openConnection(); in assertOpenConnectionOk()
|
/libcore/luni/src/test/java/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
|
/libcore/luni/src/test/java/libcore/java/net/customstreamhandler/http/ |
D | Handler.java | 30 @Override protected URLConnection openConnection(URL url) throws IOException { in openConnection() method in Handler
|
/libcore/ojluni/src/main/java/java/net/ |
D | URL.java | 1005 public URLConnection openConnection() throws java.io.IOException { in openConnection() method in URL 1006 return handler.openConnection(this); in openConnection() 1038 public URLConnection openConnection(Proxy proxy) in openConnection() method in URL 1055 return handler.openConnection(this, p); in openConnection() 1072 return openConnection().getInputStream(); in openStream() 1086 return openConnection().getContent(); in getContent() 1105 return openConnection().getContent(classes); in getContent()
|
/libcore/ojluni/src/main/java/javax/crypto/ |
D | JarVerifier.java | 93 (JarURLConnection) url.openConnection(); in verify()
|