/libcore/ojluni/src/main/java/java/util/ |
D | ArrayDeque.java | 686 int cursor; field in ArrayDeque.DeqIterator 697 DeqIterator() { cursor = head; } in DeqIterator() 707 E e = nonNullElementAt(es, cursor); in next() 708 cursor = inc(lastRet = cursor, es.length); in next() 715 cursor = dec(cursor, elements.length); in postDelete() 733 if (es[cursor] == null || sub(tail, cursor, es.length) != r) in forEachRemaining() 735 for (int i = cursor, end = tail, to = (i <= end) ? end : es.length; in forEachRemaining() 750 DescendingIterator() { cursor = dec(tail, elements.length); } in DescendingIterator() 756 E e = nonNullElementAt(es, cursor); in next() 757 cursor = dec(lastRet = cursor, es.length); in next() [all …]
|
D | AbstractList.java | 349 int cursor = 0; field in AbstractList.Itr 366 return cursor != size(); in hasNext() 372 int i = cursor; in next() 375 cursor = i + 1; in next() 390 if (lastRet < cursor) in remove() 391 cursor--; in remove() 407 cursor = index; in ListItr() 411 return cursor != 0; in hasPrevious() 417 int i = cursor - 1; in previous() 419 lastRet = cursor = i; in previous() [all …]
|
D | ArrayList.java | 1051 int cursor; // index of next element to return field in ArrayList.Itr 1059 return cursor < limit; in hasNext() 1065 int i = cursor; in next() 1071 cursor = i + 1; in next() 1082 cursor = lastRet; in remove() 1095 int i = cursor; in forEachRemaining() 1103 cursor = i; in forEachRemaining() 1121 cursor = index; in ListItr() 1125 return cursor != 0; in hasPrevious() 1129 return cursor; in nextIndex() [all …]
|
D | Vector.java | 1254 int cursor; // index of next element to return field in Itr 1261 return cursor < limit; in hasNext() 1267 int i = cursor; in next() 1272 cursor = i + 1; in next() 1287 cursor = lastRet; in remove() 1298 int i = cursor; in forEachRemaining() 1308 cursor = i; in forEachRemaining() 1326 cursor = index; in ListItr() 1330 return cursor != 0; in hasPrevious() 1334 return cursor; in nextIndex() [all …]
|
D | ImmutableCollections.java | 355 private int cursor; field in ListItr 360 this.cursor = 0; in ListItr() 367 this.cursor = index; in ListItr() 372 return cursor != size; in hasNext() 377 int i = cursor; in next() 379 cursor = i + 1; in next() 394 return cursor != 0; in hasPrevious() 402 int i = cursor - 1; in previous() 404 cursor = i; in previous() 415 return cursor; in nextIndex() [all …]
|
D | PriorityQueue.java | 494 private int cursor; 532 return cursor < size || 539 if (cursor < size) 540 return (E) queue[lastRet = cursor++]; 557 cursor--;
|
D | Formatter.java | 2751 private int cursor; field in Formatter.FormatSpecifierParser 2765 cursor = startIdx; in FormatSpecifierParser() 2808 int strBegin = cursor; in nextInt() 2812 return format.substring(strBegin, cursor); in nextInt() 2823 return format.charAt(cursor); in peek() 2830 return format.charAt(cursor++); in advance() 2834 cursor -= len; in back() 2838 return cursor == format.length(); in isEnd() 2846 return cursor; in getEndIdx()
|
D | Arrays.java | 4309 private int cursor; field in Arrays.ArrayItr 4318 return cursor < a.length; in hasNext() 4323 int i = cursor; in next() 4327 cursor = i + 1; in next()
|
/libcore/ojluni/src/main/java/java/util/regex/ |
D | Matcher.java | 1063 int cursor = 0; in appendExpandedReplacement() local 1064 while (cursor < replacement.length()) { in appendExpandedReplacement() 1065 char nextChar = replacement.charAt(cursor); in appendExpandedReplacement() 1067 cursor++; in appendExpandedReplacement() 1068 if (cursor == replacement.length()) in appendExpandedReplacement() 1071 nextChar = replacement.charAt(cursor); in appendExpandedReplacement() 1073 cursor++; in appendExpandedReplacement() 1076 cursor++; in appendExpandedReplacement() 1078 if (cursor == replacement.length()) in appendExpandedReplacement() 1081 nextChar = replacement.charAt(cursor); in appendExpandedReplacement() [all …]
|
/libcore/ojluni/src/main/java/java/util/concurrent/ |
D | ArrayBlockingQueue.java | 1026 private int cursor; field in ArrayBlockingQueue.Itr 1065 cursor = NONE; in Itr() 1072 cursor = incCursor(takeIndex); in Itr() 1143 if (invalidated(cursor, prevTakeIndex, dequeues, len)) in incorporateDequeues() 1144 cursor = takeIndex; in incorporateDequeues() 1146 if (cursor < 0 && nextIndex < 0 && lastRet < 0) in incorporateDequeues() 1224 final int cursor = this.cursor; in next() local 1225 if (cursor >= 0) { in next() 1226 nextItem = itemAt(nextIndex = cursor); in next() 1228 this.cursor = incCursor(cursor); in next() [all …]
|
D | DelayQueue.java | 510 int cursor; // index of next element to return field in DelayQueue.Itr 519 return cursor < array.length; in hasNext() 524 if (cursor >= array.length) in next() 526 return (E)array[lastRet = cursor++]; in next()
|
D | PriorityBlockingQueue.java | 852 int cursor; // index of next element to return field in PriorityBlockingQueue.Itr 860 return cursor < array.length; in hasNext() 864 if (cursor >= array.length) in next() 866 return (E)array[lastRet = cursor++]; in next() 880 if ((i = cursor) < es.length) { in forEachRemaining() 882 cursor = es.length; in forEachRemaining()
|
D | CopyOnWriteArrayList.java | 1169 private int cursor; field in CopyOnWriteArrayList.COWIterator 1172 cursor = initialCursor; in COWIterator() 1177 return cursor < snapshot.length; in hasNext() 1181 return cursor > 0; in hasPrevious() 1188 return (E) snapshot[cursor++]; in next() 1195 return (E) snapshot[--cursor]; in previous() 1199 return cursor; in nextIndex() 1203 return cursor - 1; in previousIndex() 1237 int i = cursor; in forEachRemaining() 1238 cursor = size; in forEachRemaining()
|
D | ScheduledThreadPoolExecutor.java | 1331 int cursor; // index of next element to return; initially 0 field in ScheduledThreadPoolExecutor.DelayedWorkQueue.Itr 1339 return cursor < array.length; in hasNext() 1343 if (cursor >= array.length) in next() 1345 return array[lastRet = cursor++]; in next()
|
/libcore/ojluni/src/main/java/java/math/ |
D | BigInteger.java | 481 int cursor = 0, numDigits; in BigInteger() local 498 cursor = 1; in BigInteger() 503 cursor = 1; in BigInteger() 505 if (cursor == len) in BigInteger() 509 while (cursor < len && in BigInteger() 510 Character.digit(val.charAt(cursor), radix) == 0) { in BigInteger() 511 cursor++; in BigInteger() 514 if (cursor == len) { in BigInteger() 520 numDigits = len - cursor; in BigInteger() 536 String group = val.substring(cursor, cursor += firstGroupLen); in BigInteger() [all …]
|
/libcore/ojluni/annotations/hiddenapi/java/util/ |
D | ArrayDeque.java | 248 private int cursor; field in ArrayDeque.DeqIterator 316 private int cursor; field in ArrayDeque.DescendingIterator
|
D | PriorityQueue.java | 222 private int cursor; field in PriorityQueue.Itr
|
D | Vector.java | 311 int cursor; field in Vector.Itr
|
D | ArrayList.java | 307 int cursor; field in ArrayList.Itr
|
/libcore/ojluni/annotations/hiddenapi/java/util/concurrent/ |
D | PriorityBlockingQueue.java | 264 int cursor; field in PriorityBlockingQueue.Itr
|
D | CopyOnWriteArrayList.java | 322 private int cursor; field in CopyOnWriteArrayList.COWIterator
|
/libcore/expectations/ |
D | knownfailures.txt | 595 description: "no exception is thrown when moving cursor backwards on forward only statement", 638 …n: "Second block first assertion fails. Is Last should evaluate true if the row on which the cursor
|