Searched defs:CHUNK_SIZE (Results 1 - 3 of 3) sorted by relevance

/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
H A DDigestInputStreamTest.java58 private static final int CHUNK_SIZE = 32; field in class:DigestInputStreamTest
328 assertEquals(0, MY_MESSAGE_LEN % CHUNK_SIZE);
337 for (int i=0; i<MY_MESSAGE_LEN/CHUNK_SIZE; i++) {
340 dis.read(bArray, i*CHUNK_SIZE, CHUNK_SIZE) == CHUNK_SIZE);
368 assertTrue(MY_MESSAGE_LEN % (CHUNK_SIZE+1) != 0);
377 for (int i=0; i<MY_MESSAGE_LEN/(CHUNK_SIZE+1); i++) {
380 dis.read(bArray, i*(CHUNK_SIZE+1), CHUNK_SIZE
[all...]
H A DDigestOutputStreamTest.java58 private static final int CHUNK_SIZE = 32; field in class:DigestOutputStreamTest
315 assertEquals(0, MY_MESSAGE_LEN % CHUNK_SIZE);
324 for (int i=0; i<MY_MESSAGE_LEN/CHUNK_SIZE; i++) {
325 dos.write(myMessage, i*CHUNK_SIZE, CHUNK_SIZE);
352 assertTrue(MY_MESSAGE_LEN % (CHUNK_SIZE+1) != 0);
361 for (int i=0; i<MY_MESSAGE_LEN/(CHUNK_SIZE+1); i++) {
362 dos.write(myMessage, i*(CHUNK_SIZE+1), CHUNK_SIZE+1);
366 MY_MESSAGE_LEN/(CHUNK_SIZE
[all...]
/libcore/ojluni/src/main/java/java/util/stream/
H A DStreamSpliterators.java903 static final int CHUNK_SIZE = 1 << 7; field in class:StreamSpliterators.UnorderedSliceSpliterator
1032 // Optimistically traverse elements up to a threshold of CHUNK_SIZE
1034 sb = new ArrayBuffer.OfRef<>(CHUNK_SIZE);
1038 do { } while (s.tryAdvance(sb) && ++permitsRequested < CHUNK_SIZE);
1105 // Optimistically traverse elements up to a threshold of CHUNK_SIZE
1107 sb = bufferCreate(CHUNK_SIZE);
1113 do { } while (s.tryAdvance(sbc) && ++permitsRequested < CHUNK_SIZE);

Completed in 369 milliseconds