Home
last modified time | relevance | path

Searched refs:index (Results 1 – 25 of 266) sorted by relevance

1234567891011

/libcore/luni/src/main/java/org/xml/sax/helpers/
DAttributesImpl.java107 public String getURI (int index) in getURI() argument
109 if (index >= 0 && index < length) { in getURI()
110 return data[index*5]; in getURI()
125 public String getLocalName (int index) in getLocalName() argument
127 if (index >= 0 && index < length) { in getLocalName()
128 return data[index*5+1]; in getLocalName()
143 public String getQName (int index) in getQName() argument
145 if (index >= 0 && index < length) { in getQName()
146 return data[index*5+2]; in getQName()
161 public String getType (int index) in getType() argument
[all …]
/libcore/ojluni/src/main/java/java/lang/reflect/
DArray.java178 public static Object get(Object array, int index) in get() argument
181 return ((Object[]) array)[index]; in get()
184 return ((boolean[]) array)[index] ? Boolean.TRUE : Boolean.FALSE; in get()
187 return Byte.valueOf(((byte[]) array)[index]); in get()
190 return Character.valueOf(((char[]) array)[index]); in get()
193 return Short.valueOf(((short[]) array)[index]); in get()
196 return Integer.valueOf(((int[]) array)[index]); in get()
199 return Long.valueOf(((long[]) array)[index]); in get()
202 return new Float(((float[]) array)[index]); in get()
205 return new Double(((double[]) array)[index]); in get()
[all …]
/libcore/luni/src/main/java/org/xml/sax/ext/
DAttributes2Impl.java87 public boolean isDeclared (int index) in isDeclared() argument
89 if (index < 0 || index >= getLength ()) in isDeclared()
91 "No attribute at index: " + index); in isDeclared()
92 return declared [index]; in isDeclared()
102 int index = getIndex (uri, localName); in isDeclared() local
104 if (index < 0) in isDeclared()
108 return declared [index]; in isDeclared()
118 int index = getIndex (qName); in isDeclared() local
120 if (index < 0) in isDeclared()
123 return declared [index]; in isDeclared()
[all …]
/libcore/json/src/main/java/org/json/
DJSONArray.java209 public JSONArray put(int index, boolean value) throws JSONException { in put() argument
210 return put(index, (Boolean) value); in put()
222 public JSONArray put(int index, double value) throws JSONException { in put() argument
223 return put(index, (Double) value); in put()
233 public JSONArray put(int index, int value) throws JSONException { in put() argument
234 return put(index, (Integer) value); in put()
244 public JSONArray put(int index, long value) throws JSONException { in put() argument
245 return put(index, (Long) value); in put()
259 public JSONArray put(int index, Object value) throws JSONException { in put() argument
264 while (values.size() <= index) { in put()
[all …]
/libcore/luni/src/main/java/org/apache/harmony/xml/
DExpatAttributes.java54 public String getURI(int index) { in getURI() argument
55 if (index < 0 || index >= getLength()) { in getURI()
58 return getURI(getParserPointer(), getPointer(), index); in getURI()
61 public String getLocalName(int index) { in getLocalName() argument
62 return (index < 0 || index >= getLength()) in getLocalName()
64 : getLocalName(getParserPointer(), getPointer(), index); in getLocalName()
67 public String getQName(int index) { in getQName() argument
68 return (index < 0 || index >= getLength()) in getQName()
70 : getQName(getParserPointer(), getPointer(), index); in getQName()
73 public String getType(int index) { in getType() argument
[all …]
/libcore/ojluni/src/main/java/java/util/
DAbstractSequentialList.java86 public E get(int index) { in get() argument
88 return listIterator(index).next(); in get()
90 throw new IndexOutOfBoundsException("Index: "+index); in get()
113 public E set(int index, E element) { in set() argument
115 ListIterator<E> e = listIterator(index); in set()
120 throw new IndexOutOfBoundsException("Index: "+index); in set()
144 public void add(int index, E element) { in add() argument
146 listIterator(index).add(element); in add()
148 throw new IndexOutOfBoundsException("Index: "+index); in add()
169 public E remove(int index) { in remove() argument
[all …]
DVector.java401 public synchronized int indexOf(Object o, int index) { in indexOf() argument
403 for (int i = index ; i < elementCount ; i++) in indexOf()
407 for (int i = index ; i < elementCount ; i++) in indexOf()
445 public synchronized int lastIndexOf(Object o, int index) { in lastIndexOf() argument
446 if (index >= elementCount) in lastIndexOf()
447 throw new IndexOutOfBoundsException(index + " >= "+ elementCount); in lastIndexOf()
450 for (int i = index; i >= 0; i--) in lastIndexOf()
454 for (int i = index; i >= 0; i--) in lastIndexOf()
472 public synchronized E elementAt(int index) { in elementAt() argument
473 if (index >= elementCount) { in elementAt()
[all …]
DArrayList.java435 public E get(int index) { in get() argument
436 if (index >= size) in get()
437 throw new IndexOutOfBoundsException(outOfBoundsMsg(index)); in get()
439 return (E) elementData[index]; in get()
451 public E set(int index, E element) { in set() argument
452 if (index >= size) in set()
453 throw new IndexOutOfBoundsException(outOfBoundsMsg(index)); in set()
455 E oldValue = (E) elementData[index]; in set()
456 elementData[index] = element; in set()
481 public void add(int index, E element) { in add() argument
[all …]
DAbstractList.java120 public abstract E get(int index); in get() argument
135 public E set(int index, E element) { in set() argument
152 public void add(int index, E element) { in add() argument
166 public E remove(int index) { in remove() argument
266 public boolean addAll(int index, Collection<? extends E> c) { in addAll() argument
267 rangeCheckForAdd(index); in addAll()
270 add(index++, e); in addAll()
337 public ListIterator<E> listIterator(final int index) { in listIterator() argument
338 rangeCheckForAdd(index); in listIterator()
340 return new ListItr(index); in listIterator()
[all …]
DLinkedList.java405 public boolean addAll(int index, Collection<? extends E> c) { in addAll() argument
406 checkPositionIndex(index); in addAll()
414 if (index == size) { in addAll()
418 succ = node(index); in addAll()
475 public E get(int index) { in get() argument
476 checkElementIndex(index); in get()
477 return node(index).item; in get()
489 public E set(int index, E element) { in set() argument
490 checkElementIndex(index); in set()
491 Node<E> x = node(index); in set()
[all …]
DEnumMap.java269 int index = key.ordinal(); in put() local
270 Object oldValue = vals[index]; in put()
271 vals[index] = maskNull(value); in put()
289 int index = ((Enum<?>)key).ordinal(); in remove() local
290 Object oldValue = vals[index]; in remove()
291 vals[index] = null; in remove()
300 int index = ((Enum<?>)key).ordinal(); in removeMapping() local
301 if (maskNull(value).equals(vals[index])) { in removeMapping()
302 vals[index] = null; in removeMapping()
521 int index = 0; field in EnumMap.EnumMapIterator
[all …]
/libcore/ojluni/src/main/java/java/text/
DParsePosition.java65 int index = 0; field in ParsePosition
76 return index; in getIndex()
84 public void setIndex(int index) { in setIndex() argument
85 this.index = index; in setIndex()
93 public ParsePosition(int index) { in ParsePosition() argument
94 this.index = index; in ParsePosition()
130 return (index == other.index && errorIndex == other.errorIndex); in equals()
138 return (errorIndex << 16) | index; in hashCode()
147 "[index=" + index + in toString()
DCalendarBuilder.java68 CalendarBuilder set(int index, int value) { in set() argument
69 if (index == ISO_DAY_OF_WEEK) { in set()
70 index = DAY_OF_WEEK; in set()
73 field[index] = nextStamp++; in set()
74 field[MAX_FIELD + index] = value; in set()
75 if (index > maxFieldIndex && index < FIELD_COUNT) { in set()
76 maxFieldIndex = index; in set()
87 boolean isSet(int index) { in isSet() argument
88 if (index == ISO_DAY_OF_WEEK) { in isSet()
89 index = DAY_OF_WEEK; in isSet()
[all …]
/libcore/luni/src/test/java/libcore/java/nio/file/
DInvalidPathExceptionTest.java28 int index = 0; in test_Constructor$String$String$Int() local
30 InvalidPathException exception = new InvalidPathException(input, reason, index); in test_Constructor$String$String$Int()
31 assertEquals(index, exception.getIndex()); in test_Constructor$String$String$Int()
36 index = -1; in test_Constructor$String$String$Int()
37 exception = new InvalidPathException(input, reason, index); in test_Constructor$String$String$Int()
38 assertEquals(index, exception.getIndex()); in test_Constructor$String$String$Int()
43 index = -2; in test_Constructor$String$String$Int()
45 new InvalidPathException(input, reason, index); in test_Constructor$String$String$Int()
51 index = 0; in test_Constructor$String$String$Int()
52 new InvalidPathException(null, reason, index); in test_Constructor$String$String$Int()
[all …]
/libcore/luni/src/main/native/
Dcbigint.cpp55 int32_t index = 1; in simpleAddHighPrecision() local
63 while (++arg1[index] == 0 && ++index < length) { in simpleAddHighPrecision()
66 return index == length; in simpleAddHighPrecision()
79 int32_t index; in addHighPrecision() local
91 index = 0; in addHighPrecision()
94 temp1 = arg1[index]; in addHighPrecision()
95 temp2 = arg2[index]; in addHighPrecision()
97 arg1[index] = temp3 + carry; in addHighPrecision()
98 if (arg2[index] < arg1[index]) in addHighPrecision()
100 else if (arg2[index] != arg1[index]) in addHighPrecision()
[all …]
/libcore/ojluni/src/main/java/sun/security/util/
DDerIndefLenConverter.java52 private int newDataPos, dataPos, dataSize, index; field in DerIndefLenConverter
98 int index; in parseTag() local
99 for (index = ndefsList.size()-1; index >= 0; index--) { in parseTag()
102 elem = ndefsList.get(index); in parseTag()
109 if (index < 0) { in parseTag()
116 ndefsList.set(index, sectionLenBytes); in parseTag()
189 byte[] lenBytes = (byte[])ndefsList.get(index++); in writeLengthAndValue()
240 int index = 0; in getLengthBytes() local
244 lenBytes[index++] = (byte)curLen; in getLengthBytes()
248 lenBytes[index++] = (byte)0x81; in getLengthBytes()
[all …]
/libcore/ojluni/annotations/hiddenapi/java/nio/
DByteBuffer.java73 public abstract byte get(int index); in get() argument
75 public abstract java.nio.ByteBuffer put(int index, byte b); in put() argument
153 public abstract char getChar(int index); in getChar() argument
155 abstract char getCharUnchecked(int index); in getCharUnchecked() argument
159 public abstract java.nio.ByteBuffer putChar(int index, char value); in putChar() argument
161 abstract void putCharUnchecked(int index, char value); in putCharUnchecked() argument
171 public abstract short getShort(int index); in getShort() argument
173 abstract short getShortUnchecked(int index); in getShortUnchecked() argument
177 public abstract java.nio.ByteBuffer putShort(int index, short value); in putShort() argument
179 abstract void putShortUnchecked(int index, short value); in putShortUnchecked() argument
[all …]
/libcore/ojluni/src/main/java/java/security/cert/
DCertPathValidatorException.java70 private int index = -1; field in CertPathValidatorException
150 CertPath certPath, int index) { in CertPathValidatorException() argument
151 this(msg, cause, certPath, index, BasicReason.UNSPECIFIED); in CertPathValidatorException()
176 CertPath certPath, int index, Reason reason) { in CertPathValidatorException() argument
178 if (certPath == null && index != -1) { in CertPathValidatorException()
181 if (index < -1 || in CertPathValidatorException()
182 (certPath != null && index >= certPath.getCertificates().size())) { in CertPathValidatorException()
189 this.index = index; in CertPathValidatorException()
213 return this.index; in getIndex()
237 if (certPath == null && index != -1) { in readObject()
[all …]
/libcore/ojluni/src/main/java/java/util/concurrent/
DCopyOnWriteArrayList.java184 int index, int fence) { in indexOf()
186 for (int i = index; i < fence; i++) in indexOf()
190 for (int i = index; i < fence; i++) in indexOf()
204 private static int lastIndexOf(Object o, Object[] elements, int index) { in lastIndexOf() argument
206 for (int i = index; i >= 0; i--) in lastIndexOf()
210 for (int i = index; i >= 0; i--) in lastIndexOf()
253 public int indexOf(E e, int index) { in indexOf() argument
255 return indexOf(e, elements, index, elements.length); in indexOf()
282 public int lastIndexOf(E e, int index) { in lastIndexOf() argument
284 return lastIndexOf(e, elements, index); in lastIndexOf()
[all …]
/libcore/ojluni/src/main/java/java/util/regex/
DPatternSyntaxException.java47 private final int index; field in PatternSyntaxException
62 public PatternSyntaxException(String desc, String regex, int index) { in PatternSyntaxException() argument
65 this.index = index; in PatternSyntaxException()
75 return index; in getIndex()
110 if (index >= 0) { in getMessage()
112 sb.append(index); in getMessage()
116 if (index >= 0) { in getMessage()
118 for (int i = 0; i < index; i++) sb.append(' '); in getMessage()
/libcore/ojluni/src/main/java/java/nio/
DCharBufferSpliterator.java41 private int index; // current index, modified on advance/split field in CharBufferSpliterator
51 this.index = (origin <= limit) ? origin : limit; in CharBufferSpliterator()
57 int lo = index, mid = (lo + limit) >>> 1; in trySplit()
60 : new CharBufferSpliterator(buffer, lo, index = mid); in trySplit()
68 int i = index; in forEachRemaining()
70 index = hi; in forEachRemaining()
80 if (index >= 0 && index < limit) { in tryAdvance()
81 action.accept(buffer.getUnchecked(index++)); in tryAdvance()
89 return (long)(limit - index); in estimateSize()
/libcore/ojluni/src/main/java/java/sql/
DDataTruncation.java60 public DataTruncation(int index, boolean parameter, in DataTruncation() argument
64 this.index = index; in DataTruncation()
93 public DataTruncation(int index, boolean parameter, in DataTruncation() argument
97 this.index = index; in DataTruncation()
113 return index; in getIndex()
161 private int index; field in DataTruncation
/libcore/ojluni/src/main/java/java/nio/file/
DInvalidPathException.java40 private int index; field in InvalidPathException
57 public InvalidPathException(String input, String reason, int index) { in InvalidPathException() argument
61 if (index < -1) in InvalidPathException()
64 this.index = index; in InvalidPathException()
106 return index; in getIndex()
122 if (index > -1) { in getMessage()
124 sb.append(index); in getMessage()
/libcore/ojluni/src/main/java/java/net/
DURISyntaxException.java44 private int index; field in URISyntaxException
61 public URISyntaxException(String input, String reason, int index) { in URISyntaxException() argument
65 if (index < -1) in URISyntaxException()
68 this.index = index; in URISyntaxException()
110 return index; in getIndex()
126 if (index > -1) { in getMessage()
128 sb.append(index); in getMessage()
/libcore/ojluni/annotations/sdk/nullability/java/lang/reflect/
DArray.annotated.java42 …ic java.lang.Object get(@libcore.util.NonNull java.lang.Object array, int index) throws java.lang.… in get() argument
44 public static boolean getBoolean(@libcore.util.NonNull java.lang.Object array, int index) throws ja… in getBoolean() argument
46 public static byte getByte(@libcore.util.NonNull java.lang.Object array, int index) throws java.lan… in getByte() argument
48 public static char getChar(@libcore.util.NonNull java.lang.Object array, int index) throws java.lan… in getChar() argument
50 public static short getShort(@libcore.util.NonNull java.lang.Object array, int index) throws java.l… in getShort() argument
52 public static int getInt(@libcore.util.NonNull java.lang.Object array, int index) throws java.lang.… in getInt() argument
54 public static long getLong(@libcore.util.NonNull java.lang.Object array, int index) throws java.lan… in getLong() argument
56 public static float getFloat(@libcore.util.NonNull java.lang.Object array, int index) throws java.l… in getFloat() argument
58 public static double getDouble(@libcore.util.NonNull java.lang.Object array, int index) throws java… in getDouble() argument
60 public static void set(@libcore.util.NonNull java.lang.Object array, int index, @libcore.util.Nulla… in set() argument
[all …]

1234567891011