Home
last modified time | relevance | path

Searched refs:resourceName (Results 1 – 9 of 9) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/internal/net/www/protocol/file/
DFileURLConnectionTest.java40 private URL createTempFileWithContent(String resourceName) throws IOException { in createTempFileWithContent() argument
44 final URL url = loader.getResource(resourceName); in createTempFileWithContent()
45 assertNotNull("Cannot find test resource " + resourceName, url); in createTempFileWithContent()
48 resourceName.substring(resourceName.indexOf("."))); in createTempFileWithContent()
65 String resourceName = "resources/" + fileName; in getContentType() local
66 URL url = createTempFileWithContent(resourceName); in getContentType()
/libcore/luni/src/main/java/java/util/
DMissingResourceException.java48 String resourceName) { in MissingResourceException() argument
51 key = resourceName; in MissingResourceException()
DResourceBundle.java910 final String resourceName = toResourceName(bundleName, "properties"); in newBundle() local
914 url = loader.getResource(resourceName); in newBundle()
925 streams = clsloader.getResourceAsStream(resourceName); in newBundle()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DClassLoaderTest.java134 String resourceName) throws IOException { in assertGetResourceAsStreamNotNull() argument
137 is = classLoader.getResourceAsStream(resourceName); in assertGetResourceAsStreamNotNull()
146 private static void assertGetResourceIsValid(ClassLoader classLoader, String resourceName) { in assertGetResourceIsValid() argument
147 java.net.URL u = classLoader.getResource(resourceName); in assertGetResourceIsValid()
DClassTest.java591 private void assertResourceExists(String resourceName) throws IOException { in assertResourceExists() argument
592 InputStream in = getClass().getResourceAsStream(resourceName); in assertResourceExists()
/libcore/libart/src/main/java/java/lang/
DClass.java1317 public URL getResource(String resourceName) { in getResource() argument
1319 if (resourceName.startsWith("/")) { in getResource()
1320 resourceName = resourceName.substring(1); in getResource()
1330 resourceName = pkg + "/" + resourceName; in getResource()
1336 return loader.getResource(resourceName); in getResource()
1338 return ClassLoader.getSystemResource(resourceName); in getResource()
1349 public InputStream getResourceAsStream(String resourceName) { in getResourceAsStream() argument
1351 if (resourceName.startsWith("/")) { in getResourceAsStream()
1352 resourceName = resourceName.substring(1); in getResourceAsStream()
1362 resourceName = pkg + "/" + resourceName; in getResourceAsStream()
[all …]
/libcore/luni/src/test/java/dalvik/system/
DDexClassLoaderTest.java132 private static void copyResource(ClassLoader loader, String resourceName, in copyResource() argument
139 loader.getResourceAsStream(PACKAGE_PATH + resourceName); in copyResource()
451 String resourceName, String expectedContents) in test_directGetResourceAsStream() argument
454 InputStream in = dcl.getResourceAsStream(resourceName); in test_directGetResourceAsStream()
/libcore/luni/src/main/java/javax/xml/xpath/
DXPathFactoryFinder.java269 private XPathFactory loadFromServicesFile(String uri, String resourceName, InputStream in) { in loadFromServicesFile() argument
271 if (debug) debugPrintln("Reading " + resourceName ); in loadFromServicesFile()
/libcore/luni/src/main/java/javax/xml/validation/
DSchemaFactoryFinder.java319 …private SchemaFactory loadFromServicesFile(String schemaLanguage, String resourceName, InputStream… in loadFromServicesFile() argument
321 if (debug) debugPrintln("Reading "+resourceName ); in loadFromServicesFile()