/libcore/ojluni/src/test/java/lang/CharSequence/ |
D | Emptiness.java | 63 checkEmpty(ByteBuffer.allocateDirect(0).asCharBuffer()); in isEmpty() 64 checkEmpty(ByteBuffer.allocateDirect(2).asCharBuffer().append('f')); in isEmpty() 66 checkEmpty((CharBuffer) ByteBuffer.allocateDirect(2).asCharBuffer().flip()); in isEmpty() 91 checkNotEmpty(ByteBuffer.allocateDirect(2).asCharBuffer()); in isNotEmpty() 92 checkNotEmpty(ByteBuffer.allocateDirect(4).asCharBuffer().append('f')); in isNotEmpty() 94 checkNotEmpty((CharBuffer) ByteBuffer.allocateDirect(2).asCharBuffer().append('f').flip()); in isNotEmpty()
|
/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 …]
|
/libcore/ojluni/src/test/java/nio/Buffer/ |
D | Order.java | 85 ck(ByteBuffer.allocateDirect(LENGTH).order(), be); in testOrder() 88 ck(ByteBuffer.allocateDirect(LENGTH).order(be).order(), be); in testOrder() 89 ck(ByteBuffer.allocateDirect(LENGTH).order(le).order(), le); in testOrder() 92 ckByteBuffer(ByteBuffer.allocateDirect(LENGTH)); in testOrder()
|
D | BasicShort.java | 196 ShortBuffer direct1 = ByteBuffer.allocateDirect(cap).asShortBuffer(); in putBuffer() 200 ShortBuffer direct2 = ByteBuffer.allocateDirect(cap).asShortBuffer(); in putBuffer() 204 ShortBuffer direct3 = ByteBuffer.allocateDirect(cap).asShortBuffer(); in putBuffer() 205 ShortBuffer direct4 = ByteBuffer.allocateDirect(cap).asShortBuffer(); in putBuffer() 1237 … () -> ByteBuffer.allocateDirect(512 * Short.BYTES).order(ByteOrder.LITTLE_ENDIAN).asShortBuffer(), in testPutBuffer() 1238 … () -> ByteBuffer.allocateDirect(512 * Short.BYTES).order(ByteOrder.BIG_ENDIAN).asShortBuffer(), in testPutBuffer() 1239 () -> ByteBuffer.allocateDirect(512 * Short.BYTES).asShortBuffer().slice(100, 412), in testPutBuffer() 1240 () -> ((ByteBuffer) ByteBuffer.allocateDirect(512 * Short.BYTES) in testPutBuffer() 1242 () -> ((ByteBuffer) ByteBuffer.allocateDirect(512 * Short.BYTES) in testPutBuffer()
|
D | BasicInt.java | 196 IntBuffer direct1 = ByteBuffer.allocateDirect(cap).asIntBuffer(); in putBuffer() 200 IntBuffer direct2 = ByteBuffer.allocateDirect(cap).asIntBuffer(); in putBuffer() 204 IntBuffer direct3 = ByteBuffer.allocateDirect(cap).asIntBuffer(); in putBuffer() 205 IntBuffer direct4 = ByteBuffer.allocateDirect(cap).asIntBuffer(); in putBuffer() 1237 … () -> ByteBuffer.allocateDirect(512 * Integer.BYTES).order(ByteOrder.LITTLE_ENDIAN).asIntBuffer(), in testPutBuffer() 1238 … () -> ByteBuffer.allocateDirect(512 * Integer.BYTES).order(ByteOrder.BIG_ENDIAN).asIntBuffer(), in testPutBuffer() 1239 () -> ByteBuffer.allocateDirect(512 * Integer.BYTES).asIntBuffer().slice(100, 412), in testPutBuffer() 1240 () -> ((ByteBuffer) ByteBuffer.allocateDirect(512 * Integer.BYTES) in testPutBuffer() 1242 () -> ((ByteBuffer) ByteBuffer.allocateDirect(512 * Integer.BYTES) in testPutBuffer()
|
D | BasicLong.java | 196 LongBuffer direct1 = ByteBuffer.allocateDirect(cap).asLongBuffer(); in putBuffer() 200 LongBuffer direct2 = ByteBuffer.allocateDirect(cap).asLongBuffer(); in putBuffer() 204 LongBuffer direct3 = ByteBuffer.allocateDirect(cap).asLongBuffer(); in putBuffer() 205 LongBuffer direct4 = ByteBuffer.allocateDirect(cap).asLongBuffer(); in putBuffer() 1237 … () -> ByteBuffer.allocateDirect(512 * Long.BYTES).order(ByteOrder.LITTLE_ENDIAN).asLongBuffer(), in testPutBuffer() 1238 … () -> ByteBuffer.allocateDirect(512 * Long.BYTES).order(ByteOrder.BIG_ENDIAN).asLongBuffer(), in testPutBuffer() 1239 () -> ByteBuffer.allocateDirect(512 * Long.BYTES).asLongBuffer().slice(100, 412), in testPutBuffer() 1240 () -> ((ByteBuffer) ByteBuffer.allocateDirect(512 * Long.BYTES) in testPutBuffer() 1242 () -> ((ByteBuffer) ByteBuffer.allocateDirect(512 * Long.BYTES) in testPutBuffer()
|
D | Chew.java | 40 ByteBuffer.allocateDirect(1 << 20); in main()
|
D | BasicDouble.java | 196 DoubleBuffer direct1 = ByteBuffer.allocateDirect(cap).asDoubleBuffer(); in putBuffer() 200 DoubleBuffer direct2 = ByteBuffer.allocateDirect(cap).asDoubleBuffer(); in putBuffer() 204 DoubleBuffer direct3 = ByteBuffer.allocateDirect(cap).asDoubleBuffer(); in putBuffer() 205 DoubleBuffer direct4 = ByteBuffer.allocateDirect(cap).asDoubleBuffer(); in putBuffer() 1237 …() -> ByteBuffer.allocateDirect(512 * Double.BYTES).order(ByteOrder.LITTLE_ENDIAN).asDoubleBuffer(… in testPutBuffer() 1238 … () -> ByteBuffer.allocateDirect(512 * Double.BYTES).order(ByteOrder.BIG_ENDIAN).asDoubleBuffer(), in testPutBuffer() 1239 … () -> ByteBuffer.allocateDirect(512 * Double.BYTES).asDoubleBuffer().slice(100, 412), in testPutBuffer() 1240 () -> ((ByteBuffer) ByteBuffer.allocateDirect(512 * Double.BYTES) in testPutBuffer() 1242 () -> ((ByteBuffer) ByteBuffer.allocateDirect(512 * Double.BYTES) in testPutBuffer()
|
D | BasicFloat.java | 196 FloatBuffer direct1 = ByteBuffer.allocateDirect(cap).asFloatBuffer(); in putBuffer() 200 FloatBuffer direct2 = ByteBuffer.allocateDirect(cap).asFloatBuffer(); in putBuffer() 204 FloatBuffer direct3 = ByteBuffer.allocateDirect(cap).asFloatBuffer(); in putBuffer() 205 FloatBuffer direct4 = ByteBuffer.allocateDirect(cap).asFloatBuffer(); in putBuffer() 1237 … () -> ByteBuffer.allocateDirect(512 * Float.BYTES).order(ByteOrder.LITTLE_ENDIAN).asFloatBuffer(), in testPutBuffer() 1238 … () -> ByteBuffer.allocateDirect(512 * Float.BYTES).order(ByteOrder.BIG_ENDIAN).asFloatBuffer(), in testPutBuffer() 1239 () -> ByteBuffer.allocateDirect(512 * Float.BYTES).asFloatBuffer().slice(100, 412), in testPutBuffer() 1240 () -> ((ByteBuffer) ByteBuffer.allocateDirect(512 * Float.BYTES) in testPutBuffer() 1242 () -> ((ByteBuffer) ByteBuffer.allocateDirect(512 * Float.BYTES) in testPutBuffer()
|
D | BasicChar.java | 196 CharBuffer direct1 = ByteBuffer.allocateDirect(cap).asCharBuffer(); in putBuffer() 200 CharBuffer direct2 = ByteBuffer.allocateDirect(cap).asCharBuffer(); in putBuffer() 204 CharBuffer direct3 = ByteBuffer.allocateDirect(cap).asCharBuffer(); in putBuffer() 205 CharBuffer direct4 = ByteBuffer.allocateDirect(cap).asCharBuffer(); in putBuffer() 1237 …() -> ByteBuffer.allocateDirect(512 * Character.BYTES).order(ByteOrder.LITTLE_ENDIAN).asCharBuffer… in testPutBuffer() 1238 … () -> ByteBuffer.allocateDirect(512 * Character.BYTES).order(ByteOrder.BIG_ENDIAN).asCharBuffer(), in testPutBuffer() 1239 … () -> ByteBuffer.allocateDirect(512 * Character.BYTES).asCharBuffer().slice(100, 412), in testPutBuffer() 1240 () -> ((ByteBuffer) ByteBuffer.allocateDirect(512 * Character.BYTES) in testPutBuffer() 1242 () -> ((ByteBuffer) ByteBuffer.allocateDirect(512 * Character.BYTES) in testPutBuffer()
|
D | Chars.java | 115 addCases(ByteBuffer.allocateDirect(SIZE*2).order(ByteOrder.BIG_ENDIAN).asCharBuffer(), in createCharBuffers() 117 addCases(ByteBuffer.allocateDirect(SIZE*2).order(ByteOrder.LITTLE_ENDIAN).asCharBuffer(), in createCharBuffers()
|
D | AllocateDirectInit.java | 40 ByteBuffer bb = ByteBuffer.allocateDirect(1024); in testAllocate()
|
/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 …]
|
/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 | DirectDoubleBufferTest.java | 26 buf = ByteBuffer.allocateDirect(BUFFER_LENGTH*Double.BYTES).asDoubleBuffer(); in setUp() 58 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 | DirectIntBufferTest.java | 26 buf = ByteBuffer.allocateDirect(BUFFER_LENGTH*Integer.BYTES).asIntBuffer(); in setUp() 59 DirectByteBuffer directByteBuffer = (DirectByteBuffer) ByteBuffer.allocateDirect(10); in testJNIAccessByAddress()
|
D | DirectCharBufferTest.java | 27 buf = ByteBuffer.allocateDirect(BUFFER_LENGTH*Character.BYTES).asCharBuffer(); in setUp() 59 DirectByteBuffer directByteBuffer = (DirectByteBuffer) ByteBuffer.allocateDirect(10); in testJNIAccessByAddress()
|
D | DirectShortBufferTest.java | 26 buf = ByteBuffer.allocateDirect(BUFFER_LENGTH*Short.BYTES).asShortBuffer(); 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()
|
/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() 473 testRelativePositions(ByteBuffer.allocateDirect(10)); in testRelativePositionsDirect() 561 ByteBuffer b = ByteBuffer.allocateDirect(10); in testDirectByteBufferHasArray() 581 ByteBuffer b = ByteBuffer.allocateDirect(10); in testDirectByteBufferAlignment() 601 ByteBuffer original = ByteBuffer.allocateDirect(contents.length); in testDirectByteBufferJniGetDirectBufferAddressAndCapacity() 644 ByteBuffer directBuffer = ByteBuffer.allocateDirect(10); in testSliceOffset() 653 ByteBuffer.allocateDirect(10), in testAlignedSliceOffset() [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/ojluni/src/test/java/util/zip/ |
D | DeInflate.java | 202 bbIn = ByteBuffer.allocateDirect(in.length); in check() 204 bbOut1 = ByteBuffer.allocateDirect(out1.length); in check() 205 bbOut2 = ByteBuffer.allocateDirect(out2.length); in check() 266 dictDef = ByteBuffer.allocateDirect(dict.length); in checkDict() 267 dictInf = ByteBuffer.allocateDirect(dict.length); in checkDict()
|