Home
last modified time | relevance | path

Searched refs:idx (Results 1 – 23 of 23) sorted by relevance

/libcore/ojluni/src/main/java/sun/util/locale/
DLocaleUtils.java90 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 …]
DStringTokenIterator.java111 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/
DRefSortedMap.java178 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 …]
DAbstractListTest.java216 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
DArraysTest.java4272 int idx; field in ArraysTest.PrimitiveIntArrayList
4279 array[idx++] = element; in add()
4290 int idx; field in ArraysTest.PrimitiveLongArrayList
4297 array[idx++] = element; in add()
4308 int idx; field in ArraysTest.PrimitiveDoubleArrayList
4315 array[idx++] = element; in add()
/libcore/luni/src/test/java/libcore/java/util/
DPrimitiveIteratorTest.java33 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 …]
DSpliteratorsTest.java159 int idx; field in SpliteratorsTest.PrimitiveIntArrayList
166 array[idx++] = element; in add()
177 int idx; field in SpliteratorsTest.PrimitiveLongArrayList
184 array[idx++] = element; in add()
195 int idx; field in SpliteratorsTest.PrimitiveDoubleArrayList
202 array[idx++] = element; in add()
521 private int idx; field in SpliteratorsTest.CannedIntPrimitiveIterator
525 this.idx = 0; in CannedIntPrimitiveIterator()
530 return data[idx++]; in nextInt()
535 return idx < data.length; in hasNext()
[all …]
/libcore/ojluni/src/main/java/sun/security/util/
DBitArray.java45 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()
143 int idx = subscript(index); in set() local
147 repn[idx] |= bit; in set()
149 repn[idx] &= ~bit; in set()
/libcore/dalvik/src/main/java/dalvik/system/
DEmulatedStackFrame.java182 public void setReference(int idx, Object reference) { in setReference() argument
184 if (idx < 0 || idx >= ptypes.length) { in setReference()
185 throw new IllegalArgumentException("Invalid index: " + idx); in setReference()
188 if (reference != null && !ptypes[idx].isInstance(reference)) { in setReference()
189 throw new IllegalStateException("reference is not of type: " + type.ptypes()[idx]); in setReference()
192 references[idx] = reference; in setReference()
198 public <T> T getReference(int idx, Class<T> referenceType) { in getReference() argument
199 if (referenceType != type.ptypes()[idx]) { in getReference()
200 throw new IllegalArgumentException("Argument: " + idx + in getReference()
201 " is of type " + type.ptypes()[idx] + " expected " + referenceType + ""); in getReference()
[all …]
/libcore/ojluni/src/main/java/java/io/
DUnixFileSystem.java212 int idx = last; in parentOrNull() local
215 while (idx > 0) { in parentOrNull()
216 char c = path.charAt(idx); in parentOrNull()
227 if (idx == 0 || in parentOrNull()
228 idx >= last - 1 || in parentOrNull()
229 path.charAt(idx - 1) == sep) { in parentOrNull()
234 return path.substring(0, idx); in parentOrNull()
239 --idx; in parentOrNull()
/libcore/ojluni/src/main/java/sun/misc/
DFDBigInteger.java420 …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/annotations/hiddenapi/sun/security/util/
DBitArray.java48 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/
DOldAndroidZipFileTest.java103 int idx = 0; in scanZip() local
109 assertEquals(entry.getName(), "file-" + idx); in scanZip() local
110 idx++; in scanZip()
/libcore/libart/src/main/java/java/lang/
DStringFactory.java127 int idx = offset; in newStringFromBytes() local
137 while (idx < last) { in newStringFromBytes()
138 int b = d[idx++] & 0xff; in newStringFromBytes()
188 idx--; in newStringFromBytes()
/libcore/luni/src/test/java/libcore/java/io/
DOldBufferedWriterTest.java133 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()
DOldFileTest.java166 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/concurrent/
DForkJoinPool.java1641 int idx = w.config & SMASK; in deregisterWorker() local
1646 if ((ws = workQueues) != null && ws.length > idx && in deregisterWorker()
1647 ws[idx] == w) in deregisterWorker()
1648 ws[idx] = null; in deregisterWorker()
1852 int cfg = w.config, idx = cfg & SMASK; in timedAwaitWork() local
1857 idx < ws.length && idx >= 0 && ws[idx] == w && in timedAwaitWork()
1859 ws[idx] = null; in timedAwaitWork()
1915 int cfg = w.config, idx = cfg & SMASK; in tryDropSpare() local
1916 if (idx >= 0 && idx < ws.length && ws[idx] == w) in tryDropSpare()
1917 ws[idx] = null; in tryDropSpare()
[all …]
DConcurrentSkipListMap.java857 Index<K,V> idx = null; in doPut() local
861 idx = new Index<K,V>(z, idx, null); in doPut()
868 idxs[i] = idx = new Index<K,V>(z, idx, null); in doPut()
880 idx = idxs[level = oldLevel]; in doPut()
888 for (Index<K,V> q = h, r = q.right, t = idx;;) { in doPut()
1392 Index<K,V> idx = null; in buildFromSorted() local
1394 idx = new Index<K,V>(z, idx, null); in buildFromSorted()
1396 h = new HeadIndex<K,V>(h.node, h, idx, i); in buildFromSorted()
1399 preds.get(i).right = idx; in buildFromSorted()
1400 preds.set(i, idx); in buildFromSorted()
[all …]
DScheduledThreadPoolExecutor.java908 private void setIndex(RunnableScheduledFuture<?> f, int idx) { in setIndex() argument
910 ((ScheduledFutureTask)f).heapIndex = idx; in setIndex()
/libcore/ojluni/src/main/java/java/util/
DResourceBundle.java2403 int idx = nynorskList.size() - 1; in createObject() local
2404 nynorskList.add(idx++, Locale.getInstance("no", "NO", "NY")); in createObject()
2405 nynorskList.add(idx++, Locale.getInstance("no", "NO", "")); in createObject()
2406 nynorskList.add(idx++, Locale.getInstance("no", "", "")); in createObject()
2447 int idx = variant.length(); in getDefaultList() local
2448 while (idx != -1) { in getDefaultList()
2449 variants.add(variant.substring(0, idx)); in getDefaultList()
2450 idx = variant.lastIndexOf('_', --idx); in getDefaultList()
DFormatter.java2799 int idx = 1; in FormatSpecifier() local
3487 int idx = s.indexOf('p');
3488 va = s.substring(0, idx).toCharArray();
3497 sb.append(s.substring(idx+1));
3606 int idx = res.indexOf('p');
3607 if (idx == -1) {
3613 String exp = res.substring(idx + 1);
3615 return res.substring(0, idx) + "p"
/libcore/ojluni/src/main/native/
Dzip_util.c1191 jint idx; in ZIP_GetEntry2() local
1199 idx = zip->table[hsh % zip->tablelen]; in ZIP_GetEntry2()
1223 while (idx != ZIP_ENDCHAIN) { in ZIP_GetEntry2()
1224 jzcell *zc = &zip->entries[idx]; in ZIP_GetEntry2()
1248 idx = zc->next; in ZIP_GetEntry2()
1270 idx = zip->table[hsh % zip->tablelen]; in ZIP_GetEntry2()
/libcore/ojluni/src/main/java/java/lang/invoke/
DTransformers.java602 int idx = reorder[i]; in transform() local
603 final Class<?> ptype = ptypes[idx]; in transform()
604 final Object argument = arguments[idx]; in transform()