/libcore/dex/src/main/java/com/android/dex/util/ |
H A D | ByteArrayByteInput.java | 22 private int position; field in class:ByteArrayByteInput 29 return bytes[position++];
|
/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 121 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, 213 * There is no requirement for the position and size to be within the 221 * @param position 222 * the starting position fo 250 lock(long position, long size, boolean shared) argument 280 map(FileChannel.MapMode mode, long position, long size) argument 292 public abstract long position() throws IOException; method in class:FileChannel 312 public abstract FileChannel position(long newPosition) throws IOException; method in class:FileChannel 380 read(ByteBuffer buffer, long position) argument 500 transferFrom(ReadableByteChannel src, long position, long count) argument 537 transferTo(long position, long count, WritableByteChannel target) argument 616 tryLock(long position, long size, boolean shared) argument 681 write(ByteBuffer buffer, long position) argument [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...] |
H A D | EnumMap.java | 125 int position = 0; field in class:EnumMap.EnumMapIterator 140 for (; position < length; position++) { 141 if (enumMap.hasMapping[position]) { 145 return position != length; 152 prePosition = position++; 291 prePosition = position++;
|
H A D | WeakHashMap.java | 116 private int position = 0, expectedModCount; field in class:WeakHashMap.HashIterator 135 while (position < elementData.length) { 136 if ((nextEntry = elementData[position++]) != null) {
|
/libcore/luni/src/main/java/java/sql/ |
H A D | Blob.java | 60 * the position of the first byte in the {@code Blob} to get, 61 * where the first byte in the {@code Blob} has position 1. 82 * Search for the position in this {@code Blob} at which a specified pattern 83 * begins, starting at a specified position within the {@code Blob}. 89 * the position within this {@code Blob} to start the search, 90 * where the first position in the {@code Blob} is {@code 1}. 91 * @return a {@code long} value with the position at which the pattern 97 public long position(Blob pattern, long start) throws SQLException; method in interface:Blob 100 * Search for the position in this {@code Blob} at which the specified 101 * pattern begins, starting at a specified position withi 115 public long position(byte[] pattern, long start) throws SQLException; method in interface:Blob [all...] |
H A D | Clob.java | 80 * Retrieves the character position at which a specified {@code Clob} object 86 * the position within this {@code Clob} to start the search 87 * @return a long value with the position at which the specified {@code 92 public long position(Clob searchstr, long start) throws SQLException; method in interface:Clob 95 * Retrieves the character position at which a specified substring appears 101 * the position at which to start the search within this {@code 103 * @return a long value with the position at which the specified string 108 public long position(String searchstr, long start) throws SQLException; method in interface:Clob 112 * {@code Clob} object, starting at specified position. 115 * the position a [all...] |
/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(); 192 position 204 upToWithQuotes(String string, ParsePosition position, StringBuffer buffer, char stop, char start) argument [all...] |
H A D | ChoiceFormat.java | 129 ParsePosition position = new ParsePosition(0); 146 position.setIndex(index); 147 Number value = format.parse(template, position); 148 index = skipWhitespace(template, position.getIndex()); 149 if (position.getErrorIndex() != -1 || index >= length) { 177 position.setIndex(index); 178 upTo(template, position, buffer, '|'); 179 index = position.getIndex(); 323 * by {@code position}. The string is compared to the strings of this 330 * found in {@code string} starting at {@code position 354 parse(String string, ParsePosition position) argument [all...] |
H A D | MessageFormat.java | 388 ParsePosition position = new ParsePosition(0); 394 while (position.getIndex() < length) { 395 if (Format.upTo(template, position, buffer, '{')) { 397 int offset = position.getIndex(); 415 position.setIndex(offset); 416 localFormats.add(parseVariable(template, position)); 536 * this field position is set to the location of the first occurrence of a 554 FieldPosition position, List<FieldContainer> fields) { 566 handleArgumentField(begin, buffer.length(), argumentNumbers[i], position, fields); 577 handleArgumentField(begin, buffer.length(), argumentNumbers[i], position, field 553 formatImpl(Object[] objects, StringBuffer buffer, FieldPosition position, List<FieldContainer> fields) argument 612 handleArgumentField(int begin, int end, int argIndex, FieldPosition position, List<FieldContainer> fields) argument 857 parse(String string, ParsePosition position) argument 929 parseObject(String string, ParsePosition position) argument 933 match(String string, ParsePosition position, boolean last, String[] tokens) argument 962 parseVariable(String string, ParsePosition position) argument [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/luni/src/test/java/libcore/java/io/ |
H A D | OldOutputStreamTest.java | 29 private int position; field in class:OldOutputStreamTest.BasicOutputStream 33 position = 0; 37 if (position < BUFFER_SIZE) { 38 buffer[position] = (byte) (oneByte & 255); 39 position++;
|
H A D | OldInputStreamTest.java | 34 private int position; field in class:OldInputStreamTest.MockInputStream 39 position = 0; 44 if (position < input.length) { 45 result = input[position]; 46 position++;
|
/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/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/ |
H A D | FileLockTest.java | 42 protected MockFileLock(FileChannel channel, long position, long size, argument 44 super(channel, position, size, shared); 110 * @tests java.nio.channels.FileLock#position() 114 assertEquals(20, fileLock1.position()); 116 final long position = ((long) Integer.MAX_VALUE + 1); 117 FileLock fileLock2 = new MockFileLock(readWriteChannel, position, 100, 119 assertEquals(position, fileLock2.position()); 129 final long position = 0x0FFFFFFFFFFFFFFFL; 131 FileLock fileLock2 = new MockFileLock(readWriteChannel, position, siz [all...] |
/libcore/luni/src/main/java/javax/net/ssl/ |
H A D | DistinguishedNameParser.java | 148 beg = pos; // store '#' position 312 // specified 'position' and the next char 316 private int getByte(int position) { argument 317 if (position + 1 >= length) { 323 b1 = chars[position]; 334 b2 = chars[position + 1];
|
/libcore/luni/src/main/java/org/apache/harmony/security/x509/ |
H A D | DNParser.java | 172 beg = pos; // store '#' position 344 * specified 'position' and the next char 349 private int getByte(int position) throws IOException { argument 350 if ((position + 1) >= chars.length) { 355 int b1 = chars[position]; 366 int b2 = chars[position + 1];
|
/libcore/luni/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> 65 * Mark is where position will be set when <code>reset()</code> is called. 67 * greater than <code>position</code>. 72 * The current position of this buffer. Position is always no less than zero 75 int position = 0; field in class:Buffer 121 * is not necessarily the same size as the buffer, and position 327 public final int position() { method in class:Buffer 344 public final Buffer position(int newPosition) { method in class:Buffer [all...] |
H A 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 IOException { argument 106 if (position < 0 || size < 0) { 107 throw new IllegalArgumentException("position=" + position + " size=" + size); 110 FileLock pendingLock = new FileLockImpl(this, position, size, shared); 116 flock.l_start = position; 140 public FileLockImpl(FileChannel channel, long position, long size, boolean shared) { argument 141 super(channel, position, siz 159 lock(long position, long size, boolean shared) argument 179 tryLock(long position, long size, boolean shared) argument 220 map(MapMode mapMode, long position, long size) argument 261 public long position() throws IOException { method in class:FileChannelImpl 270 public FileChannel position(long newPosition) throws IOException { method in class:FileChannelImpl 283 read(ByteBuffer buffer, long position) argument 294 readImpl(ByteBuffer buffer, long position) argument 363 transferFrom(ReadableByteChannel src, long position, long count) argument 403 transferTo(long position, long count, WritableByteChannel target) argument 472 write(ByteBuffer buffer, long position) argument 483 writeImpl(ByteBuffer buffer, long position) argument [all...] |
/libcore/luni/src/main/java/java/security/ |
H A D | Security.java | 126 * Insert the given {@code Provider} at the specified {@code position}. The 132 * @param position 133 * the position (starting from 1). 134 * @return the actual position or {@code -1} if the given {@code provider} 135 * was already in the list. The actual position may be different 136 * from the desired position. 138 public static synchronized int insertProviderAt(Provider provider, int position) { argument 140 // installed, else return -1; if (position <1) or (position > max 141 // position) positio [all...] |
/libcore/luni/src/main/java/libcore/net/url/ |
H A D | FileURLConnection.java | 166 public String getHeaderFieldKey(int position) { argument 175 if (position < 0 || position > headerKeysAndValues.length / 2) { 179 return headerKeysAndValues[position * 2]; 183 public String getHeaderField(int position) { argument 192 if (position < 0 || position > headerKeysAndValues.length / 2) { 196 return headerKeysAndValues[(position * 2) + 1]; 248 // The content-type header field is always at position 0.
|
/libcore/luni/src/main/java/org/apache/harmony/security/fortress/ |
H A D | Services.java | 114 * Inserts a provider at a specified 1-based position. 116 public static synchronized int insertProviderAt(Provider provider, int position) { argument 118 if ((position < 1) || (position > size)) { 119 position = size + 1; 121 providers.add(position - 1, provider); 124 return position; 128 * Removes the provider at the specified 1-based position.
|
/libcore/luni/src/test/java/libcore/java/nio/channels/ |
H A D | OldFileChannelTest.java | 614 assertEquals(0, readBuffers[0].position()); 615 assertEquals(0, readBuffers[1].position()); 765 writeBuffer.position(pos); 768 assertEquals(CONTENT_AS_BYTES_LENGTH, writeBuffer.position()); 850 assertEquals(CONTENT_AS_BYTES_LENGTH, writeBuffers[0].position()); 851 assertEquals(CONTENT_AS_BYTES_LENGTH, writeBuffers[1].position()); 1071 private void assertLockFails(long position, long size) throws IOException { argument 1073 readWriteFileChannel.tryLock(position, size, false);
|