Searched refs:asShortBuffer (Results 1 – 11 of 11) sorted by relevance
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/ |
D | DirectShortBufferTest.java | 27 buf = ByteBuffer.allocateDirect(BUFFER_LENGTH*2).asShortBuffer(); in setUp() 62 ShortBuffer shortBuffer = directByteBuffer.asShortBuffer(); in testJNIAccessByAddress()
|
D | DirectByteBufferTest.java | 76 ShortBuffer shortBuf = buf.asShortBuffer(); in testUnalignedReadsAndWrites()
|
D | ByteBufferTest.java | 1118 shortBuffer = buf.asShortBuffer(); in testAsShortBuffer() 1129 shortBuffer = buf.asShortBuffer(); in testAsShortBuffer() 1141 shortBuffer = buf.asShortBuffer(); in testAsShortBuffer() 1153 shortBuffer = buf.asShortBuffer(); in testAsShortBuffer()
|
/libcore/luni/src/test/java/libcore/java/nio/ |
D | OldDirectShortBufferTest.java | 31 ShortBuffer shortBuffer = byteBuffer.asShortBuffer(); in testPutWhenOffsetIsNonZero()
|
D | BufferTest.java | 185 b.order(ByteOrder.BIG_ENDIAN).asShortBuffer().get(shorts, 1, 4); in testByteSwappedBulkGet() 192 b.order(ByteOrder.LITTLE_ENDIAN).asShortBuffer().get(shorts, 1, 4); in testByteSwappedBulkGet() 256 b.order(ByteOrder.BIG_ENDIAN).asShortBuffer().put(shorts, 1, 4); in testByteSwappedBulkPut() 258 b.order(ByteOrder.LITTLE_ENDIAN).asShortBuffer().put(shorts, 1, 4); in testByteSwappedBulkPut() 315 assertEquals(ByteOrder.BIG_ENDIAN, b.asShortBuffer().order()); in testByteBufferByteOrder() 323 assertEquals(ByteOrder.LITTLE_ENDIAN, b.asShortBuffer().order()); in testByteBufferByteOrder() 499 return ByteBuffer.allocate(10*8).order(order).asShortBuffer(); in allocateShortBuffer() 878 b.asShortBuffer().get(); in testBug6085292() 883 b.asShortBuffer().get(0); in testBug6085292() 1289 b.asShortBuffer(); in testAsMethods() [all …]
|
D | OldAndroidNIOTest.java | 349 ShortBuffer sb = bb.asShortBuffer(); in byteBufferTest() 357 sb = bb.asShortBuffer(); in byteBufferTest()
|
/libcore/benchmarks/src/benchmarks/regression/ |
D | ByteBufferBenchmark.java | 241 … ShortBuffer src = ByteBufferBenchmark.newBuffer(byteOrder, aligned, bufferType).asShortBuffer(); in timeShortBuffer_getShortArray() 392 … ShortBuffer dst = ByteBufferBenchmark.newBuffer(byteOrder, aligned, bufferType).asShortBuffer(); in timeShortBuffer_putShortArray()
|
/libcore/ojluni/src/main/java/java/nio/ |
D | ByteBuffer.java | 1122 public abstract ShortBuffer asShortBuffer(); in asShortBuffer() method in ByteBuffer
|
D | HeapByteBuffer.java | 280 public ShortBuffer asShortBuffer() { in asShortBuffer() method in HeapByteBuffer
|
D | DirectByteBuffer.java | 462 public ShortBuffer asShortBuffer() { in asShortBuffer() method in DirectByteBuffer
|
/libcore/luni/src/test/java/libcore/util/ |
D | ZoneInfoTest.java | 526 short value = buffer.asShortBuffer().get(); in readShort()
|