Home
last modified time | relevance | path

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

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/
DCharBufferTest.java112 int originalPosition = (buf.position() + buf.limit()) / 2; in testAsReadOnlyBuffer() local
113 buf.position(originalPosition); in testAsReadOnlyBuffer()
130 assertEquals(readonly.position(), originalPosition); in testAsReadOnlyBuffer() local
134 assertEquals(buf.position(), originalPosition); in testAsReadOnlyBuffer() local
242 int originalPosition = (buf.position() + buf.limit()) / 2;
243 buf.position(originalPosition);
261 assertEquals(duplicate.position(), originalPosition);
265 assertEquals(buf.position(), originalPosition);
/libcore/luni/src/main/java/libcore/io/
DLinux.java299 …private static void maybeUpdateBufferPosition(ByteBuffer buffer, int originalPosition, int bytesRe… in maybeUpdateBufferPosition() argument
301 buffer.position(bytesReadOrWritten + originalPosition); in maybeUpdateBufferPosition()