/libcore/luni/src/main/java/java/net/ |
D | URL.java | 84 private String protocol; field in URL 159 protocol = UrlUtils.getSchemePrefix(spec); in URL() 160 int schemeSpecificPartStart = protocol != null ? (protocol.length() + 1) : 0; in URL() 163 if (protocol != null && context != null && !protocol.equals(context.protocol)) { in URL() 169 set(context.protocol, context.getHost(), context.getPort(), context.getAuthority(), in URL() 175 } else if (protocol == null) { in URL() 182 throw new MalformedURLException("Unknown protocol: " + protocol); in URL() 201 public URL(String protocol, String host, String file) throws MalformedURLException { in URL() argument 202 this(protocol, host, -1, file, null); in URL() 215 public URL(String protocol, String host, int port, String file) throws MalformedURLException { in URL() argument [all …]
|
D | Authenticator.java | 39 private String protocol; field in Authenticator 93 return this.protocol; in getRequestingProtocol() 133 thisAuthenticator.protocol = rProtocol; in requestPasswordAuthentication() 184 thisAuthenticator.protocol = rProtocol; in requestPasswordAuthentication() 239 thisAuthenticator.protocol = rProtocol; in requestPasswordAuthentication()
|
D | URLStreamHandlerFactory.java | 34 URLStreamHandler createURLStreamHandler(String protocol); in createURLStreamHandler() argument
|
D | URLStreamHandler.java | 231 protected void setURL(URL u, String protocol, String host, int port, in setURL() argument 236 u.set(protocol, host, port, file, ref); in setURL() 243 protected void setURL(URL u, String protocol, String host, int port, in setURL() argument 249 u.set(protocol, host, port, authority, userInfo, path, query, ref); in setURL()
|
D | URLClassLoader.java | 408 String protocol = url.getProtocol(); in getSubHandler() local 409 if (protocol.equals("jar")) { in getSubHandler() 411 } else if (protocol.equals("file")) { in getSubHandler() 768 String protocol = url.getProtocol(); in createSearchURL() local 770 if (isDirectory(url) || protocol.equals("jar")) { in createSearchURL() 829 String protocol = nextCandidate.getProtocol(); in makeNewHandler() local 830 if (protocol.equals("jar")) { in makeNewHandler() 832 } else if (protocol.equals("file")) { in makeNewHandler()
|
/libcore/luni/src/test/java/libcore/javax/net/ssl/ |
D | SSLContextTest.java | 72 for (String protocol : StandardNames.SSL_CONTEXT_PROTOCOLS) { in test_SSLContext_setDefault() 75 SSLContext newContext = SSLContext.getInstance(protocol); in test_SSLContext_setDefault() 87 for (String protocol : StandardNames.SSL_CONTEXT_PROTOCOLS) { in test_SSLContext_defaultConfiguration() 88 SSLContext sslContext = SSLContext.getInstance(protocol); in test_SSLContext_defaultConfiguration() 89 if (!protocol.equals(StandardNames.SSL_CONTEXT_PROTOCOLS_DEFAULT)) { in test_SSLContext_defaultConfiguration() 190 for (String protocol : StandardNames.SSL_CONTEXT_PROTOCOLS) { in test_SSLContext_getInstance() 191 assertNotNull(SSLContext.getInstance(protocol)); in test_SSLContext_getInstance() 192 assertNotSame(SSLContext.getInstance(protocol), in test_SSLContext_getInstance() 193 SSLContext.getInstance(protocol)); in test_SSLContext_getInstance() 206 for (String protocol : StandardNames.SSL_CONTEXT_PROTOCOLS) { in test_SSLContext_getInstance() [all …]
|
D | SSLEngineTest.java | 401 for (String protocol : e.getSupportedProtocols()) { in test_SSLEngine_setEnabledProtocols() 402 if ("SSLv2Hello".equals(protocol)) { in test_SSLEngine_setEnabledProtocols() 404 e.setEnabledProtocols(new String[] { protocol }); in test_SSLEngine_setEnabledProtocols() 408 String[] protocols = new String[] { protocol }; in test_SSLEngine_setEnabledProtocols()
|
D | SSLSocketTest.java | 291 for (String protocol : ssl.getSupportedProtocols()) { in test_SSLSocket_setEnabledProtocols() 292 if ("SSLv2Hello".equals(protocol)) { in test_SSLSocket_setEnabledProtocols() 294 ssl.setEnabledProtocols(new String[] { protocol }); in test_SSLSocket_setEnabledProtocols() 298 String[] protocols = new String[] { protocol }; in test_SSLSocket_setEnabledProtocols()
|
/libcore/luni/src/main/java/javax/net/ssl/ |
D | SSLContext.java | 134 public static SSLContext getInstance(String protocol) throws NoSuchAlgorithmException { in getInstance() argument 135 if (protocol == null) { in getInstance() 138 Engine.SpiAndProvider sap = ENGINE.getInstance(protocol, null); in getInstance() 139 return new SSLContext((SSLContextSpi) sap.spi, sap.provider, protocol); in getInstance() 233 public static SSLContext getInstance(String protocol, String provider) in getInstance() argument 245 return getInstance(protocol, impProvider); in getInstance() 264 public static SSLContext getInstance(String protocol, Provider provider) in getInstance() argument 269 if (protocol == null) { in getInstance() 272 Object spi = ENGINE.getInstance(protocol, provider, null); in getInstance() 273 return new SSLContext((SSLContextSpi) spi, provider, protocol); in getInstance() [all …]
|
/libcore/luni/src/test/java/libcore/java/net/ |
D | OldURLStreamHandlerTest.java | 213 String protocol, in setURL() argument 218 super.setURL(u, protocol, host, port, file, ref); in setURL() 222 String protocol, in setURL() argument 230 super.setURL(u, protocol, host, port, authority, in setURL()
|
D | URLStreamHandlerFactoryTest.java | 113 @Override public URLStreamHandler createURLStreamHandler(String protocol) { in createURLStreamHandler() argument
|
/libcore/support/src/test/java/libcore/javax/net/ssl/ |
D | TestSSLContext.java | 154 String protocol = "TLSv1.2"; in createWithAdditionalKeyManagers() local 158 createSSLContext(protocol, clientKeyManagers, client.trustManagers); in createWithAdditionalKeyManagers() 160 createSSLContext(protocol, serverKeyManagers, server.trustManagers); in createWithAdditionalKeyManagers() 208 public static final SSLContext createSSLContext(final String protocol, in createSSLContext() argument 213 SSLContext context = SSLContext.getInstance(protocol); in createSSLContext()
|
/libcore/luni/src/main/java/libcore/io/ |
D | BlockGuardOs.java | 281 … @Override public FileDescriptor socket(int domain, int type, int protocol) throws ErrnoException { in socket() argument 282 return tagSocket(os.socket(domain, type, protocol)); in socket() 285 …@Override public void socketpair(int domain, int type, int protocol, FileDescriptor fd1, FileDescr… in socketpair() argument 286 os.socketpair(domain, type, protocol, fd1, fd2); in socketpair()
|
D | ForwardingOs.java | 150 …riptor socket(int domain, int type, int protocol) throws ErrnoException { return os.socket(domain,… in socket() argument 151 …omain, int type, int protocol, FileDescriptor fd1, FileDescriptor fd2) throws ErrnoException { os.… in socketpair() argument
|
D | Os.java | 143 public FileDescriptor socket(int domain, int type, int protocol) throws ErrnoException; in socket() argument 144 …public void socketpair(int domain, int type, int protocol, FileDescriptor fd1, FileDescriptor fd2)… in socketpair() argument
|
D | Posix.java | 224 public native FileDescriptor socket(int domain, int type, int protocol) throws ErrnoException; in socket() argument 225 …public native void socketpair(int domain, int type, int protocol, FileDescriptor fd1, FileDescript… in socketpair() argument
|
/libcore/luni/src/main/java/android/system/ |
D | Os.java | 444 …or socket(int domain, int type, int protocol) throws ErrnoException { return Libcore.os.socket(dom… in socket() argument 449 …n, int type, int protocol, FileDescriptor fd1, FileDescriptor fd2) throws ErrnoException { Libcore… in socketpair() argument
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/internal/net/www/protocol/file/ |
D | FileURLConnectionTest.java | 17 package org.apache.harmony.tests.internal.net.www.protocol.file;
|
/libcore/support/src/test/java/libcore/java/security/ |
D | StandardNames.java | 988 for (String protocol : protocols) { in assertValidProtocols() 989 if (!remainingProtocols.remove(protocol)) { in assertValidProtocols() 990 unknownProtocols.add(protocol); in assertValidProtocols()
|
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/internal/net/www/protocol/http/ |
D | HttpURLConnectionTest.java | 18 package org.apache.harmony.luni.tests.internal.net.www.protocol.http;
|
/libcore/expectations/ |
D | brokentests.txt | 134 …"org.apache.harmony.luni.tests.internal.net.www.protocol.http.HttpURLConnectionTest#testProxyAutho…
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/ |
D | URLTest.java | 1092 protected void setURL(URL u, String protocol, String host, int port, in setURL() argument 1095 super.setURL(u, protocol, host, port, authority, userInfo, in setURL()
|
/libcore/luni/src/main/native/ |
D | libcore_io_Posix.cpp | 1414 static jobject Posix_socket(JNIEnv* env, jobject, jint domain, jint type, jint protocol) { in Posix_socket() argument 1415 int fd = throwIfMinusOne(env, "socket", TEMP_FAILURE_RETRY(socket(domain, type, protocol))); in Posix_socket() 1419 static void Posix_socketpair(JNIEnv* env, jobject, jint domain, jint type, jint protocol, jobject j… in Posix_socketpair() argument 1421 … = throwIfMinusOne(env, "socketpair", TEMP_FAILURE_RETRY(socketpair(domain, type, protocol, fds))); in Posix_socketpair()
|
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/internal/net/www/protocol/https/ |
D | HttpsURLConnectionTest.java | 18 package org.apache.harmony.luni.tests.internal.net.www.protocol.https;
|