/libcore/luni/src/test/java/libcore/dalvik/system/ |
D | ClassLoaderTestSupport.java | 76 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()
|
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 | 285 /* 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/ |
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/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 | 2650 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/ |
D | HijrahChronology.java | 899 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()
|