/dalvik/libcore/nio/src/main/java/java/nio/ |
H A D | Buffer.java | 27 * position if you do not specify an index explicitly. Position may not be 33 * <li>Mark: used to remember the current position, so that you can reset the 34 * position later. Mark may not be negative and no greater than position.</li> 37 * while changing the position, limit and mark of a read-only buffer is OK.</li> 66 * Mark is where position will be set when <code>reset()</code> is called. 68 * greater than <code>position</code>. 73 * The current position of this buffer. Position is always no less than zero 76 int position = 0; field in class:Buffer 148 * changes take place: the current position i 252 public final int position() { method in class:Buffer 269 public final Buffer position(int newPosition) { method in class:Buffer [all...] |
H A D | MappedByteBufferAdapter.java | 19 // added some missing updates on position and limit 81 buf.position = this.position; 97 this.wrapped.position(this.position); 100 this.position = this.limit - this.position; 111 buf.position = this.position; 119 this.wrapped.position(thi [all...] |
H A D | CharArrayBuffer.java | 54 if (position == limit) { 57 return backingArray[offset + position++]; 77 System.arraycopy(backingArray, offset + position, dest, off, len); 78 position += len; 99 result.limit(position + end); 100 result.position(position + start); 106 return String.copyValueOf(backingArray, offset + position, remaining());
|
H A D | DoubleToByteBufferAdapter.java | 29 * <li>The byte buffer's position and limit are NOT linked with the adapter. 30 * The adapter extends Buffer, thus has its own position and limit.</li> 107 buf.position = position; 118 byteBuffer.position(position << 3); 121 position = limit - position; 132 buf.position = position; [all...] |
H A D | FloatToByteBufferAdapter.java | 29 * <li>The byte buffer's position and limit are NOT linked with the adapter. 30 * The adapter extends Buffer, thus has its own position and limit.</li> 107 buf.position = position; 118 byteBuffer.position(position << 2); 121 position = limit - position; 132 buf.position = position; [all...] |
H A D | LongToByteBufferAdapter.java | 29 * <li>The byte buffer's position and limit are NOT linked with the adapter. 30 * The adapter extends Buffer, thus has its own position and limit.</li> 106 buf.position = position; 117 byteBuffer.position(position << 3); 120 position = limit - position; 131 buf.position = position; [all...] |
H A D | ReadWriteCharArrayBuffer.java | 37 buf.position = other.position(); 61 System.arraycopy(backingArray, position + offset, backingArray, offset, 63 position = limit - position; 96 if (position == limit) { 99 backingArray[offset + position++] = c; 121 System.arraycopy(src, off, backingArray, offset + position, len); 122 position += len; 129 + position); [all...] |
H A D | ReadWriteDoubleArrayBuffer.java | 39 buf.position = other.position(); 64 System.arraycopy(backingArray, position + offset, backingArray, offset, 66 position = limit - position; 99 if (position == limit) { 102 backingArray[offset + position++] = c; 124 System.arraycopy(src, off, backingArray, offset + position, len); 125 position += len; 132 + position); [all...] |
H A D | ReadWriteFloatArrayBuffer.java | 39 buf.position = other.position(); 64 System.arraycopy(backingArray, position + offset, backingArray, offset, 66 position = limit - position; 99 if (position == limit) { 102 backingArray[offset + position++] = c; 124 System.arraycopy(src, off, backingArray, offset + position, len); 125 position += len; 132 + position); [all...] |
H A D | ReadWriteIntArrayBuffer.java | 37 buf.position = other.position(); 61 System.arraycopy(backingArray, position + offset, backingArray, offset, 63 position = limit - position; 96 if (position == limit) { 99 backingArray[offset + position++] = c; 121 System.arraycopy(src, off, backingArray, offset + position, len); 122 position += len; 129 + position); [all...] |
H A D | ReadWriteLongArrayBuffer.java | 37 buf.position = other.position(); 61 System.arraycopy(backingArray, position + offset, backingArray, offset, 63 position = limit - position; 96 if (position == limit) { 99 backingArray[offset + position++] = c; 121 System.arraycopy(src, off, backingArray, offset + position, len); 122 position += len; 129 + position); [all...] |
H A D | ReadWriteShortArrayBuffer.java | 39 buf.position = other.position(); 64 System.arraycopy(backingArray, position + offset, backingArray, offset, 66 position = limit - position; 99 if (position == limit) { 102 backingArray[offset + position++] = c; 124 System.arraycopy(src, off, backingArray, offset + position, len); 125 position += len; 132 + position); [all...] |
H A D | DirectByteBuffer.java | 103 getBaseAddress().getByteArray(offset + position, dest, off, len); 104 position += len; 110 if (position == limit) { 113 return getBaseAddress().getByte(offset + position++); 126 int newPosition = position + 8; 130 double result = getBaseAddress().getDouble(offset + position, order); 131 position = newPosition; 145 int newPosition = position + 4; 149 float result = getBaseAddress().getFloat(offset + position, order); 150 position [all...] |
H A D | ReadWriteHeapByteBuffer.java | 36 buf.position = other.position(); 61 System.arraycopy(backingArray, position + offset, backingArray, offset, 63 position = limit - position; 96 if (position == limit) { 99 backingArray[offset + position++] = b; 130 System.arraycopy(src, off, backingArray, offset + position, len); 131 position += len; 157 int newPosition = position [all...] |
H A D | ReadWriteDirectByteBuffer.java | 44 buf.position = other.position(); 83 effectiveAddress.offsetBytes(position).moveTo(effectiveAddress, 85 position = limit - position; 103 if (position == limit) { 106 getBaseAddress().setByte(offset + position++, value); 135 getBaseAddress().setByteArray(offset + position, src, off, len); 136 position += len; 143 * specified offset, to the current position an [all...] |
H A D | CharToByteBufferAdapter.java | 29 * <li>The byte buffer's position and limit are NOT linked with the adapter. 30 * The adapter extends Buffer, thus has its own position and limit.</li> 106 buf.position = position; 117 byteBuffer.position(position << 1); 120 position = limit - position; 131 buf.position = position; [all...] |
H A D | IntToByteBufferAdapter.java | 29 * <li>The byte buffer's position and limit are NOT linked with the adapter. 30 * The adapter extends Buffer, thus has its own position and limit.</li> 106 buf.position = position; 117 byteBuffer.position(position << 2); 120 position = limit - position; 131 buf.position = position; [all...] |
H A D | ShortToByteBufferAdapter.java | 29 * <li>The byte buffer's position and limit are NOT linked with the adapter. 30 * The adapter extends Buffer, thus has its own position and limit.</li> 106 buf.position = position; 117 byteBuffer.position(position << 1); 120 position = limit - position; 131 buf.position = position; [all...] |
/dalvik/libcore/luni/src/main/java/java/util/ |
H A D | StringTokenizer.java | 44 * A {@code StringTokenizer} object internally maintains a current position 46 * position past the code point processed. 112 private int position; field in class:StringTokenizer 162 this.position = 0; 176 for (int i = position, length = string.length(); i < length; i++) { 213 if (position < length) { 219 for (int i = position; i < length; i++) 249 int i = position; 254 if (delimiters.indexOf(string.charAt(position), 0) >= 0) 255 return String.valueOf(string.charAt(position [all...] |
/dalvik/libcore/nio/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, argument 102 if (position < 0 || size < 0 || position + size < 0) { 106 this.position = position; 121 * Returns the lock's starting position i 125 public final long position() { method in class:FileLock [all...] |
H A D | FileChannel.java | 42 * file <em>position</em>. The position can be manipulated by moving it 43 * within the file, and the current position can be queried. 61 * does not modify the current position.</li> 65 * the file position may be executed at the same time. Subsequent calls to such 70 * It is undefined whether operations that do not manipulate the file position 76 * stream and vice versa; this includes modifications to the file position, 215 * There is no requirement for the position and size to be within the 223 * @param position 224 * the starting position fo 252 lock(long position, long size, boolean shared) argument 282 map(FileChannel.MapMode mode, long position, long size) argument 295 public abstract long position() throws IOException; method in class:FileChannel 317 public abstract FileChannel position(long offset) throws IOException; method in class:FileChannel 385 read(ByteBuffer buffer, long position) argument 505 transferFrom(ReadableByteChannel src, long position, long count) argument 542 transferTo(long position, long count, WritableByteChannel target) argument 621 tryLock(long position, long size, boolean shared) argument 686 write(ByteBuffer buffer, long position) argument [all...] |
/dalvik/libcore/nio/src/test/java/org/apache/harmony/nio/tests/java/nio/ |
H A D | AbstractBufferTest.java | 55 assertTrue(0 <= baseBuf.position() && baseBuf.position() <= baseBuf.limit() 68 int oldPosition = baseBuf.position(); 73 assertEquals(0, baseBuf.position()); 84 baseBuf.position(oldPosition); 95 int oldPosition = baseBuf.position(); 102 assertEquals(0, baseBuf.position()); 113 baseBuf.position(oldPosition); 124 int oldPosition = baseBuf.position(); 127 assertEquals(baseBuf.hasRemaining(), baseBuf.position() < baseBu [all...] |
/dalvik/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;
|
/dalvik/libcore/nio/src/main/java/org/apache/harmony/nio/internal/ |
H A D | WriteOnlyFileChannel.java | 50 * @see org.apache.harmony.nio.internal.FileChannelImpl#position() 52 public long position() throws IOException { method in class:WriteOnlyFileChannel 53 return append ? size() : super.position(); 56 public long transferTo(long position, long count, WritableByteChannel target) argument 79 public int read(ByteBuffer buffer, long position) throws IOException { argument 83 if (position < 0) { 89 public MappedByteBuffer map(MapMode mode, long position, long size) argument 95 if (position < 0 || size < 0 || size > Integer.MAX_VALUE) { 103 position(size()); 108 protected final FileLock basicLock(long position, lon argument [all...] |
/dalvik/libcore/xml/src/main/java/org/apache/xml/dtm/ref/ |
H A D | ChunkedIntArray.java | 105 * the record, both 0-based (though position 0 is reserved for special 107 * @param position int Record number 110 int readEntry(int position, int offset) throws ArrayIndexOutOfBoundsException argument 115 return fastArray[(position*slotsize)+offset]; 123 position*=slotsize; 124 int chunkpos = position >> lowbits; 125 int slotpos = position & lowmask; 131 // Check that the node at index "position" is not an ancestor 133 // RETURN -1. If position is NOT an ancestor, return position 137 specialFind(int startPos, int position) argument 192 writeEntry(int position, int offset, int value) argument 221 writeSlot(int position, int w0, int w1, int w2, int w3) argument 245 readSlot(int position, int[] buffer) argument [all...] |