/libcore/luni/src/main/java/org/xml/sax/helpers/ |
D | AttributesImpl.java | 107 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/ |
D | Array.java | 178 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/ |
D | Attributes2Impl.java | 87 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/ |
D | JSONArray.java | 209 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/ |
D | ExpatAttributes.java | 54 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/ |
D | AbstractSequentialList.java | 86 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 …]
|
D | Vector.java | 401 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 …]
|
D | ArrayList.java | 435 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 …]
|
D | AbstractList.java | 120 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 …]
|
D | LinkedList.java | 405 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 …]
|
D | EnumMap.java | 269 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/ |
D | ParsePosition.java | 65 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()
|
D | CalendarBuilder.java | 68 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/ |
D | InvalidPathExceptionTest.java | 28 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/ |
D | cbigint.cpp | 55 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/ |
D | DerIndefLenConverter.java | 52 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/ |
D | ByteBuffer.java | 73 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/ |
D | CertPathValidatorException.java | 70 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/ |
D | CopyOnWriteArrayList.java | 184 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/ |
D | PatternSyntaxException.java | 47 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/ |
D | CharBufferSpliterator.java | 41 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/ |
D | DataTruncation.java | 60 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/ |
D | InvalidPathException.java | 40 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/ |
D | URISyntaxException.java | 44 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/ |
D | Array.annotated.java | 42 …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 …]
|