Searched refs:pos (Results 1 - 25 of 130) sorted by relevance

123456

/dalvik/libcore/security/src/main/java/org/apache/harmony/security/x509/
H A DDNParser.java52 protected int pos, beg, end; field in class:DNParser
83 for (; pos < length && chars[pos] == ' '; pos++) {
85 if (pos == length) {
90 beg = pos;
93 pos++;
94 for (; pos < length && chars[pos] != '=' && chars[pos] !
[all...]
/dalvik/libcore/luni/src/main/java/java/io/
H A DByteArrayInputStream.java38 protected int pos; field in class:ByteArrayInputStream
82 pos = offset;
90 * @return {@code count - pos}
94 return count - pos;
120 mark = pos;
146 return pos < count ? buf[pos++] & 0xFF : -1;
189 if (this.pos >= this.count) {
196 int copylen = this.count - pos < length ? this.count - pos
[all...]
H A DStringBufferInputStream.java43 protected int pos; field in class:StringBufferInputStream
65 return count - pos;
78 return pos < count ? buffer.charAt(pos++) & 0xFF : -1;
108 if (pos >= count) {
129 int copylen = count - pos < length ? count - pos : length;
131 b[offset + i] = (byte) buffer.charAt(pos + i);
133 pos += copylen;
142 pos
[all...]
H A DBufferedReader.java53 * mark pos end</pre>
55 * last readable character. When {@code pos == end}, the buffer is empty and
58 * <p>Mark is the value pos will be set to on calls to {@link #reset}. Its
59 * value is in the range {@code [0...pos]}. If the mark is {@code -1}, the
62 * <p>MarkLimit limits the distance between the mark and the pos. When this
69 private int pos; field in class:BufferedReader
145 * the buffer still contains data; ie. if {@code pos < end}.
151 // assert(pos == end);
153 if (mark == -1 || (pos - mark >= markLimit)) {
158 pos
[all...]
H A DStringReader.java33 private int pos; field in class:StringReader
94 markpos = pos;
125 if (pos != count) {
126 return str.charAt(pos++);
174 if (pos == this.count) {
177 int end = pos + len > this.count ? this.count : pos + len;
178 str.getChars(pos, end, buf, offset);
179 int read = end - pos;
180 pos
[all...]
H A DCharArrayReader.java36 protected int pos; field in class:CharArrayReader
87 this.pos = offset;
144 markedPos = pos;
177 if (pos == count) {
180 return buf[pos++];
225 if (pos < this.count) {
226 int bytesRead = pos + len > this.count ? this.count - pos : len;
227 System.arraycopy(this.buf, pos, buffer, offset, bytesRead);
228 pos
[all...]
H A DBufferedWriter.java52 private int pos; field in class:BufferedWriter
166 if (pos > 0) {
167 out.write(buf, 0, pos);
169 pos = 0;
230 if (pos == 0 && count >= this.buf.length) {
234 int available = this.buf.length - pos;
239 System.arraycopy(cbuf, offset, this.buf, pos, available);
240 pos += available;
242 if (pos == this.buf.length) {
244 pos
[all...]
H A DPushbackInputStream.java40 protected int pos; field in class:PushbackInputStream
53 pos = 1;
73 pos = size;
81 return buf.length - pos + in.available();
133 if (pos < buf.length) {
134 return (buf[pos++] & 0xFF);
185 if (pos < buf.length) {
186 copyLength = (buf.length - pos >= length) ? length : buf.length
187 - pos;
188 System.arraycopy(buf, pos, buffe
[all...]
H A DBufferedInputStream.java67 protected int pos; field in class:BufferedInputStream
133 return count - pos + localIn.available();
155 if (markpos == -1 || (pos - markpos >= marklimit)) {
160 pos = 0;
181 pos -= markpos;
183 int bytesread = localIn.read(localBuf, pos, localBuf.length - pos);
184 count = bytesread <= 0 ? pos : pos + bytesread;
204 markpos = pos;
[all...]
/dalvik/libcore/support/src/test/java/tests/support/
H A DSupport_BitSet.java58 * Clears the bit at index pos. Grows the BitSet if pos > size.
60 * @param pos
64 * when pos < 0
67 public void clear(int pos) { argument
68 if (pos >= 0) {
69 if (pos < bits.length * ELM_SIZE) {
70 bits[pos / ELM_SIZE] &= ~(1L << (pos % ELM_SIZE));
72 growBits(pos); // Bi
92 get(int pos) argument
109 growBits(int pos) argument
127 set(int pos) argument
[all...]
H A DSupport_ASimpleOutputStream.java18 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 DSupport_StringReader.java28 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...]
H A DSupport_ASimpleInputStream.java18 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 DSupport_ASimpleReader.java18 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 DSupport_ASimpleWriter.java18 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);
/dalvik/libcore/sql/src/main/java/SQLite/
H A DBlob.java22 private int pos; field in class:BlobR
30 this.pos = 0;
35 int ret = blob.size - pos;
69 pos = 0;
77 long ret = pos + n;
80 pos = 0;
83 pos = blob.size;
85 pos = (int) ret;
97 int n = blob.read(b, 0, pos, b.length);
99 pos
164 private int pos; field in class:BlobW
291 write(byte[] b, int off, int pos, int len) argument
302 read(byte[] b, int off, int pos, int len) argument
[all...]
/dalvik/libcore/luni/src/test/java/com/google/coretests/
H A DStatsStore.java76 int pos;
86 pos = 1;
87 a.id = row.getInt(pos); pos++;
88 a.bestRes = row.getInt(pos); pos++;
89 a.lastBestAt = row.getLong(pos); pos++;
90 a.lastRes = row.getInt(pos); pos
[all...]
/dalvik/libcore/json/src/main/java/org/json/
H A DJSONTokener.java71 private int pos; field in class:JSONTokener
106 pos--;
112 while (pos < in.length()) {
113 int c = in.charAt(pos++);
122 if (pos == in.length()) {
126 char peek = in.charAt(pos);
130 pos++;
131 int commentEnd = in.indexOf("*/", pos);
135 pos = commentEnd + 2;
140 pos
[all...]
/dalvik/libcore/sql/src/main/java/java/sql/
H A DBlob.java48 * @param pos
54 * at {@code pos} and is up to {@code length} bytes long.
58 public byte[] getBytes(long pos, int length) throws SQLException; argument
109 * @param pos
118 public OutputStream setBinaryStream(long pos) throws SQLException; argument
124 * @param pos
135 public int setBytes(long pos, byte[] theBytes) throws SQLException; argument
141 * @param pos
157 public int setBytes(long pos, byte[] theBytes, int offset, int len) argument
H A DClob.java60 * @param pos
68 public String getSubString(long pos, int length) throws SQLException; argument
114 * @param pos
121 public OutputStream setAsciiStream(long pos) throws SQLException; argument
127 * @param pos
134 public Writer setCharacterStream(long pos) throws SQLException; argument
140 * @param pos
148 public int setString(long pos, String str) throws SQLException; argument
154 * @param pos
166 public int setString(long pos, Strin argument
[all...]
/dalvik/libcore/archive/src/main/java/java/util/jar/
H A DInitManifest.java34 private int pos; field in class:InitManifest
63 int mark = pos;
89 chunks.put(entryNameValue, new Manifest.Chunk(mark, pos));
90 mark = pos;
98 return pos;
123 private byte[] wrap(int mark, int pos) { argument
124 byte[] buffer = new byte[pos - mark];
125 System.arraycopy(buf, mark, buffer, 0, pos - mark);
131 int mark = pos;
133 while (pos < bu
208 decode(int mark, int pos, boolean endOfInput) argument
[all...]
/dalvik/libcore/x-net/src/main/java/org/apache/harmony/xnet/provider/jsse/
H A DSSLEngineAppData.java62 int pos = 0;
69 if (len - pos < rem) {
71 dsts[i].put(buffer, pos, len - pos);
72 pos = len;
77 dsts[i].put(buffer, pos, rem);
78 pos += rem;
80 if (pos != len) {
H A DPRF.java78 int pos = 0;
81 while (pos < out.length) {
90 if (pos + 16 > out.length) {
91 System.arraycopy(digest, 0, out, pos, out.length - pos);
92 pos = out.length;
94 System.arraycopy(digest, 0, out, pos, 16);
95 pos += 16;
158 int pos = 0;
161 while (pos < ou
[all...]
/dalvik/libcore/luni/src/test/java/tests/api/java/io/
H A DPipedInputStreamTest.java33 PipedOutputStream pos; field in class:PipedInputStreamTest.PWriter
39 pos.write(bytes);
50 pos = pout;
58 PipedOutputStream pos; field in class:PipedInputStreamTest.PWriter2
64 pos.write(42);
65 pos.close();
76 pos = pout;
86 PipedOutputStream pos; field in class:PipedInputStreamTest
113 pos = new PipedOutputStream(new PipedInputStream());
116 pis = new PipedInputStream(pos);
[all...]
/dalvik/libcore/text/src/main/java/java/text/
H A DParsePosition.java56 ParsePosition pos = (ParsePosition) object;
57 return currentPosition == pos.currentPosition
58 && errorIndex == pos.errorIndex;

Completed in 400 milliseconds

123456