/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/io/ |
H A D | ByteArrayOutputStreamTest.java | 35 ByteArrayOutputStream bos = null; field in class:ByteArrayOutputStreamTest 45 bos.close(); 55 bos = new ByteArrayOutputStream(100); 56 assertEquals("Failed to create stream", 0, bos.size()); 63 bos = new ByteArrayOutputStream(); 64 assertEquals("Failed to create stream", 0, bos.size()); 80 * java.io.ByteArrayOutputStream bos = new 81 * java.io.ByteArrayOutputStream(); bos.write (fileString.getBytes(), 0, 82 * 100); try { bos.close(); } catch (java.io.IOException e) { 83 * fail("IOException closing stream"); } try { bos [all...] |
H A D | FilterOutputStreamTest.java | 32 ByteArrayOutputStream bos; field in class:FilterOutputStreamTest 44 bos = new ByteArrayOutputStream(); 45 os = new FilterOutputStream(bos); 53 bos = new ByteArrayOutputStream(); 54 os = new FilterOutputStream(bos); 57 assertEquals("Bytes not written after flush", 500, bos.size()); 65 bos = new ByteArrayOutputStream(); 66 os = new FilterOutputStream(bos); 69 assertEquals("Bytes not written after flush", 500, bos.size()); 77 bos [all...] |
H A D | BufferedOutputStreamTest.java | 150 BufferedOutputStream bos = new BufferedOutputStream(mos, 3); 151 bos.write("a".getBytes()); 152 bos.write("bcde".getBytes()); 156 bos = new BufferedOutputStream(mos, 3); 157 bos.write("ab".getBytes()); 158 bos.write("cd".getBytes()); 166 OutputStream bos = new BufferedOutputStream(new ByteArrayOutputStream()); 171 bos.write(nullByteArray, -1, -1); 178 bos.write(nullByteArray, -1, 0); 185 bos [all...] |
H A D | PrintStreamTest.java | 34 ByteArrayOutputStream bos = new ByteArrayOutputStream(); field in class:PrintStreamTest 100 PrintStream os = new PrintStream(bos); 106 os = new PrintStream(bos, true, null); 116 PrintStream os = new PrintStream(bos); 119 assertTrue("Bytes not written", bos.size() > 0); 174 PrintStream os = new PrintStream(bos); 176 bos.close(); 184 PrintStream os = new PrintStream(bos); 187 assertEquals("Bytes not written after flush", 501, bos.size()); 188 bos [all...] |
H A D | ObjectOutputStream2Test.java | 47 ByteArrayOutputStream bos = new ByteArrayOutputStream(); 48 ObjectOutputStream os = new ObjectOutputStream(bos); 52 ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray());
|
H A D | DataOutputStreamTest.java | 32 private ByteArrayOutputStream bos; field in class:DataOutputStreamTest 237 dis = new DataInputStream(new ByteArrayInputStream(bos.toByteArray())); 245 bos = new ByteArrayOutputStream(); 246 os = new DataOutputStream(bos);
|
H A D | DataInputStreamTest.java | 33 private ByteArrayOutputStream bos; field in class:DataInputStreamTest 568 dis = new DataInputStream(new ByteArrayInputStream(bos.toByteArray())); 576 bos = new ByteArrayOutputStream(); 577 os = new DataOutputStream(bos);
|
H A D | InputStreamReaderTest.java | 113 ByteArrayOutputStream bos = new ByteArrayOutputStream(); 114 OutputStreamWriter osw = new OutputStreamWriter(bos); 119 fis = new ByteArrayInputStream(bos.toByteArray());
|
/external/apache-harmony/logging/src/test/java/org/apache/harmony/logging/tests/java/util/logging/util/ |
H A D | EnvironmentHelper.java | 37 ByteArrayOutputStream bos = null; 39 bos = new ByteArrayOutputStream(); 40 p.store(bos, ""); 41 return new ByteArrayInputStream(bos.toByteArray()); 47 bos.close();
|
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/ |
H A D | DigestOutputStreamTest.java | 148 ByteArrayOutputStream bos = new ByteArrayOutputStream(MY_MESSAGE_LEN); 149 DigestOutputStream dos = new DigestOutputStream(bos, md); 155 bos.toByteArray())); 181 ByteArrayOutputStream bos = new ByteArrayOutputStream(MY_MESSAGE_LEN); 182 DigestOutputStream dos = new DigestOutputStream(bos, md); 193 bos.toByteArray())); 266 ByteArrayOutputStream bos = new ByteArrayOutputStream(MY_MESSAGE_LEN); 267 DigestOutputStream dos = new DigestOutputStream(bos, null); 276 bos.toByteArray())); 290 ByteArrayOutputStream bos [all...] |
/external/javassist/src/test/test/javassist/proxy/ |
H A D | ProxySerializationTest.java | 36 ByteArrayOutputStream bos = new ByteArrayOutputStream(); 37 ObjectOutputStream out = new ObjectOutputStream(bos); 40 byte[] bytes = bos.toByteArray(); 63 ByteArrayOutputStream bos = new ByteArrayOutputStream(); 64 ProxyObjectOutputStream out = new ProxyObjectOutputStream(bos); 67 byte[] bytes = bos.toByteArray();
|
/external/apache-harmony/support/src/test/java/tests/util/ |
H A D | SerializationTester.java | 71 ByteArrayOutputStream bos = new ByteArrayOutputStream(); 72 ObjectOutputStream oos = new ObjectOutputStream(bos); 76 ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray());
|
/external/apache-harmony/archive/src/test/java/org/apache/harmony/archive/tests/java/util/zip/ |
H A D | ZipOutputStreamTest.java | 34 ByteArrayOutputStream bos; field in class:ZipOutputStreamTest 51 zos = new ZipOutputStream(bos); 109 zis = new ZipInputStream(new ByteArrayInputStream(bos.toByteArray())); 185 zis = new ZipInputStream(new ByteArrayInputStream(bos.toByteArray())); 283 zos = new ZipOutputStream(bos = new ByteArrayOutputStream());
|
H A D | ZipInputStreamTest.java | 53 ByteArrayOutputStream bos = new ByteArrayOutputStream(); 54 ZipOutputStream zos = new ZipOutputStream(bos); 60 zipBytes = bos.toByteArray();
|
/external/antlr/src/org/antlr/runtime/misc/ |
H A D | Stats.java | 176 BufferedOutputStream bos = new BufferedOutputStream(fos); 177 PrintStream ps = new PrintStream(bos); 180 bos.close();
|
/external/apache-harmony/crypto/src/test/api/java.injected/javax/crypto/ |
H A D | SealedObjectTest.java | 53 ByteArrayOutputStream bos = new ByteArrayOutputStream(); 54 ObjectOutputStream oos = new ObjectOutputStream(bos); 58 bos.toByteArray()));
|
/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/java/security/ |
H A D | KeyStore_Impl3Test.java | 136 ByteArrayOutputStream bos = new ByteArrayOutputStream(); 145 kss[i].store(bos, null); 147 kss[i].store(bos, pwd); 148 ByteArrayInputStream bis = new ByteArrayInputStream(bos
|
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/net/ |
H A 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/logging/src/test/java/org/apache/harmony/logging/tests/java/util/logging/ |
H A D | ConsoleHandlerTest.java | 353 ByteArrayOutputStream bos = new ByteArrayOutputStream(); 354 System.setErr(new PrintStream(bos)); 367 assertTrue(bos.toString().indexOf("testPublish_Record1") >= 0); 372 assertTrue(bos.toString().indexOf("testPublish_Record2") >= 0);
|
/external/antlr/src/org/antlr/runtime/ |
H A D | SerializedGrammar.java | 92 BufferedInputStream bos = new BufferedInputStream(fis); 93 DataInputStream in = new DataInputStream(bos);
|
/external/srec/srec/Recognizer/include/ |
H A D | SR_Recognizer.h | 464 * @param bos Beginning of speech (seconds) 472 const double bos, 874 * @param bos Beginning of speech (seconds) 882 const double bos,
|
H A D | SR_RecognizerImpl.h | 142 /* does the windback after bos detected */ 524 const double bos,
|
/external/srec/srec/Recognizer/src/ |
H A D | Recognizer.c | 360 const double bos, 369 return self->logWaveformData(self, waveformFilename, transcription, bos, eos, isInvocab); 357 SR_RecognizerLogWaveformData(SR_Recognizer* self, const LCHAR* waveformFilename, const LCHAR* transcription, const double bos, const double eos, ESR_BOOL isInvocab) argument
|
/external/srec/srec/test/SRecTest/src/ |
H A D | SRecTest.c | 2625 int srec_test_log_reco_from_file_data ( SR_Grammar *active_grammar, ApplicationData *data, LCHAR *waveform, LCHAR *bos, LCHAR *eos, LCHAR *transcription ) argument 2670 esr_status = SR_RecognizerLogWaveformData ( data->recognizer, waveform, data->transcription, atof ( bos ), atof ( eos ), got_results ); 2698 LCHAR bos [MAX_LINE_LENGTH]; local 2706 MAX_LINE_LENGTH, bos, MAX_LINE_LENGTH, 2711 recognize_status = srec_test_log_reco_from_file_data ( active_grammar, data, waveform, bos, eos, transcription ); 2715 if(LSTRCMP(bos,"0") || LSTRCMP(eos,"0")) { 2792 LCHAR bos [MAX_LINE_LENGTH]; local 2800 MAX_LINE_LENGTH, bos, MAX_LINE_LENGTH, 2805 recognize_status = srec_test_log_reco_from_file_data ( active_grammar, data, waveform, bos, eos, transcription ); 2809 if(LSTRCMP(bos," [all...] |
/external/apache-harmony/math/src/test/java/tests/api/java/math/ |
H A D | BigDecimalTest.java | 887 ByteArrayOutputStream bos = new ByteArrayOutputStream(); 888 ObjectOutputStream oos = new ObjectOutputStream(bos); 891 ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray());
|