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

1 2

  /dalvik/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...]
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);
  /dalvik/libcore/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();
  /dalvik/libcore/luni/src/test/java/org/apache/harmony/luni/tests/util/
NYITest.java 47 ByteArrayOutputStream bos = new ByteArrayOutputStream(400); local
48 PrintStream stream = new PrintStream(bos, true, "UTF-8");
50 String message = new String(bos.toByteArray(), "UTF-8");
  /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();
  /dalvik/libcore/security/src/test/java/org/apache/harmony/security/tests/java/security/
DigestOutputStreamTest.java 184 ByteArrayOutputStream bos = new ByteArrayOutputStream(MY_MESSAGE_LEN); local
185 DigestOutputStream dos = new DigestOutputStream(bos, md);
191 bos.toByteArray()));
223 ByteArrayOutputStream bos = new ByteArrayOutputStream(MY_MESSAGE_LEN); local
224 DigestOutputStream dos = new DigestOutputStream(bos, md);
235 bos.toByteArray()));
326 ByteArrayOutputStream bos = new ByteArrayOutputStream(MY_MESSAGE_LEN); local
327 DigestOutputStream dos = new DigestOutputStream(bos, null);
336 bos.toByteArray()));
354 ByteArrayOutputStream bos = new ByteArrayOutputStream(MY_MESSAGE_LEN) local
392 ByteArrayOutputStream bos = new ByteArrayOutputStream(MY_MESSAGE_LEN); local
434 ByteArrayOutputStream bos = new ByteArrayOutputStream(MY_MESSAGE_LEN); local
480 ByteArrayOutputStream bos = new ByteArrayOutputStream(MY_MESSAGE_LEN); local
587 ByteArrayOutputStream bos = new ByteArrayOutputStream(MY_MESSAGE_LEN); local
632 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();
  /dalvik/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());
  /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());
  /dalvik/libcore/archive/src/test/java/org/apache/harmony/archive/tests/java/util/zip/
ZipOutputStreamTest.java 41 ByteArrayOutputStream bos; field in class:ZipOutputStreamTest
64 zos = new ZipOutputStream(bos);
147 zis = new ZipInputStream(new ByteArrayInputStream(bos.toByteArray()));
260 zis = new ZipInputStream(new ByteArrayInputStream(bos.toByteArray()));
355 zos = new ZipOutputStream(bos = new ByteArrayOutputStream());
ZipInputStreamTest.java 60 ByteArrayOutputStream bos = new ByteArrayOutputStream(); local
61 ZipOutputStream zos = new ZipOutputStream(bos);
67 zipBytes = bos.toByteArray();
  /dalvik/libcore/crypto/src/main/java/javax/crypto/
SealedObject.java 93 ByteArrayOutputStream bos = new ByteArrayOutputStream(); local
94 ObjectOutputStream oos = new ObjectOutputStream(bos);
101 this.encryptedContent = c.doFinal(bos.toByteArray());
  /dalvik/libcore/crypto/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()));
  /dalvik/libcore/luni-kernel/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
  /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();
  /dalvik/libcore/logging/src/test/java/org/apache/harmony/logging/tests/java/util/logging/
ConsoleHandlerTest.java 495 ByteArrayOutputStream bos = new ByteArrayOutputStream(); local
496 System.setErr(new PrintStream(bos));
509 assertTrue(bos.toString().indexOf("testPublish_Record1") >= 0);
514 assertTrue(bos.toString().indexOf("testPublish_Record2") >= 0);

Completed in 539 milliseconds

1 2