Home
last modified time | relevance | path

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

12

/libcore/ojluni/src/test/java/nio/Buffer/
DBasicShort.java196 ShortBuffer direct1 = ByteBuffer.allocateDirect(cap).asShortBuffer(); in putBuffer()
197 ShortBuffer nondirect1 = ByteBuffer.allocate(cap).asShortBuffer(); in putBuffer()
200 ShortBuffer direct2 = ByteBuffer.allocateDirect(cap).asShortBuffer(); in putBuffer()
201 ShortBuffer nondirect2 = ByteBuffer.allocate(cap).asShortBuffer(); in putBuffer()
204 ShortBuffer direct3 = ByteBuffer.allocateDirect(cap).asShortBuffer(); in putBuffer()
205 ShortBuffer direct4 = ByteBuffer.allocateDirect(cap).asShortBuffer(); in putBuffer()
208 ShortBuffer nondirect3 = ByteBuffer.allocate(cap).asShortBuffer(); in putBuffer()
209 ShortBuffer nondirect4 = ByteBuffer.allocate(cap).asShortBuffer(); in putBuffer()
1235 … () -> ByteBuffer.allocate(512 * Short.BYTES).order(ByteOrder.LITTLE_ENDIAN).asShortBuffer(), in testPutBuffer()
1236 … () -> ByteBuffer.allocate(512 * Short.BYTES).order(ByteOrder.BIG_ENDIAN).asShortBuffer(), in testPutBuffer()
[all …]
DCopyDirectShortMemory.java51 ShortBuffer b = bb.asShortBuffer(); in test()
DOrder.java49 ck(bb.asShortBuffer().order(), bb.order()); in ckViews()
DByteBufferViews.java178 bb -> bb.asShortBuffer()), in shortViewProvider()
180 bb -> bb.asShortBuffer().slice()), in shortViewProvider()
182 bb -> { var sb = bb.asShortBuffer(); in shortViewProvider()
187 bb -> bb.asShortBuffer().slice().duplicate()) in shortViewProvider()
DEqualsCompareTest.java278 asShortBuffer(); in construct()
282 asShortBuffer(); in construct()
DBasicByte.java277 ShortBuffer sb = b.asShortBuffer(); in testViews()
DBasic-X.java.template277 ShortBuffer sb = b.asShortBuffer();
/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()
269 assertEquals(ByteOrder.BIG_ENDIAN, b.asShortBuffer().order()); in testByteBufferByteOrder()
277 assertEquals(ByteOrder.LITTLE_ENDIAN, b.asShortBuffer().order()); in testByteBufferByteOrder()
453 return ByteBuffer.allocate(10*8).order(order).asShortBuffer(); in allocateShortBuffer()
853 b.asShortBuffer().get(); in testBug6085292()
858 b.asShortBuffer().get(0); in testBug6085292()
985 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/
DByteBuffer.annotated.java110 public abstract java.nio.ShortBuffer asShortBuffer(); in asShortBuffer() method in ByteBuffer
DDirectByteBuffer.annotated.java120 public final java.nio.ShortBuffer asShortBuffer() { throw new RuntimeException("Stub!"); } in asShortBuffer() method in DirectByteBuffer
/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/flagged_api/java/nio/
DByteBuffer.annotated.java147 public abstract java.nio.ShortBuffer asShortBuffer(); in asShortBuffer() method in ByteBuffer
/libcore/ojluni/annotations/hiddenapi/java/nio/
DByteBuffer.java183 public abstract java.nio.ShortBuffer asShortBuffer(); in asShortBuffer() method in ByteBuffer
DDirectByteBuffer.java250 public final java.nio.ShortBuffer asShortBuffer() { in asShortBuffer() method in DirectByteBuffer
/libcore/ojluni/annotations/sdk/nullability/java/nio/
DByteBuffer.annotated.java137 @libcore.util.NonNull public abstract java.nio.ShortBuffer asShortBuffer(); in asShortBuffer() method in ByteBuffer
/libcore/ojluni/src/main/java/java/nio/
DByteBuffer.java2639 public abstract ShortBuffer asShortBuffer(); in asShortBuffer() method in ByteBuffer
DHeapByteBuffer.java615 public ShortBuffer asShortBuffer() { in asShortBuffer() method in HeapByteBuffer
DDirectByteBuffer.java566 public final ShortBuffer asShortBuffer() { in asShortBuffer() method in DirectByteBuffer
DHeap-X-Buffer.java.template615 public ShortBuffer asShortBuffer() {
/libcore/api/
Dmodule-lib-current.txt465 method public final java.nio.ShortBuffer asShortBuffer();

12