/external/chromium_org/third_party/libxml/src/ |
D | uri.c | 21 static void xmlCleanURI(xmlURIPtr uri); 177 xmlParse3986Scheme(xmlURIPtr uri, const char **str) { in xmlParse3986Scheme() argument 189 if (uri != NULL) { in xmlParse3986Scheme() 190 if (uri->scheme != NULL) xmlFree(uri->scheme); in xmlParse3986Scheme() 191 uri->scheme = STRNDUP(*str, cur - *str); in xmlParse3986Scheme() 213 xmlParse3986Fragment(xmlURIPtr uri, const char **str) in xmlParse3986Fragment() argument 224 ((uri != NULL) && (uri->cleanup & 1) && (IS_UNWISE(cur)))) in xmlParse3986Fragment() 226 if (uri != NULL) { in xmlParse3986Fragment() 227 if (uri->fragment != NULL) in xmlParse3986Fragment() 228 xmlFree(uri->fragment); in xmlParse3986Fragment() [all …]
|
D | testURI.c | 25 xmlURIPtr uri; in handleURI() local 28 uri = xmlCreateURI(); in handleURI() 31 ret = xmlParseURIReference(uri, str); in handleURI() 36 if (uri->scheme) printf("scheme: %s\n", uri->scheme); in handleURI() 37 if (uri->opaque) printf("opaque: %s\n", uri->opaque); in handleURI() 38 if (uri->authority) printf("authority: %s\n", uri->authority); in handleURI() 39 if (uri->server) printf("server: %s\n", uri->server); in handleURI() 40 if (uri->user) printf("user: %s\n", uri->user); in handleURI() 41 if (uri->port != 0) printf("port: %d\n", uri->port); in handleURI() 42 if (uri->path) printf("path: %s\n", uri->path); in handleURI() [all …]
|
/external/libxml2/ |
D | uri.c | 52 static void xmlCleanURI(xmlURIPtr uri); 208 xmlParse3986Scheme(xmlURIPtr uri, const char **str) { in xmlParse3986Scheme() argument 220 if (uri != NULL) { in xmlParse3986Scheme() 221 if (uri->scheme != NULL) xmlFree(uri->scheme); in xmlParse3986Scheme() 222 uri->scheme = STRNDUP(*str, cur - *str); in xmlParse3986Scheme() 244 xmlParse3986Fragment(xmlURIPtr uri, const char **str) in xmlParse3986Fragment() argument 255 ((uri != NULL) && (uri->cleanup & 1) && (IS_UNWISE(cur)))) in xmlParse3986Fragment() 257 if (uri != NULL) { in xmlParse3986Fragment() 258 if (uri->fragment != NULL) in xmlParse3986Fragment() 259 xmlFree(uri->fragment); in xmlParse3986Fragment() [all …]
|
/external/chromium_org/chrome/android/javatests/src/org/chromium/chrome/browser/ |
D | UrlUtilitiesTest.java | 67 URI uri; in testFixUrl() local 68 uri = new URI(UrlUtilities.fixUrl("google.com")); in testFixUrl() 69 assertTrue("http".equals(uri.getScheme())); in testFixUrl() 70 uri = new URI(UrlUtilities.fixUrl("\n://user:pass@example.com:80/")); in testFixUrl() 71 assertTrue("http".equals(uri.getScheme())); in testFixUrl() 72 uri = new URI(UrlUtilities.fixUrl("inline:google.com")); in testFixUrl() 73 assertTrue("inline".equals(uri.getScheme())); in testFixUrl() 74 uri = new URI(UrlUtilities.fixUrl("chrome:user:pass@google:443/leg:foot")); in testFixUrl() 75 assertTrue("chrome".equals(uri.getScheme())); in testFixUrl() 76 uri = new URI(UrlUtilities.fixUrl("https://mail.google.com:/")); in testFixUrl() [all …]
|
/external/apache-xml/src/main/java/org/apache/xalan/extensions/ |
D | ExtensionNamespacesManager.java | 210 String uri = Constants.S_EXTENSIONS_JAVA_URL; in setPredefinedNamespaces() local 214 m_predefExtensions.add(new ExtensionNamespaceSupport(uri, handlerClassName, in setPredefinedNamespaces() 215 new Object[]{uri, lang, lib})); in setPredefinedNamespaces() 217 uri = Constants.S_EXTENSIONS_OLD_JAVA_URL; in setPredefinedNamespaces() 218 m_predefExtensions.add(new ExtensionNamespaceSupport(uri, handlerClassName, in setPredefinedNamespaces() 219 new Object[]{uri, lang, lib})); in setPredefinedNamespaces() 221 uri = Constants.S_EXTENSIONS_LOTUSXSL_JAVA_URL; in setPredefinedNamespaces() 222 m_predefExtensions.add(new ExtensionNamespaceSupport(uri, handlerClassName, in setPredefinedNamespaces() 223 new Object[]{uri, lang, lib})); in setPredefinedNamespaces() 225 uri = Constants.S_BUILTIN_EXTENSIONS_URL; in setPredefinedNamespaces() [all …]
|
/external/chromium_org/android_webview/java/src/org/chromium/android_webview/ |
D | AndroidProtocolHandler.java | 42 Uri uri = verifyUrl(url); in open() local 43 if (uri == null) { in open() 47 String path = uri.getPath(); in open() 48 if (uri.getScheme().equals(FILE_SCHEME)) { in open() 50 return openAsset(context, uri); in open() 52 return openResource(context, uri); in open() 54 } else if (uri.getScheme().equals(CONTENT_SCHEME)) { in open() 55 return openContent(context, uri); in open() 78 private static InputStream openResource(Context context, Uri uri) { in openResource() argument 79 assert uri.getScheme().equals(FILE_SCHEME); in openResource() [all …]
|
/external/chromium_org/chrome/android/java/src/org/chromium/chrome/browser/ |
D | UrlUtilities.java | 38 public static boolean isAcceptedScheme(URI uri) { in isAcceptedScheme() argument 39 return ACCEPTED_SCHEMES.contains(uri.getScheme()); in isAcceptedScheme() 47 public static boolean isAcceptedScheme(String uri) { in isAcceptedScheme() argument 49 return isAcceptedScheme(new URI(uri)); in isAcceptedScheme() 60 public static boolean isDownloadableScheme(URI uri) { in isDownloadableScheme() argument 61 return DOWNLOADABLE_SCHEMES.contains(uri.getScheme()); in isDownloadableScheme() 69 public static boolean isDownloadableScheme(String uri) { in isDownloadableScheme() argument 71 return isDownloadableScheme(new URI(uri)); in isDownloadableScheme() 82 public static String fixUrl(String uri) { in fixUrl() argument 83 if (uri == null) return null; in fixUrl() [all …]
|
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
D | ShadowContentResolver.java | 44 public final Uri uri; field in ShadowContentResolver.NotifiedUri 48 public NotifiedUri(Uri uri, ContentObserver observer, boolean syncToNetwork) { in NotifiedUri() argument 49 this.uri = uri; in NotifiedUri() 64 public final InputStream openInputStream(final Uri uri) { in openInputStream() argument 73 return "stream for " + uri; in openInputStream() 79 public final OutputStream openOutputStream(final Uri uri) { 88 return "outputstream for " + uri; 106 public int update(Uri uri, ContentValues values, String where, String[] selectionArgs) { 107 ContentProvider provider = getProvider(uri); 109 return provider.update(uri, values, where, selectionArgs); [all …]
|
D | ShadowContentProviderOperation.java | 19 private Uri uri; field in ShadowContentProviderOperation 25 public static Builder newInsert(Uri uri) { in newInsert() argument 28 shadowBuilder.setUri(uri); in newInsert() 34 public static Builder newUpdate(Uri uri) { in newUpdate() argument 37 shadowBuilder.setUri(uri); in newUpdate() 43 public static Builder newDelete(Uri uri) { in newDelete() argument 46 shadowBuilder.setUri(uri); in newDelete() 53 return uri; in getUri() 56 public void setUri(Uri uri) { in setUri() argument 57 this.uri = uri; in setUri()
|
/external/chromium_org/net/proxy/ |
D | proxy_server_unittest.cc | 163 net::ProxyServer uri = in TEST() local 166 EXPECT_TRUE(uri.is_valid()); in TEST() 167 EXPECT_FALSE(uri.is_direct()); in TEST() 168 EXPECT_EQ(tests[i].expected_uri, uri.ToURI()); in TEST() 169 EXPECT_EQ(tests[i].expected_scheme, uri.scheme()); in TEST() 170 EXPECT_EQ(tests[i].expected_host, uri.host_port_pair().host()); in TEST() 171 EXPECT_EQ(tests[i].expected_port, uri.host_port_pair().port()); in TEST() 172 EXPECT_EQ(tests[i].expected_pac_string, uri.ToPacString()); in TEST() 184 net::ProxyServer uri = in TEST() local 186 EXPECT_TRUE(uri.is_valid()); in TEST() [all …]
|
/external/chromium_org/third_party/libxslt/libxslt/ |
D | security.c | 371 xmlURIPtr uri; in xsltCheckWrite() local 374 uri = xmlParseURI((const char *)URL); in xsltCheckWrite() 375 if (uri == NULL) { in xsltCheckWrite() 376 uri = xmlCreateURI(); in xsltCheckWrite() 377 if (uri == NULL) { in xsltCheckWrite() 382 uri->path = (char *)xmlStrdup(URL); in xsltCheckWrite() 384 if ((uri->scheme == NULL) || in xsltCheckWrite() 385 (xmlStrEqual(BAD_CAST uri->scheme, BAD_CAST "file"))) { in xsltCheckWrite() 388 if ((uri->path)&&(uri->path[0]=='/')&& in xsltCheckWrite() 389 (uri->path[1]!='\0')&&(uri->path[2]==':')) in xsltCheckWrite() [all …]
|
/external/apache-xml/src/main/java/org/apache/xml/utils/ |
D | NamespaceSupport2.java | 195 public boolean declarePrefix (String prefix, String uri) in declarePrefix() argument 200 currentContext.declarePrefix(prefix, uri); in declarePrefix() 313 public String getPrefix (String uri) in getPrefix() argument 315 return currentContext.getPrefix(uri); in getPrefix() 339 public Enumeration getPrefixes (String uri) in getPrefixes() argument 351 return new PrefixForUriEnumerator(this,uri,getPrefixes()); in getPrefixes() 391 private String uri; field in PrefixForUriEnumerator 397 PrefixForUriEnumerator(NamespaceSupport2 nsup,String uri, Enumeration allPrefixes) in PrefixForUriEnumerator() argument 400 this.uri=uri; in PrefixForUriEnumerator() 412 if(uri.equals(nsup.getURI(prefix))) in hasMoreElements() [all …]
|
/external/nist-sip/java/gov/nist/javax/sip/address/ |
D | AddressFactoryImpl.java | 76 javax.sip.address.URI uri) { in createAddress() argument 77 if (uri == null) in createAddress() 82 addressImpl.setURI(uri); in createAddress() 91 public javax.sip.address.SipURI createSipURI(String uri) in createSipURI() argument 94 if (uri == null) in createSipURI() 98 SipUri sipUri = smp.parseSIPUrl(uri); in createSipURI() 147 public javax.sip.address.TelURL createTelURL(String uri) in createTelURL() argument 149 if (uri == null) in createTelURL() 151 String telUrl = "tel:" + uri; in createTelURL() 161 public javax.sip.address.Address createAddress(javax.sip.address.URI uri) { in createAddress() argument [all …]
|
D | RFC2396UrlDecoder.java | 51 public static String decode(String uri) { in decode() argument 52 StringBuffer translatedUri = new StringBuffer(uri.length()); in decode() 53 byte[] encodedchars = new byte[uri.length() / 3]; in decode() 55 int length = uri.length(); in decode() 58 if (uri.charAt(i) == '%') { in decode() 61 while (i < length && uri.charAt(i) == '%') { in decode() 64 byte x = (byte)Integer.parseInt(uri.substring(i + 1, i + 3), 16); in decode() 67 …throw new IllegalArgumentException("Illegal hex characters in pattern %" + uri.substring(i + 1, i … in decode() 85 translatedUri.append(uri.charAt(i)); in decode()
|
/external/tagsoup/src/org/ccil/cowan/tagsoup/ |
D | XMLWriter.java | 424 public void setPrefix (String uri, String prefix) in setPrefix() argument 426 prefixTable.put(uri, prefix); in setPrefix() 437 public String getPrefix (String uri) in getPrefix() argument 439 return (String)prefixTable.get(uri); in getPrefix() 459 public void forceNSDecl (String uri) in forceNSDecl() argument 461 forcedDeclTable.put(uri, Boolean.TRUE); in forceNSDecl() 478 public void forceNSDecl (String uri, String prefix) in forceNSDecl() argument 480 setPrefix(uri, prefix); in forceNSDecl() 481 forceNSDecl(uri); in forceNSDecl() 573 public void startElement (String uri, String localName, in startElement() argument [all …]
|
/external/nist-sip/java/gov/nist/javax/sip/header/ |
D | AlertInfo.java | 55 protected GenericURI uri; field in AlertInfo 72 if (uri != null) { in encodeBody() 73 encoding.append(LESS_THAN).append(uri.encode()).append(GREATER_THAN); in encodeBody() 87 public void setAlertInfo(URI uri) { in setAlertInfo() argument 88 this.uri = (GenericURI) uri; in setAlertInfo() 106 if (this.uri != null) { in getAlertInfo() 107 alertInfoUri = (URI) this.uri; in getAlertInfo() 121 if (this.uri != null) { in clone() 122 retval.uri = (GenericURI) this.uri.clone(); in clone()
|
D | RequestLine.java | 51 protected GenericURI uri; field in RequestLine 81 if (uri != null) { in encode() 82 uri.encode(buffer); in encode() 94 return uri; in getUri() 100 this.uri = requestURI; in RequestLine() 122 public void setUri(URI uri) { in setUri() argument 123 this.uri = (GenericURI)uri; in setUri() 199 && this.uri.equals(that.uri) in equals() 209 if (this.uri != null) in clone() 210 retval.uri = (GenericURI) this.uri.clone(); in clone()
|
/external/nanohttpd/webserver/src/main/java/fi/iki/elonen/ |
D | SimpleWebServer.java | 226 private String encodeUri(String uri) { in encodeUri() argument 228 StringTokenizer st = new StringTokenizer(uri, "/ ", true); in encodeUri() 248 String uri = session.getUri(); in serve() local 251 System.out.println(session.getMethod() + " '" + uri + "' "); in serve() 271 return respond(Collections.unmodifiableMap(header), session, uri); in serve() 274 private Response respond(Map<String, String> headers, IHTTPSession session, String uri) { in respond() argument 276 uri = uri.trim().replace(File.separatorChar, '/'); in respond() 277 if (uri.indexOf('?') >= 0) { in respond() 278 uri = uri.substring(0, uri.indexOf('?')); in respond() 282 if (uri.startsWith("src/main") || uri.endsWith("src/main") || uri.contains("../")) { in respond() [all …]
|
/external/chromium_org/v8/src/ |
D | uri.js | 184 function Encode(uri, unescape) { argument 185 var uriLength = uri.length; 189 var cc1 = uri.charCodeAt(k); 199 var cc2 = uri.charCodeAt(k); 214 function Decode(uri, reserved) { argument 215 var uriLength = uri.length; 222 var code = uri.charCodeAt(k); 225 var cc = URIHexCharsToCharCode(uri.charCodeAt(k+1), uri.charCodeAt(k+2)); 229 %_OneByteSeqStringSetChar(index++, uri.charCodeAt(k+1), one_byte); 230 %_OneByteSeqStringSetChar(index++, uri.charCodeAt(k+2), one_byte); [all …]
|
/external/chromium_org/chrome/common/extensions/docs/examples/apps/hello-python/httplib2/ |
D | iri2uri.py | 65 def iri2uri(uri): argument 69 if isinstance(uri ,unicode): 70 (scheme, authority, path, query, fragment) = urlparse.urlsplit(uri) 75 uri = urlparse.urlunsplit((scheme, authority, path, query, fragment)) 76 uri = "".join([encode(c) for c in uri]) 77 return uri 95 for uri in invariant: 96 self.assertEqual(uri, iri2uri(uri))
|
/external/apache-http/src/org/apache/http/message/ |
D | BasicHttpRequest.java | 57 private final String uri; field in BasicHttpRequest 59 public BasicHttpRequest(final String method, final String uri) { in BasicHttpRequest() argument 64 if (uri == null) { in BasicHttpRequest() 68 this.uri = uri; in BasicHttpRequest() 72 public BasicHttpRequest(final String method, final String uri, final ProtocolVersion ver) { in BasicHttpRequest() argument 73 this(new BasicRequestLine(method, uri, ver)); in BasicHttpRequest() 83 this.uri = requestline.getUri(); in BasicHttpRequest() 99 return new BasicRequestLine(this.method, this.uri, ver); in getRequestLine()
|
/external/glide/library/src/main/java/com/bumptech/glide/load/data/ |
D | MediaStoreThumbFetcher.java | 88 private static boolean isMediaStoreUri(Uri uri) { in isMediaStoreUri() argument 89 return uri != null in isMediaStoreUri() 90 && ContentResolver.SCHEME_CONTENT.equals(uri.getScheme()) in isMediaStoreUri() 91 && MediaStore.AUTHORITY.equals(uri.getAuthority()); in isMediaStoreUri() 94 private static boolean isMediaStoreVideo(Uri uri) { in isMediaStoreVideo() argument 95 return isMediaStoreUri(uri) && uri.getPathSegments().contains("video"); in isMediaStoreVideo() 113 public Cursor query(Context context, Uri uri); in query() argument 130 public InputStream open(Context context, Uri uri) throws FileNotFoundException { in open() argument 134 final Cursor cursor = query.query(context, uri); in open() 160 public Cursor query(Context context, Uri uri) { in query() argument [all …]
|
/external/apache-xml/src/main/java/org/apache/xml/serializer/ |
D | SerializerBase.java | 289 final String uri = m_prefixMap.lookupNamespace(prefix); in patchName() local 290 if (uri != null && uri.length() == 0) { in patchName() 364 String uri, in addAttribute() argument 374 addAttributeAlways(uri, localName, rawName, type, value, XSLAttribute); in addAttribute() 394 String uri, in addAttributeAlways() argument 412 if (localName == null || uri == null || uri.length() == 0) in addAttributeAlways() 415 index = m_attributes.getIndex(uri,localName); in addAttributeAlways() 429 m_attributes.addAttribute(uri, localName, rawName, type, value); in addAttributeAlways() 450 final String uri = getNamespaceURI(patchedName, false); in addAttribute() local 452 addAttributeAlways(uri,localName, patchedName, "CDATA", value, false); in addAttribute() [all …]
|
/external/apache-http/src/org/apache/http/impl/client/ |
D | DefaultRedirectHandler.java | 117 URI uri; in getLocationURI() local 119 uri = new URI(location); in getLocationURI() 127 if (!uri.isAbsolute()) { in getLocationURI() 130 + uri + "' not allowed"); in getLocationURI() 146 uri = URIUtils.resolve(absoluteRequestURI, uri); in getLocationURI() 163 if (uri.getFragment() != null) { in getLocationURI() 166 uri.getHost(), in getLocationURI() 167 uri.getPort(), in getLocationURI() 168 uri.getScheme()); in getLocationURI() 169 redirectURI = URIUtils.rewriteURI(uri, target, true); in getLocationURI() [all …]
|
/external/apache-http/src/org/apache/http/client/utils/ |
D | URIUtils.java | 132 final URI uri, in rewriteURI() argument 135 if (uri == null) { in rewriteURI() 143 uri.getRawPath(), in rewriteURI() 144 uri.getRawQuery(), in rewriteURI() 145 dropFragment ? null : uri.getRawFragment()); in rewriteURI() 151 uri.getRawPath(), in rewriteURI() 152 uri.getRawQuery(), in rewriteURI() 153 dropFragment ? null : uri.getRawFragment()); in rewriteURI() 163 final URI uri, in rewriteURI() argument 165 return rewriteURI(uri, target, false); in rewriteURI()
|