Home
last modified time | relevance | path

Searched refs:baos (Results 1 – 22 of 22) sorted by relevance

/external/emma/core/java12/com/vladium/emma/rt/
DInstrClassLoader.java210 final ByteArrayOStream baos = buf.m_baos; // reset() has been called on this in findClass() local
216 …if ((m_hook != null) && m_hook.processClassDef (name, bytes, length, baos)) // note: this can over… in findClass()
219 bytes = baos.getByteArray (); in findClass()
220 length = baos.size (); in findClass()
264 final ByteArrayOStream baos = buf.m_baos; // reset() has been called on this in findClass() local
266 readFully (in, baos, buf.m_buf); in findClass()
271 bytes = baos.getByteArray (); in findClass()
272 length = baos.size (); in findClass()
274 baos.reset (); // reuse this for processClassDef below in findClass()
276 …if ((m_hook != null) && m_hook.processClassDef (name, bytes, length, baos)) // note: this can over… in findClass()
[all …]
/external/guava/guava-tests/test/com/google/common/io/
DLittleEndianDataOutputStreamTest.java37 private ByteArrayOutputStream baos = new ByteArrayOutputStream(); field in LittleEndianDataOutputStreamTest
38 private LittleEndianDataOutputStream out = new LittleEndianDataOutputStream(baos);
58 byte[] data = baos.toByteArray(); in testWriteLittleEndian()
89 byte[] data = baos.toByteArray(); in testWriteBytes()
106 byte[] data = baos.toByteArray(); in testWriteBytes_discardHighOrderBytes()
123 byte[] data = baos.toByteArray(); in testWriteChars()
DLittleEndianDataInputStreamTest.java43 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in setUp() local
44 DataOutputStream out = new DataOutputStream(baos); in setUp()
48 data = baos.toByteArray(); in setUp()
128 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in testSkipBytes() local
129 DataOutputStream out = new DataOutputStream(baos); in testSkipBytes()
135 byte[] data = baos.toByteArray(); in testSkipBytes()
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/spdy/
DHuffmanTest.java51 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in assertRoundTrip() local
52 DataOutputStream dos = new DataOutputStream(baos); in assertRoundTrip()
55 assertEquals(baos.size(), codec.encodedLength(buf)); in assertRoundTrip()
57 byte[] decodedBytes = codec.decode(baos.toByteArray()); in assertRoundTrip()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/
DDERExternal.java135 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in encode() local
138 baos.write(directReference.getEncoded(ASN1Encoding.DER)); in encode()
142 baos.write(indirectReference.getEncoded(ASN1Encoding.DER)); in encode()
146 baos.write(dataValueDescriptor.getEncoded(ASN1Encoding.DER)); in encode()
149 baos.write(obj.getEncoded(ASN1Encoding.DER)); in encode()
150 out.writeEncoded(BERTags.CONSTRUCTED, BERTags.EXTERNAL, baos.toByteArray()); in encode()
/external/smack/src/org/jivesoftware/smack/util/
DBase64.java469 java.io.ByteArrayOutputStream baos = null; in encodeObject() local
481 baos = new java.io.ByteArrayOutputStream(); in encodeObject()
482 b64os = new Base64.OutputStream( baos, ENCODE | options ); in encodeObject()
505 try{ baos.close(); } catch( Exception e ){} in encodeObject()
511 return new String( baos.toByteArray(), PREFERRED_ENCODING ); in encodeObject()
515 return new String( baos.toByteArray() ); in encodeObject()
609 java.io.ByteArrayOutputStream baos = null; in encodeBytes() local
617 baos = new java.io.ByteArrayOutputStream(); in encodeBytes()
618 b64os = new Base64.OutputStream( baos, ENCODE | options ); in encodeBytes()
633 try{ baos.close(); } catch( Exception e ){} in encodeBytes()
[all …]
/external/conscrypt/src/test/java/org/conscrypt/
DOpenSSLX509CertificateTest.java45 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in testSerialization_NoContextDeserialization() local
46 ObjectOutputStream oos = new ObjectOutputStream(baos); in testSerialization_NoContextDeserialization()
49 impostorBytes = baos.toByteArray(); in testSerialization_NoContextDeserialization()
/external/apache-http/src/org/apache/http/entity/
DSerializableEntity.java68 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in createBytes() local
69 ObjectOutputStream out = new ObjectOutputStream(baos); in createBytes()
72 this.objSer = baos.toByteArray(); in createBytes()
/external/apache-harmony/crypto/src/test/api/java/org/apache/harmony/crypto/tests/javax/crypto/
DCipherTest.java274 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in test_update$BII() local
284 baos.write(output); in test_update$BII()
291 baos.write(output); in test_update$BII()
294 byte[] decipheredCipherText = baos.toByteArray(); in test_update$BII()
323 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in test_doFinal() local
333 baos.write(output); in test_doFinal()
339 baos.write(output); in test_doFinal()
341 byte[] encryptedPlaintext = baos.toByteArray(); in test_doFinal()
/external/jarjar/src/main/com/tonicsystems/jarjar/util/
DStandaloneJarProcessor.java42 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in run() local
43 IoUtil.pipe(in.getInputStream(entry), baos, buf); in run() local
44 struct.data = baos.toByteArray(); in run()
DAntJarProcessor.java65 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in zipFile() local
66 IoUtil.pipe(is, baos, buf); in zipFile()
67 struct.data = baos.toByteArray(); in zipFile()
DIoUtil.java118 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in copyZipWithoutEmptyDirectories() local
120 IoUtil.pipe(is, baos, buf); in copyZipWithoutEmptyDirectories()
122 outputStream.write(baos.toByteArray()); in copyZipWithoutEmptyDirectories()
/external/emma/tools/java/com/vladium/tools/
DClassDep.java131 final ByteArrayOStream baos = new ByteArrayOStream (8 * 1024); in getDependencies() local
152 baos.reset (); in getDependencies()
153 for (int read; (read = in.read (readbuf)) >= 0; baos.write (readbuf, 0, read)); in getDependencies()
162 final ClassDef cls = ClassDefParser.parseClass (baos.getByteArray (), baos.size ()); in getDependencies()
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/spdy/
DHuffman.java94 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in decode() local
107 baos.write(node.symbol); in decode()
123 baos.write(node.symbol); in decode()
128 return baos.toByteArray(); in decode()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jce/netscape/
DNetscapeCertRequest.java260 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in getKeySpec() local
266 baos.write(pubkey.getEncoded()); in getKeySpec()
267 baos.close(); in getKeySpec()
270 new ByteArrayInputStream(baos.toByteArray())); in getKeySpec()
/external/robolectric/src/main/java/com/xtremelabs/robolectric/bytecode/
DClassCache.java83 ByteArrayOutputStream baos = new ByteArrayOutputStream(classSize); in readEntries() local
86 baos.write(c); in readEntries()
89 addClass(className, baos.toByteArray()); in readEntries()
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/authoring/tracks/
DTextTrackImpl.java77 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in getSamples() local
78 DataOutputStream dos = new DataOutputStream(baos); in getSamples()
86 samples.add(ByteBuffer.wrap(baos.toByteArray())); in getSamples()
DQuicktimeTextTrackImpl.java74 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in getSamples() local
75 DataOutputStream dos = new DataOutputStream(baos); in getSamples()
83 samples.add(ByteBuffer.wrap(baos.toByteArray())); in getSamples()
/external/mp4parser/isoparser/src/main/java/com/coremedia/iso/boxes/sampleentry/
DSampleEntry.java139 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in _writeChildBoxes() local
140 WritableByteChannel wbc = Channels.newChannel(baos); in _writeChildBoxes()
149 bb.put(baos.toByteArray()); in _writeChildBoxes()
/external/conscrypt/src/main/java/org/conscrypt/
DAbstractSessionContext.java208 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in toBytes() local
209 DataOutputStream daos = new DataOutputStream(baos); in toBytes()
229 return baos.toByteArray(); in toBytes()
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/authoring/adaptivestreaming/
DFlatManifestWriterImpl.java583 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in getAvcCodecPrivateData() local
585 baos.write(new byte[]{0, 0, 0, 1}); in getAvcCodecPrivateData()
588 baos.write(sp); in getAvcCodecPrivateData()
590 baos.write(new byte[]{0, 0, 0, 1}); in getAvcCodecPrivateData()
592 baos.write(pp); in getAvcCodecPrivateData()
597 return baos.toByteArray(); in getAvcCodecPrivateData()
/external/smack/asmack-master/jingle/
D60-remove-jingle_mediaimpl.patch982 - ByteArrayOutputStream baos = encoder.encode(bufferedImage);
984 - if (baos != null) {
990 - baos.write(i);
991 - baos.write(j);
993 - byte[] bytesOut = baos.toByteArray();
1404 - ByteArrayOutputStream baos = new ByteArrayOutputStream();
1406 - ImageIO.write(bufferedImage, "png", baos);
1410 - baos = null;
1412 - return baos;