/libcore/luni/src/test/java/libcore/java/net/ |
D | URITest.java | 27 URI uri = new URI("http://username:password@host:8080/directory/file?query#ref"); in testUriParts() local 28 assertEquals("http", uri.getScheme()); in testUriParts() 29 assertEquals("username:password@host:8080", uri.getAuthority()); in testUriParts() 30 assertEquals("username:password@host:8080", uri.getRawAuthority()); in testUriParts() 31 assertEquals("username:password", uri.getUserInfo()); in testUriParts() 32 assertEquals("username:password", uri.getRawUserInfo()); in testUriParts() 33 assertEquals("host", uri.getHost()); in testUriParts() 34 assertEquals(8080, uri.getPort()); in testUriParts() 35 assertEquals("/directory/file", uri.getPath()); in testUriParts() 36 assertEquals("/directory/file", uri.getRawPath()); in testUriParts() [all …]
|
D | OldAndroidURITest.java | 32 URI uri = new URI(str); in construct() local 33 assertEquals(host, uri.getHost()); in construct() 34 assertEquals(path, uri.getPath()); in construct() 35 assertEquals(absolute, uri.isAbsolute()); in construct() 44 private static void resolve(String base, String uri, String expected) { in resolve() argument 46 URI resolved = b.resolve(uri); in resolve()
|
D | CookiesMCompatibilityTest.java | 41 URI uri = new URI("http://services.chargepoint.com"); in testCookiesWithoutLeadingPeriod() local 42 cm.put(uri, responseHeaders); in testCookiesWithoutLeadingPeriod() 53 URI uri = new URI("http://services.chargepoint.com"); in testCookiesWithLeadingPeriod() local 57 cm.put(uri, responseHeaders); in testCookiesWithLeadingPeriod()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/ |
D | URITest.java | 231 URI uri = new URI("http://host:-8096/path/index.html"); in test_ConstructorLjava_lang_String() local 232 assertEquals("Assert 2: returned wrong port value,", -1, uri.getPort()); in test_ConstructorLjava_lang_String() 233 assertNull("Assert 3: returned wrong host value,", uri.getHost()); in test_ConstructorLjava_lang_String() 235 uri.parseServerAuthority(); in test_ConstructorLjava_lang_String() 241 uri = new URI("http", "//myhost:-8096", null); in test_ConstructorLjava_lang_String() 242 assertEquals("Assert 5: returned wrong port value,", -1, uri.getPort()); in test_ConstructorLjava_lang_String() 243 assertNull("Assert 6: returned wrong host value,", uri.getHost()); in test_ConstructorLjava_lang_String() 245 uri.parseServerAuthority(); in test_ConstructorLjava_lang_String() 265 URI uri = new URI("path[one"); in test_URI_String() local 273 URI uri = new URI(" "); in test_URI_String() local [all …]
|
D | CookiePolicyTest.java | 35 URI uri = new URI(""); in test_ShouldAccept_LURI_LHttpCookie() local 45 accept = CookiePolicy.ACCEPT_ALL.shouldAccept(uri, null); in test_ShouldAccept_LURI_LHttpCookie() 55 accept = CookiePolicy.ACCEPT_NONE.shouldAccept(uri, null); in test_ShouldAccept_LURI_LHttpCookie() 59 accept = CookiePolicy.ACCEPT_ORIGINAL_SERVER.shouldAccept(uri, cookie); in test_ShouldAccept_LURI_LHttpCookie() 95 accept = CookiePolicy.ACCEPT_ORIGINAL_SERVER.shouldAccept(uri, null); in test_ShouldAccept_LURI_LHttpCookie()
|
/libcore/ojluni/src/main/java/java/security/cert/ |
D | URICertStoreParameters.java | 55 private final URI uri; field in URICertStoreParameters 69 public URICertStoreParameters(URI uri) { in URICertStoreParameters() argument 70 if (uri == null) { in URICertStoreParameters() 73 this.uri = uri; in URICertStoreParameters() 83 return uri; in getURI() 95 return new URICertStoreParameters(uri); in clone() 111 myhash = uri.hashCode()*7; in hashCode() 136 return uri.equals(other.getURI()); in equals() 147 return "URICertStoreParameters: " + uri.toString(); in toString()
|
/libcore/ojluni/src/main/java/sun/security/x509/ |
D | URIName.java | 84 private URI uri; field in URIName 107 uri = new URI(name); in URIName() 111 if (uri.getScheme() == null) { in URIName() 115 host = uri.getHost(); in URIName() 157 URI uri; in nameConstraint() local 160 uri = new URI(name); in nameConstraint() 164 if (uri.getScheme() == null) { in nameConstraint() 165 String host = uri.getSchemeSpecificPart(); in nameConstraint() 173 return new URIName(uri, host, hostDNS); in nameConstraint() 183 URIName(URI uri, String host, DNSName hostDNS) { in URIName() argument [all …]
|
/libcore/ojluni/src/main/java/java/net/ |
D | CookieManager.java | 197 get(URI uri, Map<String, List<String>> requestHeaders) in get() argument 201 if (uri == null || requestHeaders == null) { in get() 209 boolean secureLink = "https".equalsIgnoreCase(uri.getScheme()); in get() 219 for (HttpCookie cookie : cookieJar.get(uri)) { in get() 223 if (pathMatches(uri, cookie) && in get() 239 int port = uri.getPort(); in get() 241 port = "https".equals(uri.getScheme()) ? 443 : 80; in get() 263 put(URI uri, Map<String, List<String>> responseHeaders) in put() argument 267 if (uri == null || responseHeaders == null) { in put() 298 logger.severe("Invalid cookie for " + uri + ": " + headerValue); in put() [all …]
|
D | CookiePolicy.java | 43 public boolean shouldAccept(URI uri, HttpCookie cookie) { 52 public boolean shouldAccept(URI uri, HttpCookie cookie) { 61 public boolean shouldAccept(URI uri, HttpCookie cookie) { 62 if (uri == null || cookie == null) 64 return HttpCookie.domainMatches(cookie.getDomain(), uri.getHost()); 77 public boolean shouldAccept(URI uri, HttpCookie cookie); in shouldAccept() argument
|
D | InMemoryCookieStore.java | 91 public void add(URI uri, HttpCookie cookie) { in add() argument 102 addIndex(uriIndex, getEffectiveURI(uri), cookie); in add() 117 public List<HttpCookie> get(URI uri) { in get() argument 119 if (uri == null) { in get() 128 getInternal1(cookies, uriIndex, uri.getHost()); in get() 130 getInternal2(cookies, uriIndex, getEffectiveURI(uri)); in get() 210 public boolean remove(URI uri, HttpCookie ck) { in remove() argument 219 uri = getEffectiveURI(uri); in remove() 220 if (uriIndex.get(uri) == null) { in remove() 223 List<HttpCookie> cookies = uriIndex.get(uri); in remove() [all …]
|
D | CookieStore.java | 67 public void add(URI uri, HttpCookie cookie); in add() argument 85 public List<HttpCookie> get(URI uri); in get() argument 120 public boolean remove(URI uri, HttpCookie cookie); in remove() argument
|
/libcore/luni/src/main/java/javax/xml/xpath/ |
D | XPathFactory.java | 133 public static final XPathFactory newInstance(final String uri) in newInstance() argument 135 if (uri == null) { in newInstance() 138 if (uri.length() == 0) { in newInstance() 148 XPathFactory xpathFactory = new XPathFactoryFinder(classLoader).newFactory(uri); in newInstance() 152 + uri in newInstance() 165 public static XPathFactory newInstance(String uri, String factoryClassName, in newInstance() argument 167 if (uri == null) { in newInstance() 170 if (uri.length() == 0) { in newInstance() 182 if (xpathFactory == null || !xpathFactory.isObjectModelSupported(uri)) { in newInstance() 185 + uri in newInstance()
|
D | XPathFactoryFinder.java | 143 public XPathFactory newFactory(String uri) { in newFactory() argument 144 if (uri == null) { in newFactory() 147 XPathFactory f = _newFactory(uri); in newFactory() 150 debugPrintln("factory '" + f.getClass().getName() + "' was found for " + uri); in newFactory() 152 debugPrintln("unable to find a factory for " + uri); in newFactory() 163 private XPathFactory _newFactory(String uri) { in _newFactory() argument 165 String propertyName = SERVICE_CLASS.getName() + ":" + uri; in _newFactory() 203 xpf = loadFromServicesFile(uri, resource.toExternalForm(), resource.openStream()); in _newFactory() 214 if(uri.equals(XPathFactory.DEFAULT_OBJECT_MODEL_URI)) { in _newFactory() 266 private XPathFactory loadFromServicesFile(String uri, String resourceName, InputStream in) { in loadFromServicesFile() argument [all …]
|
/libcore/ojluni/src/test/java/nio/file/Path/ |
D | UriImportExport.java | 45 URI uri = path.toUri(); in testPath() local 46 Path result = Paths.get(uri); in testPath() 55 URI uri = path.toUri(); in testPath() local 56 Assert.assertEquals(uri.toString(), expectedUri); in testPath() 57 Path result = Paths.get(uri); in testPath() 65 URI uri = URI.create(s); in testUri() local 66 Path path = Paths.get(uri); in testUri() 68 Assert.assertEquals(result, uri); in testUri() 75 URI uri = URI.create(s); in testBadUri() local 77 Path path = Paths.get(uri); in testBadUri()
|
/libcore/luni/src/main/java/org/xml/sax/helpers/ |
D | NamespaceSupport.java | 294 public boolean declarePrefix (String prefix, String uri) in declarePrefix() argument 299 currentContext.declarePrefix(prefix, uri); in declarePrefix() 417 public String getPrefix (String uri) in getPrefix() argument 419 return currentContext.getPrefix(uri); in getPrefix() 446 public Enumeration getPrefixes(String uri) { in getPrefixes() argument 451 if (uri.equals(getURI(prefix))) { in getPrefixes() 604 void declarePrefix(String prefix, String uri) { in declarePrefix() argument 617 uri = uri.intern(); in declarePrefix() 619 if ("".equals(uri)) { in declarePrefix() 622 defaultNS = uri; in declarePrefix() [all …]
|
D | AttributesImpl.java | 201 public int getIndex (String uri, String localName) in getIndex() argument 205 if (data[i].equals(uri) && data[i+1].equals(localName)) { in getIndex() 242 public String getType (String uri, String localName) in getType() argument 246 if (data[i].equals(uri) && data[i+1].equals(localName)) { in getType() 284 public String getValue (String uri, String localName) in getValue() argument 288 if (data[i].equals(uri) && data[i+1].equals(localName)) { in getValue() 381 public void addAttribute (String uri, String localName, String qName, in addAttribute() argument 385 data[length*5] = uri; in addAttribute() 415 public void setAttribute (int index, String uri, String localName, in setAttribute() argument 419 data[index*5] = uri; in setAttribute() [all …]
|
/libcore/luni/src/test/java/libcore/xml/ |
D | SaxTest.java | 40 @Override public void startElement(String uri, String localName, in testNoPrefixesNoNamespaces() 42 assertEquals("", uri); in testNoPrefixesNoNamespaces() 53 @Override public void startElement(String uri, String localName, in testNoPrefixesNoNamespaces() 55 assertEquals("", uri); in testNoPrefixesNoNamespaces() 68 @Override public void startElement(String uri, String localName, in testNoPrefixesYesNamespaces() 70 assertEquals("", uri); in testNoPrefixesYesNamespaces() 81 @Override public void startElement(String uri, String localName, in testNoPrefixesYesNamespaces() 83 assertEquals("http://quux", uri); in testNoPrefixesYesNamespaces() 100 @Override public void startElement(String uri, String localName, in testYesPrefixesYesNamespaces() 102 assertEquals("", uri); in testYesPrefixesYesNamespaces() [all …]
|
/libcore/luni/src/main/java/org/apache/harmony/xml/ |
D | ExpatAttributes.java | 83 public int getIndex(String uri, String localName) { in getIndex() argument 84 if (uri == null) { in getIndex() 94 return getIndex(pointer, uri, localName); in getIndex() 108 public String getType(String uri, String localName) { in getType() argument 109 if (uri == null) { in getType() 115 return getIndex(uri, localName) == -1 ? null : CDATA; in getType() 122 public String getValue(String uri, String localName) { in getValue() argument 123 if (uri == null) { in getValue() 133 return getValue(pointer, uri, localName); in getValue() 151 private static native int getIndex(long attributePointer, String uri, String localName); in getIndex() argument [all …]
|
/libcore/ojluni/src/main/java/java/nio/file/ |
D | FileSystems.java | 217 public static FileSystem getFileSystem(URI uri) { in getFileSystem() argument 218 String scheme = uri.getScheme(); in getFileSystem() 221 return provider.getFileSystem(uri); in getFileSystem() 273 public static FileSystem newFileSystem(URI uri, Map<String,?> env) in newFileSystem() argument 276 return newFileSystem(uri, env, null); in newFileSystem() 318 public static FileSystem newFileSystem(URI uri, Map<String,?> env, ClassLoader loader) in newFileSystem() argument 321 String scheme = uri.getScheme(); in newFileSystem() 326 return provider.newFileSystem(uri, env); in newFileSystem() 336 return provider.newFileSystem(uri, env); in newFileSystem()
|
D | Paths.java | 131 public static Path get(URI uri) { in get() argument 132 String scheme = uri.getScheme(); in get() 138 return FileSystems.getDefault().provider().getPath(uri); in get() 143 return provider.getPath(uri); in get()
|
/libcore/ojluni/src/main/java/sun/security/provider/certpath/ |
D | URICertStore.java | 117 private URI uri; field in URICertStore 164 this.uri = ((URICertStoreParameters) params).uri; in URICertStore() 166 if (uri.getScheme().toLowerCase(Locale.ENGLISH).equals("ldap")) { in URICertStore() 169 ldapCertStore = ldapHelper.getCertStore(uri); in URICertStore() 170 ldapPath = uri.getPath(); in URICertStore() 192 debug.println("CertStore URI:" + params.uri); in getInstance() 219 URI uri = ((URIName) gn).getURI(); in getInstance() local 222 (new URICertStore.URICertStoreParameters(uri)); in getInstance() 277 URLConnection connection = uri.toURL().openConnection(); in engineGetCertificates() 390 URLConnection connection = uri.toURL().openConnection(); in engineGetCRLs() [all …]
|
/libcore/ojluni/src/main/java/sun/nio/fs/ |
D | UnixUriUtils.java | 44 static Path fromUri(UnixFileSystem fs, URI uri) { in fromUri() argument 45 if (!uri.isAbsolute()) in fromUri() 47 if (uri.isOpaque()) in fromUri() 49 String scheme = uri.getScheme(); in fromUri() 52 if (uri.getAuthority() != null) in fromUri() 54 if (uri.getFragment() != null) in fromUri() 56 if (uri.getQuery() != null) in fromUri() 60 if (!uri.toString().startsWith("file:///")) in fromUri() 61 return new File(uri).toPath(); in fromUri() 64 String p = uri.getRawPath(); in fromUri()
|
/libcore/luni/src/main/java/org/xml/sax/ext/ |
D | Attributes2Impl.java | 100 public boolean isDeclared (String uri, String localName) in isDeclared() argument 102 int index = getIndex (uri, localName); in isDeclared() 107 + ", namespace=" + uri); in isDeclared() 154 public boolean isSpecified (String uri, String localName) in isSpecified() argument 156 int index = getIndex (uri, localName); in isSpecified() 161 + ", namespace=" + uri); in isSpecified() 245 public void addAttribute (String uri, String localName, String qName, in addAttribute() argument 248 super.addAttribute (uri, localName, qName, type, value); in addAttribute()
|
/libcore/luni/src/test/java/tests/org/w3c/dom/ |
D | DOMTestCase.java | 109 String uri = actual; in assertURIEquals() local 117 uri = actual.substring(0, lastPound); in assertURIEquals() 124 int lastQuestion = uri.lastIndexOf("?"); in assertURIEquals() 130 uri = actual.substring(0, lastQuestion); in assertURIEquals() 137 int firstColon = uri.indexOf(":"); in assertURIEquals() 138 int firstSlash = uri.indexOf("/"); in assertURIEquals() 139 String actualPath = uri; in assertURIEquals() 142 actualScheme = uri.substring(0, firstColon); in assertURIEquals() 143 actualPath = uri.substring(firstColon + 1); in assertURIEquals()
|
/libcore/luni/src/test/filesystems/src/mypackage/ |
D | MockFileSystem.java | 32 private URI uri; field in MockFileSystem 36 public MockFileSystem(URI uri, Map<String, ?> env) { in MockFileSystem() argument 37 this.uri = uri; in MockFileSystem() 47 return uri; in getURI()
|