/external/grpc-grpc/test/core/client_channel/ |
D | uri_parser_test.cc | 33 grpc_uri* uri = grpc_uri_parse(uri_text, 0); in test_succeeds() local 34 GPR_ASSERT(uri); in test_succeeds() 35 GPR_ASSERT(0 == strcmp(scheme, uri->scheme)); in test_succeeds() 36 GPR_ASSERT(0 == strcmp(authority, uri->authority)); in test_succeeds() 37 GPR_ASSERT(0 == strcmp(path, uri->path)); in test_succeeds() 38 GPR_ASSERT(0 == strcmp(query, uri->query)); in test_succeeds() 39 GPR_ASSERT(0 == strcmp(fragment, uri->fragment)); in test_succeeds() 41 grpc_uri_destroy(uri); in test_succeeds() 53 grpc_uri* uri = grpc_uri_parse(uri_text, 0); in test_query_parts() local 54 GPR_ASSERT(uri); in test_query_parts() [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 …]
|
D | testURI.c | 26 xmlURIPtr uri; in handleURI() local 29 uri = xmlCreateURI(); in handleURI() 32 ret = xmlParseURIReference(uri, str); in handleURI() 37 if (uri->scheme) printf("scheme: %s\n", uri->scheme); in handleURI() 38 if (uri->opaque) printf("opaque: %s\n", uri->opaque); in handleURI() 39 if (uri->authority) printf("authority: %s\n", uri->authority); in handleURI() 40 if (uri->server) printf("server: %s\n", uri->server); in handleURI() 41 if (uri->user) printf("user: %s\n", uri->user); in handleURI() 42 if (uri->port != 0) printf("port: %d\n", uri->port); in handleURI() 43 if (uri->path) printf("path: %s\n", uri->path); in handleURI() [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/grpc-grpc/src/core/ext/filters/client_channel/ |
D | uri_parser.cc | 149 static void parse_query_parts(grpc_uri* uri) { in parse_query_parts() argument 152 GPR_ASSERT(uri->query != nullptr); in parse_query_parts() 153 if (uri->query[0] == '\0') { in parse_query_parts() 154 uri->query_parts = nullptr; in parse_query_parts() 155 uri->query_parts_values = nullptr; in parse_query_parts() 156 uri->num_query_parts = 0; in parse_query_parts() 160 gpr_string_split(uri->query, QUERY_PARTS_SEPARATOR, &uri->query_parts, in parse_query_parts() 161 &uri->num_query_parts); in parse_query_parts() 162 uri->query_parts_values = in parse_query_parts() 163 static_cast<char**>(gpr_malloc(uri->num_query_parts * sizeof(char**))); in parse_query_parts() [all …]
|
D | resolver_registry.cc | 65 ResolverFactory* FindResolverFactory(const char* target, grpc_uri** uri, in FindResolverFactory() argument 67 GPR_ASSERT(uri != nullptr); in FindResolverFactory() 68 *uri = grpc_uri_parse(target, 1); in FindResolverFactory() 70 *uri == nullptr ? nullptr : LookupResolverFactory((*uri)->scheme); in FindResolverFactory() 72 grpc_uri_destroy(*uri); in FindResolverFactory() 74 *uri = grpc_uri_parse(*canonical_target, 1); in FindResolverFactory() 76 *uri == nullptr ? nullptr : LookupResolverFactory((*uri)->scheme); in FindResolverFactory() 139 grpc_uri* uri = nullptr; in CreateResolver() local 142 g_state->FindResolverFactory(target, &uri, &canonical_target); in CreateResolver() 144 resolver_args.uri = uri; in CreateResolver() [all …]
|
D | parse_address.cc | 40 bool grpc_parse_unix(const grpc_uri* uri, in grpc_parse_unix() argument 42 if (strcmp("unix", uri->scheme) != 0) { in grpc_parse_unix() 43 gpr_log(GPR_ERROR, "Expected 'unix' scheme, got '%s'", uri->scheme); in grpc_parse_unix() 49 const size_t path_len = strnlen(uri->path, maxlen); in grpc_parse_unix() 52 strcpy(un->sun_path, uri->path); in grpc_parse_unix() 59 bool grpc_parse_unix(const grpc_uri* uri, in grpc_parse_unix() argument 100 bool grpc_parse_ipv4(const grpc_uri* uri, in grpc_parse_ipv4() argument 102 if (strcmp("ipv4", uri->scheme) != 0) { in grpc_parse_ipv4() 103 gpr_log(GPR_ERROR, "Expected 'ipv4' scheme, got '%s'", uri->scheme); in grpc_parse_ipv4() 106 const char* host_port = uri->path; in grpc_parse_ipv4() [all …]
|
D | http_proxy.cc | 56 grpc_uri* uri = grpc_uri_parse(uri_str, false /* suppress_errors */); in get_http_proxy_server() local 57 if (uri == nullptr || uri->authority == nullptr) { in get_http_proxy_server() 61 if (strcmp(uri->scheme, "http") != 0) { in get_http_proxy_server() 62 gpr_log(GPR_ERROR, "'%s' scheme not supported in proxy URI", uri->scheme); in get_http_proxy_server() 66 gpr_string_split(uri->authority, "@", &authority_strs, &authority_nstrs); in get_http_proxy_server() 86 grpc_uri_destroy(uri); in get_http_proxy_server() 112 grpc_uri* uri = grpc_uri_parse(server_uri, false /* suppress_errors */); in proxy_mapper_map_name() local 113 if (uri == nullptr || uri->path[0] == '\0') { in proxy_mapper_map_name() 120 if (strcmp(uri->scheme, "unix") == 0) { in proxy_mapper_map_name() 131 if (!gpr_split_host_port(uri->path[0] == '/' ? uri->path + 1 : uri->path, in proxy_mapper_map_name() [all …]
|
/external/python/httplib2/tests/ |
D | test_cache.py | 14 with tests.server_const_http(add_etag=True) as uri: 15 http.request(uri, "GET") 17 uri, "GET", headers={"cache-control": "only-if-cached"} 26 with tests.server_const_http(request_count=0) as uri: 28 uri, "GET", headers={"cache-control": "only-if-cached"} 40 with tests.server_const_http(request_count=0) as uri: 42 uri, "GET", headers={"cache-control": "only-if-cached"} 75 with tests.server_const_bytes(response, request_count=3) as uri: 76 response, content = http.request(uri, "GET", headers={"accept": "text/plain"}) 82 response, content = http.request(uri, "GET", headers={"Accept": "text/plain"}) [all …]
|
D | test_http.py | 99 with tests.server_reflect() as uri: 100 response, content = http.request(uri + query, "GET") 103 assert reflected.uri == "/?a=%D0%82" 109 with tests.server_reflect() as uri: 110 response, content = http.request(uri) 120 with tests.server_reflect(request_count=len(methods)) as uri: 122 response, content = http.request(uri, method, body=b" ") 133 with tests.server_const_bytes(respond_with) as uri: 134 response, content = http.request(uri, "HEAD") 142 with tests.server_const_http() as uri: [all …]
|
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/ |
D | ShadowContentResolver.java | 88 public final Uri uri; field in ShadowContentResolver.ContentObserverEntry 92 private ContentObserverEntry(Uri uri, boolean notifyForDescendents, ContentObserver observer) { in ContentObserverEntry() argument 93 this.uri = uri; in ContentObserverEntry() 97 if (uri == null || observer == null) { in ContentObserverEntry() 103 if (!Objects.equals(uri.getScheme(), test.getScheme())) { in matches() 106 if (!Objects.equals(uri.getAuthority(), test.getAuthority())) { in matches() 110 String uriPath = uri.getPath(); in matches() 119 public final Uri uri; field in ShadowContentResolver.NotifiedUri 123 public NotifiedUri(Uri uri, ContentObserver observer, boolean syncToNetwork) { in NotifiedUri() argument 124 this.uri = uri; in NotifiedUri() [all …]
|
/external/python/httplib2/python2/ |
D | httplib2test.py | 149 uri = "http://" + ("w" * 200) + ".org" 151 self.assertNotEqual(httplib2.safename(uri2), httplib2.safename(uri)) 154 self.assertEqual(233, len(httplib2.safename(uri))) 345 uri = urlparse.urljoin( 348 (response, content) = self.http.request(uri, "GET") 355 uri = urlparse.urljoin(base, "methods/method_reflector.cgi") 356 (response, content) = self.http.request(uri) 361 uri = urlparse.urljoin(base, "methods/method_reflector.cgi") 363 (response, content) = self.http.request(uri, method, body=" ") 371 uri = "http://www.google.com/" [all …]
|
/external/python/httplib2/python3/ |
D | httplib2test.py | 138 uri = "http://" + ("w" * 200) + ".org" 140 self.assertNotEqual(httplib2.safename(uri2), httplib2.safename(uri)) 143 self.assertEqual(233, len(httplib2.safename(uri))) 323 uri = urllib.parse.urljoin( 326 (response, content) = self.http.request(uri, "GET") 333 uri = urllib.parse.urljoin(base, "methods/method_reflector.cgi") 334 (response, content) = self.http.request(uri) 339 uri = urllib.parse.urljoin(base, "methods/method_reflector.cgi") 341 (response, content) = self.http.request(uri, method, body=b" ") 349 uri = "http://www.google.com/" [all …]
|
/external/subsampling-scale-image-view/library/src/main/java/com/davemorrissey/labs/subscaleview/ |
D | ImageSource.java | 24 private final Uri uri; field in ImageSource 35 this.uri = null; in ImageSource() 43 private ImageSource(Uri uri) { in ImageSource() argument 45 String uriString = uri.toString(); in ImageSource() 50 uri = Uri.parse(URLDecoder.decode(uriString, "UTF-8")); in ImageSource() 57 this.uri = uri; in ImageSource() 64 this.uri = null; in ImageSource() 87 return uri(ASSET_SCHEME + assetName); in asset() 96 public static ImageSource uri(String uri) { in uri() argument 97 if (uri == null) { in uri() [all …]
|
/external/python/google-api-python-client/ |
D | samples-index.py | 97 def context_from_sample(api, keywords, dirname, desc, uri): argument 110 if uri is None: 111 uri = BASE_HG_URI + dirname.replace('/', '%2F') 113 uri = ''.join(uri) 126 'uri': uri, 132 def keyword_context_from_sample(keywords, dirname, desc, uri): argument 146 if uri is None: 147 uri = BASE_HG_URI + dirname.replace('/', '%2F') 149 uri = ''.join(uri) 153 'uri': uri, [all …]
|
/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/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/libxml2/python/tests/ |
D | tstURI.py | 8 uri = libxml2.parseURI("http://example.org:8088/foo/bar?query=simple#fragid") variable 9 if uri.scheme() != 'http': 12 if uri.server() != 'example.org': 15 if uri.port() != 8088: 18 if uri.path() != '/foo/bar': 21 if uri.query() != 'query=simple': 24 if uri.fragment() != 'fragid': 27 uri.setScheme("https") 28 uri.setPort(223) 29 uri.setFragment(None) [all …]
|
/external/curl/docs/examples/ |
D | rtsp.c | 77 static void rtsp_options(CURL *curl, const char *uri) in rtsp_options() argument 80 printf("\nRTSP: OPTIONS %s\n", uri); in rtsp_options() 81 my_curl_easy_setopt(curl, CURLOPT_RTSP_STREAM_URI, uri); in rtsp_options() 88 static void rtsp_describe(CURL *curl, const char *uri, in rtsp_describe() argument 93 printf("\nRTSP: DESCRIBE %s\n", uri); in rtsp_describe() 111 static void rtsp_setup(CURL *curl, const char *uri, const char *transport) in rtsp_setup() argument 114 printf("\nRTSP: SETUP %s\n", uri); in rtsp_setup() 116 my_curl_easy_setopt(curl, CURLOPT_RTSP_STREAM_URI, uri); in rtsp_setup() 124 static void rtsp_play(CURL *curl, const char *uri, const char *range) in rtsp_play() argument 127 printf("\nRTSP: PLAY %s\n", uri); in rtsp_play() [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 …]
|
/external/libevent/test/ |
D | regress_http.c | 2463 struct evhttp_uri *uri = NULL; in http_parse_uri_test() local 2465 #define URI_PARSE(uri) \ in http_parse_uri_test() argument 2466 evhttp_uri_parse_with_flags((uri), parse_flags) in http_parse_uri_test() 2469 char *ret = evhttp_uri_join(uri, url_tmp, sizeof(url_tmp)); \ in http_parse_uri_test() 2487 uri = URI_PARSE(s); \ in http_parse_uri_test() 2488 if (uri != NULL && !nonconform) { \ in http_parse_uri_test() 2490 } else if (uri == NULL && nonconform) { \ in http_parse_uri_test() 2494 if (uri) { \ in http_parse_uri_test() 2495 tt_want(evhttp_uri_join(uri, url_tmp, \ in http_parse_uri_test() 2497 evhttp_uri_free(uri); \ in http_parse_uri_test() [all …]
|
/external/libcups/cups/ |
D | http-support.c | 159 char *uri, /* I - URI buffer */ in httpAssembleURI() argument 175 if (!uri || urilen < 1 || !scheme || port < 0) in httpAssembleURI() 177 if (uri) in httpAssembleURI() 178 *uri = '\0'; in httpAssembleURI() 187 end = uri + urilen - 1; in httpAssembleURI() 188 ptr = http_copy_encode(uri, scheme, end, NULL, NULL, 0); in httpAssembleURI() 418 *uri = '\0'; in httpAssembleURI() 439 char *uri, /* I - URI buffer */ in httpAssembleURIf() argument 457 if (!uri || urilen < 1 || !scheme || port < 0 || !resourcef) in httpAssembleURIf() 459 if (uri) in httpAssembleURIf() [all …]
|
/external/grpc-grpc-java/auth/src/main/java/io/grpc/auth/ |
D | ClientAuthInterceptor.java | 70 URI uri = serviceUri(next, method); in interceptCall() 79 Map<String, List<String>> latestMetadata = getRequestMetadata(uri); in interceptCall() 106 URI uri; 108 uri = new URI(scheme, authority, path, null, null); 114 if (uri.getPort() == defaultPort) { 115 uri = removePort(uri); 117 return uri; 120 private URI removePort(URI uri) throws StatusException { 122 return new URI(uri.getScheme(), uri.getUserInfo(), uri.getHost(), -1 /* port */, 123 uri.getPath(), uri.getQuery(), uri.getFragment()); [all …]
|
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/ |
D | ShadowContentResolverTest.java | 100 …@Override public Cursor query(Uri uri, String[] projection, String selection, String[] selectionAr… in getType_shouldReturnProviderValue() 103 @Override public Uri insert(Uri uri, ContentValues values) { in getType_shouldReturnProviderValue() 106 @Override public int delete(Uri uri, String selection, String[] selectionArgs) { in getType_shouldReturnProviderValue() 109 …@Override public int update(Uri uri, ContentValues values, String selection, String[] selectionArg… in getType_shouldReturnProviderValue() 112 @Override public String getType(Uri uri) { in getType_shouldReturnProviderValue() 116 final Uri uri = Uri.parse("content://"+AUTHORITY+"/some/path"); in getType_shouldReturnProviderValue() local 117 assertThat(contentResolver.getType(uri)).isEqualTo("mytype"); in getType_shouldReturnProviderValue() 242 assertThat(testCursor.uri).isEqualTo(uri21); in query_shouldKnowWhatItsParamsWere() 258 final Uri uri = Uri.parse("content://" + AUTHORITY); in acquireUnstableProvider_shouldReturnWithUri() local 259 assertThat(contentResolver.acquireUnstableProvider(uri)).isSameAs(cp.getIContentProvider()); in acquireUnstableProvider_shouldReturnWithUri() [all …]
|
/external/guice/extensions/servlet/src/com/google/inject/servlet/ |
D | UriPatternType.java | 42 private static String getUri(String uri) { in getUri() argument 44 int queryIdx = uri.indexOf('?'); in getUri() 46 uri = uri.substring(0, queryIdx); in getUri() 48 return uri; in getUri() 96 public boolean matches(String uri) { in matches() argument 97 if (null == uri) { in matches() 101 uri = getUri(uri); in matches() 103 return uri.endsWith(literal); in matches() 105 return uri.startsWith(literal); in matches() 109 return literal.equals(uri); in matches() [all …]
|