| /external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/common/src/test/java/com/google/android/exoplayer2/util/ |
| D | UriUtilTest.java | 8 * http://www.apache.org/licenses/LICENSE-2.0 19 import static com.google.android.exoplayer2.util.UriUtil.resolve; 22 import android.net.Uri; 32 * Tests normal usage of {@link UriUtil#resolve(String, String)}. 34 * <p>The test cases are taken from RFC-3986 5.4.1. 40 assertThat(resolve(base, "g:h")).isEqualTo("g:h"); in resolveNormal() 41 assertThat(resolve(base, "g")).isEqualTo("http://a/b/c/g"); in resolveNormal() 42 assertThat(resolve(base, "g/")).isEqualTo("http://a/b/c/g/"); in resolveNormal() 43 assertThat(resolve(base, "/g")).isEqualTo("http://a/g"); in resolveNormal() 44 assertThat(resolve(base, "//g")).isEqualTo("http://g"); in resolveNormal() [all …]
|
| /external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/library/common/src/test/java/com/google/android/exoplayer2/util/ |
| D | UriUtilTest.java | 8 * http://www.apache.org/licenses/LICENSE-2.0 19 import static com.google.android.exoplayer2.util.UriUtil.resolve; 22 import android.net.Uri; 32 * Tests normal usage of {@link UriUtil#resolve(String, String)}. 34 * <p>The test cases are taken from RFC-3986 5.4.1. 40 assertThat(resolve(base, "g:h")).isEqualTo("g:h"); in resolveNormal() 41 assertThat(resolve(base, "g")).isEqualTo("http://a/b/c/g"); in resolveNormal() 42 assertThat(resolve(base, "g/")).isEqualTo("http://a/b/c/g/"); in resolveNormal() 43 assertThat(resolve(base, "/g")).isEqualTo("http://a/g"); in resolveNormal() 44 assertThat(resolve(base, "//g")).isEqualTo("http://g"); in resolveNormal() [all …]
|
| /external/dokka/core/src/main/kotlin/Formats/JavaLayoutHtml/ |
| D | JavaLayoutHtmlGenerator.kt | 11 import java.net.URI in <lambda>() 31 override fun tryGetContainerUri(node: DocumentationNode): URI? { in <lambda>() 33 NodeKind.Module -> URI("/").resolve(node.name + "/") in <lambda>() 34 …NodeKind.Package -> tryGetContainerUri(node.getOwnerOrReport())?.resolve(node.name.replace('.', '/… in <lambda>() 35 NodeKind.GroupNode -> tryGetContainerUri(node.getOwnerOrReport()) in <lambda>() 36 …in NodeKind.classLike -> tryGetContainerUri(node.getOwnerOrReport())?.resolve("${node.classNodeNam… in <lambda>() 37 else -> null in <lambda>() 41 override fun tryGetMainUri(node: DocumentationNode): URI? { in <lambda>() 43 NodeKind.Package -> tryGetContainerUri(node)?.resolve("package-summary.html") in <lambda>() 44 in NodeKind.classLike -> tryGetContainerUri(node)?.resolve("#") in <lambda>() [all …]
|
| /external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/ |
| D | HttpUrlTest.java | 8 * http://www.apache.org/licenses/LICENSE-2.0 21 import java.net.URI; 42 assertEquals(expected, HttpUrl.parse("http://host/").resolve(" ")); in parseTrimsAsciiWhitespace() 43 assertEquals(expected, HttpUrl.parse("http://host/").resolve(" . ")); in parseTrimsAsciiWhitespace() 59 assertEquals("/%C2%A0", HttpUrl.parse("http://h/\u00a0").encodedPath()); // non-breaking space in parseDoesNotTrimOtherWhitespaceCharacters() 66 … assertEquals("/%E2%80%84", HttpUrl.parse("http://h/\u2004").encodedPath()); // three-per-em space in parseDoesNotTrimOtherWhitespaceCharacters() 67 assertEquals("/%E2%80%85", HttpUrl.parse("http://h/\u2005").encodedPath()); // four-per-em space in parseDoesNotTrimOtherWhitespaceCharacters() 68 assertEquals("/%E2%80%86", HttpUrl.parse("http://h/\u2006").encodedPath()); // six-per-em space in parseDoesNotTrimOtherWhitespaceCharacters() 73 assertEquals("/%E2%80%8B", HttpUrl.parse("http://h/\u200b").encodedPath()); // zero-width space in parseDoesNotTrimOtherWhitespaceCharacters() 74 …assertEquals("/%E2%80%8C", HttpUrl.parse("http://h/\u200c").encodedPath()); // zero-width non-join… in parseDoesNotTrimOtherWhitespaceCharacters() [all …]
|
| /external/grpc-grpc-java/examples/src/main/java/io/grpc/examples/nameresolve/ |
| D | ExampleNameResolver.java | 8 * http://www.apache.org/licenses/LICENSE-2.0 26 import java.net.URI; 37 private final URI uri; field in ExampleNameResolver 41 public ExampleNameResolver(URI targetUri) { in ExampleNameResolver() 42 this.uri = targetUri; in ExampleNameResolver() 46 Stream.iterate(NameResolveServer.startPort, p -> p + 1) in ExampleNameResolver() 48 .map(port -> new InetSocketAddress("localhost", port)) in ExampleNameResolver() 56 // Be consistent with behavior in grpc-go, authority is saved in Host field of URI. in getServiceAuthority() 57 if (uri.getHost() != null) { in getServiceAuthority() 58 return uri.getHost(); in getServiceAuthority() [all …]
|
| /external/grpc-grpc-java/examples/src/main/java/io/grpc/examples/loadbalance/ |
| D | ExampleNameResolver.java | 8 * http://www.apache.org/licenses/LICENSE-2.0 26 import java.net.URI; 39 private final URI uri; field in ExampleNameResolver 43 public ExampleNameResolver(URI targetUri) { in ExampleNameResolver() 44 this.uri = targetUri; in ExampleNameResolver() 48 Stream.iterate(LoadBalanceServer.startPort,p->p+1) in ExampleNameResolver() 50 .map(port->new InetSocketAddress("localhost",port)) in ExampleNameResolver() 58 // Be consistent with behavior in grpc-go, authority is saved in Host field of URI. in getServiceAuthority() 59 if (uri.getHost() != null) { in getServiceAuthority() 60 return uri.getHost(); in getServiceAuthority() [all …]
|
| /external/apache-http/src/org/apache/http/client/utils/ |
| D | URIUtils.java | 2 …* $HeadURL: http://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk/module-client/src/main… 4 * $Date: 2008-05-03 03:39:28 -0700 (Sat, 03 May 2008) $ 15 * http://www.apache.org/licenses/LICENSE-2.0 32 import java.net.URI; 38 * A collection of utilities for {@link URI URIs}, to workaround 39 * bugs within the class or for ease-of-use features. 42 …* Please visit <a href="http://android-developers.blogspot.com/2011/09/androids-http-clients.h… 49 * Constructs a {@link URI} using all the parameters. This should be 51 * {@link URI#URI(String, String, String, int, String, String, String)} 52 * or any of the other URI multi-argument URI constructors. [all …]
|
| /external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/library/common/src/main/java/com/google/android/exoplayer2/util/ |
| D | UriUtil.java | 8 * http://www.apache.org/licenses/LICENSE-2.0 18 import android.net.Uri; 30 * <p>The value at this position in the array is the index of the ':' after the scheme. Equals -1 31 * if the URI is a relative reference (no scheme). The hier-part starts at (schemeColon + 1), 32 * including when the URI has no scheme. 41 * authority part is non-empty (in this case the double-slash means the first segment is empty). 48 * before the query. Equals fragment if no query part, and (fragment - 1) if the query part is a 56 * before the fragment. Equal to the length of the URI if no fragment part, and (length - 1) if 64 * Like {@link #resolve(String, String)}, but returns a {@link Uri} instead of a {@link String}. 66 * @param baseUri The base URI. [all …]
|
| /external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/common/src/main/java/com/google/android/exoplayer2/util/ |
| D | UriUtil.java | 8 * http://www.apache.org/licenses/LICENSE-2.0 18 import android.net.Uri; 30 * <p>The value at this position in the array is the index of the ':' after the scheme. Equals -1 31 * if the URI is a relative reference (no scheme). The hier-part starts at (schemeColon + 1), 32 * including when the URI has no scheme. 41 * authority part is non-empty (in this case the double-slash means the first segment is empty). 48 * before the query. Equals fragment if no query part, and (fragment - 1) if the query part is a 56 * before the fragment. Equal to the length of the URI if no fragment part, and (length - 1) if 64 * Like {@link #resolve(String, String)}, but returns a {@link Uri} instead of a {@link String}. 66 * @param baseUri The base URI. [all …]
|
| /external/apache-xml/src/main/java/org/apache/xml/utils/ |
| D | QName.java | 10 * http://www.apache.org/licenses/LICENSE-2.0 19 * $Id: QName.java 468655 2006-10-28 07:12:06Z minchau $ 37 * then the prefix is expanded into a URI reference using the namespace declarations 39 * consisting of the local part of the name and the possibly null URI reference 55 * The namespace URI. 80 * 20001019: Try making this public, to support Serializable? -- JKESS 85 * Constructs a new QName with the specified namespace URI and 88 * @param namespaceURI The namespace URI if known, or null 97 * Constructs a new QName with the specified namespace URI and 100 * @param namespaceURI The namespace URI if known, or null [all …]
|
| D | SystemIDResolver.java | 10 * http://www.apache.org/licenses/LICENSE-2.0 19 * $Id: SystemIDResolver.java 468655 2006-10-28 07:12:06Z minchau $ 27 import org.apache.xml.utils.URI.MalformedURIException; 30 * This class is used to resolve relative URIs and SystemID 42 * Get an absolute URI from a given relative URI (local path). 44 * <p>The relative URI is a local filesystem path. The path can be 49 * generate a good absolute URI.</p> 51 * @param localPath The relative URI to resolve 53 * @return Resolved absolute URI 102 * Return true if the systemId denotes an absolute URI . [all …]
|
| /external/google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/ |
| D | UserAuthorizer.java | 48 import java.net.URI; 56 /** Handles an interactive 3-Legged-OAuth2 (3LO) user consent authorization. */ 59 static final URI DEFAULT_CALLBACK_URI = URI.create("/oauth2callback"); 67 private final URI callbackUri; 70 private final URI tokenServerUri; 71 private final URI userAuthUri; 80 * @param callbackUri URI for implementation of the OAuth2 web callback 83 * @param tokenServerUri URI of the end point that provides tokens 84 * @param userAuthUri URI of the Web UI for user consent 91 URI callbackUri, in UserAuthorizer() [all …]
|
| /external/grpc-grpc-java/googleapis/src/main/java/io/grpc/googleapis/ |
| D | GoogleCloudToProdNameResolver.java | 8 * http://www.apache.org/licenses/LICENSE-2.0 40 import java.net.URI; 57 "http://metadata.google.internal/computeMetadata/v1/instance/network-interfaces/0/ipv6s"; 58 static final String C2P_AUTHORITY = "traffic-director-c2p.xds.googleapis.com"; 84 // Delegate to DNS if user-provided bootstrap is found. 95 GoogleCloudToProdNameResolver(URI targetUri, Args args, Resource<Executor> executorResource, in GoogleCloudToProdNameResolver() 102 GoogleCloudToProdNameResolver(URI targetUri, Args args, Resource<Executor> executorResource, in GoogleCloudToProdNameResolver() 138 resolve(); in start() 141 private void resolve() { in resolve() method in GoogleCloudToProdNameResolver 156 class Resolve implements Runnable { in resolve() class [all …]
|
| /external/perfetto/python/perfetto/trace_uri_resolver/ |
| D | registry.py | 7 # http://www.apache.org/licenses/LICENSE-2.0 44 def resolve(self, ref: TraceListReference) -> List['ResolverRegistry.Result']: member in ResolverRegistry 50 ref: TraceReference) -> List['ResolverRegistry.Result']: 54 for outer in ref.resolve() 55 for inner in self.resolve(outer.trace) 61 for outer in self._resolver_from_uri(ref).resolve() 62 for inner in self.resolve(outer.trace) 70 def _resolver_from_uri(self, uri: TraceUri) -> TraceUriResolver: 71 resolver_name, _ = util.parse_trace_uri(uri) 73 return resolver_cls.from_trace_uri(uri) [all …]
|
| D | resolver.py | 7 # http://www.apache.org/licenses/LICENSE-2.0 51 """"Resolves a trace URI (e.g. 'ants:trace_id=1234') into a list of traces. 54 up traces using URI strings. 65 def resolve(self): 98 # metadata allows additional key-value pairs to be provided which are 109 def resolve(self) -> List['TraceUriResolver.Result']: member in TraceUriResolver 112 Subclasses should implement this method and resolve the parameters 115 raise Exception('resolve is unimplemented for this resolver') 119 uri: TraceUri) -> 'TraceUriResolver': 120 """Creates a resolver from a URI. [all …]
|
| /external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/docs/doc/reference/com/google/android/exoplayer2/util/ |
| D | UriUtil.html | 2 <!-- NewPage --> 4 …-- start favicons snippet, use https://realfavicongenerator.net/ --><link rel="apple-touch-icon" s… 6 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 8 <link rel="stylesheet" type="text/css" href="../../../../../jquery/jquery-ui.css" title="Style"> 11 <script type="text/javascript" src="../../../../../jquery/jszip-utils/dist/jszip-utils.min.js"></sc… 12 <!--[if IE]> 13 <script type="text/javascript" src="../../../../../jquery/jszip-utils/dist/jszip-utils-ie.min.js"><… 14 <![endif]--> 15 <script type="text/javascript" src="../../../../../jquery/jquery-3.5.1.js"></script> 16 <script type="text/javascript" src="../../../../../jquery/jquery-ui.js"></script> [all …]
|
| /external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/docs/doc/reference/com/google/android/exoplayer2/util/ |
| D | UriUtil.html | 2 <!-- NewPage --> 4 …-- start favicons snippet, use https://realfavicongenerator.net/ --><link rel="apple-touch-icon" s… 6 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 8 <link rel="stylesheet" type="text/css" href="../../../../../jquery/jquery-ui.css" title="Style"> 11 <script type="text/javascript" src="../../../../../jquery/jszip-utils/dist/jszip-utils.min.js"></sc… 12 <!--[if IE]> 13 <script type="text/javascript" src="../../../../../jquery/jszip-utils/dist/jszip-utils-ie.min.js"><… 14 <![endif]--> 15 <script type="text/javascript" src="../../../../../jquery/jquery-3.5.1.js"></script> 16 <script type="text/javascript" src="../../../../../jquery/jquery-ui.js"></script> [all …]
|
| /external/libtextclassifier/java/tests/instrumentation/src/com/android/textclassifier/common/intent/ |
| D | LabeledIntentTest.java | 8 * http://www.apache.org/licenses/LICENSE-2.0 25 import android.net.Uri; 41 new Intent(Intent.ACTION_VIEW).setDataAndNormalize(Uri.parse("http://www.android.com")); 63 LabeledIntent.Result result = labeledIntent.resolve(context, /*titleChooser*/ null); in resolve_preferTitleWithEntity() 78 LabeledIntent.Result result = labeledIntent.resolve(context, /*titleChooser*/ null); in resolve_useAvailableTitle() 94 labeledIntent.resolve(context, (labeledIntent1, resolveInfo) -> "chooser"); in resolve_titleChooser() 110 labeledIntent.resolve(context, (labeledIntent1, resolveInfo) -> null); in resolve_titleChooserReturnsNull() 124 () -> new LabeledIntent(null, null, DESCRIPTION, null, INTENT, REQUEST_CODE)); in resolve_missingTitle() 129 // See setup(). context can only resolve Intent.ACTION_VIEW. in resolve_noIntentHandler() 135 LabeledIntent.Result result = labeledIntent.resolve(context, null); in resolve_noIntentHandler() [all …]
|
| /external/dokka/core/src/main/kotlin/Formats/ |
| D | DacOutlineService.kt | 5 import java.net.URI in <lambda>() 11 fun computeOutlineURI(node: DocumentationNode): URI in <lambda>() 25 …override fun generateOutlines(outputProvider: (URI) -> Appendable, nodes: Iterable<DocumentationNo… in generateOutlines() 28 val uri = outline.computeOutlineURI(node) in generateOutlines() constant 29 val output = outputProvider(uri) in generateOutlines() 47 …ride fun computeOutlineURI(node: DocumentationNode): URI = uriProvider.outlineRootUri(node).resolv… in computeOutlineURI() 75 to.appendln("- title: Package Index") in appendOutlineHeader() 76 … to.appendln(" path: $dacRoot${uriProvider.outlineRootUri(node).resolve("packages.html")}") in appendOutlineHeader() 77 to.appendln(" status_text: no-toggle") in appendOutlineHeader() 79 to.appendln("- title: ${languageService.renderName(node)}") in appendOutlineHeader() [all …]
|
| /external/apache-commons-io/src/test/java/org/apache/commons/io/file/ |
| D | PathUtilsTest.java | 9 * http://www.apache.org/licenses/LICENSE-2.0 33 import java.net.URI; 80 * <li>tempDirPath/symlinked-dir -> tempDirPath/subdir</li> 87 final Path targetDir = tempDirPath.resolve("subdir"); in createTempSymlinkedRelativeDir() 88 final Path symlinkDir = tempDirPath.resolve("symlinked-dir"); in createTempSymlinkedRelativeDir() 110 final URI fileUri = p.toAbsolutePath().toUri(); in openArchive() 111 final URI uri = URI.create("jar:" + fileUri.toASCIIString()); in openArchive() local 112 return FileSystems.newFileSystem(uri, env, null); in openArchive() 125 // relative jar -> absolute dir in testCopyDirectoryForDifferentFilesystemsWithAbsolutePath() 128 assertTrue(Files.exists(tempDirPath.resolve("f1"))); in testCopyDirectoryForDifferentFilesystemsWithAbsolutePath() [all …]
|
| /external/perfetto/ui/src/common/ |
| D | track_cache.ts | 7 // http://www.apache.org/licenses/LICENSE-2.0 41 // trackCache.flushOldTracks(); // <-- Destroys any unused cached tracks 46 // resolveTrack('foo', ...) <-- new track 'foo' created 47 // resolveTrack('bar', ...) <-- new track 'bar' created 50 // resolveTrack('foo', ...) <-- returns cached 'foo' track 51 // flushTracks() <-- 'bar' is destroyed, as it was not resolved this cycle 53 // flushTracks() <-- 'foo' is destroyed. 58 private trackRegistry = new Registry<TrackDescriptor>(({uri}) => uri); 92 // Look up track into for a given track's URI. 94 resolveTrackInfo(uri: string): TrackDescriptor | undefined { [all …]
|
| /external/apache-xml/src/main/java/org/apache/xml/serializer/utils/ |
| D | SystemIDResolver.java | 10 * http://www.apache.org/licenses/LICENSE-2.0 19 * $Id: SystemIDResolver.java 468654 2006-10-28 07:09:23Z minchau $ 27 import org.apache.xml.serializer.utils.URI.MalformedURIException; 30 * This class is used to resolve relative URIs and SystemID 49 * Get an absolute URI from a given relative URI (local path). 51 * <p>The relative URI is a local filesystem path. The path can be 56 * generate a good absolute URI.</p> 58 * @param localPath The relative URI to resolve 60 * @return Resolved absolute URI 109 * Return true if the systemId denotes an absolute URI . [all …]
|
| /external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/datasource/src/main/java/com/google/android/exoplayer2/upstream/ |
| D | ResolvingDataSource.java | 8 * http://www.apache.org/licenses/LICENSE-2.0 20 import android.net.Uri; 26 /** {@link DataSource} wrapper allowing just-in-time resolution of {@link DataSpec DataSpecs}. */ 46 * Resolves a URI reported by {@link DataSource#getUri()} for event reporting and caching 50 * reported URI. 54 * @param uri The URI as reported by {@link DataSource#getUri()}. 55 * @return The resolved URI used for event reporting and caching. 57 default Uri resolveReportedUri(Uri uri) { in resolveReportedUri() argument 58 return uri; in resolveReportedUri() 71 * @param resolver The {@link Resolver} to resolve the {@link DataSpec DataSpecs}. [all …]
|
| /external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/library/datasource/src/main/java/com/google/android/exoplayer2/upstream/ |
| D | ResolvingDataSource.java | 8 * http://www.apache.org/licenses/LICENSE-2.0 20 import android.net.Uri; 26 /** {@link DataSource} wrapper allowing just-in-time resolution of {@link DataSpec DataSpecs}. */ 46 * Resolves a URI reported by {@link DataSource#getUri()} for event reporting and caching 50 * reported URI. 54 * @param uri The URI as reported by {@link DataSource#getUri()}. 55 * @return The resolved URI used for event reporting and caching. 57 default Uri resolveReportedUri(Uri uri) { in resolveReportedUri() argument 58 return uri; in resolveReportedUri() 71 * @param resolver The {@link Resolver} to resolve the {@link DataSpec DataSpecs}. [all …]
|
| /external/apache-xml/src/main/java/org/apache/xpath/ |
| D | SourceTreeManager.java | 10 * http://www.apache.org/licenses/LICENSE-2.0 19 * $Id: SourceTreeManager.java 468655 2006-10-28 07:12:06Z minchau $ 59 /** The TrAX URI resolver used to obtain source trees. */ 63 * Set an object that will be used to resolve URIs used in 74 * Get the object that will be used to resolve URIs used in 88 * @return The base URI of the owner argument. 109 * @param base The base URI that should be used. 111 * or a URI specified in the document() function. 127 source = m_uriResolver.resolve(urlString, base); in resolveURI() 132 String uri = SystemIDResolver.getAbsoluteURI(urlString, base); in resolveURI() local [all …]
|