Home
last modified time | relevance | path

Searched refs:asShortBuffer (Results 1 – 16 of 16) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/
DDirectShortBufferTest.java26 buf = ByteBuffer.allocateDirect(BUFFER_LENGTH*Short.BYTES).asShortBuffer(); in setUp()
61 ShortBuffer shortBuffer = directByteBuffer.asShortBuffer(); in testJNIAccessByAddress()
DDirectByteBufferTest.java76 ShortBuffer shortBuf = buf.asShortBuffer(); in testUnalignedReadsAndWrites()
DByteBufferTest.java1148 shortBuffer = buf.asShortBuffer(); in testAsShortBuffer()
1159 shortBuffer = buf.asShortBuffer(); in testAsShortBuffer()
1171 shortBuffer = buf.asShortBuffer(); in testAsShortBuffer()
1183 shortBuffer = buf.asShortBuffer(); in testAsShortBuffer()
/libcore/luni/src/test/java/libcore/java/nio/
DBufferTest.java131 b.order(ByteOrder.BIG_ENDIAN).asShortBuffer().get(shorts, 1, 4); in testByteSwappedBulkGet()
138 b.order(ByteOrder.LITTLE_ENDIAN).asShortBuffer().get(shorts, 1, 4); in testByteSwappedBulkGet()
202 b.order(ByteOrder.BIG_ENDIAN).asShortBuffer().put(shorts, 1, 4); in testByteSwappedBulkPut()
204 b.order(ByteOrder.LITTLE_ENDIAN).asShortBuffer().put(shorts, 1, 4); in testByteSwappedBulkPut()
261 assertEquals(ByteOrder.BIG_ENDIAN, b.asShortBuffer().order()); in testByteBufferByteOrder()
269 assertEquals(ByteOrder.LITTLE_ENDIAN, b.asShortBuffer().order()); in testByteBufferByteOrder()
445 return ByteBuffer.allocate(10*8).order(order).asShortBuffer(); in allocateShortBuffer()
824 b.asShortBuffer().get(); in testBug6085292()
829 b.asShortBuffer().get(0); in testBug6085292()
956 b.asShortBuffer().get(0); in testAccess()
[all …]
DOldDirectShortBufferTest.java31 ShortBuffer shortBuffer = byteBuffer.asShortBuffer(); in testPutWhenOffsetIsNonZero()
DOldAndroidNIOTest.java349 ShortBuffer sb = bb.asShortBuffer(); in byteBufferTest()
357 sb = bb.asShortBuffer(); in byteBufferTest()
/libcore/ojluni/annotations/mmodule/java/nio/
DDirectByteBuffer.annotated.java89 public final java.nio.ShortBuffer asShortBuffer() { throw new RuntimeException("Stub!"); } in asShortBuffer() method in DirectByteBuffer
DByteBuffer.annotated.java110 public abstract java.nio.ShortBuffer asShortBuffer(); in asShortBuffer() method in ByteBuffer
/libcore/benchmarks/src/benchmarks/regression/
DByteBufferBenchmark.java241 … 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/annotations/hiddenapi/java/nio/
DByteBuffer.java183 public abstract java.nio.ShortBuffer asShortBuffer(); in asShortBuffer() method in ByteBuffer
DDirectByteBuffer.java243 public final java.nio.ShortBuffer asShortBuffer() { in asShortBuffer() method in DirectByteBuffer
/libcore/ojluni/annotations/sdk/nullability/java/nio/
DByteBuffer.annotated.java121 @libcore.util.NonNull public abstract java.nio.ShortBuffer asShortBuffer(); in asShortBuffer() method in ByteBuffer
/libcore/ojluni/src/main/java/java/nio/
DByteBuffer.java1293 public abstract ShortBuffer asShortBuffer(); in asShortBuffer() method in ByteBuffer
DHeapByteBuffer.java305 public ShortBuffer asShortBuffer() { in asShortBuffer() method in HeapByteBuffer
DDirectByteBuffer.java535 public final ShortBuffer asShortBuffer() { in asShortBuffer() method in DirectByteBuffer
/libcore/luni/src/test/java/libcore/libcore/util/
DZoneInfoTest.java813 short value = buffer.asShortBuffer().get(); in readShort()