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

1234567891011>>

/openjdk7/jdk/src/solaris/classes/sun/java2d/jules/
H A DTrapezoidList.java67 private final int getTrapStartAddresse(int pos) { argument
68 return TRAP_START_INDEX + TRAP_SIZE * pos;
71 public final int getTop(int pos) { argument
72 return trapArray[getTrapStartAddresse(pos) + 0];
75 public final int getBottom(int pos) { argument
76 return trapArray[getTrapStartAddresse(pos) + 1];
79 public final int getP1XLeft(int pos) { argument
80 return trapArray[getTrapStartAddresse(pos) + 2];
83 public final int getP1YLeft(int pos) { argument
84 return trapArray[getTrapStartAddresse(pos)
87 getP2XLeft(int pos) argument
91 getP2YLeft(int pos) argument
95 getP1XRight(int pos) argument
99 getP1YRight(int pos) argument
103 getP2XRight(int pos) argument
107 getP2YRight(int pos) argument
[all...]
/openjdk7/jdk/src/share/classes/com/sun/tools/hat/internal/parser/
H A DReadBuffer.java45 public void get(long pos, byte[] buf) throws IOException; argument
46 public char getChar(long pos) throws IOException; argument
47 public byte getByte(long pos) throws IOException; argument
48 public short getShort(long pos) throws IOException; argument
49 public int getInt(long pos) throws IOException; argument
50 public long getLong(long pos) throws IOException; argument
H A DFileReadBuffer.java51 private void seek(long pos) throws IOException { argument
52 file.getChannel().position(pos);
55 public synchronized void get(long pos, byte[] buf) throws IOException { argument
56 seek(pos);
60 public synchronized char getChar(long pos) throws IOException { argument
61 seek(pos);
65 public synchronized byte getByte(long pos) throws IOException { argument
66 seek(pos);
70 public synchronized short getShort(long pos) throws IOException { argument
71 seek(pos);
75 getInt(long pos) argument
80 getLong(long pos) argument
[all...]
H A DMappedReadBuffer.java80 private void seek(long pos) throws IOException { argument
81 assert pos <= Integer.MAX_VALUE : "position overflow";
82 buf.position((int)pos);
85 public synchronized void get(long pos, byte[] res) throws IOException { argument
86 seek(pos);
90 public synchronized char getChar(long pos) throws IOException { argument
91 seek(pos);
95 public synchronized byte getByte(long pos) throws IOException { argument
96 seek(pos);
100 public synchronized short getShort(long pos) throw argument
105 getInt(long pos) argument
110 getLong(long pos) argument
[all...]
/openjdk7/jdk/src/share/classes/java/text/
H A DStringCharacterIterator.java57 // invariant: begin <= pos <= end
58 private int pos; field in class:StringCharacterIterator
72 * @param pos Initial iterator position
74 public StringCharacterIterator(String text, int pos) argument
76 this(text, 0, text.length(), pos);
86 * @param pos Initial iterator position
88 public StringCharacterIterator(String text, int begin, int end, int pos) { argument
96 if (pos < begin || pos > end)
101 this.pos
[all...]
/openjdk7/jdk/src/share/classes/java/awt/font/
H A DCharArrayIterator.java33 private int pos; field in class:CharArrayIterator
54 pos = 0;
67 pos = chars.length-1;
70 pos = 0;
83 if (pos >= 0 && pos < chars.length) {
84 return chars[pos];
101 if (pos < chars.length-1) {
102 pos++;
103 return chars[pos];
[all...]
/openjdk7/jdk/src/share/classes/java/io/
H A DStringBufferInputStream.java58 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 DByteArrayInputStream.java51 * 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 DCharArrayReader.java40 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...]
/openjdk7/langtools/src/share/classes/com/sun/source/tree/
H A DLineMap.java63 * @param pos character offset of the position
64 * @return the line number of pos (first line is 1)
66 long getLineNumber(long pos); argument
73 * @param pos character offset of the position
74 * @return the tab-expanded column number of pos (first column is 1)
76 long getColumnNumber(long pos); argument
/openjdk7/jdk/src/share/classes/sun/misc/
H A DIOUtils.java54 int pos = 0;
55 while (pos < length) {
57 if (pos >= output.length) { // Only expand when there's no room
58 bytesToRead = Math.min(length - pos, output.length + 1024);
59 if (output.length < pos + bytesToRead) {
60 output = Arrays.copyOf(output, pos + bytesToRead);
63 bytesToRead = output.length - pos;
65 int cc = is.read(output, pos, bytesToRead);
70 if (output.length != pos) {
71 output = Arrays.copyOf(output, pos);
[all...]
/openjdk7/jdk/src/share/classes/sun/reflect/
H A DByteVectorImpl.java30 private int pos; field in class:ByteVectorImpl
38 pos = -1;
42 return pos + 1;
48 pos = index;
56 pos = index;
62 if (++pos >= data.length) {
63 resize(pos);
65 data[pos] = value;
69 if (pos != data.length - 1) {
70 byte[] newData = new byte[pos
[all...]
/openjdk7/jdk/src/share/classes/com/sun/jndi/dns/
H A DHeader.java81 int pos = 0; // current offset into msg
88 xid = getShort(msg, pos);
89 pos += 2;
92 short flags = (short) getShort(msg, pos);
93 pos += 2;
103 numQuestions = getShort(msg, pos);
104 pos += 2;
105 numAnswers = getShort(msg, pos);
106 pos += 2;
107 numAuthorities = getShort(msg, pos);
122 getShort(byte[] msg, int pos) argument
[all...]
H A DResourceRecord.java239 int pos = offset; // index of next unread octet
242 pos = decodeName(pos, name);
244 rrtype = getUShort(pos); // TYPE
251 pos += 2;
253 rrclass = getUShort(pos); // CLASS
260 pos += 2;
263 ttl = getInt(pos); // TTL
264 pos += 4;
266 rdlen = getUShort(pos); // RDLENGT
287 getUByte(int pos) argument
295 getUShort(int pos) argument
304 getInt(int pos) argument
312 getUInt(int pos) argument
319 decodeName(int pos) argument
329 decodeName(int pos, DnsName n) argument
355 decodeRdata(int pos) argument
389 decodeMx(int pos) argument
399 decodeSoa(int pos) argument
424 decodeSrv(int pos) argument
439 decodeNaptr(int pos) argument
460 decodeTxt(int pos) argument
476 decodeHinfo(int pos) argument
492 decodeCharString(int pos, StringBuffer buf) argument
516 decodeA(int pos) argument
528 decodeAAAA(int pos) argument
[all...]
/openjdk7/hotspot/src/cpu/sparc/vm/
H A DjniTypes_sparc.hpp38 // I.e., they are functionally 'push' operations if they have a 'pos'
48 static inline void put_int2 (jint *from, jint *to, int& pos) { put_int2 (from, (jint *)((intptr_t *)to + pos)); pos += 2; } argument
50 static inline void put_int2r(jint *from, jint *to, int& pos) { put_int2r(from, (jint *)((intptr_t *)to + pos)); pos += 2; } argument
55 static inline void put_int(jint from, intptr_t *to, int& pos) { *(jint *)(to + pos++) = from; } argument
56 static inline void put_int(jint *from, intptr_t *to, int& pos) { *(jin argument
61 put_long(jlong from, intptr_t *to, int& pos) argument
62 put_long(jlong *from, intptr_t *to, int& pos) argument
67 put_long(jlong from, intptr_t *to, int& pos) argument
68 put_long(jlong *from, intptr_t *to, int& pos) argument
73 put_obj(oop from, intptr_t *to, int& pos) argument
74 put_obj(oop *from, intptr_t *to, int& pos) argument
78 put_float(jfloat from, intptr_t *to, int& pos) argument
79 put_float(jfloat *from, intptr_t *to, int& pos) argument
84 put_double(jdouble from, intptr_t *to, int& pos) argument
85 put_double(jdouble *from, intptr_t *to, int& pos) argument
89 put_double(jdouble from, intptr_t *to, int& pos) argument
90 put_double(jdouble *from, intptr_t *to, int& pos) argument
[all...]
/openjdk7/hotspot/src/cpu/zero/vm/
H A DjniTypes_zero.hpp38 // I.e., they are functionally 'push' operations if they have a 'pos'
48 static inline void put_int2 (jint *from, jint *to, int& pos) { put_int2 (from, (jint *)((intptr_t *)to + pos)); pos += 2; } argument
50 static inline void put_int2r(jint *from, jint *to, int& pos) { put_int2r(from, (jint *)((intptr_t *)to + pos)); pos += 2; } argument
55 static inline void put_int(jint from, intptr_t *to, int& pos) { *(jint *)(to + pos++) = from; } argument
56 static inline void put_int(jint *from, intptr_t *to, int& pos) { *(jin argument
61 put_long(jlong from, intptr_t *to, int& pos) argument
62 put_long(jlong *from, intptr_t *to, int& pos) argument
67 put_long(jlong from, intptr_t *to, int& pos) argument
68 put_long(jlong *from, intptr_t *to, int& pos) argument
73 put_obj(oop from, intptr_t *to, int& pos) argument
74 put_obj(oop *from, intptr_t *to, int& pos) argument
78 put_float(jfloat from, intptr_t *to, int& pos) argument
79 put_float(jfloat *from, intptr_t *to, int& pos) argument
84 put_double(jdouble from, intptr_t *to, int& pos) argument
85 put_double(jdouble *from, intptr_t *to, int& pos) argument
89 put_double(jdouble from, intptr_t *to, int& pos) argument
90 put_double(jdouble *from, intptr_t *to, int& pos) argument
[all...]
/openjdk7/jdk/src/share/classes/sun/security/jgss/
H A DGSSToken.java58 * @param pos the position at which to start writing
61 int pos) {
62 array[pos++] = (byte)(value);
63 array[pos++] = (byte)((value>>>8));
64 array[pos++] = (byte)((value>>>16));
65 array[pos++] = (byte)((value>>>24));
73 int pos) {
74 array[pos++] = (byte)((value>>>24));
75 array[pos++] = (byte)((value>>>16));
76 array[pos
60 writeLittleEndian(int value, byte[] array, int pos) argument
72 writeBigEndian(int value, byte[] array, int pos) argument
90 readLittleEndian(byte[] data, int pos, int size) argument
102 readBigEndian(byte[] data, int pos, int size) argument
134 writeInt(int val, byte[] dest, int pos) argument
160 readInt(byte[] src, int pos) argument
218 getHexBytes(byte[] bytes, int pos, int len) argument
[all...]
/openjdk7/hotspot/src/cpu/x86/vm/
H A DjniTypes_x86.hpp38 // I.e., they are functionally 'push' operations if they have a 'pos'
51 static inline void put_int2r(jint *from, intptr_t *to, int& pos) { put_int2r(from, to + pos); pos += 2; } argument
57 static inline void put_int(jint from, intptr_t *to, int& pos) { *(jint *)(to + pos++) = from; } argument
58 static inline void put_int(jint *from, intptr_t *to, int& pos) { *(jint *)(to + pos++) = *from; } argument
67 static inline void put_long(jlong from, intptr_t *to, int& pos) { argument
68 *(jlong*) (to + 1 + pos)
72 put_long(jlong *from, intptr_t *to, int& pos) argument
80 put_long(jlong from, intptr_t *to, int& pos) argument
81 put_long(jlong *from, intptr_t *to, int& pos) argument
86 put_obj(oop from, intptr_t *to, int& pos) argument
87 put_obj(oop *from, intptr_t *to, int& pos) argument
91 put_float(jfloat from, intptr_t *to, int& pos) argument
92 put_float(jfloat *from, intptr_t *to, int& pos) argument
103 put_double(jdouble from, intptr_t *to, int& pos) argument
108 put_double(jdouble *from, intptr_t *to, int& pos) argument
117 put_double(jdouble from, intptr_t *to, int& pos) argument
118 put_double(jdouble *from, intptr_t *to, int& pos) argument
[all...]
/openjdk7/jdk/src/share/classes/javax/swing/text/
H A DSegment.java134 pos = offset;
136 return array[pos];
149 pos = offset + count;
151 pos -= 1;
152 return array[pos];
165 if (count != 0 && pos < offset + count) {
166 return array[pos];
181 pos += 1;
183 if (pos >= end) {
184 pos
313 private int pos; field in class:Segment
[all...]
/openjdk7/jdk/src/macosx/native/jobjc/src/generator/java/com/apple/internal/jobjc/generator/utils/
H A DStringStream.java34 private int pos; field in class:StringStream
39 this.pos = 0;
45 public int left(){ return data.length() - pos; }
55 public char read(){ return data.charAt(pos++); }
61 String s = data.substring(pos, pos + n);
62 pos += n;
70 int ix = data.indexOf(c, pos);
72 return readN(data.indexOf(c, pos) - pos);
[all...]
/openjdk7/jdk/src/share/classes/com/sun/org/apache/xml/internal/security/utils/
H A DUnsyncByteArrayOutputStream.java40 private int pos = 0; field in class:UnsyncByteArrayOutputStream
47 int newPos = pos + arg0.length;
51 System.arraycopy(arg0, 0, buf, pos, arg0.length);
52 pos = newPos;
56 int newPos = pos + arg2;
60 System.arraycopy(arg0, arg1, buf, pos, arg2);
61 pos = newPos;
65 int newPos = pos + 1;
69 buf[pos++] = (byte)arg0;
73 byte result[] = new byte[pos];
[all...]
/openjdk7/jaxp/src/com/sun/org/apache/regexp/internal/
H A DCharacterIterator.java38 char charAt(int pos); argument
41 boolean isEnd(int pos); argument
H A DStringCharacterIterator.java52 public char charAt(int pos) argument
54 return src.charAt(pos);
58 public boolean isEnd(int pos) argument
60 return (pos >= src.length());
/openjdk7/langtools/src/share/classes/com/sun/tools/javac/model/
H A DJavacSourcePosition.java42 final int pos; field in class:JavacSourcePosition
46 int pos,
49 this.pos = pos;
50 this.lineMap = (pos != Position.NOPOS) ? lineMap : null;
58 return pos; // makes use of fact that Position.NOPOS == -1
62 return (lineMap != null) ? lineMap.getLineNumber(pos) : -1;
66 return (lineMap != null) ? lineMap.getColumnNumber(pos) : -1;
45 JavacSourcePosition(JavaFileObject sourcefile, int pos, Position.LineMap lineMap) argument
/openjdk7/langtools/src/share/classes/com/sun/javadoc/
H A DDocErrorReporter.java46 * @param pos the position item where the error occurs
50 void printError(SourcePosition pos, String msg); argument
62 * @param pos the position item where the warning occurs
66 void printWarning(SourcePosition pos, String msg); argument
78 * @param pos the position item where the message occurs
82 void printNotice(SourcePosition pos, String msg); argument

Completed in 85 milliseconds

1234567891011>>