Home
last modified time | relevance | path

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

12

/external/volley/src/test/java/com/android/volley/toolbox/
DDiskBasedCacheTest.java46 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in cacheHeaderSerialization() local
47 first.writeHeader(baos); in cacheHeaderSerialization()
48 ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray()); in cacheHeaderSerialization()
61 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in serializeInt() local
62 DiskBasedCache.writeInt(baos, 0); in serializeInt()
63 DiskBasedCache.writeInt(baos, 19791214); in serializeInt()
64 DiskBasedCache.writeInt(baos, -20050711); in serializeInt()
65 DiskBasedCache.writeInt(baos, Integer.MIN_VALUE); in serializeInt()
66 DiskBasedCache.writeInt(baos, Integer.MAX_VALUE); in serializeInt()
67 ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray()); in serializeInt()
[all …]
/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/slf4j/slf4j-migrator/src/main/java/org/slf4j/migrator/
DInplaceFileConverter.java57 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in readIntoByteArray() local
62 baos.write(buffer, 0, n); in readIntoByteArray()
65 return baos.toByteArray(); in readIntoByteArray()
91 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in convertIntoTempByteArray() local
96 writeReplacement(baos, replacement); in convertIntoTempByteArray()
101 return baos.toByteArray(); in convertIntoTempByteArray()
/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/framed/
DHuffmanTest.java46 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in assertRoundTrip() local
47 DataOutputStream dos = new DataOutputStream(baos); in assertRoundTrip()
50 assertEquals(baos.size(), Huffman.get().encodedLength(buf)); in assertRoundTrip()
52 byte[] decodedBytes = Huffman.get().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/vogar/test/vogar/testing/
DInterceptOutputStreams.java134 private final ByteArrayOutputStream baos;
140 baos = new ByteArrayOutputStream();
141 stream.set(new PrintStream(baos, true, "UTF-8"));
146 return baos.toString("UTF-8");
/external/slf4j/slf4j-jdk14/src/test/java/org/slf4j/issue/
DLoggerSerializationTest.java65 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in testCanLoggerBeSerialized() local
66 ObjectOutputStream out = new ObjectOutputStream(baos); in testCanLoggerBeSerialized()
72 byte[] serializedLoggerHolder = baos.toByteArray(); in testCanLoggerBeSerialized()
/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/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/framed/
DHuffman.java127 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in decode() local
140 baos.write(node.symbol); in decode()
156 baos.write(node.symbol); in decode()
161 return baos.toByteArray(); in decode()
/external/slf4j/jcl-over-slf4j/src/test/java/org/apache/commons/logging/impl/
DSerializationTest.java43 ByteArrayOutputStream baos = new ByteArrayOutputStream(); field in SerializationTest
51 oos = new ObjectOutputStream(baos); in setUp()
61 ByteArrayInputStream bis = new ByteArrayInputStream(baos.toByteArray()); in verify()
/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/conscrypt/openjdk/src/test/java/org/conscrypt/
DOpenSSLX509CertificateTest.java58 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in testSerialization_NoContextDeserialization() local
59 ObjectOutputStream oos = new ObjectOutputStream(baos); in testSerialization_NoContextDeserialization()
62 impostorBytes = baos.toByteArray(); in testSerialization_NoContextDeserialization()
/external/apache-http/android/src/com/android/internal/http/multipart/
DMultipartEntity.java221 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in getContent() local
222 Part.sendParts(baos, this.parts, this.multipartBoundary); in getContent()
223 ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray()); in getContent()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DMessageRegressionTest.java262 ByteArrayOutputStream baos = null; in Test4111739() local
266 baos = new ByteArrayOutputStream(); in Test4111739()
267 ostream = new ObjectOutputStream(baos); in Test4111739()
278 byte bytes[] = baos.toByteArray(); in Test4111739()
734 ByteArrayOutputStream baos = null; in testBugTestsWithNamesArguments() local
738 baos = new ByteArrayOutputStream(); in testBugTestsWithNamesArguments()
739 ostream = new ObjectOutputStream(baos); in testBugTestsWithNamesArguments()
750 byte bytes[] = baos.toByteArray(); in testBugTestsWithNamesArguments()
869 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in serializeAndDeserialize() local
870 ObjectOutputStream ostream = new ObjectOutputStream(baos); in serializeAndDeserialize()
[all …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DMessageRegressionTest.java261 ByteArrayOutputStream baos = null; in Test4111739() local
265 baos = new ByteArrayOutputStream(); in Test4111739()
266 ostream = new ObjectOutputStream(baos); in Test4111739()
277 byte bytes[] = baos.toByteArray(); in Test4111739()
733 ByteArrayOutputStream baos = null; in testBugTestsWithNamesArguments() local
737 baos = new ByteArrayOutputStream(); in testBugTestsWithNamesArguments()
738 ostream = new ObjectOutputStream(baos); in testBugTestsWithNamesArguments()
749 byte bytes[] = baos.toByteArray(); in testBugTestsWithNamesArguments()
868 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in serializeAndDeserialize() local
869 ObjectOutputStream ostream = new ObjectOutputStream(baos); in serializeAndDeserialize()
[all …]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jce/netscape/
DNetscapeCertRequest.java258 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in getKeySpec() local
264 baos.write(pubkey.getEncoded()); in getKeySpec()
265 baos.close(); in getKeySpec()
268 new ByteArrayInputStream(baos.toByteArray())); in getKeySpec()
/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/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()
/external/robolectric/v1/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/slf4j/slf4j-ext/src/main/java/org/slf4j/ext/
DEventData.java104 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in toXML() local
106 XMLEncoder encoder = new XMLEncoder(baos); in toXML()
114 return baos.toString(); in toXML()

12