Home
last modified time | relevance | path

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

/libcore/luni/src/test/java/libcore/dalvik/system/
DClassLoaderTestSupport.java76 private static void copyResource(String resourceName, in copyResource() argument
80 InputStream in = loader.getResourceAsStream(PACKAGE_PATH + resourceName); in copyResource()
82 throw new IllegalStateException("Resource not found: " + PACKAGE_PATH + resourceName); in copyResource()
DDelegateLastClassLoaderTest.java123 private static String readResource(ClassLoader cl, String resourceName) throws Exception { in readResource() argument
124 return BaseDexClassLoaderTest.readResource(cl, resourceName); in readResource()
127 private static List<String> readResources(ClassLoader cl, String resourceName) in readResources() argument
129 return BaseDexClassLoaderTest.readResources(cl, resourceName); in readResources()
DDexClassLoaderTest.java108 private String createLoaderAndGetResource(String resourceName, File... files) throws Exception { in createLoaderAndGetResource() argument
110 InputStream in = cl.getResourceAsStream(resourceName); in createLoaderAndGetResource()
112 throw new IllegalStateException("Resource not found: " + resourceName); in createLoaderAndGetResource()
DInMemoryDexClassLoaderTest.java80 private static void copyResource(String resourceName, in copyResource() argument
83 InputStream in = loader.getResourceAsStream(PACKAGE_PATH + resourceName); in copyResource()
85 throw new IllegalStateException("Resource not found: " + PACKAGE_PATH + resourceName); in copyResource()
DBaseDexClassLoaderTest.java285 /* package */ static List<String> readResources(ClassLoader cl, String resourceName) in readResources() argument
287 Enumeration<URL> resources = cl.getResources(resourceName); in readResources()
302 /* package */ static String readResource(ClassLoader cl, String resourceName) throws Exception { in readResource() argument
303 InputStream in = cl.getResourceAsStream(resourceName); in readResource()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DClassLoaderTest.java204 String resourceName) throws IOException { in assertGetResourceAsStreamNotNull() argument
207 is = classLoader.getResourceAsStream(resourceName); in assertGetResourceAsStreamNotNull()
216 private static void assertGetResourceIsValid(ClassLoader classLoader, String resourceName) { in assertGetResourceIsValid() argument
217 java.net.URL u = classLoader.getResource(resourceName); in assertGetResourceIsValid()
DClassTest.java616 private void assertResourceExists(String resourceName) throws IOException { in assertResourceExists() argument
617 InputStream in = getClass().getResourceAsStream(resourceName); in assertResourceExists()
/libcore/support/src/test/java/tests/support/resource/
DSupport_Resources.java111 String resourceName = (folder == null ? file : folder + "/" + file); in copyFile() local
112 InputStream in = Support_Resources.getStream(resourceName); in copyFile()
117 "Unable to copy file from resource " + resourceName + " to file " + dest, e); in copyFile()
/libcore/luni/src/main/java/javax/xml/xpath/
DXPathFactoryFinder.java266 private XPathFactory loadFromServicesFile(String uri, String resourceName, InputStream in) { in loadFromServicesFile() argument
268 if (debug) debugPrintln("Reading " + resourceName ); in loadFromServicesFile()
/libcore/luni/src/main/java/javax/xml/validation/
DSchemaFactoryFinder.java316 …private SchemaFactory loadFromServicesFile(String schemaLanguage, String resourceName, InputStream… in loadFromServicesFile() argument
318 if (debug) debugPrintln("Reading "+resourceName ); in loadFromServicesFile()
/libcore/ojluni/src/main/java/java/util/
DResourceBundle.java2650 final String resourceName = toResourceName0(bundleName, "properties"); in newBundle() local
2651 if (resourceName == null) { in newBundle()
2663 URL url = classLoader.getResource(resourceName); in newBundle()
2674 is = classLoader.getResourceAsStream(resourceName); in newBundle()
2810 String resourceName = toResourceName0(toBundleName(baseName, locale), format); in needsReload() local
2811 if (resourceName == null) { in needsReload()
2814 URL url = loader.getResource(resourceName); in needsReload()
/libcore/ojluni/src/main/java/java/time/chrono/
DHijrahChronology.java899 String resourceName = calendarProperties.getProperty(PROP_PREFIX + typeId); in loadCalendarData() local
900 … Objects.requireNonNull(resourceName, "Resource missing for calendar: " + PROP_PREFIX + typeId); in loadCalendarData()
901 Properties props = readConfigProperties(resourceName); in loadCalendarData()