HomeSort by relevance Sort by last modified time
    Searched refs:bos (Results 1 - 25 of 59) sorted by null

1 2 3

  /libcore/luni/src/test/java/libcore/java/io/
OldByteArrayOutputStreamTest.java 34 ByteArrayOutputStream bos = null; field in class:OldByteArrayOutputStreamTest
39 bos = new java.io.ByteArrayOutputStream(100);
40 assertEquals("Test 1: Failed to create stream;", 0, bos.size());
43 bos = new ByteArrayOutputStream(-1);
51 bos = new ByteArrayOutputStream();
53 bos.write(fileString.getBytes(), 0, fileString.length());
55 bos.toString("8859_1").equals(fileString));
57 bos.toString("8859_2").equals(fileString));
60 bos.toString("NotAnEcoding");
69 bos = new ByteArrayOutputStream()
    [all...]
OldOutputStreamTest.java 54 BasicOutputStream bos = new BasicOutputStream(); local
59 bos.write(shortByteArray);
65 buffer = bos.getBuffer();
73 bos.write(longByteArray);
79 BasicOutputStream bos = new BasicOutputStream(); local
84 bos.write(shortByteArray, 6, 5);
90 buffer = bos.getBuffer();
98 bos.write(longByteArray, 5, 20);
103 bos.write(longByteArray, -1, 10);
112 bos.write(longByteArray, 10, -1)
    [all...]
OldDataOutputStreamTest.java 34 private ByteArrayOutputStream bos; field in class:OldDataOutputStreamTest
47 BufferedOutputStream buf = new BufferedOutputStream(bos);
52 bos.toByteArray().length == 0);
55 bos.toByteArray().length > 0);
180 dis = new DataInputStream(new ByteArrayInputStream(bos.toByteArray()));
185 bos = new ByteArrayOutputStream();
186 os = new DataOutputStream(bos);
OldBufferedOutputStreamTest.java 122 OutputStream bos = new BufferedOutputStream(new ByteArrayOutputStream()); local
127 bos.write(nullByteArray, 0, 1);
134 bos.write(byteArray, -1, 1);
141 bos.write(byteArray, 0, -1);
148 bos.write(byteArray, 1, 10);
OldFilterOutputStreamTest.java 30 java.io.ByteArrayOutputStream bos; field in class:OldFilterOutputStreamTest
44 bos = new ByteArrayOutputStream();
45 os = new FilterOutputStream(bos);
194 if (bos != null)
195 bos.close();
  /external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/io/
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.writ
128 ByteArrayOutputStream bos = new ByteArrayOutputStream(); local
144 ByteArrayOutputStream bos = new ByteArrayOutputStream(); local
155 ByteArrayOutputStream bos = new ByteArrayOutputStream(); local
176 ByteArrayOutputStream bos = new ByteArrayOutputStream(); local
201 ByteArrayOutputStream bos = new ByteArrayOutputStream(); local
    [all...]
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 = new ByteArrayOutputStream()
    [all...]
BufferedOutputStreamTest.java 150 BufferedOutputStream bos = new BufferedOutputStream(mos, 3); local
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()); local
171 bos.write(nullByteArray, -1, -1);
178 bos.write(nullByteArray, -1, 0);
185 bos.write(nullByteArray, -1, 1)
355 OutputStream bos = new BufferedOutputStream(null); local
426 OutputStream bos = new BufferedOutputStream(null, 1); local
497 BufferedOutputStream bos = new BufferedOutputStream(null); local
565 BufferedOutputStream bos = new BufferedOutputStream(null, 1); local
826 BufferedOutputStream bos = new BufferedOutputStream(new ByteArrayOutputStream()); local
    [all...]
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.close()
    [all...]
ObjectOutputStream2Test.java 47 ByteArrayOutputStream bos = new ByteArrayOutputStream(); local
48 ObjectOutputStream os = new ObjectOutputStream(bos);
52 ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray());
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);
  /external/apache-harmony/logging/src/test/java/org/apache/harmony/logging/tests/java/util/logging/util/
EnvironmentHelper.java 37 ByteArrayOutputStream bos = null; local
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/
DigestOutputStreamTest.java 148 ByteArrayOutputStream bos = new ByteArrayOutputStream(MY_MESSAGE_LEN); local
149 DigestOutputStream dos = new DigestOutputStream(bos, md);
155 bos.toByteArray()));
181 ByteArrayOutputStream bos = new ByteArrayOutputStream(MY_MESSAGE_LEN); local
182 DigestOutputStream dos = new DigestOutputStream(bos, md);
193 bos.toByteArray()));
266 ByteArrayOutputStream bos = new ByteArrayOutputStream(MY_MESSAGE_LEN); local
267 DigestOutputStream dos = new DigestOutputStream(bos, null);
276 bos.toByteArray()));
290 ByteArrayOutputStream bos = new ByteArrayOutputStream(MY_MESSAGE_LEN) local
324 ByteArrayOutputStream bos = new ByteArrayOutputStream(MY_MESSAGE_LEN); local
361 ByteArrayOutputStream bos = new ByteArrayOutputStream(MY_MESSAGE_LEN); local
402 ByteArrayOutputStream bos = new ByteArrayOutputStream(MY_MESSAGE_LEN); local
470 ByteArrayOutputStream bos = new ByteArrayOutputStream(MY_MESSAGE_LEN); local
509 ByteArrayOutputStream bos = new ByteArrayOutputStream(MY_MESSAGE_LEN); local
    [all...]
  /libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DigestOutputStreamTest.java 148 ByteArrayOutputStream bos = new ByteArrayOutputStream(MY_MESSAGE_LEN); local
