Home
last modified time | relevance | path

Searched refs:chunkSize (Results 1 – 6 of 6) sorted by relevance

/libcore/benchmarks/src/benchmarks/regression/
DURLConnectionBenchmark.java32 @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/ojluni/src/main/java/java/util/stream/
DAbstractSpinedBuffer.java116 protected int chunkSize(int n) { in chunkSize() method in AbstractSpinedBuffer
DSpinedBuffer.java146 int nextChunkSize = chunkSize(i); in ensureCapacity()
511 int nextChunkSize = chunkSize(i); in ensureCapacity()
/libcore/luni/src/test/java/libcore/libcore/net/
DNetworkSecurityPolicyTest.java268 int chunkSize = client.getInputStream().read(buf); in CapturingServerSocket()
269 if (chunkSize == -1) { in CapturingServerSocket()
274 return Arrays.copyOf(buf, chunkSize); in CapturingServerSocket()
/libcore/support/src/test/java/tests/support/
DSupport_TestWebServer.java843 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/
DURLConnectionTest.java3108 @Override void setBody(MockResponse response, byte[] content, int chunkSize)
3110 response.setChunkedBody(content, chunkSize);
3114 @Override void setBody(MockResponse response, byte[] content, int chunkSize) {
3119 @Override void setBody(MockResponse response, byte[] content, int chunkSize) {
3131 abstract void setBody(MockResponse response, byte[] content, int chunkSize)
3134 void setBody(MockResponse response, String content, int chunkSize) throws IOException {
3135 setBody(response, content.getBytes("UTF-8"), chunkSize);