/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/ |
D | SourceChannelTest.java | 32 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 …]
|
D | SinkChannelTest.java | 36 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/luni/src/test/java/libcore/java/io/ |
D | InterruptedStreamTest.java | 45 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()
|
D | OldOutputStreamTest.java | 27 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/benchmarks/src/benchmarks/regression/ |
D | SSLSocketBenchmark.java | 32 private static final int BUFFER_SIZE = 8192; field in SSLSocketBenchmark 34 final byte[] buffer = new byte[BUFFER_SIZE];
|
/libcore/ojluni/src/main/java/sun/nio/fs/ |
D | LinuxWatchService.java | 177 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/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
D | OutputStreamWriterTest.java | 38 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/luni/src/main/java/org/apache/harmony/xml/ |
D | ExpatParser.java | 49 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/ojluni/src/main/java/java/nio/file/ |
D | Files.java | 2752 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/ |
D | Scanner.java | 311 private static final int BUFFER_SIZE = 1024; // change to 1024; field in Scanner 544 buf = CharBuffer.allocate(BUFFER_SIZE); in Scanner()
|