Searched refs:BUFFER_SIZE (Results 1 - 10 of 10) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
H A DSourceChannelTest.java32 private static final int BUFFER_SIZE = 5; field in class:SourceChannelTest
53 positionedBuffer.position(BUFFER_SIZE);
90 ByteBuffer readBuf = ByteBuffer.allocate(BUFFER_SIZE);
94 assertEquals(BUFFER_SIZE, count);
108 ByteBuffer readBuf = ByteBuffer.allocate(BUFFER_SIZE);
116 readBuf.position(BUFFER_SIZE);
165 positionedBuffer.position(BUFFER_SIZE);
172 ByteBuffer[] readBufArray = { ByteBuffer.allocate(BUFFER_SIZE),
173 ByteBuffer.allocate(BUFFER_SIZE) };
180 if (0 == count && BUFFER_SIZE
[all...]
H A DSinkChannelTest.java36 private static final int BUFFER_SIZE = 5; field in class:SinkChannelTest
57 positionedBuffer.position(BUFFER_SIZE);
86 ByteBuffer readBuf = ByteBuffer.allocate(BUFFER_SIZE);
93 } while (totalCount != BUFFER_SIZE && !isBlocking);
95 assertEquals(BUFFER_SIZE, currentPosition - oldPosition);
127 ByteBuffer readBuf = ByteBuffer.allocate(THREAD_NUM * BUFFER_SIZE);
136 } while (totalCount != (THREAD_NUM * BUFFER_SIZE));
189 positionedBuffer.position(BUFFER_SIZE);
195 ByteBuffer readBuf = ByteBuffer.allocate(BUFFER_SIZE);
203 } while (totalCount != BUFFER_SIZE
[all...]
/libcore/luni/src/test/java/libcore/java/io/
H A DOldOutputStreamTest.java27 private static final int BUFFER_SIZE = 20; field in class:OldOutputStreamTest.BasicOutputStream
32 buffer = new byte[BUFFER_SIZE];
37 if (position < BUFFER_SIZE) {
H A DInterruptedStreamTest.java45 private static final int BUFFER_SIZE = 1024 * 1024; field in class:InterruptedStreamTest
145 channel.read(ByteBuffer.allocate(BUFFER_SIZE));
158 out.write(new byte[BUFFER_SIZE]);
171 writer.write(new char[BUFFER_SIZE]);
184 channel.write(ByteBuffer.allocate(BUFFER_SIZE));
/libcore/benchmarks/src/benchmarks/regression/
H A DSSLSocketBenchmark.java32 private static final int BUFFER_SIZE = 8192; field in class:SSLSocketBenchmark
34 final byte[] buffer = new byte[BUFFER_SIZE];
/libcore/tzdata/update/src/main/libcore/tzdata/update/
H A DConfigBundle.java45 private static final int BUFFER_SIZE = 8192; field in class:ConfigBundle
69 byte[] buffer = new byte[BUFFER_SIZE];
H A DFileUtils.java109 final int BUFFER_SIZE = 8196;
112 byte[] buffer = new byte[BUFFER_SIZE];
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
H A DOutputStreamWriterTest.java38 private static final int BUFFER_SIZE = 10000; field in class:OutputStreamWriterTest
492 char[] largeBuffer = new char[BUFFER_SIZE];
511 if (m == BUFFER_SIZE) {
/libcore/luni/src/main/java/org/apache/harmony/xml/
H A DExpatParser.java44 private static final int BUFFER_SIZE = 8096; // in bytes field in class:ExpatParser
493 char[] buffer = new char[BUFFER_SIZE / 2];
509 byte[] buffer = new byte[BUFFER_SIZE];
/libcore/ojluni/src/main/java/java/util/
H A DScanner.java353 private static final int BUFFER_SIZE = 1024; // change to 1024; field in class:Scanner
583 buf = CharBuffer.allocate(BUFFER_SIZE);

Completed in 438 milliseconds