/libcore/ojluni/src/main/java/sun/util/locale/ |
H A D | LocaleUtils.java | 90 int idx = 0; 91 for (; idx < len; idx++) { 92 if (isUpper(s.charAt(idx))) { 96 if (idx == len) { 103 buf[i] = (i < idx) ? c : toLower(c); 110 int idx = 0; 111 for (; idx < len; idx++) { 112 if (isLower(s.charAt(idx))) { [all...] |
H A D | StringTokenIterator.java | 111 for (int idx = start; idx < textlen; idx++) { 112 if (text.charAt(idx) == delimiterChar) { 113 return idx; 118 for (int idx = start; idx < textlen; idx++) { 119 char c = text.charAt(idx); 122 return idx; [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
H A 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 [all...] |
H A D | AbstractListTest.java | 216 public E remove(int idx) { argument 218 return list.remove(idx); 231 public void add(int idx, E o) { argument 233 list.add(idx, o); 386 public E remove(int idx) { argument
|
H A D | ArraysTest.java | 4272 int idx; field in class:ArraysTest.PrimitiveIntArrayList 4279 array[idx++] = element; 4290 int idx; field in class:ArraysTest.PrimitiveLongArrayList 4297 array[idx++] = element; 4308 int idx; field in class:ArraysTest.PrimitiveDoubleArrayList 4315 array[idx++] = element;
|
/libcore/luni/src/test/java/libcore/java/util/ |
H A D | PrimitiveIteratorTest.java | 33 private int idx; field in class:PrimitiveIteratorTest.CannedIntIterator 37 this.idx = 0; 42 return ints[idx++]; 47 return idx < ints.length; 53 private int idx; field in class:PrimitiveIteratorTest.CannedLongIterator 57 this.idx = 0; 62 return longs[idx++]; 67 return idx < longs.length; 73 private int idx; field in class:PrimitiveIteratorTest.CannedDoubleIterator 77 this.idx [all...] |
H A D | SpliteratorsTest.java | 159 int idx; field in class:SpliteratorsTest.PrimitiveIntArrayList 166 array[idx++] = element; 177 int idx; field in class:SpliteratorsTest.PrimitiveLongArrayList 184 array[idx++] = element; 195 int idx; field in class:SpliteratorsTest.PrimitiveDoubleArrayList 202 array[idx++] = element; 521 private int idx; field in class:SpliteratorsTest.CannedIntPrimitiveIterator 525 this.idx = 0; 530 return data[idx++]; 535 return idx < dat 541 private int idx; field in class:SpliteratorsTest.CannedLongPrimitiveIterator 561 private int idx; field in class:SpliteratorsTest.CannedDoublePrimitiveIterator [all...] |
/libcore/ojluni/src/main/java/sun/security/util/ |
H A D | BitArray.java | 45 private static int subscript(int idx) { argument 46 return idx / BITS_PER_UNIT; 49 private static int position(int idx) { // bits big-endian in each unit argument 50 return 1 << (BITS_PER_UNIT - 1 - (idx % BITS_PER_UNIT)); 143 int idx = subscript(index); 147 repn[idx] |= bit; 149 repn[idx] &= ~bit;
|
/libcore/dalvik/src/main/java/dalvik/system/ |
H A D | EmulatedStackFrame.java | 180 * Sets the {@code idx} to {@code reference}. Type checks are performed. 182 public void setReference(int idx, Object reference) { argument 184 if (idx < 0 || idx >= ptypes.length) { 185 throw new IllegalArgumentException("Invalid index: " + idx); 188 if (reference != null && !ptypes[idx].isInstance(reference)) { 189 throw new IllegalStateException("reference is not of type: " + type.ptypes()[idx]); 192 references[idx] = reference; 196 * Gets the reference at {@code idx}, checking that it's of type {@code referenceType}. 198 public <T> T getReference(int idx, Clas argument [all...] |
/libcore/ojluni/src/main/java/java/io/ |
H A D | UnixFileSystem.java | 203 int idx = last; 206 while (idx > 0) { 207 char c = path.charAt(idx); 218 if (idx == 0 || 219 idx >= last - 1 || 220 path.charAt(idx - 1) == sep) { 225 return path.substring(0, idx); 230 --idx;
|
/libcore/luni/src/test/java/libcore/java/util/zip/ |
H A D | OldAndroidZipFileTest.java | 103 int idx = 0; 109 assertEquals(entry.getName(), "file-" + idx); 110 idx++;
|
/libcore/ojluni/src/main/java/sun/misc/ |
H A D | FDBigInteger.java | 408 * @param idx The initial index of the source array. 416 @ requires src.length >= idx && result.length > idx; 418 @ ensures AP(result, \old(idx + 1)) == \old((AP(src, idx) + UNSIGNED(prev) << (idx*32)) << bitcount); 420 private static void leftShift(int[] src, int idx, int result[], int bitcount, int anticount, int prev){ argument 421 for (; idx > 0; idx--) { 423 prev = src[idx [all...] |
/libcore/libart/src/main/java/java/lang/ |
H A D | StringFactory.java | 127 int idx = offset; 137 while (idx < last) { 138 int b = d[idx++] & 0xff; 188 idx--;
|
/libcore/luni/src/test/java/libcore/java/io/ |
H A D | OldBufferedWriterTest.java | 133 int idx = sw.toString().length(); 135 assertEquals(idx + testCharArray.length, sw.toString().length()); 137 assertEquals(idx + testCharArray.length, sw.toString().length()); 139 assertEquals(idx + testCharArray.length, sw.toString().length());
|
H A D | OldFileTest.java | 166 int idx = classPath.indexOf("!"); 167 assertTrue("could not find the path of the test jar/apk", idx > 0); 168 classPath = classPath.substring(9, idx); // cutting off jar:file:
|
/libcore/ojluni/src/main/java/java/util/ |
H A D | ResourceBundle.java | 2402 int idx = nynorskList.size() - 1; 2403 nynorskList.add(idx++, Locale.getInstance("no", "NO", "NY")); 2404 nynorskList.add(idx++, Locale.getInstance("no", "NO", "")); 2405 nynorskList.add(idx++, Locale.getInstance("no", "", "")); 2446 int idx = variant.length(); 2447 while (idx != -1) { 2448 variants.add(variant.substring(0, idx)); 2449 idx = variant.lastIndexOf('_', --idx);
|
H A D | Formatter.java | 2798 int idx = 1; 3486 int idx = s.indexOf('p'); 3487 va = s.substring(0, idx).toCharArray(); 3496 sb.append(s.substring(idx+1)); 3605 int idx = res.indexOf('p'); 3606 if (idx == -1) { 3612 String exp = res.substring(idx + 1); 3614 return res.substring(0, idx) + "p"
|
/libcore/ojluni/src/main/java/java/util/concurrent/ |
H A D | ForkJoinPool.java | 1638 int idx = w.config & SMASK; 1643 if ((ws = workQueues) != null && ws.length > idx && 1644 ws[idx] == w) 1645 ws[idx] = null; 1849 int cfg = w.config, idx = cfg & SMASK; 1854 idx < ws.length && idx >= 0 && ws[idx] == w && 1856 ws[idx] = null; 1912 int cfg = w.config, idx [all...] |
H A D | ConcurrentSkipListMap.java | 857 Index<K,V> idx = null; 861 idx = new Index<K,V>(z, idx, null); 868 idxs[i] = idx = new Index<K,V>(z, idx, null); 880 idx = idxs[level = oldLevel]; 888 for (Index<K,V> q = h, r = q.right, t = idx;;) { 1392 Index<K,V> idx = null; 1394 idx = new Index<K,V>(z, idx, nul [all...] |
H A D | ScheduledThreadPoolExecutor.java | 908 private void setIndex(RunnableScheduledFuture<?> f, int idx) { argument 910 ((ScheduledFutureTask)f).heapIndex = idx;
|
/libcore/ojluni/src/main/java/java/text/ |
H A D | SimpleDateFormat.java | 2183 final int idx = parseMonth(text, count, value, start, field, pos, 2185 if (idx > 0) { 2186 return idx; 2194 final int idx = parseMonth(text, count, value, start, field, pos, 2196 if (idx > 0) { 2197 return idx; 2220 final int idx = parseWeekday(text, start, field, useDateFormatSymbols, 2222 if (idx > 0) { 2223 return idx; 2232 final int idx [all...] |
/libcore/ojluni/src/main/native/ |
H A D | zip_util.c | 1189 jint idx; local 1197 idx = zip->table[hsh % zip->tablelen]; 1221 while (idx != ZIP_ENDCHAIN) { 1222 jzcell *zc = &zip->entries[idx]; 1246 idx = zc->next; 1268 idx = zip->table[hsh % zip->tablelen];
|
/libcore/ojluni/src/main/java/java/lang/invoke/ |
H A D | Transformers.java | 601 int idx = reorder[i]; 602 final Class<?> ptype = ptypes[idx]; 603 final Object argument = arguments[idx];
|