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

1 2

  /libcore/luni/src/test/java/tests/api/java/io/
ByteArrayOutputStreamTest.java 38 ByteArrayOutputStream bos = null; field in class:ByteArrayOutputStreamTest
51 bos = new java.io.ByteArrayOutputStream(100);
52 assertEquals("Test 1: Failed to create stream;", 0, bos.size());
55 bos = new ByteArrayOutputStream(-1);
72 bos = new java.io.ByteArrayOutputStream();
73 assertEquals("Failed to create stream", 0, bos.size());
99 * java.io.ByteArrayOutputStream bos = new
100 * java.io.ByteArrayOutputStream(); bos.write (fileString.getBytes(), 0,
101 * 100); try { bos.close(); } catch (java.io.IOException e) {
102 * fail("IOException closing stream"); } try { bos.writ
200 java.io.ByteArrayOutputStream bos = null; local
220 java.io.ByteArrayOutputStream bos = null; local
256 java.io.ByteArrayOutputStream bos = new java.io.ByteArrayOutputStream(); local
    [all...]
OutputStreamTest.java 91 BasicOutputStream bos = new BasicOutputStream(); local
96 bos.write(shortByteArray);
102 buffer = bos.getBuffer();
110 bos.write(longByteArray);
122 BasicOutputStream bos = new BasicOutputStream(); local
127 bos.write(shortByteArray, 6, 5);
133 buffer = bos.getBuffer();
141 bos.write(longByteArray, 5, 20);
146 bos.write(longByteArray, -1, 10);
155 bos.write(longByteArray, 10, -1)
    [all...]
PrintStreamTest.java 34 ByteArrayOutputStream bos = new ByteArrayOutputStream(); field in class:PrintStreamTest
92 PrintStream os = new PrintStream(bos);
98 os = new PrintStream(bos, true, null);
108 PrintStream os = new PrintStream(bos);
111 assertTrue("Bytes not written", bos.size() > 0);
166 PrintStream os = new PrintStream(bos);
168 bos.close();
176 PrintStream os = new PrintStream(bos);
179 assertEquals("Bytes not written after flush", 501, bos.size());
180 bos.close()
    [all...]
FilterOutputStreamTest.java 35 java.io.ByteArrayOutputStream bos; field in class:FilterOutputStreamTest
58 bos = new ByteArrayOutputStream();
59 os = new FilterOutputStream(bos);
260 if (bos != null)
261 bos.close();
DataOutputStreamTest.java 49 private ByteArrayOutputStream bos; field in class:DataOutputStreamTest
70 BufferedOutputStream buf = new BufferedOutputStream(bos);
75 bos.toByteArray().length == 0);
78 bos.toByteArray().length > 0);
270 dis = new DataInputStream(new ByteArrayInputStream(bos.toByteArray()));
279 bos = new ByteArrayOutputStream();
280 os = new DataOutputStream(bos);
BufferedOutputStreamTest.java 169 OutputStream bos = new BufferedOutputStream(new ByteArrayOutputStream()); local
174 bos.write(nullByteArray, 0, 1);
181 bos.write(byteArray, -1, 1);
188 bos.write(byteArray, 0, -1);
195 bos.write(byteArray, 1, 10);
DataInputStreamTest.java 38 private ByteArrayOutputStream bos; field in class:DataInputStreamTest
491 dis = new DataInputStream(new ByteArrayInputStream(bos.toByteArray()));
499 bos = new ByteArrayOutputStream();
500 os = new DataOutputStream(bos);
  /frameworks/base/tests/DumpRenderTree/src/com/android/dumprendertree/
Menu.java 70 BufferedOutputStream bos = new BufferedOutputStream(new FileOutputStream(tests_list, false)); local
71 FsUtils.findLayoutTestsRecursively(bos, path, false); // Don't ignore results
72 bos.flush();
73 bos.close();
FsUtils.java 45 public static void findLayoutTestsRecursively(BufferedOutputStream bos,
64 findLayoutTestsRecursively(bos, s, ignoreResultsInDir);
78 bos.write(s.getBytes());
81 bos.write((" IGNORE_RESULT").getBytes());
83 bos.write('\n');
90 BufferedOutputStream bos = new BufferedOutputStream( local
92 bos.write(s.getBytes());
93 bos.close();
ReliabilityTest.java 168 BufferedOutputStream bos = new BufferedOutputStream( local
170 bos.write(s.getBytes());
171 bos.write('\n');
172 bos.close();
181 BufferedOutputStream bos = new BufferedOutputStream( local
183 bos.write((s + '|' + time + '\n').getBytes());
184 bos.close();
LayoutTestsAutoTest.java 435 BufferedOutputStream bos = new BufferedOutputStream(new FileOutputStream(tests_list, false)); local
436 FsUtils.findLayoutTestsRecursively(bos, getTestPath(), false); // Don't ignore results
437 bos.flush();
438 bos.close();
  /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...]
  /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();
  /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());
OldFileHandlerTest.java 89 ByteArrayOutputStream bos = new ByteArrayOutputStream(); local
90 p.store(bos, "");
91 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());
  /libcore/luni/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()));
186 zis = new ZipInputStream(new ByteArrayInputStream(bos.toByteArray()));
275 zos = new ZipOutputStream(bos = new ByteArrayOutputStream());
ZipInputStreamTest.java 55 ByteArrayOutputStream bos = new ByteArrayOutputStream(); local
56 ZipOutputStream zos = new ZipOutputStream(bos);
62 zipBytes = bos.toByteArray();
  /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());
  /libcore/luni/src/main/java/javax/crypto/
SealedObject.java 89 ByteArrayOutputStream bos = new ByteArrayOutputStream(); local
90 ObjectOutputStream oos = new ObjectOutputStream(bos);
97 this.encryptedContent = c.doFinal(bos.toByteArray());
  /libcore/luni/src/main/java/org/apache/harmony/lang/annotation/
AnnotationMember.java 310 ByteArrayOutputStream bos = new ByteArrayOutputStream( local
312 ObjectOutputStream oos = new ObjectOutputStream(bos);
316 ByteArrayInputStream bis = new ByteArrayInputStream(bos
  /libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/
SealedObjectTest.java 81 ByteArrayOutputStream bos = new ByteArrayOutputStream(); local
82 ObjectOutputStream oos = new ObjectOutputStream(bos);
86 bos.toByteArray()));
  /packages/apps/Gallery3D/src/com/cooliris/media/
UriTexture.java 317 final BufferedOutputStream bos = new BufferedOutputStream(fos, 16384); local
318 bitmap.compress(Bitmap.CompressFormat.JPEG, 80, bos);
319 bos.flush();
320 bos.close();
  /packages/apps/Bluetooth/src/com/android/bluetooth/opp/
BluetoothOppObexServerSession.java 416 BufferedOutputStream bos = null; local
438 bos = new BufferedOutputStream(fileInfo.mOutputStream, 0x10000);
458 bos.write(b, 0, readLength);
493 if (bos != null) {
495 bos.close();

Completed in 1110 milliseconds

1 2