Home
last modified time | relevance | path

Searched refs:toUri (Results 1 – 25 of 37) sorted by relevance

12

/external/llvm-project/clang-tools-extra/clangd/unittests/
DIndexActionTests.cpp28 std::string toUri(llvm::StringRef Path) { return URI::create(Path).toString(); } in toUri() function
39 return toUri(Path) == URI;
53 auto URI = toUri(Path); in checkNodesAreInitialized()
129 Pair(toUri(MainFilePath), in TEST_F()
132 Pair(toUri(Level1HeaderPath), in TEST_F()
135 Pair(toUri(Level2HeaderPath), in TEST_F()
159 Pair(toUri(MainFilePath), AllOf(IsTU(), IncludesAre({HeaderPath}), in TEST_F()
161 Pair(toUri(HeaderPath), AllOf(Not(IsTU()), IncludesAre({HeaderPath}), in TEST_F()
193 Pair(toUri(MainFilePath), in TEST_F()
196 Pair(toUri(HeaderPath), in TEST_F()
[all …]
/external/jimfs/jimfs/src/test/java/com/google/common/jimfs/
DUrlTest.java51 URL url = path.toUri().toURL(); in creatUrl()
59 URL url = path.toUri().toURL(); in readFromUrl()
71 URL url = path.toUri().toURL(); in readDirectoryContents()
81 URL url = path.toUri().toURL(); in headers()
116 URL url = path.toUri().toURL(); in contentType()
DWindowsPathTypeTest.java163 PathType.windows().toUri(fileSystemUri, "C:\\", ImmutableList.of("foo", "bar"), false); in testWindows_toUri_normal()
168 PathType.windows().toUri(fileSystemUri, "C:\\", ImmutableList.of("foo", "bar"), true); in testWindows_toUri_normal()
172 URI rootUri = PathType.windows().toUri(fileSystemUri, "C:\\", ImmutableList.<String>of(), true); in testWindows_toUri_normal()
181 .toUri(fileSystemUri, "\\\\host\\share\\", ImmutableList.of("foo", "bar"), false); in testWindows_toUri_unc()
187 .toUri(fileSystemUri, "\\\\host\\share\\", ImmutableList.<String>of(), true); in testWindows_toUri_unc()
196 .toUri(fileSystemUri, "C:\\", ImmutableList.of("Users", "foo", "My Documents"), true); in testWindows_toUri_escaping()
DJimfsWindowsLikeFileSystemTest.java252 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()
263 assertThat(fs.getPath("\\\\host\\share\\").toUri()) in testPaths_toUri_unc()
265 assertThat(fs.getPath("\\\\host\\share\\foo").toUri()) in testPaths_toUri_unc()
267 assertThat(fs.getPath("\\\\host\\share\\foo\\bar").toUri()) in testPaths_toUri_unc()
DPathTypeTest.java67 URI fileUri = type.toUri(fileSystemUri, "$", ImmutableList.of("foo", "bar"), false); in testToUri()
71 URI directoryUri = type.toUri(fileSystemUri, "$", ImmutableList.of("foo", "bar"), true); in testToUri()
75 URI rootUri = type.toUri(fileSystemUri, "$", ImmutableList.<String>of(), true); in testToUri()
82 URI fileUri = type.toUri(fileSystemUri, "$", ImmutableList.of("foo", "bar baz"), false); in testToUri_escaping()
104 URI uri = type.toUri(fileSystemUri, result.root(), result.names(), false); in assertUriRoundTripsCorrectly()
DUnixPathTypeTest.java59 URI fileUri = PathType.unix().toUri(fileSystemUri, "/", ImmutableList.of("foo", "bar"), false); in testUnix_toUri()
64 PathType.unix().toUri(fileSystemUri, "/", ImmutableList.of("foo", "bar"), true); in testUnix_toUri()
68 URI rootUri = PathType.unix().toUri(fileSystemUri, "/", ImmutableList.<String>of(), true); in testUnix_toUri()
75 URI uri = PathType.unix().toUri(fileSystemUri, "/", ImmutableList.of("foo bar"), false); in testUnix_toUri_escaping()
/external/okhttp/okhttp-android-support/src/test/java/com/squareup/okhttp/internal/huc/
DCacheAdapterTest.java86 assertEquals(toUri(serverUrl), uri); in get_httpGet()
109 assertEquals(toUri(serverUrl), uri); in get_httpsGet()
148 assertEquals(toUri(serverUrl), uri); in put_httpGet()
187 assertEquals(toUri(serverUrl), uri); in put_httpPost()
213 assertEquals(toUri(serverUrl), uri); in put_httpsGet()
/external/lottie/LottieSample/src/main/kotlin/com/airbnb/lottie/samples/
DMainActivity.kt8 import androidx.core.net.toUri
36 intent.launchUrl(this, "http://airbnb.io/lottie/#/android".toUri()) in showShowcase()
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/ext/
DTestJava7Types.java24 assertEquals(input.toUri(), p.toUri()); in testPathRoundtrip()
/external/javapoet/src/test/java/com/squareup/javapoet/
DFileReadingTest.java50 assertThat(JavaFile.builder("", type).build().toJavaFileObject().toUri()) in javaFileObjectUri()
52 assertThat(JavaFile.builder("foo", type).build().toJavaFileObject().toUri()) in javaFileObjectUri()
54 assertThat(JavaFile.builder("com.example", type).build().toJavaFileObject().toUri()) in javaFileObjectUri()
DTestFiler.java39 super(path.toUri(), Kind.SOURCE); in Source()
/external/jimfs/jimfs/src/main/java/com/google/common/jimfs/
DPathURLConnection.java75 Path path = Paths.get(toUri(url)); in connect()
111 private static URI toUri(URL url) throws IOException { in toUri() method in PathURLConnection
DJimfsFileSystem.java260 public URI toUri(JimfsPath path) { in toUri() method in JimfsFileSystem
262 return pathService.toUri(uri, path.toAbsolutePath()); in toUri()
DPathService.java239 public URI toUri(URI fileSystemUri, JimfsPath path) { in toUri() method in PathService
243 return type.toUri(fileSystemUri, root, names, Files.isDirectory(path, NOFOLLOW_LINKS)); in toUri()
DJimfsPath.java384 public URI toUri() { in toUri() method in JimfsPath
385 return getJimfsFileSystem().toUri(this); in toUri()
/external/kotlinx.coroutines/buildSrc/src/main/kotlin/
DDokka.kt23 packageListUrl = packageList.toPath().toUri().toURL() in externalDocumentationLink()
/external/turbine/java/com/google/turbine/processing/
DTurbineFiler.java233 public URI toUri() { in toUri() method in TurbineFiler.ReadOnlyFileObject
310 public URI toUri() { in toUri() method in TurbineFiler.TurbineJavaFileObject
362 public URI toUri() { in toUri() method in TurbineFiler.ResourceFileObject
/external/okhttp/okhttp-android-support/src/test/java/com/squareup/okhttp/
DAbstractResponseCache.java39 public static URI toUri(URL serverUrl) { in toUri() method in AbstractResponseCache
/external/sl4a/ScriptingLayerForAndroid/src/com/googlecode/android_scripting/service/
DScriptingLayerService.java173 Log.d(String.format("Received intent: %s", intent.toUri(0))); in startAction()
273 newIntent.toUri(0))); in launchScript()
289 newIntent.toUri(0))); in launchInterpreter()
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/ext/
DNioPathSerializer.java27 gen.writeString(value.toUri().toString()); in serialize()
/external/kotlinx.coroutines/integration/kotlinx-coroutines-play-services/
Dbuild.gradle43 packageListUrl = projectDir.toPath().resolve("package.list").toUri().toURL()
/external/kotlinx.coroutines/reactive/kotlinx-coroutines-rx2/
Dbuild.gradle15 packageListUrl = projectDir.toPath().resolve("package.list").toUri().toURL()
/external/kotlinx.coroutines/reactive/kotlinx-coroutines-rx3/
Dbuild.gradle24 packageListUrl = projectDir.toPath().resolve("package.list").toUri().toURL()
/external/auto/service/processor/src/main/java/com/google/auto/service/processor/
DAutoServiceProcessor.java177 log("Looking for existing resource file at " + existingFile.toUri()); in generateConfigFiles()
203 log("Wrote to: " + fileObject.toUri()); in generateConfigFiles()
/external/kotlinx.coroutines/gradle/
Ddokka.gradle41 …packageListUrl = rootProject.projectDir.toPath().resolve("site/stdlib.package.list").toUri().toURL…

12