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

/libcore/crypto/src/main/java/org/conscrypt/
H A DSSLSocketInputStream.java34 private static final int BUFFER_SIZE = SSLRecordProtocol.MAX_DATA_LENGTH; field in class:SSLSocketInputStream
37 private byte[] buffer = new byte[BUFFER_SIZE];
142 if (BUFFER_SIZE - (end - pos) < length) {
154 if (end + length > BUFFER_SIZE) {
/libcore/harmony-tests/src/test/java/org/apache/harmony/nio/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/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];

Completed in 266 milliseconds