/libcore/luni/src/test/java/libcore/java/util/zip/ |
D | ZipFileTest.java | 57 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/ |
D | ClassLoaderTestSupport.java | 79 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()
|
D | DelegateLastClassLoaderTest.java | 123 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()
|
D | DexClassLoaderTest.java | 108 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()
|
D | InMemoryDexClassLoaderTest.java | 80 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()
|
D | BaseDexClassLoaderTest.java | 404 /* 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/ |
D | ClassLoaderTest.java | 204 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()
|
D | ClassTest.java | 616 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/ |
D | Support_Resources.java | 111 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/ |
D | TestBase64Golden.java | 63 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/ |
D | HijrahChronology.java | 838 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/ |
D | XPathFactoryFinder.java | 266 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/ |
D | SchemaFactoryFinder.java | 316 …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/ |
D | ResourceBundle.java | 3250 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()
|