/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/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 | 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() 116 PrintStream os = new PrintStream(bos); in test_ConstructorLjava_io_OutputStreamZ() 119 assertTrue("Bytes not written", bos.size() > 0); in test_ConstructorLjava_io_OutputStreamZ() 174 PrintStream os = new PrintStream(bos); in test_close() 176 bos.close(); in test_close() 184 PrintStream os = new PrintStream(bos); in test_flush() 187 assertEquals("Bytes not written after flush", 501, bos.size()); in test_flush() 188 bos.close(); in test_flush() [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 | ObjectOutputStream2Test.java | 47 ByteArrayOutputStream bos = new ByteArrayOutputStream(); in test_writeReadEnum() local 48 ObjectOutputStream os = new ObjectOutputStream(bos); in test_writeReadEnum() 52 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()
|
/external/apache-harmony/security/src/test/api/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() 155 bos.toByteArray())); in testWriteint01() 181 ByteArrayOutputStream bos = new ByteArrayOutputStream(MY_MESSAGE_LEN); in testWriteint02() local 182 DigestOutputStream dos = new DigestOutputStream(bos, md); in testWriteint02() 193 bos.toByteArray())); in testWriteint02() 266 ByteArrayOutputStream bos = new ByteArrayOutputStream(MY_MESSAGE_LEN); in testWriteint05() local 267 DigestOutputStream dos = new DigestOutputStream(bos, null); in testWriteint05() 276 bos.toByteArray())); in testWriteint05() 290 ByteArrayOutputStream bos = new ByteArrayOutputStream(MY_MESSAGE_LEN); in testWritebyteArrayintint01() local [all …]
|
/external/apache-harmony/logging/src/test/java/org/apache/harmony/logging/tests/java/util/logging/util/ |
D | EnvironmentHelper.java | 37 ByteArrayOutputStream bos = null; in PropertiesToInputStream() local 39 bos = new ByteArrayOutputStream(); in PropertiesToInputStream() 40 p.store(bos, ""); in PropertiesToInputStream() 41 return new ByteArrayInputStream(bos.toByteArray()); in PropertiesToInputStream() 47 bos.close(); in PropertiesToInputStream()
|
/external/javassist/src/test/test/javassist/proxy/ |
D | ProxySerializationTest.java | 36 ByteArrayOutputStream bos = new ByteArrayOutputStream(); in testSerialization() local 37 ObjectOutputStream out = new ObjectOutputStream(bos); in testSerialization() 40 byte[] bytes = bos.toByteArray(); in testSerialization() 63 ByteArrayOutputStream bos = new ByteArrayOutputStream(); in testSerialization() local 64 ProxyObjectOutputStream out = new ProxyObjectOutputStream(bos); in testSerialization() 67 byte[] bytes = bos.toByteArray(); in testSerialization()
|
/external/jmonkeyengine/engine/src/jogg/com/jme3/audio/plugins/ |
D | UncachedOggStream.java | 50 private boolean bos = false; field in UncachedOggStream 61 while (!bos){ in UncachedOggStream() 78 bos = true; in readNextOggPage()
|
D | CachedOggStream.java | 57 private boolean bos = false; field in CachedOggStream 116 bos = true; in readOggNextPage()
|
/external/apache-harmony/archive/src/test/java/org/apache/harmony/archive/tests/java/util/zip/ |
D | ZipOutputStreamTest.java | 34 ByteArrayOutputStream bos; field in ZipOutputStreamTest 51 zos = new ZipOutputStream(bos); in test_close() 109 zis = new ZipInputStream(new ByteArrayInputStream(bos.toByteArray())); in test_putNextEntryLjava_util_zip_ZipEntry() 185 zis = new ZipInputStream(new ByteArrayInputStream(bos.toByteArray())); in test_write$BII() 283 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()
|
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/ |
D | LogTest.java | 125 final ByteArrayOutputStream bos = new ByteArrayOutputStream(); in shouldLogToProvidedStream() local 128 ShadowLog.stream = new PrintStream(bos); in shouldLogToProvidedStream() 130 assertThat(new String(bos.toByteArray()), equalTo("D/tag: msg\n")); in shouldLogToProvidedStream() 133 assertTrue(new String(bos.toByteArray()).contains("RuntimeException")); in shouldLogToProvidedStream()
|
/external/apache-harmony/support/src/test/java/tests/util/ |
D | SerializationTester.java | 71 ByteArrayOutputStream bos = new ByteArrayOutputStream(); in getDeserilizedObject() local 72 ObjectOutputStream oos = new ObjectOutputStream(bos); in getDeserilizedObject() 76 ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray()); in getDeserilizedObject()
|
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/net/ |
D | URLConnectionTest.java | 805 ByteArrayOutputStream bos = new ByteArrayOutputStream(); 808 bos.write(new byte[] { (byte) 0xEF, (byte) 0xBB, (byte) 0xBF }); 811 bos.write(new byte[] { (byte) 0xFE, (byte) 0xFF }); 814 bos.write(new byte[] { (byte) 0xFF, (byte) 0xFE }); 817 bos.write(new byte[] { (byte) 0x00, (byte) 0x00, (byte) 0xFE, 821 bos.write(new byte[] { (byte) 0xFF, (byte) 0xFE, (byte) 0x00, 825 bos.write(text.getBytes(enc)); 826 return bos.toByteArray();
|
/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/java/security/ |
D | KeyStore_Impl3Test.java | 136 ByteArrayOutputStream bos = new ByteArrayOutputStream(); in testLoadStore01() local 145 kss[i].store(bos, null); in testLoadStore01() 147 kss[i].store(bos, pwd); in testLoadStore01() 148 ByteArrayInputStream bis = new ByteArrayInputStream(bos in testLoadStore01()
|
/external/antlr/antlr-3.4/runtime/Java/src/main/java/org/antlr/runtime/misc/ |
D | Stats.java | 176 BufferedOutputStream bos = new BufferedOutputStream(fos); in writeReport() local 177 PrintStream ps = new PrintStream(bos); in writeReport() 180 bos.close(); in writeReport()
|
/external/antlr/antlr-3.4/antlr-ant/main/antlr3-task/antlr3-src/org/apache/tools/ant/antlr/ |
D | ANTLR3.java | 93 private ByteArrayOutputStream bos = new ByteArrayOutputStream(); field in ANTLR3 451 bos.close(); in execute() 461 Matcher m = p.matcher(bos.toString()); in execute() 627 bos.close(); in dependencyCheck() 651 Matcher m = p.matcher(bos.toString()); in dependencyCheck() 760 psh = new PumpStreamHandler(out, bos); in run() 762 psh = new PumpStreamHandler(out, new TeeOutputStream(err, bos)); in run()
|
/external/apache-harmony/crypto/src/test/api/java.injected/javax/crypto/ |
D | SealedObjectTest.java | 53 ByteArrayOutputStream bos = new ByteArrayOutputStream(); in testReadObject() local 54 ObjectOutputStream oos = new ObjectOutputStream(bos); in testReadObject() 58 bos.toByteArray())); in testReadObject()
|
/external/libogg/doc/ |
D | rfc3533.txt | 189 start page (bos=beginning of stream) and ends with a special page 192 The bos page contains information to uniquely identify the codec type 193 and MAY contain information to set up the decoding process. The bos 196 channels. By convention, the first bytes of the bos page contain 201 identifying marker. The format of the bos page is dependent on the 204 secondary header packets after the bos page for logical bitstreams 208 So, a physical bitstream begins with the bos pages of all logical 219 the Ogg Vorbis bos page. It also uses two additional header pages 220 per logical bitstream. The Ogg Vorbis bos page starts with the byte 241 In grouping, all bos pages of all logical bitstreams MUST appear [all …]
|
/external/smack/src/org/jivesoftware/smack/util/ |
D | Base64.java | 1001 Base64.OutputStream bos = null; in encodeToFile() local 1004 bos = new Base64.OutputStream( in encodeToFile() 1006 bos.write( dataToEncode ); in encodeToFile() 1016 try{ bos.close(); } catch( Exception e ){} in encodeToFile() 1035 Base64.OutputStream bos = null; in decodeToFile() local 1038 bos = new Base64.OutputStream( in decodeToFile() 1040 bos.write( dataToDecode.getBytes( PREFERRED_ENCODING ) ); in decodeToFile() 1049 try{ bos.close(); } catch( Exception e ){} in decodeToFile()
|
/external/antlr/antlr-3.4/tool/src/main/java/org/antlr/tool/ |
D | GrammarSerializerFoo.java | 61 BufferedOutputStream bos = new BufferedOutputStream(fos); in open() local 62 out = new DataOutputStream(bos); in open()
|
/external/apache-harmony/logging/src/test/java/org/apache/harmony/logging/tests/java/util/logging/ |
D | ConsoleHandlerTest.java | 353 ByteArrayOutputStream bos = new ByteArrayOutputStream(); in testPublish_AfterClose() local 354 System.setErr(new PrintStream(bos)); in testPublish_AfterClose() 367 assertTrue(bos.toString().indexOf("testPublish_Record1") >= 0); in testPublish_AfterClose() 372 assertTrue(bos.toString().indexOf("testPublish_Record2") >= 0); in testPublish_AfterClose()
|