/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
D | ByteArrayOutputStreamTest.java | 35 ByteArrayOutputStream bos = null; field in ByteArrayOutputStreamTest 45 bos.close(); in tearDown() 55 bos = new ByteArrayOutputStream(100); in test_ConstructorI() 56 assertEquals("Failed to create stream", 0, bos.size()); in test_ConstructorI() 63 bos = new ByteArrayOutputStream(); in test_Constructor() 64 assertEquals("Failed to create stream", 0, bos.size()); in test_Constructor() 93 bos = new java.io.ByteArrayOutputStream(); in test_reset() 94 bos.write(fileString.getBytes(), 0, 100); in test_reset() 95 bos.reset(); in test_reset() 96 assertEquals("reset failed", 0, bos.size()); in test_reset() [all …]
|
D | BufferedOutputStreamTest.java | 150 BufferedOutputStream bos = new BufferedOutputStream(mos, 3); in test_write$BII() local 151 bos.write("a".getBytes()); in test_write$BII() 152 bos.write("bcde".getBytes()); in test_write$BII() 156 bos = new BufferedOutputStream(mos, 3); in test_write$BII() 157 bos.write("ab".getBytes()); in test_write$BII() 158 bos.write("cd".getBytes()); in test_write$BII() 166 OutputStream bos = new BufferedOutputStream(new ByteArrayOutputStream()); in test_write_$BII_Exception() local 171 bos.write(nullByteArray, -1, -1); in test_write_$BII_Exception() 178 bos.write(nullByteArray, -1, 0); in test_write_$BII_Exception() 185 bos.write(nullByteArray, -1, 1); in test_write_$BII_Exception() [all …]
|
D | FilterOutputStreamTest.java | 32 ByteArrayOutputStream bos; field in FilterOutputStreamTest 44 bos = new ByteArrayOutputStream(); in test_ConstructorLjava_io_OutputStream() 45 os = new FilterOutputStream(bos); in test_ConstructorLjava_io_OutputStream() 53 bos = new ByteArrayOutputStream(); in test_close() 54 os = new FilterOutputStream(bos); in test_close() 57 assertEquals("Bytes not written after flush", 500, bos.size()); in test_close() 65 bos = new ByteArrayOutputStream(); in test_flush() 66 os = new FilterOutputStream(bos); in test_flush() 69 assertEquals("Bytes not written after flush", 500, bos.size()); in test_flush() 77 bos = new ByteArrayOutputStream(); in test_write$B() [all …]
|
D | PrintStreamTest.java | 34 ByteArrayOutputStream bos = new ByteArrayOutputStream(); field in PrintStreamTest 100 PrintStream os = new PrintStream(bos); in test_ConstructorLjava_io_OutputStream() 106 os = new PrintStream(bos, true, null); in test_ConstructorLjava_io_OutputStream() 117 PrintStream os = new PrintStream(bos); in test_ConstructorLjava_io_OutputStreamZ() 120 assertTrue("Bytes not written", bos.size() > 0); in test_ConstructorLjava_io_OutputStreamZ() 175 PrintStream os = new PrintStream(bos); in test_close() 177 bos.close(); in test_close() 185 PrintStream os = new PrintStream(bos); in test_flush() 188 assertEquals("Bytes not written after flush", 501, bos.size()); in test_flush() 189 bos.close(); in test_flush() [all …]
|
D | ObjectOutputStream2Test.java | 48 ByteArrayOutputStream bos = new ByteArrayOutputStream(); in test_writeReadEnum() local 49 ObjectOutputStream os = new ObjectOutputStream(bos); in test_writeReadEnum() 53 ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray()); in test_writeReadEnum()
|
D | DataOutputStreamTest.java | 32 private ByteArrayOutputStream bos; field in DataOutputStreamTest 237 dis = new DataInputStream(new ByteArrayInputStream(bos.toByteArray())); in openDataInputStream() 245 bos = new ByteArrayOutputStream(); in setUp() 246 os = new DataOutputStream(bos); in setUp()
|
D | DataInputStreamTest.java | 33 private ByteArrayOutputStream bos; field in DataInputStreamTest 568 dis = new DataInputStream(new ByteArrayInputStream(bos.toByteArray())); in openDataInputStream() 576 bos = new ByteArrayOutputStream(); in setUp() 577 os = new DataOutputStream(bos); in setUp()
|
D | InputStreamReaderTest.java | 111 ByteArrayOutputStream bos = new ByteArrayOutputStream(); in setUp() local 112 OutputStreamWriter osw = new OutputStreamWriter(bos); in setUp() 117 fis = new ByteArrayInputStream(bos.toByteArray()); in setUp()
|
/libcore/luni/src/test/java/libcore/java/io/ |
D | OldByteArrayOutputStreamTest.java | 34 ByteArrayOutputStream bos = null; field in OldByteArrayOutputStreamTest 39 bos = new java.io.ByteArrayOutputStream(100); in test_ConstructorI() 40 assertEquals("Test 1: Failed to create stream;", 0, bos.size()); in test_ConstructorI() 43 bos = new ByteArrayOutputStream(-1); in test_ConstructorI() 51 bos = new ByteArrayOutputStream(); in test_toStringLjava_lang_String() 53 bos.write(fileString.getBytes(), 0, fileString.length()); in test_toStringLjava_lang_String() 55 bos.toString("8859_1").equals(fileString)); in test_toStringLjava_lang_String() 57 bos.toString("8859_2").equals(fileString)); in test_toStringLjava_lang_String() 60 bos.toString("NotAnEcoding"); in test_toStringLjava_lang_String() 69 bos = new ByteArrayOutputStream(); in test_write$BII_Exception() [all …]
|
D | OldOutputStreamTest.java | 54 BasicOutputStream bos = new BasicOutputStream(); in test_write$B() local 59 bos.write(shortByteArray); in test_write$B() 65 buffer = bos.getBuffer(); in test_write$B() 73 bos.write(longByteArray); in test_write$B() 79 BasicOutputStream bos = new BasicOutputStream(); in test_write$BII() local 84 bos.write(shortByteArray, 6, 5); in test_write$BII() 90 buffer = bos.getBuffer(); in test_write$BII() 98 bos.write(longByteArray, 5, 20); in test_write$BII() 103 bos.write(longByteArray, -1, 10); in test_write$BII() 112 bos.write(longByteArray, 10, -1); in test_write$BII() [all …]
|
D | OldDataOutputStreamTest.java | 34 private ByteArrayOutputStream bos; field in OldDataOutputStreamTest 47 BufferedOutputStream buf = new BufferedOutputStream(bos); in test_flush() 52 bos.toByteArray().length == 0); in test_flush() 55 bos.toByteArray().length > 0); in test_flush() 180 dis = new DataInputStream(new ByteArrayInputStream(bos.toByteArray())); in openDataInputStream() 185 bos = new ByteArrayOutputStream(); in setUp() 186 os = new DataOutputStream(bos); in setUp()
|
D | OldFilterOutputStreamTest.java | 30 java.io.ByteArrayOutputStream bos; field in OldFilterOutputStreamTest 44 bos = new ByteArrayOutputStream(); in test_ConstructorLjava_io_OutputStream() 45 os = new FilterOutputStream(bos); in test_ConstructorLjava_io_OutputStream() 194 if (bos != null) in tearDown() 195 bos.close(); in tearDown()
|
D | OldBufferedOutputStreamTest.java | 122 OutputStream bos = new BufferedOutputStream(new ByteArrayOutputStream()); in test_write$BII_Exception() local 127 bos.write(nullByteArray, 0, 1); in test_write$BII_Exception() 134 bos.write(byteArray, -1, 1); in test_write$BII_Exception() 141 bos.write(byteArray, 0, -1); in test_write$BII_Exception() 148 bos.write(byteArray, 1, 10); in test_write$BII_Exception()
|
D | OldDataInputStreamTest.java | 34 private ByteArrayOutputStream bos; field in OldDataInputStreamTest 354 dis = new DataInputStream(new ByteArrayInputStream(bos.toByteArray())); in openDataInputStream() 362 bos = new ByteArrayOutputStream(); in setUp() 363 os = new DataOutputStream(bos); in setUp()
|
D | OldInputStreamReaderTest.java | 51 ByteArrayOutputStream bos = new ByteArrayOutputStream(); in setUp() local 52 OutputStreamWriter osw = new OutputStreamWriter(bos); in setUp() 57 fis = new ByteArrayInputStream(bos.toByteArray()); in setUp()
|
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
D | DigestOutputStreamTest.java | 148 ByteArrayOutputStream bos = new ByteArrayOutputStream(MY_MESSAGE_LEN); in testWriteint01() local 149 DigestOutputStream dos = new DigestOutputStream(bos, md); in testWriteint01() 154 assertTrue("write", Arrays.equals(MDGoldenData.getMessage(), bos.toByteArray())); in testWriteint01() 180 ByteArrayOutputStream bos = new ByteArrayOutputStream(MY_MESSAGE_LEN); in testWriteint02() local 181 DigestOutputStream dos = new DigestOutputStream(bos, md); in testWriteint02() 191 assertTrue("write", Arrays.equals(MDGoldenData.getMessage(), bos.toByteArray())); in testWriteint02() 264 ByteArrayOutputStream bos = new ByteArrayOutputStream(MY_MESSAGE_LEN); in testWriteint05() local 265 DigestOutputStream dos = new DigestOutputStream(bos, null); in testWriteint05() 273 assertTrue(Arrays.equals(MDGoldenData.getMessage(), bos.toByteArray())); in testWriteint05() 286 ByteArrayOutputStream bos = new ByteArrayOutputStream(MY_MESSAGE_LEN); in test_write$BII_1() local [all …]
|
/libcore/luni/src/test/java/libcore/java/util/logging/ |
D | OldMemoryHandlerTest.java | 55 ByteArrayOutputStream bos = new ByteArrayOutputStream(); in propertiesToInputStream() local 56 p.store(bos, ""); in propertiesToInputStream() 57 return new ByteArrayInputStream(bos.toByteArray()); in propertiesToInputStream()
|
D | OldFileHandlerTest.java | 89 ByteArrayOutputStream bos = new ByteArrayOutputStream(); in propertiesToInputStream() local 90 p.store(bos, ""); in propertiesToInputStream() 91 return new ByteArrayInputStream(bos.toByteArray()); in propertiesToInputStream()
|
/libcore/support/src/test/java/tests/util/ |
D | SerializationTester.java | 47 ByteArrayOutputStream bos = new ByteArrayOutputStream(); in getDeserilizedObject() local 48 ObjectOutputStream oos = new ObjectOutputStream(bos); in getDeserilizedObject() 52 ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray()); in getDeserilizedObject()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/ |
D | ZipOutputStreamTest.java | 34 ByteArrayOutputStream bos; field in ZipOutputStreamTest 44 zos = new ZipOutputStream(bos); in test_close() 102 zis = new ZipInputStream(new ByteArrayInputStream(bos.toByteArray())); in test_putNextEntryLjava_util_zip_ZipEntry() 178 zis = new ZipInputStream(new ByteArrayInputStream(bos.toByteArray())); in test_write$BII() 276 zos = new ZipOutputStream(bos = new ByteArrayOutputStream()); in setUp()
|
D | ZipInputStreamTest.java | 53 ByteArrayOutputStream bos = new ByteArrayOutputStream(); in setUp() local 54 ZipOutputStream zos = new ZipOutputStream(bos); in setUp() 60 zipBytes = bos.toByteArray(); in setUp()
|
/libcore/luni/src/main/java/javax/crypto/ |
D | SealedObject.java | 105 ByteArrayOutputStream bos = new ByteArrayOutputStream(); in SealedObject() local 106 oos = new ObjectOutputStream(bos); in SealedObject() 113 this.encryptedContent = c.doFinal(bos.toByteArray()); in SealedObject()
|
/libcore/luni/src/test/java/libcore/java/util/zip/ |
D | OldZipInputStreamTest.java | 44 ByteArrayOutputStream bos = new ByteArrayOutputStream(); in setUp() local 45 ZipOutputStream zos = new ZipOutputStream(bos); in setUp()
|
/libcore/luni/src/main/java/libcore/reflect/ |
D | AnnotationMember.java | 310 ByteArrayOutputStream bos = new ByteArrayOutputStream( in rethrowError() local 312 ObjectOutputStream oos = new ObjectOutputStream(bos); in rethrowError() 316 ByteArrayInputStream bis = new ByteArrayInputStream(bos in rethrowError()
|
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/ |
D | SealedObjectTest.java | 73 ByteArrayOutputStream bos = new ByteArrayOutputStream(); in testReadObject() local 74 ObjectOutputStream oos = new ObjectOutputStream(bos); in testReadObject() 78 bos.toByteArray())); in testReadObject()
|