/external/mockito/src/test/java/org/mockito/internal/configuration/plugins/ |
D | PluginFinderTest.java | 40 assertNull(finder.findPluginClass(asList(f.toURI().toURL()))); in no_valid_impl() 51 assertEquals("foo.Foo", finder.findPluginClass(asList(f.toURI().toURL()))); in single_implementation() 62 assertEquals(null, finder.findPluginClass(asList(f.toURI().toURL()))); in single_implementation_disabled() 74 assertEquals("Bar", finder.findPluginClass(asList(f1.toURI().toURL(), f2.toURI().toURL()))); in multiple_implementations_only_one_enabled() 86 assertEquals("X", finder.findPluginClass(asList(f1.toURI().toURL(), f2.toURI().toURL()))); in multiple_implementations_only_one_useful() 98 assertEquals(null, finder.findPluginClass(asList(f1.toURI().toURL(), f2.toURI().toURL()))); in multiple_empty_implementations() 106 finder.findPluginClass(asList(new File("xxx").toURI().toURL())); in problems_loading_impl()
|
/external/okhttp/okhttp-apache/src/test/java/com/squareup/okhttp/apache/ |
D | OkApacheClientTest.java | 50 HttpGet request = new HttpGet(server.getUrl("/").toURI()); in success() 60 HttpGet request = new HttpGet(server.getUrl("/").toURI()); in redirect() 69 HttpGet request = new HttpGet(server.getUrl("/").toURI()); in sessionExpired() 78 HttpGet request1 = new HttpGet(server.getUrl("/").toURI()); in headers() 84 HttpGet request2 = new HttpGet(server.getUrl("/").toURI()); in headers() 95 final HttpPost post = new HttpPost(server.getUrl("/").toURI()); in postByteEntity() 108 final HttpPost post = new HttpPost(server.getUrl("/").toURI()); in postInputStreamEntity() 119 final HttpPost post = new HttpPost(server.getUrl("/").toURI()); in postEmptyEntity() 128 final HttpPut put = new HttpPut(server.getUrl("/").toURI()); in putEmptyEntity() 140 httpPost.setURI(server.getUrl("/").toURI()); in postOverrideContentType() [all …]
|
/external/guava/guava-tests/test/com/google/common/reflect/ |
D | ClassPathTest.java | 180 ImmutableMap.of(url1.toURI(), classloader, url2.toURI(), classloader), in testClassPathEntries_URLClassLoader_noParent() 190 assertEquals(ImmutableMap.of(url1.toURI(), parent, url2.toURI(), child), classPathEntries); in testClassPathEntries_URLClassLoader_withParent() 191 assertThat(classPathEntries.keySet()).has().exactly(url1.toURI(), url2.toURI()).inOrder(); in testClassPathEntries_URLClassLoader_withParent() 198 assertEquals(ImmutableMap.of(url.toURI(), parent), ClassPath.getClassPathEntries(child)); in testClassPathEntries_duplicateUri_parentWins() 209 ImmutableMap.of(url.toURI(), parent), in testClassPathEntries_notURLClassLoader_withParent() 219 ImmutableMap.of(url1.toURI(), grandParent, url2.toURI(), parent), in testClassPathEntries_notURLClassLoader_withParentAndGrandParent() 228 ImmutableMap.of(url.toURI(), grandParent), in testClassPathEntries_notURLClassLoader_withGrandParent() 237 scanner.scan(jarFile.toURI(), ClassPathTest.class.getClassLoader()); in testScan_classPathCycle() 303 .has().exactly(new File("base/with/relative/dir").toURI()).inOrder(); in testGetClassPathFromManifest_relativeDirectory() 311 .has().exactly(new File("base/with/relative.jar").toURI()).inOrder(); in testGetClassPathFromManifest_relativeJar() [all …]
|
/external/glide/library/src/main/java/com/bumptech/glide/load/data/ |
D | HttpUrlFetcher.java | 50 if (lastUrl != null && url.toURI().equals(lastUrl.toURI())) { in loadDataWithRedirects()
|
/external/apache-http/src/org/apache/http/ |
D | HttpHost.java | 161 public String toURI() { in toURI() method in HttpHost 191 return toURI(); in toString()
|
/external/okhttp/okhttp-android-support/src/test/java/com/squareup/okhttp/ |
D | AbstractResponseCache.java | 41 return serverUrl.toURI(); in toUri()
|
/external/caliper/caliper/src/main/java/com/google/caliper/runner/ |
D | JarFinder.java | 88 uri = entry.toURI(); in getClassPathEntries() 204 : new File(jarFile.getParentFile(), path.replace('/', File.separatorChar)).toURI(); in getClassPathEntry()
|
/external/apache-harmony/luni/src/test/impl/common/org/apache/harmony/luni/tests/java/net/ |
D | URLClassLoaderImplTest.java | 61 final URI a = res.toURI(); in test_Constructor$Ljava_net_URLLjava_lang_ClassLoaderLjava_net_URLStreamHandlerFactory()
|
/external/caliper/caliper/src/main/java/com/google/caliper/platform/jvm/ |
D | EffectiveClassPath.java | 63 files.add(new File(url.toURI())); in getClassPathFiles()
|
/external/okhttp/okhttp-hpacktests/src/test/java/com/squareup/okhttp/internal/spdy/hpackjson/ |
D | HpackJsonUtil.java | 47 File testCaseDirectory = new File(HpackJsonUtil.class.getResource("/hpack-test-case").toURI()); in storiesForCurrentDraft()
|
/external/guava/guava-tests/test/com/google/common/io/ |
D | SourceSinkFactories.java | 410 return Resources.asByteSource(getFile().toURI().toURL()); 419 return Resources.asCharSource(getFile().toURI().toURL(), Charsets.UTF_8);
|
D | IoTestCase.java | 78 File testFile = new File(testFileUrl.toURI()); in getTestDir()
|
D | ResourcesTest.java | 155 URL baseUrl = tempFile.getParentFile().toURI().toURL(); in testGetResource_contextClassLoader()
|
/external/javassist/src/main/javassist/ |
D | ClassPoolTail.java | 60 return f.getCanonicalFile().toURI().toURL(); in find() 130 .toURI().toURL().toString(); in JarClassPath()
|
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/issues/issue318/ |
D | ContextClassLoaderTest.java | 88 yamlCL = new URLClassLoader(new URL[] { runtimeClassesDir.toURI().toURL() }, null); in before()
|
/external/antlr/antlr-3.4/gunit-maven-plugin/src/main/java/org/antlr/mojo/antlr3/ |
D | GUnitExecuteMojo.java | 244 classPathUrls.add( new File( path ).toURI().toURL() ); in determineProjectCompileScopeClassLoader() 256 return artifact.getFile().toURI().toURL(); in resolveLocalURL()
|
/external/guava/guava/src/com/google/common/reflect/ |
D | ClassPath.java | 291 uri = entry.toURI(); in getClassPathEntries() 435 return new File(jarFile.getParentFile(), path.replace('/', File.separatorChar)).toURI(); in getClassPathEntry()
|
/external/smali/baksmali/src/test/java/org/jf/baksmali/ |
D | AnalysisTest.java | 133 return new File(resUrl.toURI()); in findResource()
|
/external/conscrypt/benchmark-graphs/src/main/java/org/conscrypt/graphgen/ |
D | Main.java | 93 URI uri = Main.class.getResource(JSON_TEMPLATES).toURI(); in listAllResources()
|
/external/apache-harmony/support/src/test/java/tests/support/resource/ |
D | Support_Resources.java | 157 return new File(url.toURI()).getAbsolutePath(); in getAbsoluteResourcePath()
|
/external/apache-http/src/org/apache/http/impl/conn/ |
D | ProxySelectorRoutePlanner.java | 203 targetURI = new URI(target.toURI()); in determineProxy()
|
/external/sl4a/ScriptingLayerForAndroid/src/com/googlecode/android_scripting/provider/ |
D | ScriptProvider.java | 153 { index, script.getName(), intent.toURI(), icon.resourceName, icon.packageName, in queryLiveFolder()
|
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/net/ |
D | URLClassLoaderTest.java | 385 dirUrl = dir.toURI().toURL(); in testFindResource_H3461() 396 assertEquals("URL was not correctly encoded", f2.toURI().toURL(), in testFindResource_H3461()
|
/external/mockito/src/test/java/org/mockitoutil/ |
D | ClassLoaders.java | 443 return new File(path).getAbsoluteFile().toURI().toURL(); in pathToUrl() 467 URI uri = roots.nextElement().toURI(); in listOwnedClasses()
|
/external/guice/core/test/com/googlecode/guice/ |
D | BytecodeGenTest.java | 115 addURL(new File(element).toURI().toURL()); in TestVisibilityClassLoader()
|