Searched refs:chunkSize (Results 1 – 7 of 7) 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/ojluni/src/main/java/java/util/stream/ |
D | AbstractSpinedBuffer.java | 116 protected int chunkSize(int n) { in chunkSize() method in AbstractSpinedBuffer
|
D | StreamSpliterators.java | 906 protected final int chunkSize; field in StreamSpliterators.AbstractWrappingSpliterator.UnorderedSliceSpliterator 914 this.chunkSize = limit >= 0 ? (int)Math.min(CHUNK_SIZE, in UnorderedSliceSpliterator() 925 this.chunkSize = parent.chunkSize; in UnorderedSliceSpliterator() 1036 sb = new ArrayBuffer.OfRef<>(chunkSize); in forEachRemaining() 1040 do { } while (s.tryAdvance(sb) && ++permitsRequested < chunkSize); in forEachRemaining() 1109 sb = bufferCreate(chunkSize); in forEachRemaining() 1115 do { } while (s.tryAdvance(sbc) && ++permitsRequested < chunkSize); in forEachRemaining()
|
D | SpinedBuffer.java | 146 int nextChunkSize = chunkSize(i); in ensureCapacity() 511 int nextChunkSize = chunkSize(i); in ensureCapacity()
|
/libcore/luni/src/test/java/libcore/libcore/net/ |
D | NetworkSecurityPolicyTest.java | 268 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/ |
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 | 3353 @Override void setBody(MockResponse response, byte[] content, int chunkSize) 3355 response.setChunkedBody(content, chunkSize); 3359 @Override void setBody(MockResponse response, byte[] content, int chunkSize) { 3364 @Override void setBody(MockResponse response, byte[] content, int chunkSize) { 3376 abstract void setBody(MockResponse response, byte[] content, int chunkSize) 3379 void setBody(MockResponse response, String content, int chunkSize) throws IOException { 3380 setBody(response, content.getBytes("UTF-8"), chunkSize);
|