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

  /external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/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...]
  /external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/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...]
ObjectInputStreamTest.java 65 ByteArrayOutputStream bao; field in class:ObjectInputStreamTest
149 ois = new ObjectInputStream(new ByteArrayInputStream(bao.toByteArray()));
168 ois = new ObjectInputStream(new ByteArrayInputStream(bao.toByteArray()));
170 new ByteArrayInputStream(bao.toByteArray()));
217 ois = new ObjectInputStream(new ByteArrayInputStream(bao.toByteArray()));
228 ois = new ObjectInputStream(new ByteArrayInputStream(bao.toByteArray()));
241 ois = new ObjectInputStream(new ByteArrayInputStream(bao.toByteArray()));
258 ois = new ObjectInputStream(new ByteArrayInputStream(bao.toByteArray()));
270 ois = new ObjectInputStream(new ByteArrayInputStream(bao.toByteArray()));
283 ois = new ObjectInputStream(new ByteArrayInputStream(bao.toByteArray()))
    [all...]
ObjectOutputStreamTest.java 564 protected ByteArrayOutputStream bao; field in class:ObjectOutputStreamTest
605 int size = bao.size();
607 assertTrue("Data flushed already", bao.size() == size);
609 assertTrue("Failed to flush data", bao.size() > size);
634 ois = new ObjectInputStream(new ByteArrayInputStream(bao.toByteArray()));
653 ois = new ObjectInputStream(new ByteArrayInputStream(bao.toByteArray()));
699 ois = new ObjectInputStream(new ByteArrayInputStream(bao.toByteArray()));
726 ois = new ObjectInputStream(new ByteArrayInputStream(bao.toByteArray()));
742 ois = new ObjectInputStream(new ByteArrayInputStream(bao.toByteArray()));
756 ois = new ObjectInputStream(new ByteArrayInputStream(bao.toByteArray()))
    [all...]
SerializationStressTest.java 92 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);
  /external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/lang/reflect/
InvocationTargetExceptionTest.java 180 ByteArrayOutputStream bao = new ByteArrayOutputStream(); local
181 PrintStream ps = new PrintStream(bao);
188 String s = new String(bao.toByteArray());
201 ByteArrayOutputStream bao = new ByteArrayOutputStream(); local
202 PrintStream ps = new PrintStream(bao);
206 String s = bao.toString();
231 ByteArrayOutputStream bao = new ByteArrayOutputStream(); local
232 pw = new PrintWriter(bao);
238 s = bao.toString();
  /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/luni/src/test/java/tests/api/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/tests/api/java/io/
ObjectInputStreamTest.java 47 ByteArrayOutputStream bao; field in class:ObjectInputStreamTest
59 Support_ASimpleInputStream sis = new Support_ASimpleInputStream(bao.toByteArray());
92 Support_ASimpleInputStream sis = new Support_ASimpleInputStream(bao.toByteArray());
102 Support_ASimpleInputStream sis = new Support_ASimpleInputStream(bao.toByteArray());
120 Support_ASimpleInputStream sis = new Support_ASimpleInputStream(bao.toByteArray());
147 Support_ASimpleInputStream sis = new Support_ASimpleInputStream(bao.toByteArray());
165 ois = new ObjectInputStream(new ByteArrayInputStream(bao.toByteArray()));
176 ois = new ObjectInputStream(new ByteArrayInputStream(bao.toByteArray()));
198 Support_ASimpleInputStream sis = new Support_ASimpleInputStream(bao.toByteArray());
215 ois = new ObjectInputStream(new ByteArrayInputStream(bao.toByteArray()))
    [all...]
  /libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/io/
ObjectInputStreamTest.java 64 ByteArrayOutputStream bao; field in class:ObjectInputStreamTest
148 ois = new ObjectInputStream(new ByteArrayInputStream(bao.toByteArray()));
167 ois = new ObjectInputStream(new ByteArrayInputStream(bao.toByteArray()));
169 new ByteArrayInputStream(bao.toByteArray()));
216 ois = new ObjectInputStream(new ByteArrayInputStream(bao.toByteArray()));
227 ois = new ObjectInputStream(new ByteArrayInputStream(bao.toByteArray()));
240 ois = new ObjectInputStream(new ByteArrayInputStream(bao.toByteArray()));
257 ois = new ObjectInputStream(new ByteArrayInputStream(bao.toByteArray()));
269 ois = new ObjectInputStream(new ByteArrayInputStream(bao.toByteArray()));
282 ois = new ObjectInputStream(new ByteArrayInputStream(bao.toByteArray()))
    [all...]
  /frameworks/base/keystore/java/android/security/
Credentials.java 129 ByteArrayOutputStream bao = new ByteArrayOutputStream(); local
130 Writer writer = new OutputStreamWriter(bao, StandardCharsets.US_ASCII);
136 return bao.toByteArray();

Completed in 122 milliseconds