Home
last modified time | relevance | path

Searched refs:getResource (Results 1 – 25 of 33) sorted by relevance

12

/libcore/benchmarks/src/benchmarks/
DClassLoaderResourceBenchmark.java28 Assert.assertNotNull(currentClassLoader.getResource(EXISTENT_RESOURCE)); in timeGetBootResource_hit()
31 currentClassLoader.getResource(EXISTENT_RESOURCE); in timeGetBootResource_hit()
37 Assert.assertNull(currentClassLoader.getResource(MISSING_RESOURCE)); in timeGetBootResource_miss()
40 currentClassLoader.getResource(MISSING_RESOURCE); in timeGetBootResource_miss()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DClassLoaderTest.java90 assertNull(parentClassLoader.getResource(TEST_RESOURCE_NAME)); in test_testClassLoader_getResourceLjava_lang_String()
139 URL resourceFromJar = testClassLoader.getResource(TEST_RESOURCE_NAME); in testUncachedJarStreamBehavior()
154 URL resourceFromJar = testClassLoader.getResource(TEST_RESOURCE_NAME); in testCachedJarStreamBehavior()
177 URL resourceFromJar = testClassLoader.getResource(TEST_RESOURCE_NAME); in testResourceJarFileBehavior()
217 java.net.URL u = classLoader.getResource(resourceName); in assertGetResourceIsValid()
DClassTest.java432 URL res = getClass().getResource(name); in test_getResourceLjava_lang_String()
567 assertNull(getClass().getResource(SHARP_RESOURCE_ABS_NAME)); in test_getResource_withSharpChar()
568 URL absoluteURL = getClass().getResource("/" + SHARP_RESOURCE_ABS_NAME); in test_getResource_withSharpChar()
575 URL relativeURL = getClass().getResource(SHARP_RESOURCE_RELATIVE_NAME); in test_getResource_withSharpChar()
593 assertNull(getClass().getResource(QUERY_RESOURCE_ABS_NAME)); in test_getResource_withQueryChar()
594 URL absoluteURL = getClass().getResource("/" + QUERY_RESOURCE_ABS_NAME); in test_getResource_withQueryChar()
601 URL relativeURL = getClass().getResource(QUERY_RESOURCE_RELATIVE_NAME); in test_getResource_withQueryChar()
/libcore/dalvik/src/main/java/dalvik/system/
DDelegateLastClassLoader.java155 public URL getResource(String name) { in getResource() method in DelegateLastClassLoader
158 URL resource = Object.class.getClassLoader().getResource(name); in getResource()
170 return (cl == null) ? null : cl.getResource(name); in getResource()
DBaseDexClassLoader.java248 URL url = loader.getResource(name); in findResource()
/libcore/ojluni/annotations/hiddenapi/sun/misc/
DURLClassPath.java65 public sun.misc.Resource getResource(java.lang.String name, boolean check) { in getResource() method in URLClassPath
73 public sun.misc.Resource getResource(java.lang.String name) { in getResource() method in URLClassPath
222 sun.misc.Resource getResource(java.lang.String name, boolean check) { in getResource() method in URLClassPath.FileLoader
285 sun.misc.Resource getResource(java.lang.String name, boolean check) { in getResource() method in URLClassPath.JarLoader
289 sun.misc.Resource getResource( in getResource() method in URLClassPath.JarLoader
351 sun.misc.Resource getResource(java.lang.String name, boolean check) { in getResource() method in URLClassPath.Loader
355 sun.misc.Resource getResource(java.lang.String name) { in getResource() method in URLClassPath.Loader
/libcore/ojluni/src/main/java/sun/misc/
DURLClassPath.java231 public Resource getResource(String name, boolean check) { in getResource() method in URLClassPath
239 Resource res = loader.getResource(name, check); in getResource()
291 public Resource getResource(String name) { in getResource() method
292 return getResource(name, true); in getResource()
315 res = loader.getResource(name, check); in getResources()
743 Resource getResource(final String name, boolean check) {
785 Resource getResource(final String name) {
786 return getResource(name, true);
1040 Resource rsc = getResource(name, check);
1050 Resource getResource(final String name, boolean check) {
[all …]
/libcore/ojluni/src/main/java/java/lang/
DClassLoader.java785 public URL getResource(String name) { in getResource() method in ClassLoader
788 url = parent.getResource(name); in getResource()
921 return system.getResource(name); in getSystemResource()
987 URL url = getResource(name); in getResourceAsStream()
1363 return VMClassLoader.getResource(name); in findResource()
1408 public URL getResource(String resName) { in getResource() method in BootClassLoader
/libcore/luni/src/test/resources/org/apache/harmony/tests/java/lang/
Dtest.properties1 This is just a resource file for getResource() tests
/libcore/luni/src/test/java/libcore/dalvik/system/
DPathClassLoaderTest.java167 pcl.getResource("test/Resource1.txt"); in test_classLoader_exceptionDuringLoading()
178 assertNotNull(pcl.getResource("test/Resource1.txt")); in test_classLoader_exceptionDuringLoading()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/xml/parsers/
DSAXParserTest.java138 private InputStream getResource(String name) { in getResource() method in SAXParserTest
170 getResource(SAXParserTestSupport.XML_WF + "staff.xml")); in initFiles()
173 getResource(SAXParserTestSupport.XML_WF + "staff.dtd")); in initFiles()
176 getResource(SAXParserTestSupport.XML_NWF + "staff.xml")); in initFiles()
179 getResource(SAXParserTestSupport.XML_NWF + "staff.dtd")); in initFiles()
182 getResource(SAXParserTestSupport.XML_WF_OUT_DH + "staff.out")); in initFiles()
184 getResource(SAXParserTestSupport.XML_WF_OUT_HB + "staff.out")); in initFiles()
DDocumentBuilderTest.java491 URL resource = getClass().getResource("/simple.xml"); in test_parseLjava_lang_String()
520 resource = getClass().getResource("/wrong.xml"); in test_parseLjava_lang_String()
/libcore/libart/src/main/java/java/lang/
DVMClassLoader.java65 static URL getResource(String name) { in getResource() method in VMClassLoader
/libcore/luni/src/main/java/javax/xml/xpath/
DXPathFactoryFinder.java328 URL resource = XPathFactoryFinder.class.getClassLoader().getResource(SERVICE_ID); in createServiceFileIterator()
367 URL it = loader.getResource(classnameAsResource); in which()
/libcore/luni/src/main/java/javax/xml/validation/
DSchemaFactoryFinder.java295 return Collections.singleton(classLoader.getResource(SERVICE_ID)); in createServiceFileIterator()
408 URL it = loader.getResource(classnameAsResource); in which()
/libcore/support/src/test/java/tests/util/
DSerializationTester.java122 URL url = SerializationTester.class.getClassLoader().getResource(fileName); in readObject()
DClassLoaderBuilder.java128 URL manifest = classLoader.getResource(manifestFile); in getApplicationClassPath()
/libcore/luni/src/test/java/libcore/java/io/
DOldFileTest.java164 URL url = getClass().getResource("/HelloWorld.txt"); in test_deleteOnExit()
/libcore/dom/src/test/java/org/w3c/domts/
DDOMTest.java95 resolvedURI = getClass().getResource("/" + docURI); in resolveURI()
/libcore/luni/src/main/java/javax/xml/datatype/
DFactoryFinder.java330 it = loader.getResource(classnameAsResource); in which()
/libcore/luni/src/test/java/libcore/java/nio/file/
DFileSystemsTest.java184 try (InputStream in = getClass().getResource("/filesystemstest.jar").openStream(); in createClassLoaderForTestFileSystems()
/libcore/luni/src/test/java/tests/org/w3c/dom/
DDOMTestCase.java66 resolvedURI = getClass().getResource("/" + docURI); in resolveURI()
/libcore/ojluni/src/main/java/java/util/
DResourceBundle.java505 public URL getResource(String name) { in getResource() method in ResourceBundle.RBClassLoader
507 return loader.getResource(name); in getResource()
2663 URL url = classLoader.getResource(resourceName); in newBundle()
2814 URL url = loader.getResource(resourceName); in needsReload()
/libcore/luni/src/test/java/libcore/java/lang/
DOldClassTest.java315 URL url = getClass().getClassLoader().getResource( in test_forNameLjava_lang_StringLbooleanLClassLoader_AndroidOnly()
881 assertNull(getClass().getResource( in test_getResourceLjava_lang_String()
883 assertNull(getClass().getResource(getClass().getName() + "NonExistentResource")); in test_getResourceLjava_lang_String()
/libcore/ojluni/src/main/java/java/net/
DURLClassLoader.java232 URL url = getResource(name); in getResourceAsStream()
365 Resource res = ucp.getResource(path, false); in findClass()

12