/libcore/luni/src/main/java/java/nio/channels/ |
H A D | FileLock.java | 76 // The lock starting position. 77 private final long position; field in class:FileLock 87 * enforces the starting position, length and sharing mode of the lock. 91 * @param position 99 protected FileLock(FileChannel channel, long position, long size, boolean shared) { argument 100 if (position < 0 || size < 0 || position + size < 0) { 101 throw new IllegalArgumentException("position=" + position + " size=" + size); 104 this.position 123 public final long position() { method in class:FileLock [all...] |
/libcore/luni/src/main/java/java/nio/ |
H A D | MappedByteBufferAdapter.java | 31 * 1. we need to explicitly call wrapped.position(int) before any operation on our delegate 32 * that makes use of the implicit position. 34 * 2. we need to explicitly update position after any operation on our delegate that makes 35 * use of the implicit position. 66 wrapped.position(newPosition); 98 result.position(position); 115 position(wrapped.position()); 124 result.position(positio [all...] |
H A D | ReadWriteDirectByteBuffer.java | 39 buf.position = other.position(); 65 Memory.memmove(this, 0, this, position, remaining()); 66 position = limit - position; 84 if (position == limit) { 87 this.block.pokeByte(offset + position++, value); 101 this.block.pokeByteArray(offset + position, src, srcOffset, byteCount); 102 position += byteCount; 108 this.block.pokeCharArray(offset + position, sr [all...] |
H A D | CharToByteBufferAdapter.java | 28 * <li>The byte buffer's position and limit are NOT linked with the adapter. 29 * The adapter extends Buffer, thus has its own position and limit.</li> 55 buf.position = position; 67 byteBuffer.position(position * SizeOf.CHAR); 70 position = limit - position; 81 buf.position = position; [all...] |
H A D | DirectByteBuffer.java | 42 this.block.peekByteArray(offset + position, dst, dstOffset, byteCount); 43 position += byteCount; 49 this.block.peekCharArray(offset + position, dst, dstOffset, charCount, order.needsSwap); 50 position += byteCount; 55 this.block.peekDoubleArray(offset + position, dst, dstOffset, doubleCount, order.needsSwap); 56 position += byteCount; 61 this.block.peekFloatArray(offset + position, dst, dstOffset, floatCount, order.needsSwap); 62 position += byteCount; 67 this.block.peekIntArray(offset + position, dst, dstOffset, intCount, order.needsSwap); 68 position [all...] |
H A D | ReadWriteHeapByteBuffer.java | 39 buf.position = other.position(); 63 System.arraycopy(backingArray, position + offset, backingArray, offset, remaining()); 64 position = limit - position; 94 if (position == limit) { 97 backingArray[offset + position++] = b; 111 System.arraycopy(src, srcOffset, backingArray, offset + position, byteCount); 112 position += byteCount; 118 Memory.unsafeBulkPut(backingArray, offset + position, byteCoun [all...] |
H A D | FileChannelImpl.java | 48 long position1 = lock1.position(); 49 long position2 = lock2.position(); 95 private FileLock basicLock(long position, long size, boolean shared, boolean wait) throws IOException { argument 107 if (position < 0 || size < 0) { 108 throw new IllegalArgumentException("position=" + position + " size=" + size); 111 FileLock pendingLock = new FileLockImpl(this, position, size, shared); 117 flock.l_start = position; 141 public FileLockImpl(FileChannel channel, long position, long size, boolean shared) { argument 142 super(channel, position, siz 160 lock(long position, long size, boolean shared) argument 176 tryLock(long position, long size, boolean shared) argument 217 map(MapMode mapMode, long position, long size) argument 248 public long position() throws IOException { method in class:FileChannelImpl 257 public FileChannel position(long newPosition) throws IOException { method in class:FileChannelImpl 270 read(ByteBuffer buffer, long position) argument 281 readImpl(ByteBuffer buffer, long position) argument 352 transferFrom(ReadableByteChannel src, long position, long count) argument 392 transferTo(long position, long count, WritableByteChannel target) argument 458 write(ByteBuffer buffer, long position) argument 469 writeImpl(ByteBuffer buffer, long position) argument [all...] |
H A D | CharSequenceAdapter.java | 37 buf.position = other.position; 66 if (position == limit) { 69 return sequence.charAt(position++); 84 int newPosition = position + charCount; 85 sequence.toString().getChars(position, newPosition, dst, dstOffset); 86 position = newPosition; 139 return new CharSequenceAdapter(sequence.subSequence(position, limit)); 146 result.position = position [all...] |
H A D | CharArrayBuffer.java | 54 if (position == limit) { 57 return backingArray[offset + position++]; 71 System.arraycopy(backingArray, offset + position, dst, srcOffset, charCount); 72 position += charCount; 90 result.limit(position + end); 91 result.position(position + start); 97 return String.copyValueOf(backingArray, offset + position, remaining());
|
H A D | DoubleToByteBufferAdapter.java | 28 * <li>The byte buffer's position and limit are NOT linked with the adapter. 29 * The adapter extends Buffer, thus has its own position and limit.</li> 55 buf.position = position; 67 byteBuffer.position(position * SizeOf.DOUBLE); 70 position = limit - position; 81 buf.position = position; [all...] |
H A D | FloatToByteBufferAdapter.java | 28 * <li>The byte buffer's position and limit are NOT linked with the adapter. 29 * The adapter extends Buffer, thus has its own position and limit.</li> 54 buf.position = position; 66 byteBuffer.position(position * SizeOf.FLOAT); 69 position = limit - position; 80 buf.position = position; [all...] |
H A D | IntToByteBufferAdapter.java | 28 * <li>The byte buffer's position and limit are NOT linked with the adapter. 29 * The adapter extends Buffer, thus has its own position and limit.</li> 55 buf.position = position; 67 byteBuffer.position(position * SizeOf.INT); 70 position = limit - position; 81 buf.position = position; [all...] |
H A D | LongToByteBufferAdapter.java | 28 * <li>The byte buffer's position and limit are NOT linked with the adapter. 29 * The adapter extends Buffer, thus has its own position and limit.</li> 55 buf.position = position; 67 byteBuffer.position(position * SizeOf.LONG); 70 position = limit - position; 81 buf.position = position; [all...] |
H A D | ShortToByteBufferAdapter.java | 28 * <li>The byte buffer's position and limit are NOT linked with the adapter. 29 * The adapter extends Buffer, thus has its own position and limit.</li> 54 buf.position = position; 66 byteBuffer.position(position * SizeOf.SHORT); 69 position = limit - position; 80 buf.position = position; [all...] |
H A D | ReadWriteCharArrayBuffer.java | 37 buf.position = other.position(); 61 System.arraycopy(backingArray, position + offset, backingArray, offset, remaining()); 62 position = limit - position; 92 if (position == limit) { 95 backingArray[offset + position++] = c; 111 System.arraycopy(src, srcOffset, backingArray, offset + position, charCount); 112 position += charCount; 118 return new ReadWriteCharArrayBuffer(remaining(), backingArray, offset + position); [all...] |
H A D | ReadWriteDoubleArrayBuffer.java | 38 buf.position = other.position(); 62 System.arraycopy(backingArray, position + offset, backingArray, offset, remaining()); 63 position = limit - position; 93 if (position == limit) { 96 backingArray[offset + position++] = c; 112 System.arraycopy(src, srcOffset, backingArray, offset + position, doubleCount); 113 position += doubleCount; 119 return new ReadWriteDoubleArrayBuffer(remaining(), backingArray, offset + position); [all...] |
H A D | ReadWriteFloatArrayBuffer.java | 38 buf.position = other.position(); 62 System.arraycopy(backingArray, position + offset, backingArray, offset, remaining()); 63 position = limit - position; 93 if (position == limit) { 96 backingArray[offset + position++] = c; 112 System.arraycopy(src, srcOffset, backingArray, offset + position, floatCount); 113 position += floatCount; 119 return new ReadWriteFloatArrayBuffer(remaining(), backingArray, offset + position); [all...] |
H A D | ReadWriteIntArrayBuffer.java | 37 buf.position = other.position(); 61 System.arraycopy(backingArray, position + offset, backingArray, offset, remaining()); 62 position = limit - position; 92 if (position == limit) { 95 backingArray[offset + position++] = c; 111 System.arraycopy(src, srcOffset, backingArray, offset + position, intCount); 112 position += intCount; 118 return new ReadWriteIntArrayBuffer(remaining(), backingArray, offset + position); [all...] |
H A D | ReadWriteLongArrayBuffer.java | 37 buf.position = other.position(); 61 System.arraycopy(backingArray, position + offset, backingArray, offset, remaining()); 62 position = limit - position; 92 if (position == limit) { 95 backingArray[offset + position++] = c; 111 System.arraycopy(src, srcOffset, backingArray, offset + position, longCount); 112 position += longCount; 118 return new ReadWriteLongArrayBuffer(remaining(), backingArray, offset + position); [all...] |
H A D | ReadWriteShortArrayBuffer.java | 38 buf.position = other.position(); 63 System.arraycopy(backingArray, position + offset, backingArray, offset, remaining()); 64 position = limit - position; 94 if (position == limit) { 97 backingArray[offset + position++] = c; 113 System.arraycopy(src, srcOffset, backingArray, offset + position, shortCount); 114 position += shortCount; 120 return new ReadWriteShortArrayBuffer(remaining(), backingArray, offset + position); [all...] |
/libcore/luni/src/main/java/java/util/ |
H A D | StringTokenizer.java | 48 private int position; field in class:StringTokenizer 100 this.position = 0; 112 for (int i = position, length = string.length(); i < length; i++) { 149 if (position < length) { 155 for (int i = position; i < length; i++) 185 int i = position; 190 if (delimiters.indexOf(string.charAt(position), 0) >= 0) 191 return String.valueOf(string.charAt(position++)); 192 for (position++; position < lengt [all...] |
/libcore/luni/src/main/java/libcore/io/ |
H A D | HeapBufferIterator.java | 33 private int position; field in class:HeapBufferIterator 43 position = offset; 47 position += byteCount; 51 System.arraycopy(buffer, offset + position, dst, dstOffset, byteCount); 52 position += byteCount; 56 byte result = buffer[offset + position]; 57 ++position; 62 int result = Memory.peekInt(buffer, offset + position, order); 63 position += SizeOf.INT; 69 Memory.unsafeBulkGet(dst, dstOffset, byteCount, buffer, offset + position, SizeO [all...] |
H A D | NioBufferIterator.java | 32 private int position; field in class:NioBufferIterator 41 position = offset; 45 position += byteCount; 49 Memory.peekByteArray(address + position, dst, dstOffset, byteCount); 50 position += byteCount; 54 byte result = Memory.peekByte(address + position); 55 ++position; 60 int result = Memory.peekInt(address + position, swap); 61 position += SizeOf.INT; 66 Memory.peekIntArray(address + position, ds [all...] |
/libcore/support/src/test/java/tests/support/ |
H A D | Support_OutputStream.java | 19 private int position; field in class:Support_OutputStream 36 position = 0; 85 if (position < size) { 86 buffer[position] = (byte)(oneByte & 255); 87 position++; 94 byte[] toReturn = new byte[position]; 95 System.arraycopy(buffer, 0, toReturn, 0, position); 100 return new String(buffer, 0, position); 104 return position;
|
/libcore/luni/src/main/java/java/text/ |
H A D | Format.java | 149 ParsePosition position = new ParsePosition(0); 150 Object result = parseObject(string, position); 151 if (position.getIndex() == 0) { 152 throw new ParseException("Parse failure", position.getErrorIndex()); 159 * {@code position}. If the string is successfully parsed then the index of 166 * @param position 175 public abstract Object parseObject(String string, ParsePosition position); argument 177 static boolean upTo(String string, ParsePosition position, argument 179 int index = position.getIndex(), length = string.length(); 190 position 201 upToWithQuotes(String string, ParsePosition position, StringBuffer buffer, char stop, char start) argument [all...] |