/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/ojluni/src/main/java/java/nio/channels/ |
H A D | FileLock.java | 61 * held, the type and validity of the lock, and the position and size of the 107 * certain position, often 2<sup>30</sup> or 2<sup>31</sup>. In general, great 119 private final long position; field in class:FileLock 129 * @param position 130 * The position within the file at which the locked region starts; 135 * <tt>position</tt> + <tt>size</tt> must be non-negative 145 long position, long size, boolean shared) 147 if (position < 0) 148 throw new IllegalArgumentException("Negative position"); 151 if (position 144 FileLock(FileChannel channel, long position, long size, boolean shared) argument 193 public final long position() { method in class:FileLock 226 overlaps(long position, long size) argument [all...] |
H A D | SeekableByteChannel.java | 32 * A byte channel that maintains a current <i>position</i> and allows the 33 * position to be changed. 37 * written. The current position can be {@link #position() <i>queried</i>} and 38 * {@link #position(long) <i>modified</i>}. The channel also provides access to 43 * <p> The {@link #position(long) position} and {@link #truncate truncate} methods 59 * <p> Bytes are read starting at this channel's current position, and 60 * then the position is updated with the number of bytes actually read. 70 * <p> Bytes are written starting at this channel's current position 92 long position() throws IOException; method in interface:SeekableByteChannel 118 SeekableByteChannel position(long newPosition) throws IOException; method in interface:SeekableByteChannel [all...] |
H A D | FileChannel.java | 40 * a file. It has a current <i>position</i> within its file which can 41 * be both {@link #position() <i>queried</i>} and {@link #position(long) 58 * position in a file in a way that does not affect the channel's current 59 * position. </p></li> 84 * channel's position or can change its file's size may be in progress at any 87 * operations, in particular those that take an explicit position, may proceed 110 * method returned the channel. Changing the channel's position, whether 111 * explicitly or by reading or writing bytes, will change the file position of 136 * operation first advances the position t 255 public abstract long position() throws IOException; method in class:FileChannel 283 public abstract FileChannel position(long newPosition) throws IOException; method in class:FileChannel 441 transferTo(long position, long count, WritableByteChannel target) argument 508 transferFrom(ReadableByteChannel src, long position, long count) argument 555 read(ByteBuffer dst, long position) argument 600 write(ByteBuffer src, long position) argument 737 map(MapMode mode, long position, long size) argument 833 lock(long position, long size, boolean shared) argument 944 tryLock(long position, long size, boolean shared) argument [all...] |
/libcore/ojluni/src/main/java/java/text/ |
H A D | CharacterIterator.java | 82 * Traverse both forward and backward from a given position in the text. 116 * Sets the position to getBeginIndex() and returns the character at that 117 * position. 124 * Sets the position to getEndIndex()-1 (getEndIndex() if the text is empty) 125 * and returns the character at that position. 132 * Gets the character at the current position (as returned by getIndex()). 133 * @return the character at the current position or DONE if the current 134 * position is off the end of the text. 144 * @return the character at the new position or DONE if the new 145 * position i 166 setIndex(int position) argument [all...] |
/libcore/ojluni/src/main/java/sun/nio/ch/ |
H A D | FileLockImpl.java | 36 FileLockImpl(FileChannel channel, long position, long size, boolean shared) argument 38 super(channel, position, size, shared);
|
H A D | NativeDispatcher.java | 43 * position sensitive methods. 49 int pread(FileDescriptor fd, long address, int len, long position) argument 61 int pwrite(FileDescriptor fd, long address, int len, long position) argument
|
H A D | FileLockTable.java | 152 checkList(list, fl.position(), fl.size()); 248 private void checkList(List<FileLockReference> list, long position, long size) argument 254 if (fl != null && fl.overlaps(position, size))
|
H A D | IOUtil.java | 46 static int write(FileDescriptor fd, ByteBuffer src, long position, argument 51 return writeFromNativeBuffer(fd, src, position, nd); 54 int pos = src.position(); 63 src.position(pos); 65 int n = writeFromNativeBuffer(fd, bb, position, nd); 68 src.position(pos + n); 77 long position, NativeDispatcher nd) 80 int pos = bb.position(); 88 if (position != -1) { 91 rem, position); 76 writeFromNativeBuffer(FileDescriptor fd, ByteBuffer bb, long position, NativeDispatcher nd) argument 185 read(FileDescriptor fd, ByteBuffer dst, long position, NativeDispatcher nd) argument 207 readIntoNativeBuffer(FileDescriptor fd, ByteBuffer bb, long position, NativeDispatcher nd) argument [all...] |
H A D | IOVecWrapper.java | 57 // Buffers and position/remaining corresponding to elements in iovec array 59 private final int[] position; field in class:IOVecWrapper 88 this.position = new int[size]; 112 this.position[i] = pos; 125 return position[i];
|
/libcore/luni/src/main/java/libcore/io/ |
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/ojluni/src/main/java/java/sql/ |
H A D | Blob.java | 50 * determining the position of a pattern of bytes within a 78 * consecutive bytes starting at position <code>pos</code>. 80 * @param pos the ordinal position of the first byte in the 82 * position 1 88 * byte at position <code>pos</code> 114 * Retrieves the byte position at which the specified byte array 117 * search for <code>pattern</code> begins at position 121 * @param start the position at which to begin searching; the 122 * first position is 1 123 * @return the position a 130 long position(byte pattern[], long start) throws SQLException; method in interface:Blob 149 long position(Blob pattern, long start) throws SQLException; method in interface:Blob [all...] |
H A D | Clob.java | 78 * The substring begins at position 83 * The first character is at position 1. 129 * Retrieves the character position at which the specified substring 132 * begins at position <code>start</code>. 135 * @param start the position at which to begin searching; the first position 137 * @return the position at which the substring appears or -1 if it is not 138 * present; the first position is 1 145 long position(String searchstr, long start) throws SQLException; method in interface:Clob 148 * Retrieves the character position a 164 long position(Clob searchstr, long start) throws SQLException; method in interface:Clob [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/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/ojluni/src/main/java/sun/security/util/ |
H A D | BitArray.java | 49 private static int position(int idx) { // bits big-endian in each unit method in class:BitArray 132 return (repn[subscript(index)] & position(index)) != 0; 144 int bit = position(index);
|
/libcore/ojluni/src/main/java/java/nio/ |
H A D | Buffer.java | 36 * buffer are its capacity, limit, and position: </p> 47 * <p> A buffer's <i>position</i> is the index of the next element to be 48 * read or written. A buffer's position is never negative and is never 64 * at the current position and then increment the position by the number of 71 * affect the position. Absolute <i>get</i> and <i>put</i> operations throw 79 * current position. 84 * <p> A buffer's <i>mark</i> is the index to which its position will be reset 87 * than the position. If the mark is defined then it is discarded when the 88 * position o 186 int position = 0; field in class:Buffer 234 public final int position() { method in class:Buffer 247 public final Buffer position(int newPosition) { method in class:Buffer [all...] |
/libcore/ojluni/src/main/java/sun/security/x509/ |
H A D | KeyUsageExtension.java | 83 * @param position the position in the bit string to check. 85 private boolean isSet(int position) { argument 86 return bitString[position]; 90 * Set the bit at the specified position. 92 private void set(int position, boolean val) { argument 94 if (position >= bitString.length) { 95 boolean[] tmp = new boolean[position+1]; 99 bitString[position] = val;
|
H A D | NetscapeCertTypeExtension.java | 93 MapEntry(String name, int position) { argument 95 mPosition = position; 136 * @param position the position in the bit string to check. 138 private boolean isSet(int position) { argument 139 return bitString[position]; 143 * Set the bit at the specified position. 145 private void set(int position, boolean val) { argument 147 if (position >= bitString.length) { 148 boolean[] tmp = new boolean[position [all...] |
H A D | ReasonFlags.java | 99 * @param position the position in the bit string to check. 101 private boolean isSet(int position) { argument 102 return bitString[position]; 106 * Set the bit at the specified position. 108 private void set(int position, boolean val) { argument 110 if (position >= bitString.length) { 111 boolean[] tmp = new boolean[position+1]; 115 bitString[position] = val;
|
/libcore/ojluni/src/main/native/ |
H A D | FileChannelImpl.c | 159 jlong position, jlong count, 163 off64_t offset = (off64_t)position; 184 sfv.sfv_off = (off64_t)position; 214 result = sendfile(srcFD, dstFD, position, &numBytes, NULL, 0); 157 FileChannelImpl_transferTo0(JNIEnv *env, jobject this, jint srcFD, jlong position, jlong count, jint dstFD) argument
|
/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);
|
/libcore/luni/src/test/java/libcore/java/text/ |
H A D | OldNumberFormatTest.java | 153 void parseObjectTest(NumberFormat nf, String sourseStr, ParsePosition position, argument 155 int indexBefore = position.getIndex(); 156 Object result = nf.parseObject(sourseStr, position); 159 assertEquals(outIndex, position.getIndex()); 162 assertEquals(indexBefore, position.getIndex()); 163 assertEquals(outIndex, position.getErrorIndex());
|