HomeSort by relevance Sort by last modified time
    Searched refs:bao (Results 1 - 8 of 8) sorted by null

  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
ThrowableTest.java 75 ByteArrayOutputStream bao = new ByteArrayOutputStream(); local
76 PrintStream ps = new PrintStream(bao);
83 String s = fixStacktrace(new String(bao.toByteArray(), 0, bao.size()));
85 bao.reset();
92 String s2 = fixStacktrace(new String(bao.toByteArray(), 0, bao.size()));
130 ByteArrayOutputStream bao = new ByteArrayOutputStream(); local
131 PrintStream ps = new PrintStream(bao);
137 String s = new String(bao.toByteArray(), 0, bao.size())
148 ByteArrayOutputStream bao = new ByteArrayOutputStream(); local
165 ByteArrayOutputStream bao = new ByteArrayOutputStream(); local
    [all...]
  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
PrintWriterTest.java 60 ByteArrayOutputStream bao; field in class:PrintWriterTest
76 br = new BufferedReader(new Support_StringReader(bao.toString()));
94 pw = new PrintWriter(bao, true);
98 br = new BufferedReader(new Support_StringReader(bao.toString()));
103 br = new BufferedReader(new Support_StringReader(bao.toString()));
238 assertTrue("Failed to flush", new String(bao.toByteArray())
253 br = new BufferedReader(new Support_StringReader(bao.toString()));
277 assertEquals("Wrote incorrect char string", "c", new String(bao.toByteArray())
289 assertTrue("Wrote incorrect double string", new String(bao
302 new String(bao.toByteArray()).equals(String.valueOf(flo)))
    [all...]
ObjectOutputStreamTest.java 572 protected ByteArrayOutputStream bao; field in class:ObjectOutputStreamTest
613 int size = bao.size();
615 assertTrue("Data flushed already", bao.size() == size);
617 assertTrue("Failed to flush data", bao.size() > size);
642 ois = new ObjectInputStream(new ByteArrayInputStream(bao.toByteArray()));
661 ois = new ObjectInputStream(new ByteArrayInputStream(bao.toByteArray()));
707 ois = new ObjectInputStream(new ByteArrayInputStream(bao.toByteArray()));
734 ois = new ObjectInputStream(new ByteArrayInputStream(bao.toByteArray()));
750 ois = new ObjectInputStream(new ByteArrayInputStream(bao.toByteArray()));
764 ois = new ObjectInputStream(new ByteArrayInputStream(bao.toByteArray()))
    [all...]
SerializationStressTest.java 91 protected transient ByteArrayOutputStream bao; field in class:SerializationStressTest
229 return new ByteArrayInputStream(bao.toByteArray());
253 oos = new ObjectOutputStream(bao = new ByteArrayOutputStream());
284 oos = new ObjectOutputStream(bao = new ByteArrayOutputStream());
314 oos = new ObjectOutputStream(bao = new ByteArrayOutputStream());
315 int size = bao.size();
317 assertTrue("Data flushed already", bao.size() == size);
319 assertTrue("Failed to flush data", bao.size() > size);
    [all...]
  /libcore/luni/src/test/java/libcore/java/io/
OldObjectOutputStreamTest.java 144 protected ByteArrayOutputStream bao; field in class:OldObjectOutputStreamTest
175 int outputSize = bao.size();
179 bao.size() == outputSize);
183 bao.size() > outputSize);
222 int size = bao.size();
224 assertTrue("Test 1: Data already flushed.", bao.size() == size);
226 assertTrue("Test 2: Failed to flush data.", bao.size() > size);
254 ois = new ObjectInputStream(new ByteArrayInputStream(bao.toByteArray()));
290 ois = new ObjectInputStream(new ByteArrayInputStream(bao.toByteArray()));
370 oos = new ObjectOutputStream(bao = new ByteArrayOutputStream())
    [all...]
  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/reflect/
InvocationTargetExceptionTest.java 221 ByteArrayOutputStream bao = new ByteArrayOutputStream(); local
222 PrintStream ps = new PrintStream(bao);
229 String s = new String(bao.toByteArray());
245 ByteArrayOutputStream bao = new ByteArrayOutputStream(); local
246 PrintStream ps = new PrintStream(bao);
250 String s = bao.toString();
276 ByteArrayOutputStream bao = new ByteArrayOutputStream(); local
277 pw = new PrintWriter(bao);
283 s = bao.toString();
  /libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/io/
ObjectInputStreamTest.java 128 ByteArrayOutputStream bao; field in class:ObjectInputStreamTest
140 Support_ASimpleInputStream sis = new Support_ASimpleInputStream(bao.toByteArray());
172 Support_ASimpleInputStream sis = new Support_ASimpleInputStream(bao.toByteArray());
190 Support_ASimpleInputStream sis = new Support_ASimpleInputStream(bao.toByteArray());
217 Support_ASimpleInputStream sis = new Support_ASimpleInputStream(bao.toByteArray());
235 ois = new ObjectInputStream(new ByteArrayInputStream(bao.toByteArray()));
257 Support_ASimpleInputStream sis = new Support_ASimpleInputStream(bao.toByteArray());
274 ois = new ObjectInputStream(new ByteArrayInputStream(bao.toByteArray()));
280 ois = new ObjectInputStream(new ByteArrayInputStream(bao.toByteArray()));
295 Support_ASimpleInputStream sis = new Support_ASimpleInputStream(bao.toByteArray())
    [all...]
  /frameworks/base/keystore/java/android/security/
Credentials.java 133 ByteArrayOutputStream bao = new ByteArrayOutputStream(); local
134 Writer writer = new OutputStreamWriter(bao, StandardCharsets.US_ASCII);
140 return bao.toByteArray();

Completed in 5715 milliseconds