/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/ |
D | URLTest.java | 70 assertEquals("u returns a wrong protocol", "http", u.getProtocol()); in test_ConstructorLjava_lang_String() 79 assertEquals("u1 returns a wrong protocol", "http", u1.getProtocol()); in test_ConstructorLjava_lang_String() 88 assertEquals("u2 returns a wrong protocol", "http", u2.getProtocol()); in test_ConstructorLjava_lang_String() 97 assertEquals("u2a returns a wrong protocol", "file", u2a.getProtocol()); in test_ConstructorLjava_lang_String() 107 assertEquals("u3 returns a wrong protocol", "http", u3.getProtocol()); in test_ConstructorLjava_lang_String() 115 assertEquals("u3a returns a wrong protocol", "file", u3a.getProtocol()); in test_ConstructorLjava_lang_String() 124 assertEquals("u3b returns a wrong protocol", "file", u3b.getProtocol()); in test_ConstructorLjava_lang_String() 134 assertEquals("u4 returns a wrong protocol", "http", u4.getProtocol()); in test_ConstructorLjava_lang_String() 142 assertEquals("u5 returns a wrong protocol", "file", u5.getProtocol()); in test_ConstructorLjava_lang_String() 149 assertEquals("u5a returns a wrong protocol", "file", u5a.getProtocol()); in test_ConstructorLjava_lang_String() [all …]
|
/libcore/luni/src/test/java/libcore/java/net/ |
D | OldURLTest.java | 70 assertEquals("Assert 0: wrong protocol", "http", testURL.getProtocol()); in test_ConstructorLjava_lang_StringLjava_lang_StringLjava_lang_String() 154 assertEquals("Assert 0: wrong protocol", "ftp", testURL.getProtocol()); in testURLString() 179 .getProtocol()); in testURLURLString() 184 assertEquals(gamelanNetwork.getProtocol(), gamelanNetworBottom2.getProtocol()); in testURLURLString() 192 gamelanNetworkBottom3.getProtocol()); in testURLURLString() 210 assertTrue("someFancyNewProt".equalsIgnoreCase(u.getProtocol())); in testURLURLString() 446 assertTrue("http".equalsIgnoreCase(testHTTPURL.getProtocol())); in testGetProtocol() 447 assertTrue("https".equalsIgnoreCase(testHTTPSURL.getProtocol())); in testGetProtocol() 448 assertTrue("ftp".equalsIgnoreCase(testFTPURL.getProtocol())); in testGetProtocol() 449 assertTrue("file".equalsIgnoreCase(testFile.getProtocol())); in testGetProtocol() [all …]
|
D | URLTest.java | 46 assertEquals("http", url.getProtocol()); in testUrlParts() 264 asList(url.getProtocol(), url.getHost(), url.getPort(), url.getAuthority(), in assertFields() 305 assertEquals("http", url.getProtocol()); in testNoHost() 326 assertEquals("http", url.getProtocol()); in testEmptyHostAndNoPath() 340 assertEquals("http", url.getProtocol()); in testNoHostAndNoPath() 731 assertEquals("http", url.getProtocol()); in testComposeUrl() 740 assertEquals("http", url.getProtocol()); in testComposeUrlWithNullHost() 839 assertEquals("http", url.getProtocol()); in testUrlDoesNotEncodeParts() 849 assertEquals("http", url.getProtocol()); in testSchemeCaseIsCanonicalized()
|
/libcore/ojluni/src/main/java/java/net/ |
D | URLStreamHandler.java | 124 String protocol = u.getProtocol(); in parseURL() 416 u.getProtocol(), in hashCode() 435 if (!((u1.getProtocol() == u2.getProtocol()) || in sameFile() 436 (u1.getProtocol() != null && in sameFile() 437 u1.getProtocol().equalsIgnoreCase(u2.getProtocol())))) in sameFile() 513 int len = u.getProtocol().length() + 1; in toExternalForm() 528 result.append(u.getProtocol()); in toExternalForm() 574 u.set(u.getProtocol(), host, port, authority, userInfo, path, query, ref); in setURL()
|
D | URL.java | 808 public String getProtocol() { in getProtocol() method in URL 1395 handler = getURLStreamHandler(tempState.getProtocol()); in readResolve() 1409 String protocol = tempState.getProtocol(); in setDeserializedFields() 1572 String getProtocol() {
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/ |
D | SSLContext1Test.java | 107 sslContext.getProtocol()); in test_ConstructorLjavax_net_ssl_SSLContextSpiLjava_security_ProviderLjava_lang_String() 125 assertNull("Incorrect protocol", sslContext.getProtocol()); in test_ConstructorLjavax_net_ssl_SSLContextSpiLjava_security_ProviderLjava_lang_String() 205 sslContext.getProtocol()); in test_getInstanceLjava_lang_String01() 322 validValues[i], sslContext.getProtocol()); in test_getInstanceLjava_lang_StringLjava_lang_String04() 386 assertEquals("Invalid protocol", validValues[i], sslContext.getProtocol()); in test_getInstanceLjava_lang_StringLjava_security_Provider03() 403 defaultProtocol, sslContext.getProtocol()); in test_getProtocol() 406 assertNull("Incorrect protocol", sslContext.getProtocol()); in test_getProtocol() 409 defaultProtocol, sslContext.getProtocol()); in test_getProtocol() 412 defaultProtocol, sslContext.getProtocol()); in test_getProtocol() 415 defaultProtocol, sslContext.getProtocol()); in test_getProtocol()
|
D | SSLContext2Test.java | 171 assertEquals("Incorrect protocol", sslC.getProtocol(), validValues[i]); in test_getInstanceLjava_lang_String() 235 assertEquals("Incorrect protocol", sslC.getProtocol(), validValues[i]); in test_getInstanceLjava_lang_StringLjava_lang_String() 281 assertEquals("Incorrect protocol", sslC.getProtocol(), validValues[i]); in test_getInstanceLjava_lang_StringLjava_security_Provider()
|
D | SSLSessionBindingEventTest.java | 184 public String getProtocol() { in getProtocol() method in MySSLSession
|
D | SSLSessionTest.java | 166 assertEquals("TLSv1.3", clientSession.getProtocol()); in test_getProtocol() 647 assertEquals(a.getProtocol(), b.getProtocol()); in assertSSLSessionsEqual()
|
/libcore/ojluni/src/main/java/sun/net/www/protocol/jar/ |
D | Handler.java | 62 if (!u1.getProtocol().equals("jar") || !u2.getProtocol().equals("jar")) in sameFile() 99 String protocol = u.getProtocol(); in hashCode()
|
D | URLJarFile.java | 99 if (url.getProtocol().equalsIgnoreCase("file")) { in isFileURL()
|
/libcore/ojluni/src/main/java/javax/net/ssl/ |
D | SSLSession.java | 334 public String getProtocol(); in getProtocol() method
|
D | SSLContext.java | 294 public final String getProtocol() { in getProtocol() method in SSLContext
|
/libcore/ojluni/src/main/java/sun/net/util/ |
D | URLUtil.java | 47 String protocol = url.getProtocol(); in urlNoFragString()
|
/libcore/support/src/test/java/libcore/javax/net/ssl/ |
D | FakeSSLSession.java | 83 public String getProtocol() { in getProtocol() method in FakeSSLSession
|
/libcore/ojluni/src/main/java/javax/crypto/ |
D | JarVerifier.java | 81 final URL url = jarURL.getProtocol().equalsIgnoreCase("jar")? in verify()
|
/libcore/benchmarks/src/benchmarks/regression/ |
D | HostnameVerifierBenchmark.java | 141 public String getProtocol() { in getProtocol() method in HostnameVerifierBenchmark.FakeSSLSession
|
/libcore/support/src/test/java/org/apache/harmony/xnet/tests/support/ |
D | mySSLSession.java | 117 public String getProtocol() { in getProtocol() method in mySSLSession
|
/libcore/dom/src/test/java/org/w3c/domts/ |
D | DOMTest.java | 85 if (resolvedURI.getProtocol() != null) { in resolveURI()
|
/libcore/luni/src/test/java/tests/org/w3c/dom/ |
D | DOMTestCase.java | 57 if (resolvedURI.getProtocol() != null) { in resolveURI()
|
/libcore/ojluni/src/main/java/sun/misc/ |
D | URLClassPath.java | 578 if ("file".equals(url.getProtocol())) { 882 return "file".equals(url.getProtocol()); 1257 if (!"file".equals(url.getProtocol())) {
|
/libcore/ojluni/annotations/hiddenapi/java/net/ |
D | URL.java | 120 public java.lang.String getProtocol() { in getProtocol() method in URL
|
/libcore/ojluni/src/main/java/sun/net/www/protocol/ftp/ |
D | FtpURLConnection.java | 189 + url.getProtocol() + "://" + host in FtpURLConnection()
|
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/net/ |
D | URLConnectionTest.java | 1235 assertEquals("file", con1.getURL().getProtocol()); // http://b/119607552 1257 assertEquals("file", con1.getURL().getProtocol()); // http://b/119607552
|
/libcore/luni/src/test/java/libcore/javax/net/ssl/ |
D | DefaultHostnameVerifierTest.java | 520 public String getProtocol() { in getProtocol() method in DefaultHostnameVerifierTest.StubSSLSession
|