Home
last modified time | relevance | path

Searched refs:resource (Results 1 – 25 of 68) sorted by relevance

123

/libcore/dalvik/src/main/java/dalvik/system/
DDelegateLastClassLoader.java185 URL resource = Object.class.getClassLoader().getResource(name); in getResource() local
186 if (resource != null) { in getResource()
187 return resource; in getResource()
190 resource = findResource(name); in getResource()
191 if (resource != null) { in getResource()
192 return resource; in getResource()
/libcore/support/src/test/java/tests/support/resource/
DSupport_Resources.java18 package tests.support.resource;
47 File resource = new File(ANDROID_BUILD_TOP + "/libcore/support/src/test/java" + path); in getStream() local
48 if (resource.exists()) { in getStream()
50 return new FileInputStream(resource); in getStream()
52 throw new IllegalArgumentException("Couldn't open: " + resource, ex); in getStream()
156 public static String getResourceURL(String resource) { in getResourceURL() argument
157 return "http://" + Support_Configuration.TestResources + resource; in getResourceURL()
/libcore/luni/src/test/java/libcore/dalvik/system/
DClassLoaderTestSupport.java42 for (String resource: resources) { in setupAndCopyResources()
43 File resourceFile = new File(srcDir, resource); in setupAndCopyResources()
44 copyResource(resource, resourceFile); in setupAndCopyResources()
46 resourcesMap.put(resource, resourceFile); in setupAndCopyResources()
DDelegateLastClassLoaderTest.java262 String resource = readResource(cl, "android/icu/ICUConfig.properties"); in testLookupOrder_bootOverride() local
263 assertFalse("NOT ICU".equals(resource)); in testLookupOrder_bootOverride()
/libcore/luni/src/test/java/dalvik/system/
Dcreate_test_jar.sh24 echo -ne "child" > ./resource.txt
25 jar cf ./child.jar classes.dex resource.txt
48 echo -ne "parent" > ./resource.txt
50 jar cf ./parent.jar classes.dex resource.txt resource2.txt
/libcore/support/src/test/java/tests/support/
DSupport_GetResource.java22 public static String getResourceURL(String resource) { in getResourceURL() argument
23 return "http://" + Support_Configuration.TestResources + resource; in getResourceURL()
DSupport_GetLocal.java31 import tests.support.resource.Support_Resources;
/libcore/luni/src/main/java/javax/xml/xpath/
DXPathFactoryFinder.java200 for (URL resource : createServiceFileIterator()) { in _newFactory()
201 if (debug) debugPrintln("looking into " + resource); in _newFactory()
203 xpf = loadFromServicesFile(uri, resource.toExternalForm(), resource.openStream()); in _newFactory()
207 debugPrintln("failed to read "+resource); in _newFactory()
328 URL resource = XPathFactoryFinder.class.getClassLoader().getResource(SERVICE_ID); in createServiceFileIterator() local
329 return Collections.singleton(resource); in createServiceFileIterator()
/libcore/luni/src/main/java/javax/xml/validation/
DSchemaFactoryFinder.java220 for (URL resource : createServiceFileIterator()) { in _newFactory()
221 if (debug) debugPrintln("looking into " + resource); in _newFactory()
223 sf = loadFromServicesFile(schemaLanguage,resource.toExternalForm(), in _newFactory()
224 resource.openStream()); in _newFactory()
228 debugPrintln("failed to read "+resource); in _newFactory()
/libcore/support/src/test/java/tests/resources/subfolder/tests/resources/
Dhyts_resource.properties1 property=resource
/libcore/harmony-tests/src/test/resources/tests/resources/control_test/
Dhyts_resource.properties1 property=resource
/libcore/luni/src/test/resources/org/apache/harmony/tests/java/lang/
Dtest.properties1 This is just a resource file for getResource() tests
Dtest#.properties1 This is a resource file with a # in the name
Dtest?.properties1 This is a resource file with a ? in the name
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/xml/parsers/
DDocumentBuilderTest.java35 import tests.support.resource.Support_Resources;
491 URL resource = getClass().getResource("/simple.xml"); in test_parseLjava_lang_String() local
492 Document d = db.parse(resource.toString()); in test_parseLjava_lang_String()
520 resource = getClass().getResource("/wrong.xml"); in test_parseLjava_lang_String()
521 db.parse(resource.toString()); in test_parseLjava_lang_String()
/libcore/luni/src/test/etc/loading-test2-jar/
DREADME.txt6 resources in any practical way. To update the resource, use the script
/libcore/luni/src/test/etc/loading-test-jar/
DREADME.txt6 resources in any practical way. To update the resource, use the script
/libcore/luni/src/test/java/libcore/java/util/jar/
DOldJarInputStreamTest.java28 import tests.support.resource.Support_Resources;
DOldJarEntryTest.java26 import tests.support.resource.Support_Resources;
/libcore/luni/src/test/filesystems/
DAndroid.bp17 // Included as a resource by //libcore:core-tests and loaded into its own
/libcore/luni/src/test/java/libcore/xml/
DNodeTest.java24 import tests.support.resource.Support_Resources;
/libcore/luni/src/test/annotations/
DAndroid.bp18 // Included as a resource by //libcore:core-tests and loaded into its own
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/
DCheckedInputStreamTest.java26 import tests.support.resource.Support_Resources;
/libcore/luni/src/test/parameter_metadata/
DAndroid.bp20 // Included as a resource by //libcore:core-tests and loaded into its own
/libcore/luni/src/test/java/libcore/java/util/zip/
DOldZipFileTest.java27 import tests.support.resource.Support_Resources;

123