/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/ |
D | CharBufferTest.java | 221 CharBuffer duplicate = buf.duplicate(); 222 assertNotSame(buf, duplicate); 223 assertEquals(buf.position(), duplicate.position()); 224 assertEquals(buf.limit(), duplicate.limit()); 225 assertEquals(buf.isReadOnly(), duplicate.isReadOnly()); 226 assertEquals(buf.isDirect(), duplicate.isDirect()); 227 assertEquals(buf.order(), duplicate.order()); 228 assertEquals(buf.capacity(), duplicate.capacity()); 229 assertContentEquals(buf, duplicate); 233 duplicate.reset(); [all …]
|
D | IntBufferTest.java | 188 IntBuffer duplicate = buf.duplicate(); 189 assertNotSame(buf, duplicate); 190 assertEquals(buf.position(), duplicate.position()); 191 assertEquals(buf.limit(), duplicate.limit()); 192 assertEquals(buf.isReadOnly(), duplicate.isReadOnly()); 193 assertEquals(buf.isDirect(), duplicate.isDirect()); 194 assertEquals(buf.order(), duplicate.order()); 195 assertContentEquals(buf, duplicate); 198 duplicate.reset(); 199 assertEquals(duplicate.position(), 0); [all …]
|
D | DoubleBufferTest.java | 217 DoubleBuffer duplicate = buf.duplicate(); 218 assertNotSame(buf, duplicate); 219 assertEquals(buf.position(), duplicate.position()); 220 assertEquals(buf.limit(), duplicate.limit()); 221 assertEquals(buf.isReadOnly(), duplicate.isReadOnly()); 222 assertEquals(buf.isDirect(), duplicate.isDirect()); 223 assertEquals(buf.order(), duplicate.order()); 224 assertContentEquals(buf, duplicate); 227 duplicate.reset(); 228 assertEquals(duplicate.position(), 0); [all …]
|
D | FloatBufferTest.java | 208 FloatBuffer duplicate = buf.duplicate(); 209 assertNotSame(buf, duplicate); 210 assertEquals(buf.position(), duplicate.position()); 211 assertEquals(buf.limit(), duplicate.limit()); 212 assertEquals(buf.isReadOnly(), duplicate.isReadOnly()); 213 assertEquals(buf.isDirect(), duplicate.isDirect()); 214 assertEquals(buf.order(), duplicate.order()); 215 assertContentEquals(buf, duplicate); 218 duplicate.reset(); 219 assertEquals(duplicate.position(), 0); [all …]
|
D | LongBufferTest.java | 188 LongBuffer duplicate = buf.duplicate(); 189 assertNotSame(buf, duplicate); 190 assertEquals(buf.position(), duplicate.position()); 191 assertEquals(buf.limit(), duplicate.limit()); 192 assertEquals(buf.isReadOnly(), duplicate.isReadOnly()); 193 assertEquals(buf.isDirect(), duplicate.isDirect()); 194 assertEquals(buf.order(), duplicate.order()); 195 assertContentEquals(buf, duplicate); 198 duplicate.reset(); 199 assertEquals(duplicate.position(), 0); [all …]
|
D | ShortBufferTest.java | 187 ShortBuffer duplicate = buf.duplicate(); 188 assertNotSame(buf, duplicate); 189 assertEquals(buf.position(), duplicate.position()); 190 assertEquals(buf.limit(), duplicate.limit()); 191 assertEquals(buf.isReadOnly(), duplicate.isReadOnly()); 192 assertEquals(buf.isDirect(), duplicate.isDirect()); 193 assertEquals(buf.order(), duplicate.order()); 194 assertContentEquals(buf, duplicate); 197 duplicate.reset(); 198 assertEquals(duplicate.position(), 0); [all …]
|
D | ReadOnlyFloatBufferTest.java | 50 FloatBuffer duplicate = buf.duplicate(); in testHashCode() local 51 assertEquals(buf.hashCode(), duplicate.hashCode()); in testHashCode()
|
D | ReadOnlyDoubleBufferTest.java | 50 DoubleBuffer duplicate = buf.duplicate(); in testHashCode() local 51 assertEquals(buf.hashCode(), duplicate.hashCode()); in testHashCode()
|
D | ReadOnlyShortBufferTest.java | 50 ShortBuffer duplicate = buf.duplicate(); in testHashCode() local 51 assertEquals(buf.hashCode(), duplicate.hashCode()); in testHashCode()
|
D | ReadOnlyLongBufferTest.java | 50 LongBuffer duplicate = buf.duplicate(); in testHashCode() local 51 assertEquals(buf.hashCode(), duplicate.hashCode()); in testHashCode()
|
D | ReadOnlyIntBufferTest.java | 50 IntBuffer duplicate = buf.duplicate(); in testHashCode() local 51 assertEquals(buf.hashCode(), duplicate.hashCode()); in testHashCode()
|
D | ReadOnlyCharBufferTest.java | 53 CharBuffer duplicate = buf.duplicate(); in testHashCode() local 54 assertEquals(buf.hashCode(), duplicate.hashCode()); in testHashCode()
|
D | DuplicateWrappedByteBufferTest.java | 24 buf = buf.duplicate(); in setUp()
|
D | DuplicateHeapByteBufferTest.java | 24 buf = buf.duplicate(); in setUp()
|
D | DuplicateDirectByteBufferTest.java | 24 buf = buf.duplicate(); in setUp()
|
D | ByteBufferTest.java | 249 ByteBuffer duplicate = buf.duplicate(); 250 assertNotSame(buf, duplicate); 251 assertEquals(buf.position(), duplicate.position()); 252 assertEquals(buf.limit(), duplicate.limit()); 253 assertEquals(buf.isReadOnly(), duplicate.isReadOnly()); 254 assertEquals(buf.isDirect(), duplicate.isDirect()); 255 assertEquals(buf.order(), duplicate.order()); 256 assertContentEquals(buf, duplicate); 259 duplicate.reset(); 260 assertEquals(duplicate.position(), 0); [all …]
|
/libcore/luni/src/main/java/java/nio/ |
D | CharSequenceAdapter.java | 51 return duplicate(); in asReadOnlyBuffer() 60 public CharBuffer duplicate() { in duplicate() method in CharSequenceAdapter
|
D | ByteBufferAsCharBuffer.java | 76 public CharBuffer duplicate() { in duplicate() method in ByteBufferAsCharBuffer 77 ByteBuffer bb = byteBuffer.duplicate().order(byteBuffer.order()); in duplicate() 180 CharBuffer result = duplicate(); in subSequence()
|
D | CharArrayBuffer.java | 65 @Override public CharBuffer duplicate() { in duplicate() method in CharArrayBuffer 129 CharBuffer result = duplicate(); in subSequence()
|
D | ByteBufferAsShortBuffer.java | 75 public ShortBuffer duplicate() { in duplicate() method in ByteBufferAsShortBuffer 76 ByteBuffer bb = byteBuffer.duplicate().order(byteBuffer.order()); in duplicate()
|
D | ByteBufferAsIntBuffer.java | 76 public IntBuffer duplicate() { in duplicate() method in ByteBufferAsIntBuffer 77 ByteBuffer bb = byteBuffer.duplicate().order(byteBuffer.order()); in duplicate()
|
D | ByteBufferAsFloatBuffer.java | 75 public FloatBuffer duplicate() { in duplicate() method in ByteBufferAsFloatBuffer 76 ByteBuffer bb = byteBuffer.duplicate().order(byteBuffer.order()); in duplicate()
|
D | ByteBufferAsLongBuffer.java | 76 public LongBuffer duplicate() { in duplicate() method in ByteBufferAsLongBuffer 77 ByteBuffer bb = byteBuffer.duplicate().order(byteBuffer.order()); in duplicate()
|
D | ByteBufferAsDoubleBuffer.java | 76 public DoubleBuffer duplicate() { in duplicate() method in ByteBufferAsDoubleBuffer 77 ByteBuffer bb = byteBuffer.duplicate().order(byteBuffer.order()); in duplicate()
|
/libcore/luni/src/test/java/libcore/java/nio/ |
D | BufferTest.java | 292 assertEquals(ByteOrder.BIG_ENDIAN, b.duplicate().order()); in testByteBufferByteOrder() 294 assertEquals(ByteOrder.BIG_ENDIAN, b.duplicate().order()); in testByteBufferByteOrder() 329 assertEquals(bo, b.duplicate().order()); in testCharBufferByteOrder() 333 assertEquals(bo, b.duplicate().order()); in testCharBufferByteOrder() 360 assertEquals(bo, b.duplicate().order()); in testDoubleBufferByteOrder() 364 assertEquals(bo, b.duplicate().order()); in testDoubleBufferByteOrder() 391 assertEquals(bo, b.duplicate().order()); in testFloatBufferByteOrder() 395 assertEquals(bo, b.duplicate().order()); in testFloatBufferByteOrder() 422 assertEquals(bo, b.duplicate().order()); in testIntBufferByteOrder() 426 assertEquals(bo, b.duplicate().order()); in testIntBufferByteOrder() [all …]
|