Searched refs:resource (Results 1 - 25 of 33) sorted by relevance

12

/libcore/support/src/test/java/tests/support/
H A DSupport_GetResource.java22 public static String getResourceURL(String resource) { argument
23 return "http://" + Support_Configuration.TestResources + resource;
H A DSupport_GetLocal.java31 import tests.support.resource.Support_Resources;
/libcore/luni/src/main/java/javax/xml/xpath/
H A DXPathFactoryFinder.java89 * to be used to load resource, {@link SchemaFactory}, and
203 for (URL resource : createServiceFileIterator()) {
204 if (debug) debugPrintln("looking into " + resource);
206 xpf = loadFromServicesFile(uri, resource.toExternalForm(), resource.openStream());
210 debugPrintln("failed to read "+resource);
331 URL resource = XPathFactoryFinder.class.getClassLoader().getResource(SERVICE_ID);
332 return Collections.singleton(resource);
364 * @return the source location of the resource, or null if it wasn't found
/libcore/support/src/test/java/tests/support/resource/
H A DSupport_Resources.java18 package tests.support.resource;
47 File resource = new File(ANDROID_BUILD_TOP + "/libcore/support/src/test/java" + path);
48 if (resource.exists()) {
50 return new FileInputStream(resource);
52 throw new IllegalArgumentException("Couldn't open: " + resource, ex);
56 throw new IllegalArgumentException("No such resource: " + path);
160 public static String getResourceURL(String resource) { argument
161 return "http://" + Support_Configuration.TestResources + resource;
165 * Util method to load resource files
167 * @param name - name of resource fil
[all...]
/libcore/luni/src/main/java/javax/xml/validation/
H A DSchemaFactoryFinder.java93 * to be used to load resource, {@link SchemaFactory}, and
223 for (URL resource : createServiceFileIterator()) {
224 if (debug) debugPrintln("looking into " + resource);
226 sf = loadFromServicesFile(schemaLanguage,resource.toExternalForm(),
227 resource.openStream());
231 debugPrintln("failed to read "+resource);
404 * @return the source location of the resource, or null if it wasn't found
/libcore/libdvm/src/main/java/java/lang/
H A DClassLoader.java129 * Finds the URL of the resource with the specified name. The system class
130 * loader's resource lookup algorithm is used to find the resource.
132 * @return the {@code URL} object for the requested resource or {@code null}
133 * if the resource can not be found.
135 * the name of the resource to find.
143 * Returns an enumeration of URLs for the resource with the specified name.
144 * The system class loader's resource lookup algorithm is used to find the
145 * resource.
150 * the name of the resource t
[all...]
/libcore/libart/src/main/java/java/lang/
H A DClassLoader.java141 * Finds the URL of the resource with the specified name. The system class
142 * loader's resource lookup algorithm is used to find the resource.
144 * @return the {@code URL} object for the requested resource or {@code null}
145 * if the resource can not be found.
147 * the name of the resource to find.
155 * Returns an enumeration of URLs for the resource with the specified name.
156 * The system class loader's resource lookup algorithm is used to find the
157 * resource.
162 * the name of the resource t
[all...]
/libcore/luni/src/test/java/libcore/java/util/jar/
H A DOldJarInputStreamTest.java28 import tests.support.resource.Support_Resources;
H A DOldJarEntryTest.java26 import tests.support.resource.Support_Resources;
H A DOldJarFileTest.java27 import tests.support.resource.Support_Resources;
H A DDalvikExecTest.java32 import tests.support.resource.Support_Resources;
115 // Now add a resource file:
143 * dumping its contents read as a simple text resource.
170 // Now add a resource file:
209 * in the 'cts_dalvikExecTest_classes.dex' resource file.
H A DOldManifestTest.java29 import tests.support.resource.Support_Resources;
/libcore/luni/src/test/java/libcore/xml/
H A DNodeTest.java24 import tests.support.resource.Support_Resources;
/libcore/luni/src/test/java/tests/api/javax/xml/parsers/
H A DDocumentBuilderTest.java33 import tests.support.resource.Support_Resources;
488 URL resource = getClass().getResource("/simple.xml");
489 Document d = db.parse(resource.toString());
517 resource = getClass().getResource("/wrong.xml");
518 db.parse(resource.toString());
/libcore/luni/src/main/native/
H A Djava_lang_ProcessManager.cpp24 #include <sys/resource.h>
/libcore/luni/src/test/java/libcore/java/util/zip/
H A DOldZipFileTest.java21 import tests.support.resource.Support_Resources;
78 // the file hyts_zipFile.zip in setup must be included as a resource
H A DOldZipInputStreamTest.java30 import tests.support.resource.Support_Resources;
/libcore/
H A DJavaLibrary.mk48 define all-core-resource-dirs
54 core_resource_dirs := $(call all-core-resource-dirs,main)
55 test_resource_dirs := $(call all-core-resource-dirs,test)
171 # resource with a "#" in its name, but Perforce doesn't
/libcore/luni/src/test/java/tests/security/cert/
H A DCertificateFactory3Test.java29 import tests.support.resource.Support_Resources;
H A DCertificateFactory4Test.java22 import tests.support.resource.Support_Resources;
/libcore/luni/src/test/java/libcore/java/net/
H A DOldURLClassLoaderTest.java40 import tests.support.resource.Support_Resources;
91 String[] resValues = { "This is a test resource file.",
92 "This is a resource from a subdir"};
124 assertEquals("Returned incorrect resource/or in wrong order",
222 assertNotNull("Failed to locate resource", res);
225 assertEquals("Returned incorrect resource", new String(Support_TestWebData.test1),
255 assertNull("Found inexistant resource",
257 assertNotNull("Couldn't find resource from directory",
259 assertNotNull("Couldn't find resource from jar",
262 assertNotNull("Couldn't find resource fro
[all...]
H A DOldJarURLConnectionTest.java40 import tests.support.resource.Support_Resources;
/libcore/luni/src/test/java/tests/api/java/util/
H A DResourceBundleTest.java32 import tests.support.resource.Support_Resources;
131 "resource", bundle.getString("property"));
/libcore/luni/src/test/java/libcore/java/lang/
H A DOldRuntimeTest.java29 import tests.support.resource.Support_Resources;
/libcore/luni/src/test/java/org/apache/harmony/archive/tests/java/util/zip/
H A DZipFileTest.java21 import tests.support.resource.Support_Resources;
51 // the file hyts_zipFile.zip in setup must be included as a resource

Completed in 1470 milliseconds

12