/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/ |
D | AbstractBufferTest.java | 42 assertTrue(0 <= baseBuf.position() && baseBuf.position() <= baseBuf.limit() in testCapacity() 48 int oldPosition = baseBuf.position(); in testClear() 53 assertEquals(baseBuf.position(), 0); in testClear() 64 baseBuf.position(oldPosition); in testClear() 69 int oldPosition = baseBuf.position(); in testFlip() 74 assertEquals(baseBuf.position(), 0); in testFlip() 85 baseBuf.position(oldPosition); in testFlip() 90 int oldPosition = baseBuf.position(); in testHasRemaining() 93 assertEquals(baseBuf.hasRemaining(), baseBuf.position() < baseBuf.limit()); in testHasRemaining() 94 baseBuf.position(baseBuf.limit()); in testHasRemaining() [all …]
|
/libcore/luni/src/main/java/java/util/ |
D | StringTokenizer.java | 48 private int position; field in StringTokenizer 100 this.position = 0; in StringTokenizer() 112 for (int i = position, length = string.length(); i < length; i++) { in countTokens() 149 if (position < length) { in hasMoreTokens() 155 for (int i = position; i < length; i++) in hasMoreTokens() 185 int i = position; in nextToken() 190 if (delimiters.indexOf(string.charAt(position), 0) >= 0) in nextToken() 191 return String.valueOf(string.charAt(position++)); in nextToken() 192 for (position++; position < length; position++) in nextToken() 193 if (delimiters.indexOf(string.charAt(position), 0) >= 0) in nextToken() [all …]
|
/libcore/luni/src/main/java/java/nio/channels/ |
D | FileLock.java | 77 private final long position; field in FileLock 99 protected FileLock(FileChannel channel, long position, long size, boolean shared) { in FileLock() argument 100 if (position < 0 || size < 0 || position + size < 0) { in FileLock() 101 throw new IllegalArgumentException("position=" + position + " size=" + size); in FileLock() 104 this.position = position; in FileLock() 121 public final long position() { in position() method in FileLock 122 return position; in position() 156 final long end = position + size - 1; in overlaps() 158 if (end < start || position > newEnd) { in overlaps() 199 return "FileLock[position=" + position + ", size=" + size + ", shared=" + shared + "]"; in toString()
|
/libcore/luni/src/main/java/libcore/io/ |
D | NioBufferIterator.java | 32 private int position; field in NioBufferIterator 41 position = offset; in seek() 45 position += byteCount; in skip() 49 Memory.peekByteArray(address + position, dst, dstOffset, byteCount); in readByteArray() 50 position += byteCount; in readByteArray() 54 byte result = Memory.peekByte(address + position); in readByte() 55 ++position; in readByte() 60 int result = Memory.peekInt(address + position, swap); in readInt() 61 position += SizeOf.INT; in readInt() 66 Memory.peekIntArray(address + position, dst, dstOffset, intCount, swap); in readIntArray() [all …]
|
D | HeapBufferIterator.java | 33 private int position; field in HeapBufferIterator 43 position = offset; in seek() 47 position += byteCount; in skip() 51 System.arraycopy(buffer, offset + position, dst, dstOffset, byteCount); in readByteArray() 52 position += byteCount; in readByteArray() 56 byte result = buffer[offset + position]; in readByte() 57 ++position; in readByte() 62 int result = Memory.peekInt(buffer, offset + position, order); in readInt() 63 position += SizeOf.INT; in readInt() 69 …Memory.unsafeBulkGet(dst, dstOffset, byteCount, buffer, offset + position, SizeOf.INT, order.needs… in readIntArray() [all …]
|
/libcore/luni/src/main/java/java/nio/ |
D | DirectByteBuffer.java | 56 buf.position = other.position(); in copy() 70 Memory.memmove(this, 0, this, position, remaining()); in compact() 71 position = limit - position; in compact() 83 return new DirectByteBuffer(block, remaining(), offset + position, isReadOnly, mapMode); in slice() 114 this.block.peekByteArray(offset + position, dst, dstOffset, byteCount); in get() 115 position += byteCount; in get() 122 this.block.peekCharArray(offset + position, dst, dstOffset, charCount, order.needsSwap); in get() 123 position += byteCount; in get() 129 this.block.peekDoubleArray(offset + position, dst, dstOffset, doubleCount, order.needsSwap); in get() 130 position += byteCount; in get() [all …]
|
D | ByteArrayBuffer.java | 54 buf.position = other.position(); in copy() 67 System.arraycopy(backingArray, position + arrayOffset, backingArray, arrayOffset, remaining()); in compact() 68 position = limit - position; in compact() 79 return new ByteArrayBuffer(remaining(), backingArray, arrayOffset + position, isReadOnly); in slice() 109 System.arraycopy(backingArray, arrayOffset + position, dst, dstOffset, byteCount); in get() 110 position += byteCount; in get() 116 …Memory.unsafeBulkGet(dst, dstOffset, byteCount, backingArray, arrayOffset + position, SizeOf.CHAR,… in get() 117 position += byteCount; in get() 122 …Memory.unsafeBulkGet(dst, dstOffset, byteCount, backingArray, arrayOffset + position, SizeOf.DOUBL… in get() 123 position += byteCount; in get() [all …]
|
D | FileChannelImpl.java | 49 long position1 = lock1.position(); 50 long position2 = lock2.position(); 94 …private FileLock basicLock(long position, long size, boolean shared, boolean wait) throws IOExcept… in basicLock() argument 106 if (position < 0 || size < 0) { in basicLock() 107 throw new IllegalArgumentException("position=" + position + " size=" + size); in basicLock() 110 FileLock pendingLock = new FileLockImpl(this, position, size, shared); in basicLock() 116 flock.l_start = position; in basicLock() 140 public FileLockImpl(FileChannel channel, long position, long size, boolean shared) { in FileLockImpl() argument 141 super(channel, position, size, shared); in FileLockImpl() 159 public final FileLock lock(long position, long size, boolean shared) throws IOException { in lock() argument [all …]
|
D | ByteBufferAsCharBuffer.java | 54 buf.position = position; in asReadOnlyBuffer() 66 byteBuffer.position(position * SizeOf.CHAR); in compact() 69 position = limit - position; in compact() 80 buf.position = position; in duplicate() 87 if (position == limit) { in get() 90 return byteBuffer.getChar(position++ * SizeOf.CHAR); in get() 102 byteBuffer.position(position * SizeOf.CHAR); in get() 108 this.position += charCount; in get() 141 if (position == limit) { in put() 144 byteBuffer.putChar(position++ * SizeOf.CHAR, c); in put() [all …]
|
D | CharArrayBuffer.java | 45 buf.position = other.position(); in copy() 58 System.arraycopy(backingArray, position + arrayOffset, backingArray, arrayOffset, remaining()); in compact() 59 position = limit - position; in compact() 70 return new CharArrayBuffer(remaining(), backingArray, arrayOffset + position, isReadOnly); in slice() 99 if (position == limit) { in get() 102 return backingArray[arrayOffset + position++]; in get() 114 System.arraycopy(backingArray, arrayOffset + position, dst, srcOffset, charCount); in get() 115 position += charCount; in get() 130 result.limit(position + end); in subSequence() 131 result.position(position + start); in subSequence() [all …]
|
D | Buffer.java | 75 int position = 0; field in Buffer 209 position = 0; in clear() 226 limit = position; in flip() 227 position = 0; in flip() 249 return position < limit; in hasRemaining() 302 if (position > newLimit) { in limit() 303 position = newLimit; in limit() 318 mark = position; in mark() 327 public final int position() { in position() method in Buffer 328 return position; in position() [all …]
|
D | ByteBufferAsShortBuffer.java | 53 buf.position = position; in asReadOnlyBuffer() 65 byteBuffer.position(position * SizeOf.SHORT); in compact() 68 position = limit - position; in compact() 79 buf.position = position; in duplicate() 86 if (position == limit) { in get() 89 return byteBuffer.getShort(position++ * SizeOf.SHORT); in get() 101 byteBuffer.position(position * SizeOf.SHORT); in get() 107 this.position += shortCount; in get() 140 if (position == limit) { in put() 143 byteBuffer.putShort(position++ * SizeOf.SHORT, c); in put() [all …]
|
D | ByteBufferAsIntBuffer.java | 54 buf.position = position; in asReadOnlyBuffer() 66 byteBuffer.position(position * SizeOf.INT); in compact() 69 position = limit - position; in compact() 80 buf.position = position; in duplicate() 87 if (position == limit) { in get() 90 return byteBuffer.getInt(position++ * SizeOf.INT); in get() 102 byteBuffer.position(position * SizeOf.INT); in get() 108 this.position += intCount; in get() 141 if (position == limit) { in put() 144 byteBuffer.putInt(position++ * SizeOf.INT, c); in put() [all …]
|
D | ByteBufferAsFloatBuffer.java | 53 buf.position = position; in asReadOnlyBuffer() 65 byteBuffer.position(position * SizeOf.FLOAT); in compact() 68 position = limit - position; in compact() 79 buf.position = position; in duplicate() 86 if (position == limit) { in get() 89 return byteBuffer.getFloat(position++ * SizeOf.FLOAT); in get() 101 byteBuffer.position(position * SizeOf.FLOAT); in get() 107 this.position += floatCount; in get() 140 if (position == limit) { in put() 143 byteBuffer.putFloat(position++ * SizeOf.FLOAT, c); in put() [all …]
|
D | ByteBufferAsLongBuffer.java | 54 buf.position = position; in asReadOnlyBuffer() 66 byteBuffer.position(position * SizeOf.LONG); in compact() 69 position = limit - position; in compact() 80 buf.position = position; in duplicate() 87 if (position == limit) { in get() 90 return byteBuffer.getLong(position++ * SizeOf.LONG); in get() 102 byteBuffer.position(position * SizeOf.LONG); in get() 108 this.position += longCount; in get() 141 if (position == limit) { in put() 144 byteBuffer.putLong(position++ * SizeOf.LONG, c); in put() [all …]
|
D | ByteBufferAsDoubleBuffer.java | 54 buf.position = position; in asReadOnlyBuffer() 66 byteBuffer.position(position * SizeOf.DOUBLE); in compact() 69 position = limit - position; in compact() 80 buf.position = position; in duplicate() 87 if (position == limit) { in get() 90 return byteBuffer.getDouble(position++ * SizeOf.DOUBLE); in get() 102 byteBuffer.position(position * SizeOf.DOUBLE); in get() 108 this.position += doubleCount; in get() 141 if (position == limit) { in put() 144 byteBuffer.putDouble(position++ * SizeOf.DOUBLE, c); in put() [all …]
|
D | LongArrayBuffer.java | 45 buf.position = other.position(); in copy() 58 System.arraycopy(backingArray, position + arrayOffset, backingArray, arrayOffset, remaining()); in compact() 59 position = limit - position; in compact() 70 return new LongArrayBuffer(remaining(), backingArray, arrayOffset + position, isReadOnly); in slice() 99 if (position == limit) { in get() 102 return backingArray[arrayOffset + position++]; in get() 114 System.arraycopy(backingArray, arrayOffset + position, dst, dstOffset, longCount); in get() 115 position += longCount; in get() 131 if (position == limit) { in put() 134 backingArray[arrayOffset + position++] = c; in put() [all …]
|
D | FloatArrayBuffer.java | 45 buf.position = other.position(); in copy() 59 System.arraycopy(backingArray, position + arrayOffset, backingArray, arrayOffset, remaining()); in compact() 60 position = limit - position; in compact() 71 return new FloatArrayBuffer(remaining(), backingArray, arrayOffset + position, isReadOnly); in slice() 100 if (position == limit) { in get() 103 return backingArray[arrayOffset + position++]; in get() 115 System.arraycopy(backingArray, arrayOffset + position, dst, dstOffset, floatCount); in get() 116 position += floatCount; in get() 132 if (position == limit) { in put() 135 backingArray[arrayOffset + position++] = c; in put() [all …]
|
D | DoubleArrayBuffer.java | 45 buf.position = other.position(); in copy() 58 System.arraycopy(backingArray, position + arrayOffset, backingArray, arrayOffset, remaining()); in compact() 59 position = limit - position; in compact() 70 return new DoubleArrayBuffer(remaining(), backingArray, arrayOffset + position, isReadOnly); in slice() 99 if (position == limit) { in get() 102 return backingArray[arrayOffset + position++]; in get() 114 System.arraycopy(backingArray, arrayOffset + position, dst, dstOffset, doubleCount); in get() 115 position += doubleCount; in get() 131 if (position == limit) { in put() 134 backingArray[arrayOffset + position++] = c; in put() [all …]
|
D | ShortArrayBuffer.java | 45 buf.position = other.position(); in copy() 58 System.arraycopy(backingArray, position + arrayOffset, backingArray, arrayOffset, remaining()); in compact() 59 position = limit - position; in compact() 70 return new ShortArrayBuffer(remaining(), backingArray, arrayOffset + position, isReadOnly); in slice() 99 if (position == limit) { in get() 102 return backingArray[arrayOffset + position++]; in get() 114 System.arraycopy(backingArray, arrayOffset + position, dst, dstOffset, shortCount); in get() 115 position += shortCount; in get() 131 if (position == limit) { in put() 134 backingArray[arrayOffset + position++] = c; in put() [all …]
|
D | IntArrayBuffer.java | 45 buf.position = other.position(); in copy() 58 System.arraycopy(backingArray, position + arrayOffset, backingArray, arrayOffset, remaining()); in compact() 59 position = limit - position; in compact() 70 return new IntArrayBuffer(remaining(), backingArray, arrayOffset + position, isReadOnly); in slice() 99 if (position == limit) { in get() 102 return backingArray[arrayOffset + position++]; in get() 114 System.arraycopy(backingArray, arrayOffset + position, dst, dstOffset, intCount); in get() 115 position += intCount; in get() 131 if (position == limit) { in put() 134 backingArray[arrayOffset + position++] = c; in put() [all …]
|
/libcore/luni/src/main/java/javax/crypto/ |
D | CipherSpi.java | 339 int position = input.position(); in engineUpdate() local 341 if ((limit - position) <= 0) { in engineUpdate() 349 bOutput = engineUpdate(bInput, offset + position, limit - position); in engineUpdate() 350 input.position(limit); in engineUpdate() 352 bInput = new byte[limit - position]; in engineUpdate() 354 bOutput = engineUpdate(bInput, 0, limit - position); in engineUpdate() 414 int position = input.position(); in engineUpdateAAD() local 416 if ((limit - position) <= 0) { in engineUpdateAAD() 423 engineUpdateAAD(bInput, offset + position, limit - position); in engineUpdateAAD() 424 input.position(limit); in engineUpdateAAD() [all …]
|
/libcore/luni/src/test/resources/out_dh/ |
D | staff.out | 45 …position$position^$salary$salary^$gender$gender^$address$address^$employee$employee^$employeeId$em…
|
/libcore/xml/src/main/java/org/kxml2/io/ |
D | KXmlParser.java | 143 private int position = 0; field in KXmlParser 467 int start = position; in readUntil() 477 if (position + delimiter.length > limit) { in readUntil() 478 if (start < position && returnText) { in readUntil() 482 result.append(buffer, start, position - start); in readUntil() 489 start = position; in readUntil() 495 if (buffer[position + i] != delimiter[i]) { in readUntil() 496 position++; in readUntil() 504 int end = position; in readUntil() 505 position += delimiter.length; in readUntil() [all …]
|
/libcore/luni/src/main/java/java/text/ |
D | Format.java | 149 ParsePosition position = new ParsePosition(0); in parseObject() local 150 Object result = parseObject(string, position); in parseObject() 151 if (position.getIndex() == 0) { in parseObject() 152 throw new ParseException("Parse failure", position.getErrorIndex()); in parseObject() 175 public abstract Object parseObject(String string, ParsePosition position); in parseObject() argument 177 static boolean upTo(String string, ParsePosition position, in upTo() argument 179 int index = position.getIndex(), length = string.length(); in upTo() 190 position.setIndex(index); in upTo() 197 position.setIndex(index); in upTo() 201 static boolean upToWithQuotes(String string, ParsePosition position, in upToWithQuotes() argument [all …]
|