Home
last modified time | relevance | path

Searched refs:oldPosition (Results 1 – 2 of 2) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/
DAbstractBufferTest.java48 int oldPosition = baseBuf.position(); in testClear() local
64 baseBuf.position(oldPosition); in testClear()
69 int oldPosition = baseBuf.position(); in testFlip() local
75 assertEquals(baseBuf.limit(), oldPosition); in testFlip() local
85 baseBuf.position(oldPosition); in testFlip()
90 int oldPosition = baseBuf.position(); in testHasRemaining() local
99 baseBuf.position(oldPosition); in testHasRemaining()
119 int oldPosition = baseBuf.position();
129 assertEquals(baseBuf.position(), oldPosition);
164 baseBuf.position(oldPosition);
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
DSinkChannelTest.java74 int oldPosition; in test_write_LByteBuffer() local
84 oldPosition = buf.position(); in test_write_LByteBuffer()
95 assertEquals(BUFFER_SIZE, currentPosition - oldPosition); in test_write_LByteBuffer()