Home
last modified time | relevance | path

Searched refs:URI (Results 1 – 25 of 595) sorted by relevance

12345678910>>...24

/external/apache-http/src/org/apache/http/client/utils/
DURIUtils.java32 import java.net.URI;
78 public static URI createURI( in createURI()
112 return new URI(buffer.toString()); in createURI()
131 public static URI rewriteURI( in rewriteURI()
132 final URI uri, in rewriteURI()
162 public static URI rewriteURI( in rewriteURI()
163 final URI uri, in rewriteURI()
176 public static URI resolve(final URI baseURI, final String reference) { in resolve()
177 return URIUtils.resolve(baseURI, URI.create(reference)); in resolve()
188 public static URI resolve(final URI baseURI, URI reference){ in resolve()
[all …]
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowContentProviderClientTest.java32 private final Uri URI = Uri.parse("content://" + AUTHORITY); field in ShadowContentProviderClientTest
84 client.query(URI, PROJECTION, SELECTION, SELECTION_ARGS, SORT_ORDER); in shouldDelegateToContentProvider()
85 verify(provider).query(URI, PROJECTION, SELECTION, SELECTION_ARGS, SORT_ORDER); in shouldDelegateToContentProvider()
88 client.query(URI, PROJECTION, SELECTION, SELECTION_ARGS, SORT_ORDER, signal); in shouldDelegateToContentProvider()
89 verify(provider).query(URI, PROJECTION, SELECTION, SELECTION_ARGS, SORT_ORDER, signal); in shouldDelegateToContentProvider()
91 client.insert(URI, VALUES); in shouldDelegateToContentProvider()
92 verify(provider).insert(URI, VALUES); in shouldDelegateToContentProvider()
94 client.update(URI, VALUES, SELECTION, SELECTION_ARGS); in shouldDelegateToContentProvider()
95 verify(provider).update(URI, VALUES, SELECTION, SELECTION_ARGS); in shouldDelegateToContentProvider()
97 client.delete(URI, SELECTION, SELECTION_ARGS); in shouldDelegateToContentProvider()
[all …]
DShadowContentUrisTest.java14 Uri URI; field in ShadowContentUrisTest
18 URI = Uri.parse("content://foo.com"); in setUp()
22 assertThat(ContentUris.withAppendedId(URI, 1)).isEqualTo(Uri.parse("content://foo.com/1")); in canAppendId()
31 assertThat(ContentUris.parseId(Uri.withAppendedPath(URI, "1"))).isEqualTo(1L); in canParseId()
32 assertThat(ContentUris.parseId(URI)).isEqualTo(-1L); in canParseId()
37 ContentUris.parseId(Uri.withAppendedPath(URI, "bar")); in parseIdThrowsNumberFormatException()
/external/llvm-project/clang-tools-extra/clangd/
DURI.h28 class URI {
30 URI(llvm::StringRef Scheme, llvm::StringRef Authority, llvm::StringRef Body);
44 static llvm::Expected<URI> create(llvm::StringRef AbsolutePath,
49 static URI create(llvm::StringRef AbsolutePath);
52 static URI createFile(llvm::StringRef AbsolutePath);
56 static llvm::Expected<URI> parse(llvm::StringRef Uri);
63 static llvm::Expected<std::string> resolve(const URI &U,
85 static llvm::Expected<std::string> includeSpelling(const URI &U);
87 friend bool operator==(const URI &LHS, const URI &RHS) {
92 friend bool operator<(const URI &LHS, const URI &RHS) {
[all …]
DURI.cpp60 llvm::Expected<URI>
74 return URI("file", Authority, Body); in uriFromAbsolutePath()
154 URI::URI(llvm::StringRef Scheme, llvm::StringRef Authority, in URI() function in clang::clangd::URI
162 std::string URI::toString() const { in toString()
179 llvm::Expected<URI> URI::parse(llvm::StringRef OrigUri) { in parse()
180 URI U; in parse()
200 llvm::Expected<std::string> URI::resolve(llvm::StringRef FileURI, in resolve()
202 auto Uri = URI::parse(FileURI); in resolve()
205 auto Path = URI::resolve(*Uri, HintPath); in resolve()
211 llvm::Expected<URI> URI::create(llvm::StringRef AbsolutePath, in create()
[all …]
/external/rust/crates/grpcio-sys/grpc/src/core/lib/uri/
Duri_parser.h35 class URI {
47 static absl::StatusOr<URI> Parse(absl::string_view uri_text);
49 URI(std::string scheme, std::string authority, std::string path,
51 URI() = default;
53 URI(const URI& other);
54 URI& operator=(const URI& other);
56 URI(URI&&) = default;
57 URI& operator=(URI&&) = default;
Duri_parser.cc85 absl::StatusOr<URI> URI::Parse(absl::string_view uri_text) { in Parse()
150 return URI(std::move(scheme), std::move(authority), std::move(path), in Parse()
154 URI::URI(std::string scheme, std::string authority, std::string path, in URI() function in grpc_core::URI
166 URI::URI(const URI& other) in URI() function in grpc_core::URI
177 URI& URI::operator=(const URI& other) { in operator =()
/external/llvm-project/clang-tools-extra/clangd/unittests/
DURITests.cpp32 auto Uri = URI::create(AbsolutePath, Scheme); in createOrDie()
38 URI parseOrDie(llvm::StringRef Uri) { in parseOrDie()
39 auto U = URI::parse(Uri); in parseOrDie()
46 EXPECT_EQ(URI("x", /*Authority=*/"", "a/b/c").toString(), "x:a/b/c"); in TEST()
47 EXPECT_EQ(URI("x", /*Authority=*/"", "a!b;c~").toString(), "x:a%21b%3Bc~"); in TEST()
48 EXPECT_EQ(URI("x", /*Authority=*/"", "a123b").toString(), "x:a123b"); in TEST()
49 EXPECT_EQ(URI("x", /*Authority=*/"", "a:b;c").toString(), "x:a:b%3Bc"); in TEST()
63 std::string resolveOrDie(const URI &U, llvm::StringRef HintPath = "") { in resolveOrDie()
64 auto Path = URI::resolve(U, HintPath); in resolveOrDie()
90 EXPECT_ERROR(URI::create("/x/y/z", "no")); in TEST()
[all …]
/external/grpc-grpc-java/core/src/test/java/io/grpc/internal/
DManagedChannelImplGetNameResolverTest.java26 import java.net.URI;
45 new URI("defaultscheme", "", "/[valid]", null)); in validTargetWithInvalidDnsName()
51 new URI("defaultscheme", "", "/foo.googleapis.com:8080", null)); in validAuthorityTarget()
57 new URI("scheme", "", "/foo.googleapis.com:8080", null)); in validUriTarget()
63 new URI("defaultscheme", "", "/127.0.0.1:1234", null)); in validIpv4AuthorityTarget()
69 new URI("dns", "", "/127.0.0.1:1234", null)); in validIpv4UriTarget()
75 new URI("defaultscheme", "", "/[::1]:1234", null)); in validIpv6AuthorityTarget()
86 new URI("dns", "", "/[::1]:1234", null)); in validIpv6UriTarget()
92 new URI("defaultscheme", "", "//target", null)); in validTargetStartingWithSlash()
99 public NameResolver newNameResolver(URI targetUri, Attributes params) { in validTargetNoResovler()
[all …]
/external/nanohttpd/core/src/test/java/fi/iki/elonen/
DHttpGetRequestTest.java49 invokeServer("GET " + HttpServerTest.URI + "?foo&bar= HTTP/1.1"); in testDecodingFieldWithEmptyValueAndFieldWithMissingValueGiveDifferentResults()
59 invokeServer("GET " + HttpServerTest.URI + "?foo=bar&foo=baz&zot&zim= HTTP/1.1"); in testDecodingMixtureOfParameters()
73 invokeServer("GET " + HttpServerTest.URI + "?foo=bar&foo=baz&zot&zim= HTTP/1.1"); in testDecodingParametersFromParameterMap()
82 invokeServer("GET " + HttpServerTest.URI + "?foo=bar&baz=zot HTTP/1.1"); in testDecodingParametersWithSingleValue()
94 invokeServer("GET " + HttpServerTest.URI + "?foo&baz=zot HTTP/1.1"); in testDecodingParametersWithSingleValueAndMissingValue()
105 invokeServer("GET " + HttpServerTest.URI + "?foo=bar&foo=baz HTTP/1.1"); in testDecodingSingleFieldRepeated()
114 invokeServer("GET " + HttpServerTest.URI + " HTTP/1.1"); in testEmptyHeadersSuppliedToServeMethodFromSimpleWorkingGetRequest()
123 … ByteArrayOutputStream outputStream = invokeServer("GET " + HttpServerTest.URI + " HTTP/1.1"); in testFullyQualifiedWorkingGetRequest()
139 invokeServer("GET " + HttpServerTest.URI + "?foo=bar&baz=zot HTTP/1.1"); in testMultipleGetParameters()
146 invokeServer("GET " + HttpServerTest.URI + "?foo=&baz=zot HTTP/1.1"); in testMultipleGetParametersWithMissingValue()
[all …]
DHttpHeadRequestTest.java56 invokeServer("HEAD " + HttpServerTest.URI + "?foo&bar= HTTP/1.1"); in testDecodingFieldWithEmptyValueAndFieldWithMissingValueGiveDifferentResults()
66 invokeServer("HEAD " + HttpServerTest.URI + "?foo=bar&foo=baz&zot&zim= HTTP/1.1"); in testDecodingMixtureOfParameters()
80 invokeServer("HEAD " + HttpServerTest.URI + "?foo=bar&foo=baz&zot&zim= HTTP/1.1"); in testDecodingParametersFromParameterMap()
89 invokeServer("HEAD " + HttpServerTest.URI + "?foo=bar&baz=zot HTTP/1.1"); in testDecodingParametersWithSingleValue()
101 invokeServer("HEAD " + HttpServerTest.URI + "?foo&baz=zot HTTP/1.1"); in testDecodingParametersWithSingleValueAndMissingValue()
112 invokeServer("HEAD " + HttpServerTest.URI + "?foo=bar&foo=baz HTTP/1.1"); in testDecodingSingleFieldRepeated()
121 invokeServer("HEAD " + HttpServerTest.URI + " HTTP/1.1"); in testEmptyHeadersSuppliedToServeMethodFromSimpleWorkingGetRequest()
130 … ByteArrayOutputStream outputStream = invokeServer("HEAD " + HttpServerTest.URI + " HTTP/1.1"); in testHeadRequestDoesntSendBackResponseBody()
146 invokeServer("HEAD " + HttpServerTest.URI + "?foo=bar&baz=zot HTTP/1.1"); in testMultipleGetParameters()
153 invokeServer("HEAD " + HttpServerTest.URI + "?foo=&baz=zot HTTP/1.1"); in testMultipleGetParametersWithMissingValue()
[all …]
/external/caliper/caliper/src/main/java/com/google/caliper/runner/
DJarFinder.java30 import java.net.URI;
65 Map<URI, ClassLoader> map = Maps.newLinkedHashMap(); in findJarFiles()
69 for (Map.Entry<URI, ClassLoader> entry : map.entrySet()) { in findJarFiles()
75 @VisibleForTesting static ImmutableMap<URI, ClassLoader> getClassPathEntries( in getClassPathEntries()
77 Map<URI, ClassLoader> entries = Maps.newLinkedHashMap(); in getClassPathEntries()
86 URI uri; in getClassPathEntries()
102 private final Set<URI> scannedUris = Sets.newHashSet();
108 void scan(URI uri, ClassLoader classloader) throws IOException { in scan()
151 for (URI uri : getClassPathFromManifest(file, jarFile.getManifest())) { in scanJar()
168 @VisibleForTesting static ImmutableSet<URI> getClassPathFromManifest( in getClassPathFromManifest()
[all …]
/external/kotlinx.coroutines/buildSrc/src/main/kotlin/
DCacheRedirector.kt94 private fun URI.toCacheRedirectorUri() = URI("https://cache-redirector.jetbrains.com/$host/$path") in toCacheRedirectorUri() method
96 private fun URI.maybeRedirect(): URI? { in toCacheRedirectorUri() method
101 URI(dealiasedUrl).toCacheRedirectorUri() in toCacheRedirectorUri()
107 private fun URI.isCachedOrLocal() = scheme == "file" || in isCachedOrLocal() method
112 private fun Project.checkRedirectUrl(url: URI, containerName: String): URI { in isCachedOrLocal()
/external/apache-http/src/org/apache/http/impl/client/
DRedirectLocations.java34 import java.net.URI;
48 private final Set<URI> uris;
52 this.uris = new HashSet<URI>(); in RedirectLocations()
58 public boolean contains(final URI uri) { in contains()
65 public void add(final URI uri) { in add()
72 public boolean remove(final URI uri) { in remove()
/external/swiftshader/third_party/SPIRV-Tools/utils/vscode/src/lsp/span/
Duri.go31 type URI string type
35 func (uri URI) Filename() string {
43 func filename(uri URI) (string, error) { argument
62 func NewURI(s string) URI {
67 return URI(s)
72 func CompareURI(a, b URI) int { argument
82 func equalURI(a, b URI) bool { argument
112 func FileURI(path string) URI {
141 return URI(uri)
/external/deqp-deps/SPIRV-Tools/utils/vscode/src/lsp/span/
Duri.go31 type URI string type
35 func (uri URI) Filename() string {
43 func filename(uri URI) (string, error) { argument
62 func NewURI(s string) URI {
67 return URI(s)
72 func CompareURI(a, b URI) int { argument
82 func equalURI(a, b URI) bool { argument
112 func FileURI(path string) URI {
141 return URI(uri)
/external/angle/third_party/vulkan-deps/spirv-tools/src/utils/vscode/src/lsp/span/
Duri.go31 type URI string type
35 func (uri URI) Filename() string {
43 func filename(uri URI) (string, error) { argument
62 func NewURI(s string) URI {
67 return URI(s)
72 func CompareURI(a, b URI) int { argument
82 func equalURI(a, b URI) bool { argument
112 func FileURI(path string) URI {
141 return URI(uri)
/external/deqp-deps/SPIRV-Tools/utils/vscode/src/lsp/protocol/
Dspan.go27 URI span.URI member
32 func NewURI(uri span.URI) string { argument
41 return Location{URI: NewURI(s.URI()), Range: rng}, nil
45 if span.CompareURI(m.URI, s.URI()) != 0 {
46 return Range{}, errors.Errorf("column mapper is for file %q instead of %q", m.URI, s.URI())
87 return span.New(m.URI, start, end).WithAll(m.Converter)
95 return span.New(m.URI, start, start).WithAll(m.Converter)
/external/swiftshader/third_party/SPIRV-Tools/utils/vscode/src/lsp/protocol/
Dspan.go27 URI span.URI member
32 func NewURI(uri span.URI) string { argument
41 return Location{URI: NewURI(s.URI()), Range: rng}, nil
45 if span.CompareURI(m.URI, s.URI()) != 0 {
46 return Range{}, errors.Errorf("column mapper is for file %q instead of %q", m.URI, s.URI())
87 return span.New(m.URI, start, end).WithAll(m.Converter)
95 return span.New(m.URI, start, start).WithAll(m.Converter)
/external/angle/third_party/vulkan-deps/spirv-tools/src/utils/vscode/src/lsp/protocol/
Dspan.go28 URI span.URI member
33 func NewURI(uri span.URI) string { argument
42 return Location{URI: NewURI(s.URI()), Range: rng}, nil
46 if span.CompareURI(m.URI, s.URI()) != 0 {
47 return Range{}, errors.Errorf("column mapper is for file %q instead of %q", m.URI, s.URI())
88 return span.New(m.URI, start, end).WithAll(m.Converter)
96 return span.New(m.URI, start, start).WithAll(m.Converter)
/external/jimfs/jimfs/src/test/java/com/google/common/jimfs/
DJimfsWindowsLikeFileSystemTest.java27 import java.net.URI;
252 assertThat(fs.getPath("C:\\").toUri()).isEqualTo(URI.create("jimfs://win/C:/")); in testPaths_toUri()
253 assertThat(fs.getPath("C:\\foo").toUri()).isEqualTo(URI.create("jimfs://win/C:/foo")); in testPaths_toUri()
254 assertThat(fs.getPath("C:\\foo\\bar").toUri()).isEqualTo(URI.create("jimfs://win/C:/foo/bar")); in testPaths_toUri()
255 assertThat(fs.getPath("foo").toUri()).isEqualTo(URI.create("jimfs://win/C:/work/foo")); in testPaths_toUri()
256 assertThat(fs.getPath("foo\\bar").toUri()).isEqualTo(URI.create("jimfs://win/C:/work/foo/bar")); in testPaths_toUri()
257 assertThat(fs.getPath("").toUri()).isEqualTo(URI.create("jimfs://win/C:/work/")); in testPaths_toUri()
258 assertThat(fs.getPath(".\\..\\.").toUri()).isEqualTo(URI.create("jimfs://win/C:/work/./.././")); in testPaths_toUri()
264 .isEqualTo(URI.create("jimfs://win//host/share/")); in testPaths_toUri_unc()
266 .isEqualTo(URI.create("jimfs://win//host/share/foo")); in testPaths_toUri_unc()
[all …]
/external/dokka/core/src/main/kotlin/Formats/JavaLayoutHtml/
DJavaLayoutHtmlFormat.kt10 import java.net.URI
51 fun generateOutlines(outputProvider: (URI) -> Appendable, nodes: Iterable<DocumentationNode>) in generateOutlines()
56 fun tryGetContainerUri(node: DocumentationNode): URI? in generateOutlines()
57 fun tryGetMainUri(node: DocumentationNode): URI? in generateOutlines()
58 fun tryGetOutlineRootUri(node: DocumentationNode): URI? in generateOutlines()
59 …fun containerUri(node: DocumentationNode): URI = tryGetContainerUri(node) ?: error("Unsupported ${… in generateOutlines()
60 …fun mainUri(node: DocumentationNode): URI = tryGetMainUri(node) ?: error("Unsupported ${node.kind}… in generateOutlines()
61 …fun outlineRootUri(node: DocumentationNode): URI = tryGetOutlineRootUri(node) ?: error("Unsupporte… in generateOutlines()
64 fun linkTo(to: DocumentationNode, from: URI): String { in generateOutlines()
68 fun linkToFromOutline(to: DocumentationNode, from: URI): String { in generateOutlines()
[all …]
/external/rust/crates/grpcio-sys/grpc/src/core/ext/filters/client_channel/resolver/sockaddr/
Dsockaddr_resolver.cc83 bool ParseUri(const URI& uri, in ParseUri()
84 bool parse(const URI& uri, grpc_resolved_address* dst), in ParseUri()
94 URI ith_uri(uri.scheme(), "", std::string(ith_path), {}, ""); in ParseUri()
108 ResolverArgs args, bool parse(const URI& uri, grpc_resolved_address* dst)) { in CreateSockaddrResolver()
118 bool IsValidUri(const URI& uri) const override { in IsValidUri()
131 bool IsValidUri(const URI& uri) const override { in IsValidUri()
145 bool IsValidUri(const URI& uri) const override { in IsValidUri()
153 std::string GetDefaultAuthority(const URI& uri) const override { in GetDefaultAuthority()
162 bool IsValidUri(const URI& uri) const override { in IsValidUri()
170 std::string GetDefaultAuthority(const URI& /*uri*/) const override { in GetDefaultAuthority()
/external/libxml2/doc/examples/
Dio1.c35 sqlMatch(const char * URI) { in sqlMatch() argument
36 if ((URI != NULL) && (!strncmp(URI, "sql:", 4))) in sqlMatch()
51 sqlOpen(const char * URI) { in sqlOpen() argument
52 if ((URI == NULL) || (strncmp(URI, "sql:", 4))) in sqlOpen()
/external/grpc-grpc-java/auth/src/main/java/io/grpc/auth/
DClientAuthInterceptor.java31 import java.net.URI;
70 URI uri = serviceUri(next, method); in interceptCall()
97 private URI serviceUri(Channel channel, MethodDescriptor<?, ?> method) throws StatusException {
106 URI uri;
108 uri = new URI(scheme, authority, path, null, null);
120 private URI removePort(URI uri) throws StatusException {
122 return new URI(uri.getScheme(), uri.getUserInfo(), uri.getHost(), -1 /* port */,
131 private Map<String, List<String>> getRequestMetadata(URI uri) throws StatusException {

12345678910>>...24