/libcore/ojluni/src/main/java/sun/util/locale/ |
D | LocaleUtils.java | 90 int idx = 0; in toLowerString() local 91 for (; idx < len; idx++) { in toLowerString() 92 if (isUpper(s.charAt(idx))) { in toLowerString() 96 if (idx == len) { in toLowerString() 103 buf[i] = (i < idx) ? c : toLower(c); in toLowerString() 110 int idx = 0; in toUpperString() local 111 for (; idx < len; idx++) { in toUpperString() 112 if (isLower(s.charAt(idx))) { in toUpperString() 116 if (idx == len) { in toUpperString() 123 buf[i] = (i < idx) ? c : toUpper(c); in toUpperString() [all …]
|
D | StringTokenIterator.java | 111 for (int idx = start; idx < textlen; idx++) { in nextDelimiter() 112 if (text.charAt(idx) == delimiterChar) { in nextDelimiter() 113 return idx; in nextDelimiter() 118 for (int idx = start; idx < textlen; idx++) { in nextDelimiter() 119 char c = text.charAt(idx); in nextDelimiter() 122 return idx; in nextDelimiter()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | RefSortedMap.java | 178 int idx = bsearch(start); 179 if (idx >= 0) { 182 if (-idx - 1 >= entries.size() || !isInRange(entries.get(-idx - 1).getKey())) { 185 return entries.get(-idx - 1).getKey(); 203 int idx = bsearch(end); 204 idx = idx >= 0 ? idx - 1 : -idx - 2; 205 if (idx < 0 || !isInRange(entries.get(idx).getKey())) { 208 return entries.get(idx).getKey(); 321 int idx = bsearch(arg0); 322 return idx >= 0 ? entries.get(idx).getValue() : null; [all …]
|
D | AbstractListTest.java | 216 public E remove(int idx) { in remove() argument 218 return list.remove(idx); in remove() 231 public void add(int idx, E o) { in add() argument 233 list.add(idx, o); in add() 386 public E remove(int idx) { in remove() argument
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | PrimitiveIteratorTest.java | 33 private int idx; field in PrimitiveIteratorTest.CannedIntIterator 37 this.idx = 0; in CannedIntIterator() 42 return ints[idx++]; in nextInt() 47 return idx < ints.length; in hasNext() 53 private int idx; field in PrimitiveIteratorTest.CannedLongIterator 57 this.idx = 0; in CannedLongIterator() 62 return longs[idx++]; in nextLong() 67 return idx < longs.length; in hasNext() 73 private int idx; field in PrimitiveIteratorTest.CannedDoubleIterator 77 this.idx = 0; in CannedDoubleIterator() [all …]
|
D | SpliteratorsTest.java | 163 int idx; field in SpliteratorsTest.PrimitiveIntArrayList 170 array[idx++] = element; in add() 181 int idx; field in SpliteratorsTest.PrimitiveLongArrayList 188 array[idx++] = element; in add() 199 int idx; field in SpliteratorsTest.PrimitiveDoubleArrayList 206 array[idx++] = element; in add() 525 private int idx; field in SpliteratorsTest.CannedIntPrimitiveIterator 529 this.idx = 0; in CannedIntPrimitiveIterator() 534 return data[idx++]; in nextInt() 539 return idx < data.length; in hasNext() [all …]
|
/libcore/luni/src/test/java/libcore/java/util/concurrent/ |
D | CountedCompleterTest.java | 118 final int idx; in completeAllChildren() field in CountedCompleterTest.Task 120 Task(CountedCompleter<Integer> parent, int idx) { in completeAllChildren() argument 122 this.idx = idx; in completeAllChildren() 127 action.accept(array[idx]); in completeAllChildren() 153 for (int idx = lo; idx < hi; ++idx) { in completeAllChildren() 157 pool.submit(new Task(this, idx)); in completeAllChildren()
|
/libcore/ojluni/src/main/java/java/util/ |
D | ImmutableCollections.java | 828 private int idx = (e1 == EMPTY) ? 1 : 2; in iterator() 832 return idx > 0; in iterator() 838 if (idx == 1) { in iterator() 839 idx = 0; in iterator() 841 } else if (idx == 2) { in iterator() 842 idx = 1; in iterator() 923 int idx = probe(e); // implicit nullcheck of e 924 if (idx >= 0) { 927 elements[-(idx + 1)] = e; 952 private int idx; [all …]
|
D | ResourceBundle.java | 2966 int idx = nynorskList.size() - 1; in createObject() local 2967 nynorskList.add(idx++, Locale.getInstance("no", "NO", "NY")); in createObject() 2968 nynorskList.add(idx++, Locale.getInstance("no", "NO", "")); in createObject() 2969 nynorskList.add(idx++, Locale.getInstance("no", "", "")); in createObject() 2999 int idx = variant.length(); in getDefaultList() local 3000 while (idx != -1) { in getDefaultList() 3001 variants.add(variant.substring(0, idx)); in getDefaultList() 3002 idx = variant.lastIndexOf('_', --idx); in getDefaultList()
|
D | LinkedHashMap.java | 696 int idx = 0; in keysToArray() local 699 r[idx++] = e.key; in keysToArray() 703 r[idx++] = e.key; in keysToArray() 711 int idx = 0; in valuesToArray() local 714 r[idx++] = e.value; in valuesToArray() 718 r[idx++] = e.value; in valuesToArray()
|
/libcore/ojluni/src/main/java/sun/security/util/ |
D | BitArray.java | 45 private static int subscript(int idx) { in subscript() argument 46 return idx / BITS_PER_UNIT; in subscript() 49 private static int position(int idx) { // bits big-endian in each unit in position() argument 50 return 1 << (BITS_PER_UNIT - 1 - (idx % BITS_PER_UNIT)); in position() 153 int idx = subscript(index); in set() local 157 repn[idx] |= bit; in set() 159 repn[idx] &= ~bit; in set()
|
/libcore/ojluni/src/test/java/util/Collections/ |
D | FindSubList.java | 70 int idx = Collections.indexOfSubList(s, target[i]); in main() local 71 if (idx != index[i]) in main() 73 "is " + idx + ", should be "+index[i]); in main() 99 int idx = Collections.lastIndexOfSubList(s, target[i]); in main() local 100 if (idx != index[i]) in main() 102 "is " + idx + ", should be "+index[i]); in main()
|
/libcore/dalvik/src/main/java/dalvik/system/ |
D | EmulatedStackFrame.java | 205 public void setReference(int idx, Object reference) { in setReference() argument 207 if (idx < 0 || idx >= ptypes.length) { in setReference() 208 throw new IllegalArgumentException("Invalid index: " + idx); in setReference() 210 if (reference != null && !ptypes[idx].isInstance(reference)) { in setReference() 211 throw new IllegalStateException("reference is not of type: " + type.ptypes()[idx]); in setReference() 213 int referenceIndex = getReferenceIndex(idx); in setReference() 220 public <T> T getReference(int idx, Class<T> referenceType) { in getReference() argument 221 if (referenceType != type.ptypes()[idx]) { in getReference() 222 throw new IllegalArgumentException("Argument: " + idx + in getReference() 223 " is of type " + type.ptypes()[idx] + " expected " + referenceType + ""); in getReference() [all …]
|
/libcore/ojluni/src/main/java/jdk/internal/math/ |
D | FDBigInteger.java | 420 …private static void leftShift(int[] src, int idx, int result[], int bitcount, int anticount, int p… in leftShift() argument 421 for (; idx > 0; idx--) { in leftShift() 423 prev = src[idx - 1]; in leftShift() 425 result[idx] = v; in leftShift() 468 int idx = nWords - 1; in leftShift() local 469 int prev = data[idx]; in leftShift() 478 leftShift(data,idx,result,bitcount,anticount,prev); in leftShift() 485 int idx = 0; in leftShift() local 486 int prev = data[idx]; in leftShift() 487 for (; idx < nWords - 1; idx++) { in leftShift() [all …]
|
/libcore/ojluni/src/main/java/java/io/ |
D | UnixFileSystem.java | 263 int idx = last; in parentOrNull() local 266 while (idx > 0) { in parentOrNull() 267 char c = path.charAt(idx); in parentOrNull() 278 if (idx == 0 || in parentOrNull() 279 idx >= last - 1 || in parentOrNull() 280 path.charAt(idx - 1) == sep) { in parentOrNull() 285 return path.substring(0, idx); in parentOrNull() 290 --idx; in parentOrNull()
|
/libcore/ojluni/annotations/hiddenapi/sun/security/util/ |
D | BitArray.java | 48 private static int subscript(int idx) { in subscript() argument 52 private static int position(int idx) { in position() argument
|
/libcore/luni/src/test/java/libcore/java/util/zip/ |
D | OldAndroidZipFileTest.java | 103 int idx = 0; in scanZip() local 109 assertEquals(entry.getName(), "file-" + idx); in scanZip() local 110 idx++; in scanZip()
|
/libcore/luni/src/test/java/libcore/java/io/ |
D | OldBufferedWriterTest.java | 133 int idx = sw.toString().length(); in test_write$CII() local 135 assertEquals(idx + testCharArray.length, sw.toString().length()); in test_write$CII() 137 assertEquals(idx + testCharArray.length, sw.toString().length()); in test_write$CII() 139 assertEquals(idx + testCharArray.length, sw.toString().length()); in test_write$CII()
|
D | OldFileTest.java | 166 int idx = classPath.indexOf("!"); in test_deleteOnExit() local 167 assertTrue("could not find the path of the test jar/apk", idx > 0); in test_deleteOnExit() 168 classPath = classPath.substring(9, idx); // cutting off jar:file: in test_deleteOnExit()
|
/libcore/ojluni/src/main/java/java/util/zip/ |
D | ZipFile.java | 1654 int idx = 0; // Index into the entries array in initCEN() local 1662 if (idx >= entriesLength) { in initCEN() 1671 int nlen = checkAndAddEntry(pos, idx); in initCEN() 1698 idx += 3; in initCEN() 1730 this.total = idx / 3; in initCEN() 1771 int idx = table[(hsh & 0x7fffffff) % tablelen]; in getEntryPos() local 1775 while (idx != ZIP_ENDCHAIN) { in getEntryPos() 1776 if (getEntryHash(idx) == hsh) { in getEntryPos() 1778 int pos = getEntryPos(idx); in getEntryPos() 1800 idx = getEntryNext(idx); in getEntryPos()
|
/libcore/luni/src/main/java/android/compat/ |
D | Compatibility.java | 237 int idx = 0; in toLongArray() local 239 result[idx++] = value; in toLongArray()
|
/libcore/ojluni/src/main/java/java/text/ |
D | SimpleDateFormat.java | 2473 final int idx = parseMonth(text, count, value, start, field, pos, in subParse() local 2475 if (idx > 0) { in subParse() 2476 return idx; in subParse() 2484 final int idx = parseMonth(text, count, value, start, field, pos, in subParse() local 2486 if (idx > 0) { in subParse() 2487 return idx; in subParse() 2536 final int idx = parseWeekday(text, start, field, useDateFormatSymbols, in subParse() local 2538 if (idx > 0) { in subParse() 2539 return idx; in subParse() 2548 final int idx = parseWeekday(text, start, field, useDateFormatSymbols, in subParse() local [all …]
|
/libcore/ojluni/src/test/java/lang/StackWalker/ |
D | DumpStackTest.java | 251 static void assertEquals(StackTraceElement actual, CallFrame expected, int idx) { in assertEquals() argument 255 throw new RuntimeException("StackTraceElements mismatch at index " + idx + in assertEquals()
|
/libcore/ojluni/src/main/java/java/lang/ |
D | Class.java | 4768 int idx = 1; in getNestMembers() local 4773 result[idx] = m; in getNestMembers() 4774 ++idx; in getNestMembers() 4777 if (idx < result.length) { in getNestMembers() 4778 Class[] tmp = new Class[idx]; in getNestMembers() 4976 int idx = 0; in getPermittedSubclasses() local 4979 tmp[idx] = c; in getPermittedSubclasses() 4980 ++idx; in getPermittedSubclasses()
|
/libcore/ojluni/src/test/java/util/Collection/ |
D | MOAT.java | 1701 int idx = expected.length -1; in checkDescItrRmFirst() local 1703 equalNext(descItr, expected[idx--]); in checkDescItrRmFirst() 1705 while (idx >= 0 && descItr.hasNext()) { in checkDescItrRmFirst() 1706 equalNext(descItr, expected[idx--]); in checkDescItrRmFirst() 1709 equal(idx, -1); in checkDescItrRmFirst() 1718 int idx = expected.length -1; in checkDescItrRmMid() local 1720 while (idx >= expected.length / 2) { in checkDescItrRmMid() 1721 equalNext(descItr, expected[idx--]); in checkDescItrRmMid() 1724 while (idx >= 0 && descItr.hasNext()) { in checkDescItrRmMid() 1725 equalNext(descItr, expected[idx--]); in checkDescItrRmMid() [all …]
|