149 DigestOutputStream dos = new DigestOutputStream(bos, md);
154 assertTrue("write", Arrays.equals(MDGoldenData.getMessage(), bos.toByteArray()));
180 ByteArrayOutputStream bos = new ByteArrayOutputStream(MY_MESSAGE_LEN); local
181 DigestOutputStream dos = new DigestOutputStream(bos, md);
191 assertTrue("write", Arrays.equals(MDGoldenData.getMessage(), bos.toByteArray()));
264 ByteArrayOutputStream bos = new ByteArrayOutputStream(MY_MESSAGE_LEN); local
265 DigestOutputStream dos = new DigestOutputStream(bos, null);
273 assertTrue(Arrays.equals(MDGoldenData.getMessage(), bos.toByteArray()));
286 ByteArrayOutputStream bos = new ByteArrayOutputStream(MY_MESSAGE_LEN) local
319 ByteArrayOutputStream bos = new ByteArrayOutputStream(MY_MESSAGE_LEN); local
356 ByteArrayOutputStream bos = new ByteArrayOutputStream(MY_MESSAGE_LEN); local
397 ByteArrayOutputStream bos = new ByteArrayOutputStream(MY_MESSAGE_LEN); local
486 ByteArrayOutputStream bos = new ByteArrayOutputStream(MY_MESSAGE_LEN); local
524 ByteArrayOutputStream bos = new ByteArrayOutputStream(MY_MESSAGE_LEN); local
    [all...]
  /frameworks/base/tests/DumpRenderTree/src/com/android/dumprendertree/
Menu.java 79 BufferedOutputStream bos = new BufferedOutputStream(new FileOutputStream(tests_list, false)); local
81 bos, path, false); // Don't ignore results
82 bos.flush();
83 bos.close();
FsUtils.java 55 public static int writeLayoutTestListRecursively(BufferedOutputStream bos,
76 testCount += writeLayoutTestListRecursively(bos, s, ignoreResultsInDir);
92 bos.write(s.getBytes());
95 bos.write((" IGNORE_RESULT").getBytes());
97 bos.write('\n');
106 BufferedOutputStream bos = new BufferedOutputStream( local
108 bos.write(s.getBytes());
109 bos.close();
ReliabilityTest.java 175 BufferedOutputStream bos = new BufferedOutputStream( local
177 bos.write(s.getBytes());
178 bos.write('\n');
179 bos.close();
188 BufferedOutputStream bos = new BufferedOutputStream( local
190 bos.write((s + '|' + time + '\n').getBytes());
191 bos.close();
  /external/javassist/src/test/test/javassist/proxy/
ProxySerializationTest.java 36 ByteArrayOutputStream bos = new ByteArrayOutputStream(); local
37 ObjectOutputStream out = new ObjectOutputStream(bos);
40 byte[] bytes = bos.toByteArray();
63 ByteArrayOutputStream bos = new ByteArrayOutputStream(); local
64 ProxyObjectOutputStream out = new ProxyObjectOutputStream(bos);
67 byte[] bytes = bos.toByteArray();
  /cts/tools/dex-tools/src/dex/reader/
DexBuffer.java 38 ByteArrayOutputStream bos = new ByteArrayOutputStream(); local
42 bos.write(buf, 0, len);
44 byte[] bytes = bos.toByteArray();
  /external/apache-harmony/support/src/test/java/tests/util/
SerializationTester.java 71 ByteArrayOutputStream bos = new ByteArrayOutputStream(); local
72 ObjectOutputStream oos = new ObjectOutputStream(bos);
76 ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray());
  /libcore/luni/src/test/java/libcore/java/util/logging/
OldMemoryHandlerTest.java 55 ByteArrayOutputStream bos = new ByteArrayOutputStream(); local
56 p.store(bos, "");
57 return new ByteArrayInputStream(bos.toByteArray());
  /libcore/support/src/test/java/tests/util/
SerializationTester.java 71 ByteArrayOutputStream bos = new ByteArrayOutputStream(); local
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/
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());
  /cts/tools/dx-tests/src/dxconvext/
ClassFileAssembler.java 108 BufferedOutputStream bos = new BufferedOutputStream(os); local
109 writeClassFile(r, bos, isDex);
110 bos.close();
  /development/samples/ApiDemos/src/com/example/android/apis/graphics/
CompressedTextureActivity.java 120 ByteArrayOutputStream bos = new ByteArrayOutputStream(); local
121 ETC1Util.writeTexture(etc1Texture, bos);
122 ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray());

Completed in 1652 milliseconds

1 2 3