Home
last modified time | relevance | path

Searched refs:BUFFER_SIZE (Results 1 – 16 of 16) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
DSourceChannelTest.java32 private static final int BUFFER_SIZE = 5; field in SourceChannelTest
53 positionedBuffer.position(BUFFER_SIZE); in setUp()
90 ByteBuffer readBuf = ByteBuffer.allocate(BUFFER_SIZE); in test_read_LByteBuffer_SinkClosed()
94 assertEquals(BUFFER_SIZE, count); in test_read_LByteBuffer_SinkClosed()
108 ByteBuffer readBuf = ByteBuffer.allocate(BUFFER_SIZE); in test_read_LByteBuffer_SourceClosed()
116 readBuf.position(BUFFER_SIZE); in test_read_LByteBuffer_SourceClosed()
165 positionedBuffer.position(BUFFER_SIZE); in test_read_$LByteBuffer()
172 ByteBuffer[] readBufArray = { ByteBuffer.allocate(BUFFER_SIZE), in test_read_$LByteBuffer()
173 ByteBuffer.allocate(BUFFER_SIZE) }; in test_read_$LByteBuffer()
180 if (0 == count && BUFFER_SIZE == readBufArray[1].position()) { in test_read_$LByteBuffer()
[all …]
DSinkChannelTest.java36 private static final int BUFFER_SIZE = 5; field in SinkChannelTest
57 positionedBuffer.position(BUFFER_SIZE); in setUp()
86 ByteBuffer readBuf = ByteBuffer.allocate(BUFFER_SIZE); in test_write_LByteBuffer()
93 } while (totalCount != BUFFER_SIZE && !isBlocking); in test_write_LByteBuffer()
95 assertEquals(BUFFER_SIZE, currentPosition - oldPosition); in test_write_LByteBuffer()
127 ByteBuffer readBuf = ByteBuffer.allocate(THREAD_NUM * BUFFER_SIZE); in test_write_LByteBuffer_mutliThread()
136 } while (totalCount != (THREAD_NUM * BUFFER_SIZE)); in test_write_LByteBuffer_mutliThread()
189 positionedBuffer.position(BUFFER_SIZE); in test_write_$LByteBuffer()
195 ByteBuffer readBuf = ByteBuffer.allocate(BUFFER_SIZE); in test_write_$LByteBuffer()
203 } while (totalCount != BUFFER_SIZE && !isBlocking); in test_write_$LByteBuffer()
[all …]
/libcore/ojluni/src/test/java/io/CharArrayReader/
DReadCharBuffer.java48 private static final int BUFFER_SIZE = 7; field in ReadCharBuffer
54 new Object[]{CharBuffer.allocate(BUFFER_SIZE)}, in createBuffers()
55 new Object[]{ByteBuffer.allocateDirect(BUFFER_SIZE * 2).asCharBuffer()} in createBuffers()
84 char[] filler = new char[BUFFER_SIZE]; in fillBuffer()
/libcore/ojluni/src/test/java/io/InputStreamReader/
DReadCharBuffer.java50 private static final int BUFFER_SIZE = 24; field in ReadCharBuffer
56 new Object[]{CharBuffer.allocate(BUFFER_SIZE)}, in createBuffers()
57 new Object[]{ByteBuffer.allocateDirect(BUFFER_SIZE * 2).asCharBuffer()} in createBuffers()
84 char[] filler = new char[BUFFER_SIZE]; in fillBuffer()
/libcore/ojluni/src/test/java/text/testlib/
DHexDumpReader.java82 private static final int BUFFER_SIZE = 4096; field in HexDumpReader.ByteArrayBuilder
91 current = new byte[BUFFER_SIZE]; in ByteArrayBuilder()
95 if (offset == BUFFER_SIZE) { in put()
97 current = new byte[BUFFER_SIZE]; in put()
/libcore/luni/src/test/java/libcore/java/io/
DInterruptedStreamTest.java45 private static final int BUFFER_SIZE = 1024 * 1024; field in InterruptedStreamTest
145 channel.read(ByteBuffer.allocate(BUFFER_SIZE)); in testInterruptReadableChannel()
158 out.write(new byte[BUFFER_SIZE]); in testInterruptOutputStream()
171 writer.write(new char[BUFFER_SIZE]); in testInterruptWriter()
184 channel.write(ByteBuffer.allocate(BUFFER_SIZE)); in testInterruptWritableChannel()
DOldOutputStreamTest.java27 private static final int BUFFER_SIZE = 20; field in OldOutputStreamTest.BasicOutputStream
32 buffer = new byte[BUFFER_SIZE]; in BasicOutputStream()
37 if (position < BUFFER_SIZE) { in write()
/libcore/ojluni/src/test/java/io/FileReader/
DConstructorTest.java53 static final int BUFFER_SIZE = 8192; field in ConstructorTest
88 String result1 = readAll(fr, BUFFER_SIZE); in test()
89 String result2 = readAll(isr, BUFFER_SIZE); in test()
/libcore/benchmarks/src/benchmarks/regression/
DSSLSocketBenchmark.java32 private static final int BUFFER_SIZE = 8192; field in SSLSocketBenchmark
34 final byte[] buffer = new byte[BUFFER_SIZE];
/libcore/ojluni/src/test/java/io/FileWriter/
DConstructorTest.java54 static final int BUFFER_SIZE = 8192; field in ConstructorTest
94 String result1 = readAll(r1, BUFFER_SIZE); in test()
95 String result2 = readAll(r2, BUFFER_SIZE); in test()
/libcore/ojluni/src/main/java/sun/nio/fs/
DLinuxWatchService.java177 private static final int BUFFER_SIZE = 8192; field in LinuxWatchService.Poller
201 this.address = unsafe.allocateMemory(BUFFER_SIZE); in Poller()
341 bytesRead = read(ifd, address, BUFFER_SIZE); in run()
351 read(socketpair[0], address, BUFFER_SIZE); in run()
/libcore/ojluni/src/test/java/util/zip/ZipFile/
DZip64SizeTest.java53 private static final int BUFFER_SIZE = 1024 * 1024; // 1MB field in Zip64SizeTest
127 byte[] bytes = new byte[BUFFER_SIZE]; in createZipFile()
/libcore/luni/src/main/java/org/apache/harmony/xml/
DExpatParser.java49 private static final int BUFFER_SIZE = 8096; // in bytes field in ExpatParser
506 char[] buffer = new char[BUFFER_SIZE / 2]; in parseFragment()
522 byte[] buffer = new byte[BUFFER_SIZE]; in parseFragment()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DOutputStreamWriterTest.java38 private static final int BUFFER_SIZE = 10000; field in OutputStreamWriterTest
492 char[] largeBuffer = new char[BUFFER_SIZE]; in testBlockIO()
511 if (m == BUFFER_SIZE) { in testBlockIO()
/libcore/ojluni/src/main/java/java/nio/file/
DFiles.java2752 private static final int BUFFER_SIZE = 8192;
2906 byte[] buf = new byte[BUFFER_SIZE];
3115 capacity = Math.max(capacity << 1, BUFFER_SIZE);
3296 int n = Math.min(rem, BUFFER_SIZE);
/libcore/ojluni/src/main/java/java/util/
DScanner.java314 private static final int BUFFER_SIZE = 1024; // change to 1024; field in Scanner
544 buf = CharBuffer.allocate(BUFFER_SIZE); in Scanner()