/external/jmonkeyengine/engine/src/desktop/com/jme3/app/state/ |
MjpegFileWriter.java | 147 ByteArrayOutputStream baos = new ByteArrayOutputStream(); local 148 baos.write(fcc); 149 baos.write(intBytes(swapInt(fileSize))); 150 baos.write(fcc2); 151 baos.write(fcc3); 152 baos.write(intBytes(swapInt(listSize))); 153 baos.write(fcc4); 154 baos.close(); 156 return baos.toByteArray(); 207 ByteArrayOutputStream baos = new ByteArrayOutputStream() local 240 ByteArrayOutputStream baos = new ByteArrayOutputStream(); local 294 ByteArrayOutputStream baos = new ByteArrayOutputStream(); local 355 ByteArrayOutputStream baos = new ByteArrayOutputStream(); local 386 ByteArrayOutputStream baos = new ByteArrayOutputStream(); local 417 ByteArrayOutputStream baos = new ByteArrayOutputStream(); local 444 ByteArrayOutputStream baos = new ByteArrayOutputStream(); local 466 ByteArrayOutputStream baos = new ByteArrayOutputStream(); local 485 ByteArrayOutputStream baos = new ByteArrayOutputStream(); local [all...] |
/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();
|
/frameworks/volley/tests/src/com/android/volley/toolbox/ |
DiskBasedCacheTest.java | 43 ByteArrayOutputStream baos = new ByteArrayOutputStream(); local 44 first.writeHeader(baos); 45 ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray()); 57 ByteArrayOutputStream baos = new ByteArrayOutputStream(); local 58 DiskBasedCache.writeInt(baos, 0); 59 DiskBasedCache.writeInt(baos, 19791214); 60 DiskBasedCache.writeInt(baos, -20050711); 61 DiskBasedCache.writeInt(baos, Integer.MIN_VALUE); 62 DiskBasedCache.writeInt(baos, Integer.MAX_VALUE); 63 ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray()) 72 ByteArrayOutputStream baos = new ByteArrayOutputStream(); local 91 ByteArrayOutputStream baos = new ByteArrayOutputStream(); local 102 ByteArrayOutputStream baos = new ByteArrayOutputStream(); local [all...] |
/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-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/io/ |
ObjectInputStream2Test.java | 40 ByteArrayOutputStream baos = new ByteArrayOutputStream(); local 42 ObjectOutputStream oos = new ObjectOutputStream(baos); 48 new ByteArrayInputStream(baos.toByteArray())); 65 ByteArrayOutputStream baos = new ByteArrayOutputStream(); local 67 ObjectOutputStream oos = new ObjectOutputStream(baos); 72 baos.toByteArray())); 194 ByteArrayOutputStream baos = new ByteArrayOutputStream(); local 195 ObjectOutputStream oos = new ObjectOutputStream(baos); 202 byte[] bytes = baos.toByteArray();
|
ObjectStreamFieldTest.java | 158 ByteArrayOutputStream baos = new ByteArrayOutputStream(1024); local 159 ObjectOutputStream oos = new ObjectOutputStream(baos); 162 baos.close(); 164 byte[] bytes = baos.toByteArray(); 179 ByteArrayOutputStream baos = new ByteArrayOutputStream(1024); local 180 ObjectOutputStream oos = new ObjectOutputStream(baos); 183 baos.close(); 185 byte[] bytes = baos.toByteArray(); 198 ByteArrayOutputStream baos = new ByteArrayOutputStream(1024); local 199 ObjectOutputStream oos = new ObjectOutputStream(baos); 233 final ByteArrayOutputStream baos = new ByteArrayOutputStream(); local [all...] |
BufferedOutputStreamTest.java | 30 java.io.ByteArrayOutputStream baos; field in class:BufferedOutputStreamTest 40 baos = new java.io.ByteArrayOutputStream(); 41 os = new java.io.BufferedOutputStream(baos); 50 baos = new java.io.ByteArrayOutputStream(); 51 os = new java.io.BufferedOutputStream(baos, 1024); 102 baos = new ByteArrayOutputStream(); 103 os = new java.io.BufferedOutputStream(baos, 600); 107 ((ByteArrayOutputStream) baos).size()); 132 os = new BufferedOutputStream(baos = new ByteArrayOutputStream(), 512); 134 bais = new ByteArrayInputStream(baos.toByteArray()) [all...] |
/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();
|
/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");
|
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/util/ |
PropertiesTest.java | 150 ByteArrayOutputStream baos = new ByteArrayOutputStream(); local 151 PrintStream ps = new PrintStream(baos); 159 String propList = baos.toString(); 180 ByteArrayOutputStream baos = new ByteArrayOutputStream(); local 181 PrintWriter pw = new PrintWriter(baos); 189 String propList = baos.toString(); 1072 ByteArrayOutputStream baos = new ByteArrayOutputStream(); local 1081 ByteArrayOutputStream baos = new ByteArrayOutputStream(); local 1090 ByteArrayOutputStream baos = new ByteArrayOutputStream(); local 1099 ByteArrayOutputStream baos = new ByteArrayOutputStream(); local 1108 ByteArrayOutputStream baos = new ByteArrayOutputStream(); local 1117 ByteArrayOutputStream baos = new ByteArrayOutputStream(); local 1126 ByteArrayOutputStream baos = new ByteArrayOutputStream(); local 1135 ByteArrayOutputStream baos = new ByteArrayOutputStream(); local 1144 ByteArrayOutputStream baos = new ByteArrayOutputStream(); local 1153 ByteArrayOutputStream baos = new ByteArrayOutputStream(); local 1162 ByteArrayOutputStream baos = new ByteArrayOutputStream(); local 1171 ByteArrayOutputStream baos = new ByteArrayOutputStream(); local [all...] |
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/ |
DERExternal.java | 135 ByteArrayOutputStream baos = new ByteArrayOutputStream(); local 138 baos.write(directReference.getEncoded(ASN1Encoding.DER)); 142 baos.write(indirectReference.getEncoded(ASN1Encoding.DER)); 146 baos.write(dataValueDescriptor.getEncoded(ASN1Encoding.DER)); 149 baos.write(obj.getEncoded(ASN1Encoding.DER)); 150 out.writeEncoded(BERTags.CONSTRUCTED, BERTags.EXTERNAL, baos.toByteArray());
|
/external/guava/guava-tests/test/com/google/common/io/ |
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();
|
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();
|
/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/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();
|
/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();
|
/libcore/benchmarks/src/benchmarks/regression/ |
SerializationBenchmark.java | 28 ByteArrayOutputStream baos = new ByteArrayOutputStream(1024); local 29 ObjectOutputStream out = new ObjectOutputStream(baos); 32 return baos.toByteArray(); 85 ByteArrayOutputStream baos = new ByteArrayOutputStream(1024); local 86 ObjectOutputStream out = new ObjectOutputStream(baos); 89 baos.reset(); 106 ByteArrayOutputStream baos = new ByteArrayOutputStream(1024); local 107 ObjectOutputStream out = new ObjectOutputStream(baos); 111 baos.reset();
|
/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();
|
/frameworks/base/core/tests/coretests/src/android/util/ |
Base64Test.java | 439 ByteArrayOutputStream baos; local 447 baos = new ByteArrayOutputStream(); 448 b64os = new Base64OutputStream(baos, flags); 451 actual = baos.toByteArray(); 455 baos = new ByteArrayOutputStream(); 456 b64os = new Base64OutputStream(baos, flags); 461 actual = baos.toByteArray(); 466 baos = new ByteArrayOutputStream(); 467 b64os = new Base64OutputStream(baos, flags); 484 actual = baos.toByteArray() [all...] |
/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());
|
/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());
|
/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"));
|