Home
last modified time | relevance | path

Searched refs:duplicate (Results 1 – 25 of 50) sorted by relevance

12

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/
DCharBufferTest.java221 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 …]
DDoubleBufferTest.java228 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 …]
DFloatBufferTest.java208 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 …]
DIntBufferTest.java188 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 …]
DLongBufferTest.java188 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 …]
DShortBufferTest.java187 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 …]
DReadOnlyLongBufferTest.java50 LongBuffer duplicate = buf.duplicate(); in testHashCode() local
51 assertEquals(buf.hashCode(), duplicate.hashCode()); in testHashCode()
DReadOnlyDoubleBufferTest.java50 DoubleBuffer duplicate = buf.duplicate(); in testHashCode() local
51 assertEquals(buf.hashCode(), duplicate.hashCode()); in testHashCode()
DReadOnlyIntBufferTest.java50 IntBuffer duplicate = buf.duplicate(); in testHashCode() local
51 assertEquals(buf.hashCode(), duplicate.hashCode()); in testHashCode()
DReadOnlyFloatBufferTest.java50 FloatBuffer duplicate = buf.duplicate(); in testHashCode() local
51 assertEquals(buf.hashCode(), duplicate.hashCode()); in testHashCode()
DReadOnlyShortBufferTest.java50 ShortBuffer duplicate = buf.duplicate(); in testHashCode() local
51 assertEquals(buf.hashCode(), duplicate.hashCode()); in testHashCode()
DReadOnlyCharBufferTest.java53 CharBuffer duplicate = buf.duplicate(); in testHashCode() local
54 assertEquals(buf.hashCode(), duplicate.hashCode()); in testHashCode()
DByteBufferTest.java279 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 …]
DDuplicateHeapByteBufferTest.java24 buf = buf.duplicate(); in setUp()
DDuplicateDirectByteBufferTest.java24 buf = buf.duplicate(); in setUp()
DDuplicateWrappedByteBufferTest.java24 buf = buf.duplicate(); in setUp()
/libcore/luni/src/test/java/libcore/java/nio/
DBufferTest.java244 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/
DStringCharBuffer.java63 public CharBuffer duplicate() { in duplicate() method in StringCharBuffer
69 return duplicate(); in asReadOnlyBuffer()
DByteBufferAsCharBuffer.java40 this.bb = bb.duplicate(); in ByteBufferAsCharBuffer()
67 public CharBuffer duplicate() { in duplicate() method in ByteBufferAsCharBuffer
168 CharBuffer db = this.duplicate(); in toString()
DByteBufferAsDoubleBuffer.java41 this.bb = bb.duplicate(); in ByteBufferAsDoubleBuffer()
68 public DoubleBuffer duplicate() { in duplicate() method in ByteBufferAsDoubleBuffer
DByteBufferAsFloatBuffer.java40 this.bb = bb.duplicate(); in ByteBufferAsFloatBuffer()
67 public FloatBuffer duplicate() { in duplicate() method in ByteBufferAsFloatBuffer
DByteBufferAsShortBuffer.java40 this.bb = bb.duplicate(); in ByteBufferAsShortBuffer()
67 public ShortBuffer duplicate() { in duplicate() method in ByteBufferAsShortBuffer
DByteBufferAsLongBuffer.java40 this.bb = bb.duplicate(); in ByteBufferAsLongBuffer()
67 public LongBuffer duplicate() { in duplicate() method in ByteBufferAsLongBuffer
DByteBufferAsIntBuffer.java40 this.bb = bb.duplicate(); in ByteBufferAsIntBuffer()
67 public IntBuffer duplicate() { in duplicate() method in ByteBufferAsIntBuffer
/libcore/ojluni/src/main/java/java/lang/invoke/
DMethodHandle.java888 MethodHandle mh = duplicate(); in asTypeUncached()
1475 protected MethodHandle duplicate() { in duplicate() method in MethodHandle

12