/libcore/luni/src/test/java/libcore/java/text/ |
H A D | OldFormatTest.java | 32 FieldPosition pos) { 39 public Object parseObject(String source, ParsePosition pos) { argument 31 format(Object obj, StringBuffer toAppendTo, FieldPosition pos) argument
|
H A D | OldDateFormatTest.java | 40 public Date parse(String source, ParsePosition pos) { argument
|
/libcore/ojluni/src/main/java/java/io/ |
H A D | StringBufferInputStream.java | 58 protected int pos; field in class:StringBufferInputStream 92 return (pos < count) ? (buffer.charAt(pos++) & 0xFF) : -1; 118 if (pos >= count) { 121 if (pos + len > count) { 122 len = count - pos; 130 b[off++] = (byte)s.charAt(pos++); 147 if (n > count - pos) { 148 n = count - pos; 150 pos [all...] |
H A D | ByteArrayInputStream.java | 51 * stream; element <code>buf[pos]</code> is 61 * will be <code>buf[pos]</code>. 63 protected int pos; field in class:ByteArrayInputStream 96 * The initial value of <code>pos</code> 105 this.pos = 0; 112 * buffer array. The initial value of <code>pos</code> 125 this.pos = offset; 144 return (pos < count) ? (buf[pos++] & 0xff) : -1; 150 * If <code>pos</cod [all...] |
H A D | BufferedInputStream.java | 90 * than <code>count</code>, then <code>buf[pos]</code> 99 protected int pos; field in class:BufferedInputStream 102 * The value of the <code>pos</code> field at the time the last 106 * in the range <code>-1</code> through <code>pos</code>. 115 * through <code>buf[pos-1]</code> must remain 119 * of <code>count</code>, <code>pos</code>, 122 * between <code>pos</code> and <code>markpos</code> 126 * @see java.io.BufferedInputStream#pos 134 * Whenever the difference between <code>pos</code> 203 * hence pos > coun [all...] |
H A D | CharArrayReader.java | 40 protected int pos; field in class:CharArrayReader 57 this.pos = 0; 84 this.pos = offset; 103 if (pos >= count) 106 return buf[pos++]; 130 if (pos >= count) { 133 if (pos + len > count) { 134 len = count - pos; 139 System.arraycopy(buf, pos, b, off, len); 140 pos [all...] |
H A D | PushbackInputStream.java | 61 * be read. When the buffer is empty, <code>pos</code> is equal to 62 * <code>buf.length</code>; when the buffer is full, <code>pos</code> is 67 protected int pos; field in class:PushbackInputStream 97 this.pos = size; 136 if (pos < buf.length) { 137 return buf[pos++] & 0xff; 175 int avail = buf.length - pos; 180 System.arraycopy(buf, pos, b, off, avail); 181 pos += avail; 208 if (pos [all...] |
H A D | PushbackReader.java | 43 private int pos; field in class:PushbackReader 58 this.pos = size; 87 if (pos < buf.length) 88 return buf[pos++]; 118 int avail = buf.length - pos; 122 System.arraycopy(buf, pos, cbuf, off, avail); 123 pos += avail; 154 if (pos == 0) 156 buf[--pos] = (char) c; 177 if (len > pos) [all...] |
/libcore/support/src/test/java/tests/support/ |
H A D | Support_ASimpleInputStream.java | 18 public int pos; field in class:Support_ASimpleInputStream 36 pos = 0; 41 pos = 0; 59 return len - pos; 67 if (pos < len) { 68 int res = buf[pos]; 69 pos++;
|
H A D | Support_ASimpleOutputStream.java | 18 public int pos; field in class:Support_ASimpleOutputStream 36 pos = 0; 82 if (pos < size) { 83 buf[pos] = (byte)(oneByte & 255); 84 pos++; 91 byte[] toReturn = new byte[pos]; 92 System.arraycopy(buf, 0, toReturn, 0, pos); 97 return new String(buf, 0, pos);
|
H A D | Support_ASimpleReader.java | 18 public int pos; field in class:Support_ASimpleReader 36 pos = 0; 52 return len > pos; 60 int available = len - pos; 63 System.arraycopy(buf, pos, dest, offset, readable); 64 pos += readable;
|
H A D | Support_ASimpleWriter.java | 18 public int pos; field in class:Support_ASimpleWriter 36 pos = 0; 63 System.arraycopy(src, offset, buf, pos, count); 64 pos += count; 66 pos = size; 72 byte[] toReturn = new byte[pos]; 73 System.arraycopy(buf, 0, toReturn, 0, pos); 78 return new String(buf, 0, pos);
|
H A D | Support_StringReader.java | 28 private int pos = 0; field in class:Support_StringReader 84 markpos = pos; 121 if (pos != count) { 122 return str.charAt(pos++); 154 if (pos == this.count) { 157 int end = pos + count > this.count ? this.count : pos 159 str.getChars(pos, end, buf, offset); 160 int read = end - pos; 161 pos [all...] |
/libcore/ojluni/src/main/java/java/sql/ |
H A D | Blob.java | 78 * consecutive bytes starting at position <code>pos</code>. 80 * @param pos the ordinal position of the first byte in the 88 * byte at position <code>pos</code> 90 * <code>BLOB</code> value; if pos is less than 1 or length is 97 byte[] getBytes(long pos, int length) throws SQLException; argument 156 * <code>pos</code>, and returns the number of bytes written. 159 * <code>pos</code>. If the end of the <code>Blob</code> value is reached 163 * <b>Note:</b> If the value specified for <code>pos</code> 169 * @param pos the position in the <code>BLOB</code> object at which 175 * <code>BLOB</code> value or if pos i 181 setBytes(long pos, byte[] bytes) argument 217 setBytes(long pos, byte[] bytes, int offset, int len) argument 246 setBinaryStream(long pos) argument 303 getBinaryStream(long pos, long length) argument [all...] |
H A D | Clob.java | 79 * <code>pos</code> and has up to <code>length</code> consecutive 82 * @param pos the first character of the substring to be extracted. 89 * <code>CLOB</code> value; if pos is less than 1 or length is 95 String getSubString(long pos, int length) throws SQLException; argument 140 * <code>CLOB</code> value or if pos is less than 1 171 * <code>pos</code>. The string will overwrite the existing characters 173 * <code>pos</code>. If the end of the <code>Clob</code> value is reached 177 * <b>Note:</b> If the value specified for <code>pos</code> 183 * @param pos the position at which to start writing to the <code>CLOB</code> 190 * <code>CLOB</code> value or if pos i 196 setString(long pos, String str) argument 228 setString(long pos, String str, int offset, int len) argument 257 setAsciiStream(long pos) argument 287 setCharacterStream(long pos) argument 346 getCharacterStream(long pos, long length) argument [all...] |
/libcore/ojluni/src/main/java/sun/nio/ch/ |
H A D | FileDispatcher.java | 43 abstract int lock(FileDescriptor fd, boolean blocking, long pos, long size, argument 46 abstract void release(FileDescriptor fd, long pos, long size) argument
|
/libcore/luni/src/main/java/libcore/io/ |
H A D | Base64.java | 120 int[] pos = new int[1]; 123 while (pos[0] < inLength) { 129 byte c = getNextByte(in, pos, inLength); 142 return checkNoTrailingAndReturn(output, in, pos[0], inLength); 145 pos[0]++; 146 c = getNextByte(in, pos, inLength); 149 return checkNoTrailingAndReturn(output, in, pos[0], inLength); 154 return checkNoTrailingAndReturn(output, in, pos[0], inLength); 169 return checkNoTrailingAndReturn(output, in, pos[0], inLength); 174 pos[ 204 getNextByte(byte[] in, int[] pos, int inLength) argument [all...] |
/libcore/luni/src/test/java/libcore/java/io/ |
H A D | OldByteArrayInputStreamTest.java | 58 assertEquals(444, SubByteArrayInputStream.pos); 66 public static int mark, pos, count; field in class:OldByteArrayInputStreamTest.SubByteArrayInputStream 73 pos = super.pos;
|
/libcore/ojluni/src/main/java/java/nio/ |
H A D | ByteBufferAsDoubleBuffer.java | 38 int mark, int pos, int lim, int cap, 40 super(mark, pos, lim, cap); 59 int pos = this.position(); 61 assert (pos <= lim); 62 int rem = (pos <= lim ? lim - pos : 0); 63 int off = (pos << 3) + offset; 135 int pos = position(); 137 assert (pos <= lim); 138 int rem = (pos < 37 ByteBufferAsDoubleBuffer(ByteBuffer bb, int mark, int pos, int lim, int cap, int off, ByteOrder order) argument [all...] |
H A D | ByteBufferAsFloatBuffer.java | 37 int mark, int pos, int lim, int cap, 39 super(mark, pos, lim, cap); 58 int pos = this.position(); 60 assert (pos <= lim); 61 int rem = (pos <= lim ? lim - pos : 0); 62 int off = (pos << 2) + offset; 134 int pos = position(); 136 assert (pos <= lim); 137 int rem = (pos < 36 ByteBufferAsFloatBuffer(ByteBuffer bb, int mark, int pos, int lim, int cap, int off, ByteOrder order) argument [all...] |
H A D | ByteBufferAsIntBuffer.java | 37 int mark, int pos, int lim, int cap, 39 super(mark, pos, lim, cap); 58 int pos = this.position(); 60 assert (pos <= lim); 61 int rem = (pos <= lim ? lim - pos : 0); 62 int off = (pos << 2) + offset; 134 int pos = position(); 136 assert (pos <= lim); 137 int rem = (pos < 36 ByteBufferAsIntBuffer(ByteBuffer bb, int mark, int pos, int lim, int cap, int off, ByteOrder order) argument [all...] |
H A D | ByteBufferAsLongBuffer.java | 37 int mark, int pos, int lim, int cap, 39 super(mark, pos, lim, cap); 58 int pos = this.position(); 60 assert (pos <= lim); 61 int rem = (pos <= lim ? lim - pos : 0); 62 int off = (pos << 3) + offset; 134 int pos = position(); 136 assert (pos <= lim); 137 int rem = (pos < 36 ByteBufferAsLongBuffer(ByteBuffer bb, int mark, int pos, int lim, int cap, int off, ByteOrder order) argument [all...] |
H A D | ByteBufferAsShortBuffer.java | 37 int mark, int pos, int lim, int cap, 39 super(mark, pos, lim, cap); 58 int pos = this.position(); 60 assert (pos <= lim); 61 int rem = (pos <= lim ? lim - pos : 0); 62 int off = (pos << 1) + offset; 133 int pos = position(); 135 assert (pos <= lim); 136 int rem = (pos < 36 ByteBufferAsShortBuffer(ByteBuffer bb, int mark, int pos, int lim, int cap, int off, ByteOrder order) argument [all...] |
H A D | HeapDoubleBuffer.java | 53 int mark, int pos, int lim, int cap, 55 this(buf, mark, pos, lim, cap, off, false); 69 int mark, int pos, int lim, int cap, 71 super(mark, pos, lim, cap, buf, off); 52 HeapDoubleBuffer(double[] buf, int mark, int pos, int lim, int cap, int off) argument 68 HeapDoubleBuffer(double[] buf, int mark, int pos, int lim, int cap, int off, boolean isReadOnly) argument
|
H A D | HeapFloatBuffer.java | 63 int mark, int pos, int lim, int cap, 65 this(buf, mark, pos, lim, cap, off, false); 69 int mark, int pos, int lim, int cap, 71 super(mark, pos, lim, cap, buf, off); 62 HeapFloatBuffer(float[] buf, int mark, int pos, int lim, int cap, int off) argument 68 HeapFloatBuffer(float[] buf, int mark, int pos, int lim, int cap, int off, boolean isReadOnly) argument
|