Home
last modified time | relevance | path

Searched refs:allocateDirect (Results 1 – 25 of 38) sorted by relevance

12

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
DDatagramChannelTest.java685 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 …]
DChannelsTest.java227 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/
DFileIOInterruptTest.java197 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 …]
DFileChannelTest.java95 … 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()
DOldSocketChannelTest.java112 buf[0] = java.nio.ByteBuffer.allocateDirect(CAPACITY_NORMAL); in testOpen()
321 buf = ByteBuffer.allocateDirect(data.length); in test_socketChannel_read_DirectByteBuffer()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/
DDirectByteBufferTest.java28 buf = ByteBuffer.allocateDirect(BUFFER_LENGTH*Byte.BYTES); in setUp()
43 ByteBuffer.allocateDirect(-1); in testAllocatedByteBuffer_IllegalArg()
68 ByteBuffer buf = ByteBuffer.allocateDirect(23); in testUnalignedReadsAndWrites()
DDirectCharBufferTest.java27 buf = ByteBuffer.allocateDirect(BUFFER_LENGTH*Character.BYTES).asCharBuffer(); in setUp()
59 DirectByteBuffer directByteBuffer = (DirectByteBuffer) ByteBuffer.allocateDirect(10); in testJNIAccessByAddress()
DDirectShortBufferTest.java26 buf = ByteBuffer.allocateDirect(BUFFER_LENGTH*Short.BYTES).asShortBuffer(); in setUp()
59 DirectByteBuffer directByteBuffer = (DirectByteBuffer) ByteBuffer.allocateDirect(10); in testJNIAccessByAddress()
DDirectLongBufferTest.java26 buf = ByteBuffer.allocateDirect(BUFFER_LENGTH*Long.BYTES).asLongBuffer(); in setUp()
59 DirectByteBuffer directByteBuffer = (DirectByteBuffer) ByteBuffer.allocateDirect(10); in testJNIAccessByAddress()
DDirectFloatBufferTest.java26 buf = ByteBuffer.allocateDirect(BUFFER_LENGTH*Float.BYTES).asFloatBuffer(); in setUp()
59 DirectByteBuffer directByteBuffer = (DirectByteBuffer) ByteBuffer.allocateDirect(10); in testJNIAccessByAddress()
DDirectIntBufferTest.java26 buf = ByteBuffer.allocateDirect(BUFFER_LENGTH*Integer.BYTES).asIntBuffer(); in setUp()
59 DirectByteBuffer directByteBuffer = (DirectByteBuffer) ByteBuffer.allocateDirect(10); in testJNIAccessByAddress()
DDirectDoubleBufferTest.java26 buf = ByteBuffer.allocateDirect(BUFFER_LENGTH*Double.BYTES).asDoubleBuffer(); in setUp()
58 DirectByteBuffer directByteBuffer = (DirectByteBuffer) ByteBuffer.allocateDirect(10); in testJNIAccessByAddress()
/libcore/luni/src/test/java/libcore/java/nio/
DBufferTest.java63 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 …]
DNoArrayTest.java28 assertNoArray(ByteBuffer.allocateDirect(32).asReadOnlyBuffer()); in testReadOnly()
DOldDirectShortBufferTest.java29 ByteBuffer byteBuffer = ByteBuffer.allocateDirect(40); in testPutWhenOffsetIsNonZero()
DOldDirectIntBufferTest.java29 ByteBuffer byteBuffer = ByteBuffer.allocateDirect(40); in testPutWhenOffsetIsNonZero()
/libcore/benchmarks/src/benchmarks/regression/
DMessageDigestBenchmark.java42 private static final ByteBuffer SMALL_DIRECT_BUFFER = ByteBuffer.allocateDirect(DATA_SIZE);
50 ByteBuffer.allocateDirect(LARGE_DATA_SIZE);
DByteBufferScalarVersusVectorBenchmark.java49 ByteBuffer src = ByteBuffer.allocateDirect(aligned ? 8192 : 8192 + 1); in timeDirectByteBufferBulkGet()
DByteBufferBulkBenchmark.java50 result = ByteBuffer.allocateDirect(size); in newBuffer()
/libcore/ojluni/src/main/java/sun/nio/ch/
DUtil.java221 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/
DAdler32Test.java182 byteBuffer = ByteBuffer.allocateDirect(4).put(byteBuffer); in test_update$ByteBuffer()
DCRC32Test.java199 byteBuffer = ByteBuffer.allocateDirect(4).put(byteBuffer); in test_update$ByteBuffer()
/libcore/luni/src/test/java/libcore/java/nio/charset/
DOldCharsetEncoderDecoderBufferTest.java108 out = ByteBuffer.allocateDirect(10); in testEncoderOutputBuffer()
/libcore/ojluni/annotations/mmodule/java/nio/
DByteBuffer.annotated.java38 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/
DCharsetDecoder2Test.java270 ByteBuffer bb = ByteBuffer.allocateDirect(8); in testInvalidDecoding()

12