Searched refs:chunkSize (Results 1 – 8 of 8) sorted by relevance
/libcore/benchmarks/src/benchmarks/regression/ |
D | URLConnectionBenchmark.java | 32 @Param({"2048"}) private int chunkSize; field in URLConnectionBenchmark 57 transferEncoding.setBody(response, bodySize, chunkSize); in setUp() 95 void setBody(MockResponse response, int bodySize, int chunkSize) throws IOException { in setBody() argument 99 response.setChunkedBody(new byte[bodySize], chunkSize); in setBody()
|
/libcore/support/src/test/java/tests/http/ |
D | MockResponse.java | 119 int chunkSize = Math.min(body.length - pos, maxChunkSize); in setChunkedBody() local 120 bytesOut.write(Integer.toHexString(chunkSize).getBytes(ASCII)); in setChunkedBody() 122 bytesOut.write(body, pos, chunkSize); in setChunkedBody() 124 pos += chunkSize; in setChunkedBody()
|
D | MockWebServer.java | 368 int chunkSize = Integer.parseInt(readAsciiUntilCrlf(in).trim(), 16); in readRequest() local 369 if (chunkSize == 0) { in readRequest() 373 chunkSizes.add(chunkSize); in readRequest() 374 transfer(chunkSize, in, requestBody); in readRequest()
|
/libcore/ojluni/src/main/java/java/util/stream/ |
D | AbstractSpinedBuffer.java | 116 protected int chunkSize(int n) { in chunkSize() method in AbstractSpinedBuffer
|
D | SpinedBuffer.java | 143 int nextChunkSize = chunkSize(i); in ensureCapacity() 509 int nextChunkSize = chunkSize(i); in ensureCapacity()
|
/libcore/luni/src/test/java/libcore/net/ |
D | NetworkSecurityPolicyTest.java | 267 int chunkSize = client.getInputStream().read(buf); in CapturingServerSocket() 268 if (chunkSize == -1) { in CapturingServerSocket() 273 return Arrays.copyOf(buf, chunkSize); in CapturingServerSocket()
|
/libcore/support/src/test/java/tests/support/ |
D | Support_TestWebServer.java | 843 int chunkSize = Math.min(bytes.length - offset, maxChunkSize); in sendFile() local 844 psPrint(ps, Integer.toHexString(chunkSize)); in sendFile() 846 psWrite(ps, bytes, offset, chunkSize); in sendFile() 848 offset += chunkSize; in sendFile()
|
/libcore/luni/src/test/java/libcore/java/net/ |
D | URLConnectionTest.java | 3043 @Override void setBody(MockResponse response, byte[] content, int chunkSize) 3045 response.setChunkedBody(content, chunkSize); 3049 @Override void setBody(MockResponse response, byte[] content, int chunkSize) { 3054 @Override void setBody(MockResponse response, byte[] content, int chunkSize) { 3066 abstract void setBody(MockResponse response, byte[] content, int chunkSize) 3069 void setBody(MockResponse response, String content, int chunkSize) throws IOException { 3070 setBody(response, content.getBytes("UTF-8"), chunkSize);
|