/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 | 179 public static Object get(Object array, int index) in get() argument 182 return ((Object[]) array)[index]; in get() 185 return ((boolean[]) array)[index] ? Boolean.TRUE : Boolean.FALSE; in get() 188 return Byte.valueOf(((byte[]) array)[index]); in get() 191 return Character.valueOf(((char[]) array)[index]); in get() 194 return Short.valueOf(((short[]) array)[index]); in get() 197 return Integer.valueOf(((int[]) array)[index]); in get() 200 return Long.valueOf(((long[]) array)[index]); in get() 203 return new Float(((float[]) array)[index]); in get() 206 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/ojluni/src/main/java/java/text/ |
D | CalendarBuilder.java | 69 CalendarBuilder set(int index, int value) { in set() argument 70 if (index == ISO_DAY_OF_WEEK) { in set() 71 index = DAY_OF_WEEK; in set() 74 field[index] = nextStamp++; in set() 75 field[MAX_FIELD + index] = value; in set() 76 if (index > maxFieldIndex && index < FIELD_COUNT) { in set() 77 maxFieldIndex = index; in set() 88 boolean isSet(int index) { in isSet() argument 89 if (index == ISO_DAY_OF_WEEK) { in isSet() 90 index = DAY_OF_WEEK; in isSet() [all …]
|
D | ParsePosition.java | 66 int index = 0; field in ParsePosition 77 return index; in getIndex() 85 public void setIndex(int index) { in setIndex() argument 86 this.index = index; in setIndex() 94 public ParsePosition(int index) { in ParsePosition() argument 95 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()
|
/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 | 88 public E get(int index) { in get() argument 90 return listIterator(index).next(); in get() 92 throw new IndexOutOfBoundsException("Index: "+index); in get() 115 public E set(int index, E element) { in set() argument 117 ListIterator<E> e = listIterator(index); in set() 122 throw new IndexOutOfBoundsException("Index: "+index); in set() 146 public void add(int index, E element) { in add() argument 148 listIterator(index).add(element); in add() 150 throw new IndexOutOfBoundsException("Index: "+index); in add() 171 public E remove(int index) { in remove() argument [all …]
|
D | Vector.java | 393 public synchronized int indexOf(Object o, int index) { in indexOf() argument 395 for (int i = index ; i < elementCount ; i++) in indexOf() 399 for (int i = index ; i < elementCount ; i++) in indexOf() 437 public synchronized int lastIndexOf(Object o, int index) { in lastIndexOf() argument 438 if (index >= elementCount) in lastIndexOf() 439 throw new IndexOutOfBoundsException(index + " >= "+ elementCount); in lastIndexOf() 442 for (int i = index; i >= 0; i--) in lastIndexOf() 446 for (int i = index; i >= 0; i--) in lastIndexOf() 464 public synchronized E elementAt(int index) { in elementAt() argument 465 if (index >= elementCount) { in elementAt() [all …]
|
D | AbstractList.java | 122 public abstract E get(int index); in get() argument 137 public E set(int index, E element) { in set() argument 154 public void add(int index, E element) { in add() argument 168 public E remove(int index) { in remove() argument 268 public boolean addAll(int index, Collection<? extends E> c) { in addAll() argument 269 rangeCheckForAdd(index); in addAll() 272 add(index++, e); in addAll() 339 public ListIterator<E> listIterator(final int index) { in listIterator() argument 340 rangeCheckForAdd(index); in listIterator() 342 return new ListItr(index); in listIterator() [all …]
|
D | ArrayList.java | 417 E elementData(int index) { in elementData() argument 418 return (E) elementData[index]; in elementData() 422 static <E> E elementAt(Object[] es, int index) { in elementAt() argument 423 return (E) es[index]; in elementAt() 433 public E get(int index) { in get() argument 434 Objects.checkIndex(index, size); in get() 435 return elementData(index); in get() 476 public E set(int index, E element) { in set() argument 477 Objects.checkIndex(index, size); in set() 478 E oldValue = elementData(index); in set() [all …]
|
D | EnumMap.java | 267 int index = key.ordinal(); in put() local 268 Object oldValue = vals[index]; in put() 269 vals[index] = maskNull(value); in put() 287 int index = ((Enum<?>)key).ordinal(); in remove() local 288 Object oldValue = vals[index]; in remove() 289 vals[index] = null; in remove() 298 int index = ((Enum<?>)key).ordinal(); in removeMapping() local 299 if (maskNull(value).equals(vals[index])) { in removeMapping() 300 vals[index] = null; in removeMapping() 514 int index = 0; field in EnumMap.EnumMapIterator [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/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/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/src/main/java/java/lang/ |
D | StringUTF16.java | 55 static void putChar(byte[] val, int index, int c) { in putChar() argument 56 assert index >= 0 && index < length(val) : "Trusted caller missed bounds check"; in putChar() 57 index <<= 1; in putChar() 58 val[index++] = (byte)(c >> HI_BYTE_SHIFT); in putChar() 59 val[index] = (byte)(c >> LO_BYTE_SHIFT); in putChar() 64 public static char getChar(byte[] val, int index) { in getChar() argument 65 assert index >= 0 && index < length(val) : "Trusted caller missed bounds check"; in getChar() 66 index <<= 1; in getChar() 67 return (char)(((val[index++] & 0xff) << HI_BYTE_SHIFT) | in getChar() 68 ((val[index] & 0xff) << LO_BYTE_SHIFT)); in getChar() [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/nio/ |
D | ByteBuffer.java | 628 public abstract ByteBuffer slice(int index, int length); in slice() argument 724 public abstract byte get(int index); in get() argument 760 public abstract ByteBuffer put(int index, byte b); in put() argument 894 public ByteBuffer get(int index, byte[] dst, int offset, int length) { in get() argument 895 Objects.checkFromIndexSize(index, length, limit()); in get() 898 getArray(index, dst, offset, length); in get() 930 public ByteBuffer get(int index, byte[] dst) { in get() argument 931 return get(index, dst, 0, dst.length); in get() 934 private ByteBuffer getArray(int index, byte[] dst, int offset, int length) { in getArray() argument 969 for (int i = offset, j = index; i < end; i++, j++) { in getArray() [all …]
|
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/jdk/internal/util/random/ |
D | RandomSupport.java | 914 public long index; field in RandomSupport.RandomSpliterator 924 public RandomSpliterator(long index, long fence) { in RandomSpliterator() argument 925 this.index = index; this.fence = fence; in RandomSpliterator() 934 return fence - index; in estimateSize() 969 long index, long fence, int origin, int bound) { in RandomIntsSpliterator() argument 970 super(index, fence); in RandomIntsSpliterator() 976 long i = index, m = (i + fence) >>> 1; in trySplit() 978 index = m; in trySplit() 985 long i = index, f = fence; in tryAdvance() 988 index = i + 1; in tryAdvance() [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/regex/ |
D | PatternSyntaxException.java | 43 private final int index; field in PatternSyntaxException 58 public PatternSyntaxException(String desc, String regex, int index) { in PatternSyntaxException() argument 61 this.index = index; in PatternSyntaxException() 71 return index; in getIndex() 102 if (index >= 0) { in getMessage() 104 sb.append(index); in getMessage() 108 if (index >= 0 && pattern != null && index < pattern.length()) { in getMessage() 110 for (int i = 0; i < index; i++) { in getMessage()
|
/libcore/ojluni/src/test/java/lang/StringBuffer/ |
D | AppendCharSequence.java | 71 int index = generator.nextInt(100); in bash() local 73 while (index > sb2.length() - len) { in bash() 74 index = generator.nextInt(100); in bash() 77 sb5.append((CharSequence)sb2, index, index + len); in bash() local 78 s5 = s5 + sb2.toString().substring(index, index + len); in bash() 84 index = generator.nextInt(100); in bash() 85 while (index > s5.length()) { in bash() 86 index = generator.nextInt(100); in bash() 88 sb5.insert(index, (CharSequence)sb3); in bash() 89 s5 = new StringBuffer(s5).insert(index, sb3).toString(); in bash() [all …]
|
/libcore/ojluni/src/main/java/java/lang/constant/ |
D | ConstantUtils.java | 175 int index = start; in skipOverFieldSignature() local 176 while (index < end) { in skipOverFieldSignature() 177 switch (descriptor.charAt(index)) { in skipOverFieldSignature() 178 case JVM_SIGNATURE_VOID: if (!voidOK) { return index; } in skipOverFieldSignature() 187 return index - start + 1; in skipOverFieldSignature() 190 index++; in skipOverFieldSignature() 191 int indexOfSemi = descriptor.indexOf(';', index); in skipOverFieldSignature() 193 String unqualifiedName = descriptor.substring(index, indexOfSemi); in skipOverFieldSignature() 198 return index - start + unqualifiedName.length() + 1; in skipOverFieldSignature() 208 index++; in skipOverFieldSignature() [all …]
|
/libcore/ojluni/annotations/flagged_api/java/nio/ |
D | ByteBuffer.annotated.java | 48 public abstract java.nio.ByteBuffer slice(int index, int length); in slice() argument 58 public abstract byte get(int index); in get() argument 60 public abstract java.nio.ByteBuffer put(int index, byte b); in put() argument 67 public java.nio.ByteBuffer get(int index, byte[] dst, int offset, int length) { throw new RuntimeEx… in get() argument 70 public java.nio.ByteBuffer get(int index, byte[] dst) { throw new RuntimeException("Stub!"); } in get() argument 75 public java.nio.ByteBuffer put(int index, java.nio.ByteBuffer src, int offset, int length) { throw … in put() argument 82 public java.nio.ByteBuffer put(int index, byte[] src, int offset, int length) { throw new RuntimeEx… in put() argument 85 public java.nio.ByteBuffer put(int index, byte[] src) { throw new RuntimeException("Stub!"); } in put() argument 125 public final int alignmentOffset(int index, int unitSize) { throw new RuntimeException("Stub!"); } in alignmentOffset() argument 133 public abstract char getChar(int index); in getChar() argument [all …]
|