Home
last modified time | relevance | path

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

/libcore/luni/src/test/java/libcore/java/util/zip/
DZipFileTest.java57 String resourceName = "/libcore/java/util/zip/cp1251.zip"; in test_zipFileWith_cp1251_fileNames() local
59 File zipWithCp1251 = readResource(resourceName); in test_zipFileWith_cp1251_fileNames()
83 String resourceName = "/libcore/java/util/zip/Corrupted.zip"; in test_throwsWhenTriesToOpenCorruptedFile() local
85 File corruptedZip = readResource(resourceName); in test_throwsWhenTriesToOpenCorruptedFile()
104 String resourceName = "/libcore/java/util/zip/Corrupted2.zip"; in test_throwsWhenTriesToOpen_nonEmptyFileWhichStartsWithEndHeader() local
106 File corruptedZip = readResource(resourceName); in test_throwsWhenTriesToOpen_nonEmptyFileWhichStartsWithEndHeader()
114 private static File readResource(String resourceName) throws Exception { in readResource() argument
116 try (InputStream is = ZipFileTest.class.getResourceAsStream(resourceName); in readResource()
/libcore/luni/src/test/java/libcore/dalvik/system/
DClassLoaderTestSupport.java79 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()
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.java404 /* package */ static List<String> readResources(ClassLoader cl, String resourceName) in readResources() argument
406 Enumeration<URL> resources = cl.getResources(resourceName); in readResources()
421 /* package */ static String readResource(ClassLoader cl, String resourceName) throws Exception { in readResource() argument
422 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/ojluni/src/test/java/util/Base64/
DTestBase64Golden.java63 private static String[] readAllLines(String resourceName) throws Exception { in readAllLines() argument
64 try (InputStream is = TestBase64Golden.class.getResourceAsStream(resourceName)) { in readAllLines()
/libcore/ojluni/src/main/java/java/time/chrono/
DHijrahChronology.java838 String resourceName = RESOURCE_PREFIX + chronologyId + "_" + calendarType + RESOURCE_SUFFIX; in readConfigProperties() local
842 () -> HijrahChronology.class.getResourceAsStream(resourceName) : in readConfigProperties()
845 return Files.newInputStream(CONF_PATH.resolve(resourceName), in readConfigProperties()
860 throw new RuntimeException("Hijrah calendar resource not found: " + resourceName); in readConfigProperties()
/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.java3250 final String resourceName = toResourceName0(bundleName, "properties"); in newBundle() local
3251 if (resourceName == null) { in newBundle()
3261 URL url = loader.getResource(resourceName); in newBundle()
3405 String resourceName = toResourceName0(toBundleName(baseName, locale), format); in needsReload() local
3406 if (resourceName == null) { in needsReload()
3409 URL url = loader.getResource(resourceName); in needsReload()