Home
last modified time | relevance | path

Searched refs:CHUNK_SIZE (Results 1 – 4 of 4) sorted by relevance

/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DDigestInputStreamTest.java58 private static final int CHUNK_SIZE = 32; field in DigestInputStreamTest
328 assertEquals(0, MY_MESSAGE_LEN % CHUNK_SIZE); in testReadbyteArrayintint02()
337 for (int i=0; i<MY_MESSAGE_LEN/CHUNK_SIZE; i++) { in testReadbyteArrayintint02()
340 dis.read(bArray, i*CHUNK_SIZE, CHUNK_SIZE) == CHUNK_SIZE); in testReadbyteArrayintint02()
368 assertTrue(MY_MESSAGE_LEN % (CHUNK_SIZE+1) != 0); in testReadbyteArrayintint03()
377 for (int i=0; i<MY_MESSAGE_LEN/(CHUNK_SIZE+1); i++) { in testReadbyteArrayintint03()
380 dis.read(bArray, i*(CHUNK_SIZE+1), CHUNK_SIZE+1) == in testReadbyteArrayintint03()
381 CHUNK_SIZE + 1); in testReadbyteArrayintint03()
388 MY_MESSAGE_LEN/(CHUNK_SIZE+1)*(CHUNK_SIZE+1), in testReadbyteArrayintint03()
389 MY_MESSAGE_LEN % (CHUNK_SIZE+1)) == in testReadbyteArrayintint03()
[all …]
DDigestOutputStreamTest.java58 private static final int CHUNK_SIZE = 32; field in DigestOutputStreamTest
315 assertEquals(0, MY_MESSAGE_LEN % CHUNK_SIZE); in test_write$BII_2()
324 for (int i=0; i<MY_MESSAGE_LEN/CHUNK_SIZE; i++) { in test_write$BII_2()
325 dos.write(myMessage, i*CHUNK_SIZE, CHUNK_SIZE); in test_write$BII_2()
352 assertTrue(MY_MESSAGE_LEN % (CHUNK_SIZE+1) != 0); in test_write$BII_3()
361 for (int i=0; i<MY_MESSAGE_LEN/(CHUNK_SIZE+1); i++) { in test_write$BII_3()
362 dos.write(myMessage, i*(CHUNK_SIZE+1), CHUNK_SIZE+1); in test_write$BII_3()
366 MY_MESSAGE_LEN/(CHUNK_SIZE+1)*(CHUNK_SIZE+1), in test_write$BII_3()
367 MY_MESSAGE_LEN % (CHUNK_SIZE+1)); in test_write$BII_3()
393 assertEquals(0, MY_MESSAGE_LEN % CHUNK_SIZE); in test_write$BII_4()
[all …]
/libcore/luni/src/test/java/libcore/java/util/zip/
DInflaterTest.java51 final int CHUNK_SIZE = 16; in assertRoundTrip() local
53 inflater.setInput(deflatedBytes, offset, CHUNK_SIZE); in assertRoundTrip()
54 offset += CHUNK_SIZE; in assertRoundTrip()
72 int nextChunkByteCount = Math.min(CHUNK_SIZE, deflatedBytes.length - offset); in assertRoundTrip()
/libcore/ojluni/src/main/java/java/util/stream/
DStreamSpliterators.java903 static final int CHUNK_SIZE = 1 << 7; field in StreamSpliterators.AbstractWrappingSpliterator.UnorderedSliceSpliterator
1034 sb = new ArrayBuffer.OfRef<>(CHUNK_SIZE); in forEachRemaining()
1038 do { } while (s.tryAdvance(sb) && ++permitsRequested < CHUNK_SIZE); in forEachRemaining()
1107 sb = bufferCreate(CHUNK_SIZE); in forEachRemaining()
1113 do { } while (s.tryAdvance(sbc) && ++permitsRequested < CHUNK_SIZE); in forEachRemaining()