/libcore/luni/src/test/java/libcore/java/io/ |
D | OldFilterInputStreamTest.java | 30 public MyFilterInputStream(java.io.InputStream is) { in MyFilterInputStream() argument 31 super(is); in MyFilterInputStream() 37 private FilterInputStream is; field in OldFilterInputStreamTest 50 is.close(); in test_Constructor() 60 INPUT_LENGTH, is.available()); in test_available() 62 is.close(); in test_available() 64 is.available(); in test_available() 72 is.close(); in test_close() 75 is.read(); in test_close() 82 is = new MyFilterInputStream(sis); in test_close() [all …]
|
D | OldObjectInputOutputStreamTest.java | 30 private ObjectInputStream is; field in OldObjectInputOutputStreamTest 42 is.readBoolean()); in test_read_writeBoolean() 45 is.readBoolean(); in test_read_writeBoolean() 51 is.close(); in test_read_writeBoolean() 53 is.readBoolean(); in test_read_writeBoolean() 66 (byte) 127, is.readByte()); in test_read_writeByte() 69 is.readByte(); in test_read_writeByte() 75 is.close(); in test_read_writeByte() 77 is.readByte(); in test_read_writeByte() 90 'b', is.readChar()); in test_read_writeChar() [all …]
|
D | OldByteArrayInputStreamTest.java | 25 private ByteArrayInputStream is; field in OldByteArrayInputStreamTest 81 assertTrue("Returned incorrect number of available bytes", is in test_available() 89 is.read(); in test_close() 91 is.close(); in test_close() 96 is.read(); in test_close() 107 is.skip(3000); in test_markI() 108 is.mark(1000); in test_markI() 109 is.read(buf1, 0, buf1.length); in test_markI() 110 is.reset(); in test_markI() 111 is.read(buf2, 0, buf2.length); in test_markI() [all …]
|
D | OldInputStreamTest.java | 29 private InputStream is; field in OldInputStreamTest 62 assertEquals(is.available(), 0); in test_available() 67 is.close(); in test_close() 75 is.mark(10); in test_markI() 83 is.markSupported()); in test_markSupported() 95 is.read(b), 10); in test_read$B() 105 bytesRead = is.read(b); in test_read$B() 116 bytesRead = is.read(b); in test_read$B() 126 bytesRead = is.read(b, -1, 5); in test_read$BII_Exception() 134 bytesRead = is.read(b, 5, -1); in test_read$BII_Exception() [all …]
|
D | OldInputStreamReaderTest.java | 39 private InputStreamReader is; field in OldInputStreamReaderTest 58 is = new InputStreamReader(fis); in setUp() 64 is.close(); in tearDown() 170 is = new InputStreamReader(fis, "8859_1"); in test_ConstructorLjava_io_InputStreamLjava_lang_String() 176 is = new InputStreamReader(fis, "Bogus"); in test_ConstructorLjava_io_InputStreamLjava_lang_String() 186 is.close(); in test_close() 191 is.read(); in test_close() 197 is = new InputStreamReader(new Support_ASimpleInputStream(true)); in test_close() 199 is.read(); in test_close() 223 is.read(rbuf, 0, 100); in test_read$CII() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
D | FileInputStreamTest.java | 33 private java.io.InputStream is; field in FileInputStreamTest 109 is = new FileInputStream(f); in test_ConstructorLjava_io_File() 110 is.close(); in test_ConstructorLjava_io_File() 127 is = new FileInputStream(fileName); in test_ConstructorLjava_lang_String() 128 is.close(); in test_ConstructorLjava_lang_String() 136 is = new FileInputStream(""); in test_ConstructorLjava_lang_String_I() 141 if (is != null) { in test_ConstructorLjava_lang_String_I() 142 is.close(); in test_ConstructorLjava_lang_String_I() 146 is = new FileInputStream(new File("")); in test_ConstructorLjava_lang_String_I() 151 if (is != null) { in test_ConstructorLjava_lang_String_I() [all …]
|
D | ByteArrayInputStreamTest.java | 27 private InputStream is; field in ByteArrayInputStreamTest 77 assertTrue("Returned incorrect number of available bytes", is in test_available() 85 is.read(); in test_close() 86 is.close(); in test_close() 87 is.read(); // Should be able to read from a closed stream in test_close() 96 is.skip(3000); in test_markI() 97 is.mark(1000); in test_markI() 98 is.read(buf1, 0, buf1.length); in test_markI() 99 is.reset(); in test_markI() 100 is.read(buf2, 0, buf2.length); in test_markI() [all …]
|
D | FilterInputStreamTest.java | 32 public MyFilterInputStream(InputStream is) { in MyFilterInputStream() argument 33 super(is); in MyFilterInputStream() 38 private InputStream is; field in FilterInputStreamTest 104 is = new MyFilterInputStream(new java.io.FileInputStream(fileName)); in setUp() 114 is.close(); in tearDown() 125 assertTrue("Returned incorrect number of available bytes", is in test_available() 133 is.close(); in test_close() 136 is.read(); in test_close() 154 assertTrue("markSupported returned true", !is.markSupported()); in test_markSupported() 161 int c = is.read(); in test_read() [all …]
|
D | DataInputStreamTest.java | 159 DataInputStream is = new DataInputStream(new ByteArrayInputStream( in test_readFully$BII_Exception() local 165 is.readFully(byteArray, -1, -1); in test_readFully$BII_Exception() 172 is.readFully(byteArray, 0, -1); in test_readFully$BII_Exception() 179 is.readFully(byteArray, 1, -1); in test_readFully$BII_Exception() 185 is.readFully(byteArray, -1, 0); in test_readFully$BII_Exception() 186 is.readFully(byteArray, 0, 0); in test_readFully$BII_Exception() 187 is.readFully(byteArray, 1, 0); in test_readFully$BII_Exception() 190 is.readFully(byteArray, -1, 1); in test_readFully$BII_Exception() 196 is.readFully(byteArray, 0, 1); in test_readFully$BII_Exception() 197 is.readFully(byteArray, 1, 1); in test_readFully$BII_Exception() [all …]
|
D | BufferedInputStreamTest.java | 87 private BufferedInputStream is; field in BufferedInputStreamTest 120 is = new BufferedInputStream(isBytes, bufferSize); in test_ConstructorLjava_io_InputStreamI() 122 is.read(); in test_ConstructorLjava_io_InputStreamI() 128 is.skip(bufferSize - 2); in test_ConstructorLjava_io_InputStreamI() 129 is.read(); in test_ConstructorLjava_io_InputStreamI() 133 is.read(); in test_ConstructorLjava_io_InputStreamI() 150 MockBufferedInputStream(InputStream is) throws IOException { in MockBufferedInputStream() argument 151 super(is); in MockBufferedInputStream() 155 MockBufferedInputStream(InputStream is, int size) throws IOException { in MockBufferedInputStream() argument 156 super(is, size); in MockBufferedInputStream() [all …]
|
/libcore/luni/src/main/java/libcore/net/url/ |
D | FtpURLInputStream.java | 31 private InputStream is; // Actual input stream field in FtpURLInputStream 35 public FtpURLInputStream(InputStream is, Socket controlSocket) { in FtpURLInputStream() argument 36 this.is = is; in FtpURLInputStream() 42 return is.read(); in read() 47 return is.read(buf, off, nbytes); in read() 52 is.reset(); in reset() 57 is.mark(limit); in mark() 62 return is.markSupported(); in markSupported() 67 IoUtils.closeQuietly(is); in close() 73 return is.available(); in available() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/ |
D | ZipFileTest.java | 255 InputStream is = null; in test_getInputStreamLjava_util_zip_ZipEntry() local 258 is = zfile.getInputStream(zentry); in test_getInputStreamLjava_util_zip_ZipEntry() 261 is.read(rbuf, 0, r = (int) zentry.getSize()); in test_getInputStreamLjava_util_zip_ZipEntry() 268 is.close(); in test_getInputStreamLjava_util_zip_ZipEntry() 277 is = zfile.getInputStream(zentry); in test_getInputStreamLjava_util_zip_ZipEntry() 315 InputStream is = zfile.getInputStream(zentry); in test_reset() local 319 r1 = is.read(rbuf1); in test_reset() 321 r2 = is.read(rbuf2); in test_reset() 325 is.reset(); in test_reset() 329 is.close(); in test_reset() [all …]
|
D | DeflaterInputStreamTest.java | 40 private InputStream is; field in DeflaterInputStreamTest 45 is = new ByteArrayInputStream(TEST_STR.getBytes("UTF-8")); in setUp() 50 is.close(); in tearDown() 59 DeflaterInputStream dis = new DeflaterInputStream(is); in testAvailable() 81 DeflaterInputStream dis = new DeflaterInputStream(is); in testClose() 105 DeflaterInputStream dis = new DeflaterInputStream(is); in testMark() 117 DeflaterInputStream dis = new DeflaterInputStream(is); in testMarkSupported() 127 DeflaterInputStream dis = new DeflaterInputStream(is); in testRead() 145 DeflaterInputStream dis = new DeflaterInputStream(is); in testRead_golden() 163 DeflaterInputStreamWithPublicBuffer dis = new DeflaterInputStreamWithPublicBuffer(is); in testRead_leavesBufUnmodified() [all …]
|
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
D | IdentityScopeTest.java | 49 IdentityScope is; field in IdentityScopeTest 69 is = new IdentityScopeStub("Aleksei Semenov"); in testIdentityScopeString() 70 assertNotNull(is); in testIdentityScopeString() 71 assertEquals("Aleksei Semenov", is.getName()); in testIdentityScopeString() 79 is = new IdentityScopeStub("Aleksei Semenov", scope); in testIdentityScopeStringIdentityScope() 80 assertNotNull(is); in testIdentityScopeStringIdentityScope() 81 assertEquals("Aleksei Semenov", is.getName()); in testIdentityScopeStringIdentityScope() 82 assertEquals(scope.getName(), is.getScope().getName()); in testIdentityScopeStringIdentityScope() 107 is = new IdentityScopeStub("Aleksei Semenov"); in testSetSystemScope() 108 IdentityScopeStub.mySetSystemScope(is); in testSetSystemScope() [all …]
|
D | DigestInputStreamTest.java | 84 InputStream is = new ByteArrayInputStream(myMessage); in testDigestInputStream01() local 85 InputStream dis = new DigestInputStream(is, md); in testDigestInputStream01() 117 InputStream is = new ByteArrayInputStream(myMessage); in testRead01() local 118 DigestInputStream dis = new DigestInputStream(is, md); in testRead01() 150 InputStream is = new ByteArrayInputStream(myMessage); in testRead02() local 151 DigestInputStream dis = new DigestInputStream(is, md); in testRead02() 185 InputStream is = new ByteArrayInputStream(myMessage); in testRead03() local 186 DigestInputStream dis = new DigestInputStream(is, md); in testRead03() 246 InputStream is = new ByteArrayInputStream(myMessage); in testRead05() local 247 DigestInputStream dis = new DigestInputStream(is, null); in testRead05() [all …]
|
D | DigestInputStream2Test.java | 137 DigestInputStream is = new DigestInputStream(inStream, digest); in test_read$BII_Exception() local 140 is.read(buf, -1, 0); in test_read$BII_Exception() 148 is.read(buf, -1, 0); in test_read$BII_Exception() 155 is.read(buf, 0, -1); in test_read$BII_Exception() 162 is.read(buf, -1, -1); in test_read$BII_Exception() 169 is.read(buf, 0, 1001); in test_read$BII_Exception() 176 is.read(buf, 1001, 0); in test_read$BII_Exception() 183 is.read(buf, 500, 501); in test_read$BII_Exception() 189 is.close(); in test_read$BII_Exception() 192 is = new DigestInputStream(sis, digest); in test_read$BII_Exception() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/jar/ |
D | JarInputStreamTest.java | 57 InputStream is = new URL(jarName).openConnection().getInputStream(); in test_ConstructorLjava_io_InputStream() local 59 JarInputStream jis = new JarInputStream(is); in test_ConstructorLjava_io_InputStream() 75 InputStream is = Support_Resources.getStream("Broken_entry.jar"); in test_closeAfterException() local 76 JarInputStream jis = new JarInputStream(is, false); in test_closeAfterException() 97 InputStream is = new URL(jarName).openConnection().getInputStream(); in test_getNextJarEntry_Ex() local 98 JarInputStream jis = new JarInputStream(is); in test_getNextJarEntry_Ex() 116 is = Support_Resources.getStream("Broken_entry.jar"); in test_getNextJarEntry_Ex() 117 jis = new JarInputStream(is, false); in test_getNextJarEntry_Ex() 131 InputStream is = new URL(jarName2).openConnection().getInputStream(); in test_getManifest() local 132 JarInputStream jis = new JarInputStream(is); in test_getManifest() [all …]
|
/libcore/luni/src/main/java/javax/xml/parsers/ |
D | SAXParser.java | 124 public void parse(InputStream is, HandlerBase hb) in parse() argument 126 if (is == null) { in parse() 130 InputSource input = new InputSource(is); in parse() 153 InputStream is, in parse() argument 157 if (is == null) { in parse() 161 InputSource input = new InputSource(is); in parse() 180 public void parse(InputStream is, DefaultHandler dh) in parse() argument 182 if (is == null) { in parse() 186 InputSource input = new InputSource(is); in parse() 206 InputStream is, in parse() argument [all …]
|
D | DocumentBuilder.java | 100 public Document parse(InputStream is) in parse() argument 102 if (is == null) { in parse() 106 InputSource in = new InputSource(is); in parse() 124 public Document parse(InputStream is, String systemId) in parse() argument 126 if (is == null) { in parse() 130 InputSource in = new InputSource(is); in parse() 199 public abstract Document parse(InputSource is) in parse() argument
|
/libcore/luni/src/main/java/java/util/zip/ |
D | InflaterInputStream.java | 76 public InflaterInputStream(InputStream is) { in InflaterInputStream() argument 77 this(is, new Inflater(), BUF_SIZE); in InflaterInputStream() 89 public InflaterInputStream(InputStream is, Inflater inflater) { in InflaterInputStream() argument 90 this(is, inflater, BUF_SIZE); in InflaterInputStream() 104 public InflaterInputStream(InputStream is, Inflater inflater, int bufferSize) { in InflaterInputStream() argument 105 super(is); in InflaterInputStream() 106 if (is == null) { in InflaterInputStream() 115 if (is instanceof ZipFile.RAFStream) { in InflaterInputStream() 191 ZipFile.RAFStream is = (ZipFile.RAFStream) in; in fill() local 192 len = is.fill(inf, nativeEndBufSize); in fill()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/reflect/ |
D | GenericSignatureFormatErrorTest.java | 29 InputStream is = this.getClass().getResourceAsStream("/resources/dex1.bytes"); in test_readResource() local 30 assertNotNull(is); in test_readResource() 60 InputStream is = this.getClass().getResourceAsStream("/resources/dex1.bytes"); in test_signatureFormatError() local 61 assertNotNull(is); in test_signatureFormatError() 63 copy(is, fos); in test_signatureFormatError() 89 private void copy(InputStream is, OutputStream os) { in copy() argument 92 while ((b = is.read()) != -1) { in copy() 95 is.close(); in copy()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
D | ClassLoaderTest.java | 135 InputStream is = null; in assertGetResourceAsStreamNotNull() local 137 is = classLoader.getResourceAsStream(resourceName); in assertGetResourceAsStreamNotNull() 138 assertNotNull(is); in assertGetResourceAsStreamNotNull() 140 if (is != null) { in assertGetResourceAsStreamNotNull() 141 is.close(); in assertGetResourceAsStreamNotNull() 149 InputStream is = null; in assertGetResourceIsValid() local 151 is = u.openStream(); in assertGetResourceIsValid() 152 assertNotNull(is); in assertGetResourceIsValid() 153 is.close(); in assertGetResourceIsValid()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/xml/parsers/ |
D | SAXParserTest.java | 400 InputSource is = new InputSource(new FileInputStream(list_wf[i])); in test_parseLorg_xml_sax_InputSourceLorg_xml_sax_helpers_DefaultHandler() local 401 parser.parse(is, dh); in test_parseLorg_xml_sax_InputSourceLorg_xml_sax_helpers_DefaultHandler() 408 InputSource is = new InputSource(new FileInputStream(file)); in test_parseLorg_xml_sax_InputSourceLorg_xml_sax_helpers_DefaultHandler() local 409 parser.parse(is, dh); in test_parseLorg_xml_sax_InputSourceLorg_xml_sax_helpers_DefaultHandler() 422 InputSource is = new InputSource(new FileInputStream(list_wf[0])); in test_parseLorg_xml_sax_InputSourceLorg_xml_sax_helpers_DefaultHandler() local 423 parser.parse(is, (DefaultHandler) null); in test_parseLorg_xml_sax_InputSourceLorg_xml_sax_helpers_DefaultHandler() 428 is = new InputSource(in); in test_parseLorg_xml_sax_InputSourceLorg_xml_sax_helpers_DefaultHandler() 429 parser.parse(is, (DefaultHandler) null); in test_parseLorg_xml_sax_InputSourceLorg_xml_sax_helpers_DefaultHandler() 441 InputSource is = new InputSource(new FileInputStream(list_wf[i])); in testParseInputSourceHandlerBase() local 442 parser.parse(is, dh); in testParseInputSourceHandlerBase() [all …]
|
/libcore/luni/src/test/java/libcore/java/util/jar/ |
D | OldJarInputStreamTest.java | 35 InputStream is = new BufferedInputStream(new ByteArrayInputStream(new byte[0])); in test_ConstructorLjava_io_InputStreamZ() local 36 is.close(); in test_ConstructorLjava_io_InputStreamZ() 37 new JarInputStream(is, false); in test_ConstructorLjava_io_InputStreamZ() 59 InputStream is = Support_Resources.getStream("Broken_entry.jar"); in test_createZipEntryLjava_lang_String() local 60 Mock_JarInputStream mjis = new Mock_JarInputStream(is); in test_createZipEntryLjava_lang_String() 67 InputStream is = Support_Resources.getStream("Broken_entry_data.jar"); in test_read$ZII() local 68 JarInputStream jis = new JarInputStream(is, true); in test_read$ZII()
|
/libcore/luni/src/test/resources/META-INF/services/ |
D | libcore.java.util.ServiceLoaderTestInterface | 1 # this is a comment 5 libcore.java.util.ServiceLoaderTest$Impl2 # this comment is valid 6 libcore.java.util.ServiceLoaderTest$Impl2#as is this 8 libcore.java.util.ServiceLoaderTest$Impl2 # as is leading whitespace
|