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

1 2

  /libcore/luni/src/test/java/libcore/java/util/zip/
OldAndroidZipStreamTest.java 33 ByteArrayOutputStream bytesOut = new ByteArrayOutputStream();
34 createCompressedZip(bytesOut);
36 byte[] zipData = bytesOut.toByteArray();
56 bytesOut = new ByteArrayOutputStream();
57 createUncompressedZip(bytesOut);
59 zipData = bytesOut.toByteArray();
90 private static void createCompressedZip(ByteArrayOutputStream bytesOut) throws IOException {
91 ZipOutputStream out = new ZipOutputStream(bytesOut);
112 private static void createUncompressedZip(ByteArrayOutputStream bytesOut) throws IOException {
113 ZipOutputStream out = new ZipOutputStream(bytesOut);
    [all...]
OldAndroidGZIPStreamTest.java 33 ByteArrayOutputStream bytesOut = new ByteArrayOutputStream();
34 createGZIP(bytesOut);
37 zipData = bytesOut.toByteArray();
83 static void createGZIP(ByteArrayOutputStream bytesOut) throws IOException {
84 GZIPOutputStream out = new GZIPOutputStream(bytesOut);
GZIPOutputStreamTest.java 42 ByteArrayOutputStream bytesOut = new ByteArrayOutputStream();
43 OutputStream gzippedOut = new GZIPOutputStream(bytesOut);
46 return bytesOut.toByteArray();
ZipOutputStreamTest.java 52 ByteArrayOutputStream bytesOut = new ByteArrayOutputStream();
53 ZipOutputStream zippedOut = new ZipOutputStream(bytesOut);
61 return bytesOut.toByteArray();
OldAndroidZipFileTest.java 77 static void createCompressedZip(OutputStream bytesOut) throws IOException {
78 ZipOutputStream out = new ZipOutputStream(bytesOut);
  /external/apache-commons-math/src/main/java/org/apache/commons/math/random/
AbstractRandomGenerator.java 107 int bytesOut = 0;
108 while (bytesOut < bytes.length) {
114 bytes[bytesOut++] = (byte) randInt;
115 if (bytesOut == bytes.length) {
  /libcore/support/src/test/java/tests/http/
MockResponse.java 116 ByteArrayOutputStream bytesOut = new ByteArrayOutputStream();
120 bytesOut.write(Integer.toHexString(chunkSize).getBytes(ASCII));
121 bytesOut.write("\r\n".getBytes(ASCII));
122 bytesOut.write(body, pos, chunkSize);
123 bytesOut.write("\r\n".getBytes(ASCII));
126 bytesOut.write("0\r\n\r\n".getBytes(ASCII)); // last chunk + empty trailer + crlf
127 this.body = bytesOut.toByteArray();
  /external/okhttp/okhttp-hpacktests/src/test/java/com/squareup/okhttp/internal/spdy/
HpackRoundTripTest.java 44 private Buffer bytesOut = new Buffer();
45 private Hpack.Writer hpackWriter = new Hpack.Writer(bytesOut);
57 caze.setWire(bytesOut.readByteString());
  /external/mockwebserver/src/main/java/com/google/mockwebserver/
MockResponse.java 191 ByteArrayOutputStream bytesOut = new ByteArrayOutputStream();
195 bytesOut.write(Integer.toHexString(chunkSize).getBytes(US_ASCII));
196 bytesOut.write("\r\n".getBytes(US_ASCII));
197 bytesOut.write(body, pos, chunkSize);
198 bytesOut.write("\r\n".getBytes(US_ASCII));
201 bytesOut.write("0\r\n\r\n".getBytes(US_ASCII)); // last chunk + empty trailer + crlf
203 this.body = bytesOut.toByteArray();
  /external/okhttp/mockwebserver/src/main/java/com/squareup/okhttp/mockwebserver/
MockResponse.java 153 Buffer bytesOut = new Buffer();
156 bytesOut.writeHexadecimalUnsignedLong(chunkSize);
157 bytesOut.writeUtf8("\r\n");
158 bytesOut.write(body, chunkSize);
159 bytesOut.writeUtf8("\r\n");
161 bytesOut.writeUtf8("0\r\n\r\n"); // Last chunk + empty trailer + CRLF.
163 this.body = bytesOut;
  /external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/spdy/
MockSpdyPeer.java 43 private final Buffer bytesOut = new Buffer();
44 private FrameWriter frameWriter = variant.newWriter(bytesOut, client);
59 this.frameWriter = variant.newWriter(bytesOut, client);
77 outFrames.add(new OutFrame(frameCount++, bytesOut.size(), false));
86 outFrames.add(new OutFrame(frameCount++, bytesOut.size(), false));
87 bytesOut.write(frame);
97 if (length >= bytesOut.size() - lastFrame.start) throw new IllegalArgumentException();
99 // Move everything from bytesOut into a new buffer.
101 bytesOut.read(fullBuffer, bytesOut.size())
    [all...]
HpackTest.java 35 private Buffer bytesOut = new Buffer();
40 hpackWriter = new Hpack.Writer(bytesOut);
55 bytesIn.writeAll(bytesOut);
199 assertEquals(bytesIn, bytesOut);
219 assertEquals(bytesIn, bytesOut);
711 ByteString actual = bytesOut.readByteString();
  /external/apache-harmony/support/src/test/java/org/apache/harmony/testframework/
WrapperTester.java 92 return WrapperTester.this.decode(delegate.bytesOut.toByteArray());
191 private final ByteArrayOutputStream bytesOut = new ByteArrayOutputStream();
204 bytesOut.write(oneByte);
  /libcore/benchmarks/src/benchmarks/
XmlParseBenchmark.java 75 ByteArrayOutputStream bytesOut = new ByteArrayOutputStream();
79 bytesOut.write(buffer, 0, count);
82 return bytesOut.toByteArray();
  /libcore/support/src/test/java/org/apache/harmony/testframework/
WrapperTester.java 92 return WrapperTester.this.decode(delegate.bytesOut.toByteArray());
191 private final ByteArrayOutputStream bytesOut = new ByteArrayOutputStream();
204 bytesOut.write(oneByte);
  /libcore/luni/src/test/java/libcore/java/io/
OldOutputStreamWriterTest.java 300 ByteArrayOutputStream bytesOut = new ByteArrayOutputStream();
301 OutputStreamWriter charsOut = new OutputStreamWriter(bytesOut, charset);
306 ByteArrayInputStream bytesIn = new ByteArrayInputStream(bytesOut.toByteArray());
314 bytesIn = new ByteArrayInputStream(bytesOut.toByteArray());
  /libcore/luni/src/test/java/libcore/xml/
KxmlSerializerTest.java 85 ByteArrayOutputStream bytesOut = new ByteArrayOutputStream();
87 serializer.setOutput(bytesOut, "UTF-8");