Home
last modified time | relevance | path

Searched refs:bos (Results 1 – 25 of 41) sorted by relevance

12

/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/io/
DByteArrayOutputStreamTest.java35 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 …]
DBufferedOutputStreamTest.java150 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 …]
DPrintStreamTest.java34 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 …]
DFilterOutputStreamTest.java32 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 …]
DObjectOutputStream2Test.java47 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()
DDataOutputStreamTest.java32 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()
DDataInputStreamTest.java33 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/
DDigestOutputStreamTest.java148 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/
DEnvironmentHelper.java37 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/
DProxySerializationTest.java36 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/
DUncachedOggStream.java50 private boolean bos = false; field in UncachedOggStream
61 while (!bos){ in UncachedOggStream()
78 bos = true; in readNextOggPage()
DCachedOggStream.java57 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/
DZipOutputStreamTest.java34 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()
DZipInputStreamTest.java53 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/
DLogTest.java125 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/
DSerializationTester.java71 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/
DURLConnectionTest.java805 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/
DKeyStore_Impl3Test.java136 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/
DStats.java176 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/
DANTLR3.java93 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/
DSealedObjectTest.java53 ByteArrayOutputStream bos = new ByteArrayOutputStream(); in testReadObject() local
54 ObjectOutputStream oos = new ObjectOutputStream(bos); in testReadObject()
58 bos.toByteArray())); in testReadObject()
/external/libogg/doc/
Drfc3533.txt189 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/
DBase64.java1001 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/
DGrammarSerializerFoo.java61 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/
DConsoleHandlerTest.java353 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()

12