Home
last modified time | relevance | path

Searched refs:duplicate (Results 1 – 25 of 45) 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 …]
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 …]
DDoubleBufferTest.java217 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 …]
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 …]
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 …]
DReadOnlyFloatBufferTest.java50 FloatBuffer 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()
DReadOnlyShortBufferTest.java50 ShortBuffer duplicate = buf.duplicate(); in testHashCode() local
51 assertEquals(buf.hashCode(), duplicate.hashCode()); in testHashCode()
DReadOnlyLongBufferTest.java50 LongBuffer 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()
DReadOnlyCharBufferTest.java53 CharBuffer duplicate = buf.duplicate(); in testHashCode() local
54 assertEquals(buf.hashCode(), duplicate.hashCode()); in testHashCode()
DDuplicateWrappedByteBufferTest.java24 buf = buf.duplicate(); in setUp()
DDuplicateHeapByteBufferTest.java24 buf = buf.duplicate(); in setUp()
DDuplicateDirectByteBufferTest.java24 buf = buf.duplicate(); in setUp()
DByteBufferTest.java249 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/
DCharSequenceAdapter.java51 return duplicate(); in asReadOnlyBuffer()
60 public CharBuffer duplicate() { in duplicate() method in CharSequenceAdapter
DByteBufferAsCharBuffer.java76 public CharBuffer duplicate() { in duplicate() method in ByteBufferAsCharBuffer
77 ByteBuffer bb = byteBuffer.duplicate().order(byteBuffer.order()); in duplicate()
180 CharBuffer result = duplicate(); in subSequence()
DCharArrayBuffer.java65 @Override public CharBuffer duplicate() { in duplicate() method in CharArrayBuffer
129 CharBuffer result = duplicate(); in subSequence()
DByteBufferAsShortBuffer.java75 public ShortBuffer duplicate() { in duplicate() method in ByteBufferAsShortBuffer
76 ByteBuffer bb = byteBuffer.duplicate().order(byteBuffer.order()); in duplicate()
DByteBufferAsIntBuffer.java76 public IntBuffer duplicate() { in duplicate() method in ByteBufferAsIntBuffer
77 ByteBuffer bb = byteBuffer.duplicate().order(byteBuffer.order()); in duplicate()
DByteBufferAsFloatBuffer.java75 public FloatBuffer duplicate() { in duplicate() method in ByteBufferAsFloatBuffer
76 ByteBuffer bb = byteBuffer.duplicate().order(byteBuffer.order()); in duplicate()
DByteBufferAsLongBuffer.java76 public LongBuffer duplicate() { in duplicate() method in ByteBufferAsLongBuffer
77 ByteBuffer bb = byteBuffer.duplicate().order(byteBuffer.order()); in duplicate()
DByteBufferAsDoubleBuffer.java76 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/
DBufferTest.java292 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 …]

12