/libcore/luni/src/test/java/libcore/java/lang/ |
SystemTest.java | 51 ByteArrayOutputStream baos = new ByteArrayOutputStream(); local 52 new PrintStream(baos).println(); 53 assertEquals(System.lineSeparator(), new String(baos.toByteArray(), "UTF-8"));
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
EvenMoreAsserts.java | 69 ByteArrayOutputStream baos = new ByteArrayOutputStream(); local 74 baos.write(buffer, 0, count); 78 assertImageRawData(context, expected, baos.toByteArray());
|
/cts/tools/dex-tools/test/dex/reader/util/ |
MemoryByteCode.java | 30 private ByteArrayOutputStream baos; field in class:MemoryByteCode 49 baos = new ByteArrayOutputStream(); 50 return baos; 58 return baos.toByteArray();
|
/libcore/luni/src/test/java/libcore/java/io/ |
OldBufferedOutputStreamTest.java | 30 java.io.ByteArrayOutputStream baos; field in class:OldBufferedOutputStreamTest 40 baos = new java.io.ByteArrayOutputStream(); 41 os = new java.io.BufferedOutputStream(baos); 50 baos = new java.io.ByteArrayOutputStream(); 53 os = new java.io.BufferedOutputStream(baos, -1); 59 os = new java.io.BufferedOutputStream(baos, 1024); 67 baos = new ByteArrayOutputStream(); 68 os = new java.io.BufferedOutputStream(baos, 600); 72 500, ((ByteArrayOutputStream) baos).size()); 89 baos = new java.io.ByteArrayOutputStream(),512) [all...] |
OldObjectOutputStreamPutFieldTest.java | 75 ByteArrayOutputStream baos; local 82 baos = new ByteArrayOutputStream(refContent.length); 83 oos = new ObjectOutputStream(baos); 86 content = baos.toByteArray(); 100 ByteArrayOutputStream baos; local 107 baos = new ByteArrayOutputStream(refContent.length); 108 oos = new ObjectOutputStream(baos); 111 content = baos.toByteArray();
|
OutputStreamWriterTest.java | 53 ByteArrayOutputStream baos = new ByteArrayOutputStream(); local 54 OutputStreamWriter writer = new OutputStreamWriter(baos, "UTF-32BE"); 60 assertEquals(8192, baos.size()); // Just the 'x's so far. 66 byte[] bytes = baos.toByteArray();
|
/external/apache-http/src/org/apache/http/entity/ |
SerializableEntity.java | 62 ByteArrayOutputStream baos = new ByteArrayOutputStream(); local 63 ObjectOutputStream out = new ObjectOutputStream(baos); 66 this.objSer = baos.toByteArray();
|
/dalvik/dx/src/com/android/dx/cf/direct/ |
ClassPathOpener.java | 245 ByteArrayOutputStream baos = new ByteArrayOutputStream(40000); local 271 baos.reset(); 278 baos.write(buf, 0, amt); 283 byte[] bytes = baos.toByteArray();
|
/packages/apps/VoiceDialer/src/com/android/voicedialer/ |
RecognizerLogger.java | 215 final ByteArrayOutputStream baos = new ByteArrayOutputStream(sampleRate * 2 * 20); local 225 if (rtn > 0) baos.write(b, offset, rtn); 231 if (rtn > 0) baos.write(b, 0, rtn); 237 if (rtn > 0) baos.write(rtn); 249 byte[] pcm = baos.toByteArray(); 261 baos.close();
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
PhotoProcessor.java | 248 final ByteArrayOutputStream baos = new ByteArrayOutputStream(); local 249 final boolean compressed = b.compress(Bitmap.CompressFormat.JPEG, quality, baos); 250 baos.flush(); 251 baos.close(); 252 byte[] result = baos.toByteArray();
|
/external/chromium_org/third_party/protobuf/java/src/test/java/com/google/protobuf/ |
LiteTest.java | 123 ByteArrayOutputStream baos = new ByteArrayOutputStream(); local 131 ObjectOutputStream out = new ObjectOutputStream(baos); 137 ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray());
|
/external/guava/guava-tests/test/com/google/common/io/ |
LittleEndianDataOutputStreamTest.java | 37 private ByteArrayOutputStream baos = new ByteArrayOutputStream(); field in class:LittleEndianDataOutputStreamTest 38 private LittleEndianDataOutputStream out = new LittleEndianDataOutputStream(baos); 58 byte[] data = baos.toByteArray(); 89 byte[] data = baos.toByteArray(); 106 byte[] data = baos.toByteArray(); 123 byte[] data = baos.toByteArray();
|
LittleEndianDataInputStreamTest.java | 43 ByteArrayOutputStream baos = new ByteArrayOutputStream(); local 44 DataOutputStream out = new DataOutputStream(baos); 48 data = baos.toByteArray(); 128 ByteArrayOutputStream baos = new ByteArrayOutputStream(); local 129 DataOutputStream out = new DataOutputStream(baos); 135 byte[] data = baos.toByteArray();
|
/external/jmonkeyengine/engine/src/test/jme3test/export/ |
TestOgreConvert.java | 66 ByteArrayOutputStream baos = new ByteArrayOutputStream(); local 68 exp.save(ogreModel, baos); 70 ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray());
|
/libcore/luni/src/main/java/java/security/ |
SignedObject.java | 76 ByteArrayOutputStream baos = new ByteArrayOutputStream(); local 77 ObjectOutputStream oos = new ObjectOutputStream(baos); 85 content = baos.toByteArray();
|
/libcore/luni/src/test/java/libcore/java/util/prefs/ |
PreferencesTest.java | 54 ByteArrayOutputStream baos = new ByteArrayOutputStream(); local 55 p.exportNode(baos); 57 String s = new String(baos.toByteArray(), "UTF-8");
|
/packages/apps/CertInstaller/src/com/android/certinstaller/ |
Util.java | 34 ByteArrayOutputStream baos = new ByteArrayOutputStream(); local 36 ObjectOutputStream os = new ObjectOutputStream(baos); 42 return baos.toByteArray();
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jce/netscape/ |
NetscapeCertRequest.java | 260 ByteArrayOutputStream baos = new ByteArrayOutputStream(); local 266 baos.write(pubkey.getEncoded()); 267 baos.close(); 270 new ByteArrayInputStream(baos.toByteArray()));
|
/external/emma/core/java12/com/vladium/emma/rt/ |
InstrClassLoader.java | 210 final ByteArrayOStream baos = buf.m_baos; // reset() has been called on this local 216 if ((m_hook != null) && m_hook.processClassDef (name, bytes, length, baos)) // note: this can overwrite 'bytes' 219 bytes = baos.getByteArray (); 220 length = baos.size (); 264 final ByteArrayOStream baos = buf.m_baos; // reset() has been called on this local 266 readFully (in, baos, buf.m_buf); 271 bytes = baos.getByteArray (); 272 length = baos.size (); 274 baos.reset (); // reuse this for processClassDef below 276 if ((m_hook != null) && m_hook.processClassDef (name, bytes, length, baos)) // note: this can overwrite 'bytes [all...] |
/external/emma/tools/java/com/vladium/tools/ |
ClassDep.java | 131 final ByteArrayOStream baos = new ByteArrayOStream (8 * 1024); local 152 baos.reset (); 153 for (int read; (read = in.read (readbuf)) >= 0; baos.write (readbuf, 0, read)); 162 final ClassDef cls = ClassDefParser.parseClass (baos.getByteArray (), baos.size ());
|
/external/jmonkeyengine/engine/src/jogg/com/jme3/audio/plugins/ |
OGGLoader.java | 204 ByteArrayOutputStream baos = new ByteArrayOutputStream();
local 211 baos.write(buf, 0, read);
217 byte[] dataBytes = baos.toByteArray();
|
/external/mp4parser/isoparser/src/main/java/com/coremedia/iso/boxes/sampleentry/ |
SampleEntry.java | 139 ByteArrayOutputStream baos = new ByteArrayOutputStream(); local 140 WritableByteChannel wbc = Channels.newChannel(baos); 149 bb.put(baos.toByteArray());
|
/frameworks/base/core/java/com/android/internal/http/multipart/ |
MultipartEntity.java | 221 ByteArrayOutputStream baos = new ByteArrayOutputStream(); local 222 Part.sendParts(baos, this.parts, this.multipartBoundary); 223 ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray());
|
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
NinePatch_Delegate.java | 81 ByteArrayOutputStream baos = new ByteArrayOutputStream(); local 84 oos = new ObjectOutputStream(baos); 99 byte[] array = baos.toByteArray();
|
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/decoder/ |
DecoderUtil.java | 49 ByteArrayOutputStream baos = new ByteArrayOutputStream();
local 59 baos.write(b);
68 return baos.toByteArray();
78 ByteArrayOutputStream baos = new ByteArrayOutputStream();
local 88 baos.write(b);
97 return baos.toByteArray();
|