/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 | DoubleBufferTest.java | 228 DoubleBuffer duplicate = buf.duplicate(); 229 assertNotSame(buf, duplicate); 230 assertEquals(buf.position(), duplicate.position()); 231 assertEquals(buf.limit(), duplicate.limit()); 232 assertEquals(buf.isReadOnly(), duplicate.isReadOnly()); 233 assertEquals(buf.isDirect(), duplicate.isDirect()); 234 assertEquals(buf.order(), duplicate.order()); 235 assertContentEquals(buf, duplicate); 238 duplicate.reset(); 239 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 | 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 | 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 | ReadOnlyLongBufferTest.java | 50 LongBuffer 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 | ReadOnlyIntBufferTest.java | 50 IntBuffer duplicate = buf.duplicate(); in testHashCode() local 51 assertEquals(buf.hashCode(), duplicate.hashCode()); in testHashCode()
|
D | ReadOnlyFloatBufferTest.java | 50 FloatBuffer 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 | ReadOnlyCharBufferTest.java | 53 CharBuffer duplicate = buf.duplicate(); in testHashCode() local 54 assertEquals(buf.hashCode(), duplicate.hashCode()); in testHashCode()
|
D | ByteBufferTest.java | 279 ByteBuffer duplicate = buf.duplicate(); 280 assertNotSame(buf, duplicate); 281 assertEquals(buf.position(), duplicate.position()); 282 assertEquals(buf.limit(), duplicate.limit()); 283 assertEquals(buf.isReadOnly(), duplicate.isReadOnly()); 284 assertEquals(buf.isDirect(), duplicate.isDirect()); 285 assertEquals(buf.order(), duplicate.order()); 286 assertContentEquals(buf, duplicate); 289 duplicate.reset(); 290 assertEquals(duplicate.position(), 0); [all …]
|
D | DuplicateHeapByteBufferTest.java | 24 buf = buf.duplicate(); in setUp()
|
D | DuplicateDirectByteBufferTest.java | 24 buf = buf.duplicate(); in setUp()
|
D | DuplicateWrappedByteBufferTest.java | 24 buf = buf.duplicate(); in setUp()
|
/libcore/luni/src/test/java/libcore/java/nio/ |
D | BufferTest.java | 244 assertEquals(ByteOrder.BIG_ENDIAN, b.duplicate().order()); in testByteBufferByteOrder() 246 assertEquals(ByteOrder.BIG_ENDIAN, b.duplicate().order()); in testByteBufferByteOrder() 281 assertEquals(bo, b.duplicate().order()); in testCharBufferByteOrder() 285 assertEquals(bo, b.duplicate().order()); in testCharBufferByteOrder() 312 assertEquals(bo, b.duplicate().order()); in testDoubleBufferByteOrder() 316 assertEquals(bo, b.duplicate().order()); in testDoubleBufferByteOrder() 343 assertEquals(bo, b.duplicate().order()); in testFloatBufferByteOrder() 347 assertEquals(bo, b.duplicate().order()); in testFloatBufferByteOrder() 374 assertEquals(bo, b.duplicate().order()); in testIntBufferByteOrder() 378 assertEquals(bo, b.duplicate().order()); in testIntBufferByteOrder() [all …]
|
/libcore/ojluni/src/main/java/java/nio/ |
D | StringCharBuffer.java | 63 public CharBuffer duplicate() { in duplicate() method in StringCharBuffer 69 return duplicate(); in asReadOnlyBuffer()
|
D | ByteBufferAsCharBuffer.java | 40 this.bb = bb.duplicate(); in ByteBufferAsCharBuffer() 67 public CharBuffer duplicate() { in duplicate() method in ByteBufferAsCharBuffer 168 CharBuffer db = this.duplicate(); in toString()
|
D | ByteBufferAsDoubleBuffer.java | 41 this.bb = bb.duplicate(); in ByteBufferAsDoubleBuffer() 68 public DoubleBuffer duplicate() { in duplicate() method in ByteBufferAsDoubleBuffer
|
D | ByteBufferAsFloatBuffer.java | 40 this.bb = bb.duplicate(); in ByteBufferAsFloatBuffer() 67 public FloatBuffer duplicate() { in duplicate() method in ByteBufferAsFloatBuffer
|
D | ByteBufferAsShortBuffer.java | 40 this.bb = bb.duplicate(); in ByteBufferAsShortBuffer() 67 public ShortBuffer duplicate() { in duplicate() method in ByteBufferAsShortBuffer
|
D | ByteBufferAsLongBuffer.java | 40 this.bb = bb.duplicate(); in ByteBufferAsLongBuffer() 67 public LongBuffer duplicate() { in duplicate() method in ByteBufferAsLongBuffer
|
D | ByteBufferAsIntBuffer.java | 40 this.bb = bb.duplicate(); in ByteBufferAsIntBuffer() 67 public IntBuffer duplicate() { in duplicate() method in ByteBufferAsIntBuffer
|
/libcore/ojluni/src/main/java/java/lang/invoke/ |
D | MethodHandle.java | 888 MethodHandle mh = duplicate(); in asTypeUncached() 1475 protected MethodHandle duplicate() { in duplicate() method in MethodHandle
|