/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 | 164 Buffer bytesOut = new Buffer(); 167 bytesOut.writeHexadecimalUnsignedLong(chunkSize); 168 bytesOut.writeUtf8("\r\n"); 169 bytesOut.write(body, chunkSize); 170 bytesOut.writeUtf8("\r\n"); 172 bytesOut.writeUtf8("0\r\n\r\n"); // Last chunk + empty trailer + CRLF. 174 this.body = bytesOut;
|
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/framed/ |
MockSpdyPeer.java | 46 private final Buffer bytesOut = new Buffer(); 47 private FrameWriter frameWriter = variant.newWriter(bytesOut, client); 62 this.frameWriter = variant.newWriter(bytesOut, client); 80 outFrames.add(new OutFrame(frameCount++, bytesOut.size(), false)); 89 outFrames.add(new OutFrame(frameCount++, bytesOut.size(), false)); 90 bytesOut.write(frame); 100 if (length >= bytesOut.size() - lastFrame.start) throw new IllegalArgumentException(); 102 // Move everything from bytesOut into a new buffer. 104 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);
|
/external/webrtc/webrtc/modules/audio_coding/codecs/cng/ |
webrtc_cng.h | 101 * - bytesOut : Nr of bytes to transmit, might be 0 108 size_t* bytesOut, int16_t forceSID);
|
webrtc_cng.c | 223 * - bytesOut : Nr of bytes to transmit, might be 0 230 size_t* bytesOut, int16_t forceSID) { 329 *bytesOut = 0; 388 *bytesOut = inst->enc_nrOfCoefs + 1; 396 *bytesOut = 0;
|
/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");
|
/external/bzip2/ |
bzip2recover.c | 66 MaybeUInt64 bytesOut = 0; 185 bytesOut++; 229 bytesOut++;
|
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/http/ |
HttpOverSpdyTest.java | 435 Buffer bytesOut = new Buffer(); 436 BufferedSink sink = Okio.buffer(new GzipSink(bytesOut)); 439 return bytesOut;
|
/libcore/dex/src/main/java/com/android/dex/ |
Dex.java | 145 ByteArrayOutputStream bytesOut = new ByteArrayOutputStream(); 150 bytesOut.write(buffer, 0, count); 154 this.data = ByteBuffer.wrap(bytesOut.toByteArray()); [all...] |
/dalvik/dx/src/com/android/dx/command/dexer/ |
Main.java | 484 ByteArrayOutputStream bytesOut = new ByteArrayOutputStream(); 485 result.writeTo(bytesOut); 486 return bytesOut.toByteArray(); [all...] |
/libcore/luni/src/test/java/libcore/java/net/ |
URLConnectionTest.java | 676 ByteArrayOutputStream bytesOut = new ByteArrayOutputStream(); 677 bytesOut.write(mockResponse.getBody()); 678 bytesOut.write("\r\nYOU SHOULD NOT SEE THIS".getBytes()); 679 mockResponse.setBody(bytesOut.toByteArray()); [all...] |
/external/opencv3/modules/ts/src/ |
ts_perf.cpp | 638 bytesOut = 0; [all...] |