Home
last modified time | relevance | path

Searched refs:getResourceAsStream (Results 1 – 25 of 38) sorted by relevance

12

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/xml/parsers/
DDocumentBuilderFactoryTest.java312 db.parse(getClass().getResourceAsStream("/simple.xml")); in test_newDocumentBuilder()
384 Document document = parser.parse(getClass().getResourceAsStream( in test_setCoalescingZ()
412 Document document = parser.parse(getClass().getResourceAsStream( in test_setCoalescingZ()
447 Document document = parser.parse(getClass().getResourceAsStream( in test_setExpandEntityReferencesZ()
470 Document document = parser.parse(getClass().getResourceAsStream( in test_setExpandEntityReferencesZ()
545 Document document = parser.parse(getClass().getResourceAsStream( in test_setIgnoringCommentsZ()
568 Document document = parser.parse(getClass().getResourceAsStream( in test_setIgnoringCommentsZ()
594 Document document = parser.parse(getClass().getResourceAsStream( in test_setIgnoringElementContentWhitespaceZ()
613 Document document = parser.parse(getClass().getResourceAsStream( in test_setIgnoringElementContentWhitespaceZ()
637 Document document = parser.parse(getClass().getResourceAsStream( in test_setNamespaceAwareZ()
[all …]
DDocumentBuilderTest.java299 InputStream is = getClass().getResourceAsStream("/simple.xml"); in test_parseLjava_io_InputStream()
341 is = getClass().getResourceAsStream("/wrong.xml"); in test_parseLjava_io_InputStream()
359 InputStream stream = getClass().getResourceAsStream("/simple.xml"); in testParseInputSource()
403 is = new InputSource(getClass().getResourceAsStream("/wrong.xml")); in testParseInputSource()
422 InputStream is = getClass().getResourceAsStream("/systemid.xml"); in test_parseLjava_io_InputStreamLjava_lang_String()
469 is = getClass().getResourceAsStream("/wrong.xml"); in test_parseLjava_io_InputStreamLjava_lang_String()
DSAXParserFactoryTest.java56 is1 = getClass().getResourceAsStream("/simple.xml"); in setUp()
237 InputStream is = getClass().getResourceAsStream("/simple_ns.xml"); in test_setNamespaceAwareZ()
242 is = getClass().getResourceAsStream("/simple_ns.xml"); in test_setNamespaceAwareZ()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/reflect/
DGenericSignatureFormatErrorTest.java29 InputStream is = this.getClass().getResourceAsStream("/resources/dex1.bytes"); in test_readResource()
60 InputStream is = this.getClass().getResourceAsStream("/resources/dex1.bytes"); in test_signatureFormatError()
/libcore/support/src/test/java/tests/support/resource/
DSupport_Resources.java40 InputStream result = Support_Resources.class.getResourceAsStream(path); in getStream()
171 InputStream is = Support_Resources.class.getResourceAsStream(name); in getResourceStream()
175 is = Support_Resources.class.getResourceAsStream(name); in getResourceStream()
189 InputStream xml = Support_Resources.class.getResourceAsStream(path); in resourceToTempFile()
/libcore/luni/src/test/etc/loading-test-jar/
DTestMethods.java128 InputStream in = cl.getResourceAsStream("test/Resource1.txt"); in test_getResourceAsStream()
184 InputStream in = cl.getResourceAsStream("test2/Resource2.txt"); in test_diff_getResourceAsStream()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DClassTest.java434 InputStream str2 = getClass().getResourceAsStream(name); in test_getResourceAsStreamLjava_lang_String()
439 getClass().getResourceAsStream(nameBadURI)); in test_getResourceAsStreamLjava_lang_String()
569 assertNull(getClass().getResourceAsStream(SHARP_RESOURCE_ABS_NAME)); in test_getResourceAsStream_withSharpChar()
575 this.getClass().getClassLoader().getResourceAsStream(SHARP_RESOURCE_ABS_NAME); in test_getResourceAsStream_withSharpChar()
582 assertNull(getClass().getResourceAsStream(RESOURCE_ABS_NAME)); in test_getResourceAsStream()
586 InputStream in = this.getClass().getClassLoader().getResourceAsStream(RESOURCE_ABS_NAME); in test_getResourceAsStream()
592 InputStream in = getClass().getResourceAsStream(resourceName); in assertResourceExists()
DClassLoaderTest.java104 assertNull(parentClassLoader.getResourceAsStream(TEST_RESOURCE_NAME)); in test_testClassLoader_getResourceAsStreamLjava_lang_String()
137 is = classLoader.getResourceAsStream(resourceName); in assertGetResourceAsStreamNotNull()
/libcore/luni/src/test/java/libcore/xml/
DSimpleParserTest.java155 parser.parse(getClass().getResourceAsStream("/SimpleParserTest.xml"), in testWorkingFile1()
181 parser.parse(getClass().getResourceAsStream("/SimpleParserTest.xml"), in testWorkingFile2()
222 parser.parse(this.getClass().getResourceAsStream("/staffEntRes.xml"), in testEntityResolver()
229 parser.parse(getClass().getResourceAsStream("/staffNS.xml"), in testGetValue()
DSimpleBuilderTest.java58 Document document = builder.parse(getClass().getResourceAsStream( in testGoodFile1()
111 Document document = builder.parse(getClass().getResourceAsStream( in testGoodFile2()
/libcore/luni/src/test/java/libcore/java/lang/
DOldClassTest.java894 "directory", getClass().getResourceAsStream(name)); in test_getResourceAsStreamLjava_lang_String()
898 getClass().getResourceAsStream(nameBadURI)); in test_getResourceAsStreamLjava_lang_String()
902 assertNotNull(clazz.getResourceAsStream("HelloWorld1.txt")); in test_getResourceAsStreamLjava_lang_String()
905 getClass().getResourceAsStream(null); in test_getResourceAsStreamLjava_lang_String()
1003 InputStream stream = clazz.getResourceAsStream("HelloWorld.txt"); in testGetResourceAsStream1()
1017 InputStream stream = clazz.getResourceAsStream("/libcore/java/lang/HelloWorld.txt"); in testGetResourceAsStream2()
1028 clazz.getResourceAsStream(null); in testGetResourceAsStream2()
1033 assertNull(clazz.getResourceAsStream("/NonExistentResource")); in testGetResourceAsStream2()
1034 assertNull(clazz.getResourceAsStream("libcore/java/lang/HelloWorld.txt")); in testGetResourceAsStream2()
/libcore/luni/src/main/java/javax/xml/datatype/
DFactoryFinder.java234 is = cl.getResourceAsStream(serviceId); in findJarServiceProvider()
239 is = cl.getResourceAsStream(serviceId); in findJarServiceProvider()
/libcore/support/src/test/java/tests/security/
DMessageDigestTest.java81 InputStream sourceStream = getClass().getResourceAsStream(digestAlgorithmName + ".data"); in getSourceData()
88 getClass().getResourceAsStream(digestAlgorithmName + ".check"); in getCheckDigest()
/libcore/luni/src/main/java/org/xml/sax/helpers/
DXMLReaderFactory.java126 in = loader.getResourceAsStream (service); in createXMLReader()
/libcore/luni/src/test/java/libcore/java/io/
DOldObjectOutputStreamPutFieldTest.java127 refStream = getClass().getResourceAsStream(path); in getRefContent()
DOldObjectInputStreamGetFieldTest.java249 getClass().getResourceAsStream(fileName)); in initOis()
/libcore/luni/src/test/java/libcore/java/math/
DCSVTest.java48 getClass().getResourceAsStream(csvFileName))); in TestCSVInputs()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DInputStreamReaderTest.java165 .getResourceAsStream( in test_close()
407 in = this.getClass().getClassLoader().getResourceAsStream( in test_read_specialCharset()
420 in = this.getClass().getClassLoader().getResourceAsStream( in test_read_specialCharset()
/libcore/support/src/test/java/tests/support/
DSupport_GetLocal.java42 InputStream in = Support_GetLocal.class.getResourceAsStream(url); in getLocalFile()
/libcore/luni/src/test/java/libcore/java/text/
DOldDecimalFormatSymbolsTest.java40 .getResourceAsStream( in test_RIHarmony_compatible()
/libcore/luni/src/test/java/tests/support/
DSupport_SQL.java52 .getResourceAsStream("/connection.properties"); in loadDriver()
/libcore/libart/src/main/java/java/lang/
DClassLoader.java182 return SystemClassLoader.loader.getResourceAsStream(resName); in getSystemResourceAsStream()
440 public InputStream getResourceAsStream(String resName) { in getResourceAsStream() method in ClassLoader
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/prefs/
DPreferencesTest.java150 .getResourceAsStream("/resources/prefs/java/util/prefs/userprefs.xml"); in testImportPreferences()
160 in = PreferencesTest.class.getResourceAsStream( in testImportPreferences()
/libcore/luni/src/test/java/dalvik/system/
DDexClassLoaderTest.java139 loader.getResourceAsStream(PACKAGE_PATH + resourceName); in copyResource()
454 InputStream in = dcl.getResourceAsStream(resourceName); in test_directGetResourceAsStream()
/libcore/benchmarks/src/benchmarks/regression/
DParseBenchmark.java109 InputStream in = ParseBenchmark.class.getResourceAsStream(path); in resourceToString()

12