/libcore/luni/src/test/java/libcore/java/nio/ |
D | BufferTest.java | 250 assertEquals(ByteOrder.BIG_ENDIAN, b.slice().order()); in testByteBufferByteOrder() 252 assertEquals(ByteOrder.BIG_ENDIAN, b.slice().order()); in testByteBufferByteOrder() 282 assertEquals(bo, b.slice().order()); in testCharBufferByteOrder() 286 assertEquals(bo, b.slice().order()); in testCharBufferByteOrder() 313 assertEquals(bo, b.slice().order()); in testDoubleBufferByteOrder() 317 assertEquals(bo, b.slice().order()); in testDoubleBufferByteOrder() 344 assertEquals(bo, b.slice().order()); in testFloatBufferByteOrder() 348 assertEquals(bo, b.slice().order()); in testFloatBufferByteOrder() 375 assertEquals(bo, b.slice().order()); in testIntBufferByteOrder() 379 assertEquals(bo, b.slice().order()); in testIntBufferByteOrder() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/ |
D | SliceSliceDirectByteBufferTest.java | 25 buf = buf.slice(); in setUp() 27 buf = buf.slice(); in setUp()
|
D | LongBufferTest.java | 578 LongBuffer slice = buf.slice(); in testSlice() local 579 assertEquals(buf.isReadOnly(), slice.isReadOnly()); in testSlice() 580 assertEquals(buf.isDirect(), slice.isDirect()); in testSlice() 581 assertEquals(buf.order(), slice.order()); in testSlice() 582 assertEquals(slice.position(), 0); in testSlice() 583 assertEquals(slice.limit(), buf.remaining()); in testSlice() 584 assertEquals(slice.capacity(), buf.remaining()); in testSlice() 586 slice.reset(); in testSlice() 593 if (!slice.isReadOnly()) { in testSlice() 594 loadTestData1(slice); in testSlice() [all …]
|
D | DoubleBufferTest.java | 595 DoubleBuffer slice = buf.slice(); 596 assertEquals(buf.isReadOnly(), slice.isReadOnly()); 597 assertEquals(buf.isDirect(), slice.isDirect()); 598 assertEquals(buf.order(), slice.order()); 599 assertEquals(slice.position(), 0); 600 assertEquals(slice.limit(), buf.remaining()); 601 assertEquals(slice.capacity(), buf.remaining()); 603 slice.reset(); 611 if (!slice.isReadOnly()) { 612 loadTestData1(slice); [all …]
|
D | FloatBufferTest.java | 595 FloatBuffer slice = buf.slice(); in testSlice() local 596 assertEquals(buf.isReadOnly(), slice.isReadOnly()); in testSlice() 597 assertEquals(buf.isDirect(), slice.isDirect()); in testSlice() 598 assertEquals(buf.order(), slice.order()); in testSlice() 599 assertEquals(slice.position(), 0); in testSlice() 600 assertEquals(slice.limit(), buf.remaining()); in testSlice() 601 assertEquals(slice.capacity(), buf.remaining()); in testSlice() 603 slice.reset(); in testSlice() 610 if (!slice.isReadOnly()) { in testSlice() 611 loadTestData1(slice); in testSlice() [all …]
|
D | IntBufferTest.java | 571 IntBuffer slice = buf.slice(); in testSlice() local 572 assertEquals(buf.isReadOnly(), slice.isReadOnly()); in testSlice() 573 assertEquals(buf.isDirect(), slice.isDirect()); in testSlice() 574 assertEquals(buf.order(), slice.order()); in testSlice() 575 assertEquals(slice.position(), 0); in testSlice() 576 assertEquals(slice.limit(), buf.remaining()); in testSlice() 577 assertEquals(slice.capacity(), buf.remaining()); in testSlice() 579 slice.reset(); in testSlice() 586 if (!slice.isReadOnly()) { in testSlice() 587 loadTestData1(slice); in testSlice() [all …]
|
D | ShortBufferTest.java | 558 ShortBuffer slice = buf.slice(); in testSlice() local 559 assertEquals(buf.isReadOnly(), slice.isReadOnly()); in testSlice() 560 assertEquals(buf.isDirect(), slice.isDirect()); in testSlice() 561 assertEquals(buf.order(), slice.order()); in testSlice() 562 assertEquals(slice.position(), 0); in testSlice() 563 assertEquals(slice.limit(), buf.remaining()); in testSlice() 564 assertEquals(slice.capacity(), buf.remaining()); in testSlice() 566 slice.reset(); in testSlice() 573 if (!slice.isReadOnly()) { in testSlice() 574 loadTestData1(slice); in testSlice() [all …]
|
D | CharBufferTest.java | 627 CharBuffer slice = buf.slice(); in testSlice() local 628 assertEquals(buf.isReadOnly(), slice.isReadOnly()); in testSlice() 629 assertEquals(buf.isDirect(), slice.isDirect()); in testSlice() 630 assertEquals(buf.order(), slice.order()); in testSlice() 631 assertEquals(slice.position(), 0); in testSlice() 632 assertEquals(slice.limit(), buf.remaining()); in testSlice() 633 assertEquals(slice.capacity(), buf.remaining()); in testSlice() 635 slice.reset(); in testSlice() 642 if (!slice.isReadOnly()) { in testSlice() 643 loadTestData1(slice); in testSlice() [all …]
|
D | SliceDirectByteBufferTest.java | 25 buf = buf.slice(); in setUp()
|
D | SliceWrappedByteBufferTest.java | 25 buf = buf.slice(); in setUp()
|
D | SliceHeapByteBufferTest.java | 25 buf = buf.slice(); in setUp()
|
D | ByteBufferTest.java | 813 ByteBuffer slice = buf.slice(); in testSlice() local 814 assertEquals(buf.isReadOnly(), slice.isReadOnly()); in testSlice() 815 assertEquals(buf.isDirect(), slice.isDirect()); in testSlice() 816 assertEquals(buf.order(), slice.order()); in testSlice() 817 assertEquals(slice.position(), 0); in testSlice() 818 assertEquals(slice.limit(), buf.remaining()); in testSlice() 819 assertEquals(slice.capacity(), buf.remaining()); in testSlice() 821 slice.reset(); in testSlice() 828 if (!slice.isReadOnly()) { in testSlice() 829 loadTestData1(slice); in testSlice() [all …]
|
/libcore/luni/src/test/java/libcore/java/nio/charset/ |
D | CharsetDecoderTest.java | 43 ByteBuffer inBuffer = ByteBuffer.wrap(arr, 0, arr.length).slice(); in test_ByteArray_decode_no_offset() 59 ByteBuffer inBuffer = ByteBuffer.wrap(arr, offset, arr.length - offset).slice(); in test_ByteArray_decode_with_offset() 117 CharBuffer out = cb.slice(); in testBufferWithNonZeroOffset()
|
/libcore/ojluni/src/test/java/util/stream/boottest/java/util/stream/ |
D | NodeTest.java | 148 Node<Integer> slice = n.truncate(start, end, Integer[]::new); in testTruncate() local 149 Integer[] asArray = slice.asArray(Integer[]::new); in testTruncate()
|
D | DoubleNodeTest.java | 173 Node.OfDouble slice = n.truncate(start, end, Double[]::new); in testTruncate() local 174 double[] asArray = slice.asPrimitiveArray(); in testTruncate()
|
D | IntNodeTest.java | 171 Node.OfInt slice = n.truncate(start, end, Integer[]::new); in testTruncate() local 172 int[] asArray = slice.asPrimitiveArray(); in testTruncate()
|
D | LongNodeTest.java | 172 Node.OfLong slice = n.truncate(start, end, Long[]::new); in testTruncate() local 173 long[] asArray = slice.asPrimitiveArray(); in testTruncate()
|
/libcore/ojluni/src/main/java/java/nio/ |
D | StringCharBuffer.java | 44 public CharBuffer slice() { in slice() method in StringCharBuffer
|
D | ByteBufferAsFloatBuffer.java | 57 public FloatBuffer slice() { in slice() method in ByteBufferAsFloatBuffer
|
D | ByteBufferAsLongBuffer.java | 57 public LongBuffer slice() { in slice() method in ByteBufferAsLongBuffer
|
D | ByteBufferAsIntBuffer.java | 57 public IntBuffer slice() { in slice() method in ByteBufferAsIntBuffer
|
D | ByteBufferAsShortBuffer.java | 57 public ShortBuffer slice() { in slice() method in ByteBufferAsShortBuffer
|
D | ByteBufferAsDoubleBuffer.java | 58 public DoubleBuffer slice() { in slice() method in ByteBufferAsDoubleBuffer
|
D | HeapShortBuffer.java | 75 public ShortBuffer slice() { in slice() method in HeapShortBuffer
|
D | HeapDoubleBuffer.java | 76 public DoubleBuffer slice() { in slice() method in HeapDoubleBuffer
|