Home
last modified time | relevance | path

Searched refs:bytesOut (Results 1 – 9 of 9) sorted by relevance

/external/mockwebserver/src/main/java/com/google/mockwebserver/
DMockResponse.java184 ByteArrayOutputStream bytesOut = new ByteArrayOutputStream(); in setChunkedBody() local
188 bytesOut.write(Integer.toHexString(chunkSize).getBytes(ASCII)); in setChunkedBody()
189 bytesOut.write("\r\n".getBytes(ASCII)); in setChunkedBody()
190 bytesOut.write(body, pos, chunkSize); in setChunkedBody()
191 bytesOut.write("\r\n".getBytes(ASCII)); in setChunkedBody()
194 bytesOut.write("0\r\n\r\n".getBytes(ASCII)); // last chunk + empty trailer + crlf in setChunkedBody()
196 this.body = bytesOut.toByteArray(); in setChunkedBody()
/external/okhttp/src/test/java/com/squareup/okhttp/internal/spdy/
DMockSpdyPeer.java40 private final ByteArrayOutputStream bytesOut = new ByteArrayOutputStream(); field in MockSpdyPeer
41 private final SpdyWriter spdyWriter = new SpdyWriter(bytesOut);
54 outFrames.add(new OutFrame(frameCount++, bytesOut.size(), Integer.MAX_VALUE)); in sendFrame()
64 outFrames.add(new OutFrame(frameCount++, bytesOut.size(), truncateToLength)); in sendTruncatedFrame()
100 byte[] outBytes = bytesOut.toByteArray(); in readAndWriteFrames()
DHttpOverSpdyTest.java288 ByteArrayOutputStream bytesOut = new ByteArrayOutputStream(); in gzip() local
289 OutputStream gzippedOut = new GZIPOutputStream(bytesOut); in gzip()
292 return bytesOut.toByteArray(); in gzip()
DSpdyConnectionTest.java1009 ByteArrayOutputStream bytesOut = new ByteArrayOutputStream();
1012 bytesOut.write(buffer, 0, count);
1014 String actual = bytesOut.toString("UTF-8");
/external/apache-harmony/support/src/test/java/org/apache/harmony/testframework/
DWrapperTester.java89 return WrapperTester.this.decode(delegate.bytesOut.toByteArray()); in getBytes()
186 private final ByteArrayOutputStream bytesOut = new ByteArrayOutputStream(); field in WrapperTester.ClosableByteArrayOutputStream
197 bytesOut.write(oneByte); in write()
/external/bzip2/
Dbzip2recover.c66 MaybeUInt64 bytesOut = 0; variable
185 bytesOut++; in bsPutBit()
229 bytesOut++; in bsClose()
/external/okhttp/src/test/java/com/squareup/okhttp/internal/http/
DURLConnectionTest.java642 ByteArrayOutputStream bytesOut = new ByteArrayOutputStream(); in contentDisagreesWithChunkedHeader() local
643 bytesOut.write(mockResponse.getBody()); in contentDisagreesWithChunkedHeader()
644 bytesOut.write("\r\nYOU SHOULD NOT SEE THIS".getBytes("UTF-8")); in contentDisagreesWithChunkedHeader()
645 mockResponse.setBody(bytesOut.toByteArray()); in contentDisagreesWithChunkedHeader()
2512 ByteArrayOutputStream bytesOut = new ByteArrayOutputStream(); in gzip() local
2513 OutputStream gzippedOut = new GZIPOutputStream(bytesOut); in gzip()
2516 return bytesOut.toByteArray(); in gzip()
DHttpResponseCacheTest.java1892 ByteArrayOutputStream bytesOut = new ByteArrayOutputStream();
1893 OutputStream gzippedOut = new GZIPOutputStream(bytesOut);
1896 return bytesOut.toByteArray();
/external/smack/asmack-master/jingle/
D60-remove-jingle_mediaimpl.patch993 - byte[] bytesOut = baos.toByteArray();
995 - if (bytesOut.length > 1000)
996 … LOGGER.error("Bytes out > 1000. Equals " + bytesOut.length);
998 - p.setData(bytesOut);