/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
D | ClassTest.java | 441 InputStream str2 = getClass().getResourceAsStream(name); in test_getResourceAsStreamLjava_lang_String() 446 getClass().getResourceAsStream(nameBadURI)); in test_getResourceAsStreamLjava_lang_String() 555 assertNull(getClass().getResourceAsStream(SHARP_RESOURCE_ABS_NAME)); in test_getResourceAsStream_withSharpChar() 560 this.getClass().getClassLoader().getResourceAsStream(SHARP_RESOURCE_ABS_NAME); in test_getResourceAsStream_withSharpChar() 581 assertNull(getClass().getResourceAsStream(QUERY_RESOURCE_ABS_NAME)); in test_getResourceAsStream_withQueryChar() 586 this.getClass().getClassLoader().getResourceAsStream(QUERY_RESOURCE_ABS_NAME); in test_getResourceAsStream_withQueryChar() 607 assertNull(getClass().getResourceAsStream(RESOURCE_ABS_NAME)); in test_getResourceAsStream() 611 InputStream in = this.getClass().getClassLoader().getResourceAsStream(RESOURCE_ABS_NAME); in test_getResourceAsStream() 617 InputStream in = getClass().getResourceAsStream(resourceName); in assertResourceExists()
|
D | ClassLoaderTest.java | 109 assertNull(parentClassLoader.getResourceAsStream(TEST_RESOURCE_NAME)); in test_testClassLoader_getResourceAsStreamLjava_lang_String() 207 is = classLoader.getResourceAsStream(resourceName); in assertGetResourceAsStreamNotNull()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/reflect/ |
D | GenericSignatureFormatErrorTest.java | 28 InputStream is = this.getClass().getResourceAsStream("/resources/dex1.bytes"); in test_readResource() 57 InputStream is = this.getClass().getResourceAsStream("/resources/dex1.bytes"); in test_signatureFormatError()
|
/libcore/support/src/test/java/tests/support/resource/ |
D | Support_Resources.java | 40 InputStream result = Support_Resources.class.getResourceAsStream(path); in getStream() 167 InputStream is = Support_Resources.class.getResourceAsStream(name); in getResourceStream() 171 is = Support_Resources.class.getResourceAsStream(name); in getResourceStream() 185 InputStream xml = Support_Resources.class.getResourceAsStream(path); in resourceToTempFile()
|
/libcore/luni/src/test/etc/loading-test-jar/ |
D | TestMethods.java | 128 InputStream in = cl.getResourceAsStream("test/Resource1.txt"); in test_getResourceAsStream() 184 InputStream in = cl.getResourceAsStream("test2/Resource2.txt"); in test_diff_getResourceAsStream()
|
/libcore/luni/src/test/java/libcore/xml/ |
D | SimpleParserTest.java | 155 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()
|
D | SimpleBuilderTest.java | 58 Document document = builder.parse(getClass().getResourceAsStream( in testGoodFile1() 111 Document document = builder.parse(getClass().getResourceAsStream( in testGoodFile2()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/xml/parsers/ |
D | DocumentBuilderTest.java | 302 InputStream is = getClass().getResourceAsStream("/simple.xml"); in test_parseLjava_io_InputStream() 344 is = getClass().getResourceAsStream("/wrong.xml"); in test_parseLjava_io_InputStream() 362 InputStream stream = getClass().getResourceAsStream("/simple.xml"); in testParseInputSource() 406 is = new InputSource(getClass().getResourceAsStream("/wrong.xml")); in testParseInputSource() 425 InputStream is = getClass().getResourceAsStream("/systemid.xml"); in test_parseLjava_io_InputStreamLjava_lang_String() 472 is = getClass().getResourceAsStream("/wrong.xml"); in test_parseLjava_io_InputStreamLjava_lang_String()
|
D | SAXParserFactoryTest.java | 55 is1 = getClass().getResourceAsStream("/simple.xml"); in setUp() 236 InputStream is = getClass().getResourceAsStream("/simple_ns.xml"); in test_setNamespaceAwareZ() 241 is = getClass().getResourceAsStream("/simple_ns.xml"); in test_setNamespaceAwareZ()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
D | ParseExceptionTest.java | 53 try (InputStream inputStream = getClass().getResourceAsStream( in test_serialize()
|
/libcore/luni/src/test/java/tests/targets/security/ |
D | MessageDigestTest.java | 71 InputStream sourceStream = getClass().getResourceAsStream(digestAlgorithmName + ".data"); in getSourceData() 78 getClass().getResourceAsStream(digestAlgorithmName + ".check"); in getCheckDigest()
|
/libcore/luni/src/test/java/libcore/java/lang/ |
D | OldClassTest.java | 949 "directory", getClass().getResourceAsStream(name)); in test_getResourceAsStreamLjava_lang_String() 953 getClass().getResourceAsStream(nameBadURI)); in test_getResourceAsStreamLjava_lang_String() 957 assertNotNull(clazz.getResourceAsStream("HelloWorld1.txt")); in test_getResourceAsStreamLjava_lang_String() 960 getClass().getResourceAsStream(null); in test_getResourceAsStreamLjava_lang_String() 1058 InputStream stream = clazz.getResourceAsStream("HelloWorld.txt"); in testGetResourceAsStream1() 1072 InputStream stream = clazz.getResourceAsStream("/libcore/java/lang/HelloWorld.txt"); in testGetResourceAsStream2() 1083 clazz.getResourceAsStream(null); in testGetResourceAsStream2() 1088 assertNull(clazz.getResourceAsStream("/NonExistentResource")); in testGetResourceAsStream2() 1089 assertNull(clazz.getResourceAsStream("libcore/java/lang/HelloWorld.txt")); in testGetResourceAsStream2()
|
/libcore/ojluni/src/test/javax/xml/jaxp/transform/ |
D | XSLTExFuncTest.java | 75 xmlFile = XSLTExFuncTest.class.getResourceAsStream("tokenize.xml"); in setUp() 76 xslFile = XSLTExFuncTest.class.getResourceAsStream("tokenize.xsl"); in setUp()
|
/libcore/luni/src/test/java/libcore/dalvik/system/ |
D | PathClassLoaderTest.java | 72 try (InputStream in = pcl.getResourceAsStream("dalvik/system/loading-test.jar"); in extractResourceJar() 102 InputStream is = pcl.getResourceAsStream(signedEntryName); in test_classLoader_tampered_certificate_loadsOK_nullCertificates()
|
D | ClassLoaderTestSupport.java | 82 InputStream in = loader.getResourceAsStream(PACKAGE_PATH + resourceName); in copyResource()
|
/libcore/luni/src/main/java/javax/xml/datatype/ |
D | FactoryFinder.java | 238 is = cl.getResourceAsStream(serviceId); in findJarServiceProvider() 243 is = cl.getResourceAsStream(serviceId); in findJarServiceProvider()
|
/libcore/luni/src/test/java/libcore/libcore/util/ |
D | ZoneInfoTest.java | 45 try (InputStream is = getClass().getResourceAsStream("ZoneInfoTest_ZoneInfo.golden.ser"); in testReadSerialized()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/prefs/ |
D | PreferencesTest.java | 152 .getResourceAsStream("/resources/prefs/java/util/prefs/userprefs.xml"); in testImportPreferences() 162 in = PreferencesTest.class.getResourceAsStream( in testImportPreferences() 432 .getResourceAsStream("/resources/prefs/java/util/prefs/backendread.xml"); in testReadingFromBackendCache()
|
/libcore/luni/src/test/java/libcore/java/io/ |
D | OldObjectOutputStreamPutFieldTest.java | 127 refStream = getClass().getResourceAsStream(path); in getRefContent()
|
/libcore/luni/src/main/java/org/xml/sax/helpers/ |
D | XMLReaderFactory.java | 129 in = loader.getResourceAsStream (service); in createXMLReader()
|
/libcore/luni/src/test/java/libcore/java/math/ |
D | CSVTest.java | 48 getClass().getResourceAsStream(csvFileName))); in TestCSVInputs()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
D | InputStreamReaderTest.java | 165 .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/ |
D | Support_GetLocal.java | 42 InputStream in = Support_GetLocal.class.getResourceAsStream(url); in getLocalFile()
|
/libcore/luni/src/test/java/tests/support/ |
D | Support_SQL.java | 52 .getResourceAsStream("/connection.properties"); in loadDriver()
|
/libcore/luni/src/test/java/libcore/java/text/ |
D | OldDecimalFormatSymbolsTest.java | 39 .getResourceAsStream( in test_RIHarmony_compatible()
|