/libcore/benchmarks/src/benchmarks/ |
D | ClassLoaderResourceBenchmark.java | 28 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/ |
D | ClassLoaderTest.java | 90 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()
|
D | ClassTest.java | 432 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/ |
D | DelegateLastClassLoader.java | 155 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()
|
D | BaseDexClassLoader.java | 248 URL url = loader.getResource(name); in findResource()
|
/libcore/ojluni/annotations/hiddenapi/sun/misc/ |
D | URLClassPath.java | 65 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/ |
D | URLClassPath.java | 231 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/ |
D | ClassLoader.java | 785 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/ |
D | test.properties | 1 This is just a resource file for getResource() tests
|
/libcore/luni/src/test/java/libcore/dalvik/system/ |
D | PathClassLoaderTest.java | 167 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/ |
D | SAXParserTest.java | 138 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()
|
D | DocumentBuilderTest.java | 491 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/ |
D | VMClassLoader.java | 65 static URL getResource(String name) { in getResource() method in VMClassLoader
|
/libcore/luni/src/main/java/javax/xml/xpath/ |
D | XPathFactoryFinder.java | 328 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/ |
D | SchemaFactoryFinder.java | 295 return Collections.singleton(classLoader.getResource(SERVICE_ID)); in createServiceFileIterator() 408 URL it = loader.getResource(classnameAsResource); in which()
|
/libcore/support/src/test/java/tests/util/ |
D | SerializationTester.java | 122 URL url = SerializationTester.class.getClassLoader().getResource(fileName); in readObject()
|
D | ClassLoaderBuilder.java | 128 URL manifest = classLoader.getResource(manifestFile); in getApplicationClassPath()
|
/libcore/luni/src/test/java/libcore/java/io/ |
D | OldFileTest.java | 164 URL url = getClass().getResource("/HelloWorld.txt"); in test_deleteOnExit()
|
/libcore/dom/src/test/java/org/w3c/domts/ |
D | DOMTest.java | 95 resolvedURI = getClass().getResource("/" + docURI); in resolveURI()
|
/libcore/luni/src/main/java/javax/xml/datatype/ |
D | FactoryFinder.java | 330 it = loader.getResource(classnameAsResource); in which()
|
/libcore/luni/src/test/java/libcore/java/nio/file/ |
D | FileSystemsTest.java | 184 try (InputStream in = getClass().getResource("/filesystemstest.jar").openStream(); in createClassLoaderForTestFileSystems()
|
/libcore/luni/src/test/java/tests/org/w3c/dom/ |
D | DOMTestCase.java | 66 resolvedURI = getClass().getResource("/" + docURI); in resolveURI()
|
/libcore/ojluni/src/main/java/java/util/ |
D | ResourceBundle.java | 505 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/ |
D | OldClassTest.java | 315 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/ |
D | URLClassLoader.java | 232 URL url = getResource(name); in getResourceAsStream() 365 Resource res = ucp.getResource(path, false); in findClass()
|