/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/ |
D | DirectByteBufferTest.java | 28 buf = ByteBuffer.allocateDirect(BUFFER_LENGTH*Byte.BYTES); in setUp() 43 ByteBuffer.allocateDirect(-1); in testAllocatedByteBuffer_IllegalArg() 68 ByteBuffer buf = ByteBuffer.allocateDirect(23); in testUnalignedReadsAndWrites()
|
D | DirectCharBufferTest.java | 27 buf = ByteBuffer.allocateDirect(BUFFER_LENGTH*Character.BYTES).asCharBuffer(); in setUp() 59 DirectByteBuffer directByteBuffer = (DirectByteBuffer) ByteBuffer.allocateDirect(10); in testJNIAccessByAddress()
|
D | DirectDoubleBufferTest.java | 26 buf = ByteBuffer.allocateDirect(BUFFER_LENGTH*Double.BYTES).asDoubleBuffer(); in setUp() 58 DirectByteBuffer directByteBuffer = (DirectByteBuffer) ByteBuffer.allocateDirect(10); in testJNIAccessByAddress()
|
D | DirectIntBufferTest.java | 26 buf = ByteBuffer.allocateDirect(BUFFER_LENGTH*Integer.BYTES).asIntBuffer(); in setUp() 59 DirectByteBuffer directByteBuffer = (DirectByteBuffer) ByteBuffer.allocateDirect(10); in testJNIAccessByAddress()
|
D | DirectFloatBufferTest.java | 26 buf = ByteBuffer.allocateDirect(BUFFER_LENGTH*Float.BYTES).asFloatBuffer(); in setUp() 59 DirectByteBuffer directByteBuffer = (DirectByteBuffer) ByteBuffer.allocateDirect(10); in testJNIAccessByAddress()
|
D | DirectLongBufferTest.java | 26 buf = ByteBuffer.allocateDirect(BUFFER_LENGTH*Long.BYTES).asLongBuffer(); in setUp() 59 DirectByteBuffer directByteBuffer = (DirectByteBuffer) ByteBuffer.allocateDirect(10); in testJNIAccessByAddress()
|
D | MappedByteBufferTest.java | 196 ByteBuffer byteBuffer = ByteBuffer.allocateDirect(26 + 20); in setUp()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/ |
D | DatagramChannelTest.java | 685 ByteBuffer dst = ByteBuffer.allocateDirect(CAPACITY_NORMAL) in testReceive_UnconnectedReadonly() 702 ByteBuffer dst = ByteBuffer.allocateDirect(CAPACITY_NORMAL); in testReceive_UnconnectedBufEmpty() 711 ByteBuffer dst = ByteBuffer.allocateDirect(CAPACITY_ZERO); in testReceive_UnboundBufZero() 722 ByteBuffer dst = ByteBuffer.allocateDirect(CAPACITY_NORMAL); in testReceive_UnboundBufNotEmpty() 736 ByteBuffer dst = ByteBuffer.allocateDirect(CAPACITY_ONE); in testReceive_UnboundBufFull() 751 ByteBuffer dst = ByteBuffer.allocateDirect(CAPACITY_NORMAL); in testReceive_UnconnectedClose() 783 ByteBuffer dst = ByteBuffer.allocateDirect(CAPACITY_NORMAL) in testReceive_UnconnectedCloseReadonly() 925 ByteBuffer dst = ByteBuffer.allocateDirect(CAPACITY_NORMAL) in receiveNoServerReadonly() 938 ByteBuffer dst = ByteBuffer.allocateDirect(size); in receiveNonBlockNoServer() 944 ByteBuffer dst = ByteBuffer.allocateDirect(CAPACITY_NORMAL); in receiveNoServerChannelClose() [all …]
|
D | ChannelsTest.java | 227 ByteBuffer writebuf = ByteBuffer.allocateDirect(this.writebufSize); in testNewChannelOutputStream() 288 ByteBuffer readbcbuf = ByteBuffer.allocateDirect(this.testNum); in testNewInputStreamReadableByteChannel() 336 ByteBuffer writebcbuf = ByteBuffer.allocateDirect(this.testNum); in testNewOutputStreamWritableByteChannel()
|
/libcore/luni/src/test/java/libcore/java/nio/channels/ |
D | FileIOInterruptTest.java | 197 ByteBuffer buffer = ByteBuffer.allocateDirect(10); in testChannelRead_exceptionWhenAlreadyClosed() 202 ByteBuffer buffer2 = ByteBuffer.allocateDirect(10); in testChannelRead_exceptionWhenAlreadyClosed() 230 ByteBuffer buffer = ByteBuffer.allocateDirect(10); in testChannelRead_exceptionWhenAlreadyInterrupted() 235 ByteBuffer buffer2 = ByteBuffer.allocateDirect(10); in testChannelRead_exceptionWhenAlreadyInterrupted() 329 ByteBuffer buffer = ByteBuffer.allocateDirect(10); in testChannelWrite_exceptionWhenAlreadyClosed() 334 ByteBuffer buffer2 = ByteBuffer.allocateDirect(10); in testChannelWrite_exceptionWhenAlreadyClosed() 362 ByteBuffer buffer = ByteBuffer.allocateDirect(10); in testChannelWrite_exceptionWhenAlreadyInterrupted() 367 ByteBuffer buffer2 = ByteBuffer.allocateDirect(10); in testChannelWrite_exceptionWhenAlreadyInterrupted() 551 ByteBuffer buffer = ByteBuffer.allocateDirect(10); in run() 557 ByteBuffer buffer2 = ByteBuffer.allocateDirect(10); in run() [all …]
|
D | OldSocketChannelTest.java | 112 buf[0] = java.nio.ByteBuffer.allocateDirect(CAPACITY_NORMAL); in testOpen() 321 buf = ByteBuffer.allocateDirect(data.length); in test_socketChannel_read_DirectByteBuffer()
|
D | FileChannelTest.java | 95 … ByteBuffer[] buffers = new ByteBuffer[] { ByteBuffer.allocateDirect(4), ByteBuffer.allocate(4) }; in test_readv() 112 … ByteBuffer[] buffers = new ByteBuffer[] { ByteBuffer.allocateDirect(4), ByteBuffer.allocate(4) }; in test_writev()
|
/libcore/luni/src/test/java/libcore/java/nio/ |
D | BufferTest.java | 63 testByteSwappedBulkGet(ByteBuffer.allocateDirect(10)); in testByteSwappedBulkGetDirect() 156 testByteSwappedBulkPut(ByteBuffer.allocateDirect(10)); in testByteSwappedBulkPutDirect() 209 testByteBufferByteOrder(ByteBuffer.allocateDirect(10), false); in testByteBufferByteOrderDirectRW() 221 testByteBufferByteOrder(ByteBuffer.allocateDirect(10), true); in testByteBufferByteOrderDirectRO() 465 testRelativePositions(ByteBuffer.allocateDirect(10)); in testRelativePositionsDirect() 553 ByteBuffer b = ByteBuffer.allocateDirect(10); in testDirectByteBufferHasArray() 573 ByteBuffer b = ByteBuffer.allocateDirect(10); in testDirectByteBufferAlignment() 593 ByteBuffer original = ByteBuffer.allocateDirect(contents.length); in testDirectByteBufferJniGetDirectBufferAddressAndCapacity() 636 ByteBuffer directBuffer = ByteBuffer.allocateDirect(10); in testSliceOffset() 676 assertPutByteBuffer(ByteBuffer.allocate(10), ByteBuffer.allocateDirect(8), false); in testPutByteBuffer() [all …]
|
D | NoArrayTest.java | 28 assertNoArray(ByteBuffer.allocateDirect(32).asReadOnlyBuffer()); in testReadOnly()
|
D | OldDirectIntBufferTest.java | 29 ByteBuffer byteBuffer = ByteBuffer.allocateDirect(40); in testPutWhenOffsetIsNonZero()
|
D | OldDirectShortBufferTest.java | 29 ByteBuffer byteBuffer = ByteBuffer.allocateDirect(40); in testPutWhenOffsetIsNonZero()
|
/libcore/benchmarks/src/benchmarks/regression/ |
D | MessageDigestBenchmark.java | 42 private static final ByteBuffer SMALL_DIRECT_BUFFER = ByteBuffer.allocateDirect(DATA_SIZE); 50 ByteBuffer.allocateDirect(LARGE_DATA_SIZE);
|
D | ByteBufferScalarVersusVectorBenchmark.java | 49 ByteBuffer src = ByteBuffer.allocateDirect(aligned ? 8192 : 8192 + 1); in timeDirectByteBufferBulkGet()
|
D | ByteBufferBulkBenchmark.java | 50 result = ByteBuffer.allocateDirect(size); in newBuffer()
|
/libcore/ojluni/src/main/java/sun/nio/ch/ |
D | Util.java | 221 return ByteBuffer.allocateDirect(size); in getTemporaryDirectBuffer() 236 return ByteBuffer.allocateDirect(size); in getTemporaryDirectBuffer()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/ |
D | Adler32Test.java | 182 byteBuffer = ByteBuffer.allocateDirect(4).put(byteBuffer); in test_update$ByteBuffer()
|
D | CRC32Test.java | 199 byteBuffer = ByteBuffer.allocateDirect(4).put(byteBuffer); in test_update$ByteBuffer()
|
/libcore/luni/src/test/java/libcore/java/nio/charset/ |
D | OldCharsetEncoderDecoderBufferTest.java | 108 out = ByteBuffer.allocateDirect(10); in testEncoderOutputBuffer()
|
/libcore/ojluni/annotations/mmodule/java/nio/ |
D | ByteBuffer.annotated.java | 38 public static java.nio.ByteBuffer allocateDirect(int capacity) { throw new RuntimeException("Stub!"… in allocateDirect() method in ByteBuffer
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/charset/ |
D | CharsetDecoder2Test.java | 270 ByteBuffer bb = ByteBuffer.allocateDirect(8); in testInvalidDecoding()
|