Home
last modified time | relevance | path

Searched refs:cursor (Results 1 – 11 of 11) sorted by relevance

/libcore/ojluni/src/main/java/java/util/
DAbstractList.java334 int cursor = 0; field in AbstractList.Itr
351 return cursor != size(); in hasNext()
357 int i = cursor; in next()
360 cursor = i + 1; in next()
375 if (lastRet < cursor) in remove()
376 cursor--; in remove()
392 cursor = index; in ListItr()
396 return cursor != 0; in hasPrevious()
402 int i = cursor - 1; in previous()
404 lastRet = cursor = i; in previous()
[all …]
DArrayDeque.java598 private int cursor = head; field in ArrayDeque.DeqIterator
613 return cursor != fence; in hasNext()
617 if (cursor == fence) in next()
620 E result = (E) elements[cursor]; in next()
625 lastRet = cursor; in next()
626 cursor = (cursor + 1) & (elements.length - 1); in next()
634 cursor = (cursor - 1) & (elements.length - 1); in remove()
644 int m = a.length - 1, f = fence, i = cursor; in forEachRemaining()
645 cursor = f; in forEachRemaining()
665 private int cursor = tail; field in ArrayDeque.DescendingIterator
[all …]
DArrayList.java820 int cursor; // index of next element to return field in ArrayList.Itr
825 return cursor < limit; in hasNext()
832 int i = cursor; in next()
838 cursor = i + 1; in next()
850 cursor = lastRet; in remove()
864 int i = cursor; in forEachRemaining()
876 cursor = i; in forEachRemaining()
890 cursor = index; in ListItr()
894 return cursor != 0; in hasPrevious()
898 return cursor; in nextIndex()
[all …]
DVector.java1132 int cursor; // index of next element to return field in Itr
1137 return cursor < limit; in hasNext()
1143 int i = cursor; in next()
1146 cursor = i + 1; in next()
1160 cursor = lastRet; in remove()
1169 int i = cursor; in forEachRemaining()
1182 cursor = i; in forEachRemaining()
1200 cursor = index; in ListItr()
1204 return cursor != 0; in hasPrevious()
1208 return cursor; in nextIndex()
[all …]
DPriorityQueue.java492 private int cursor; field in PriorityQueue.Itr
528 return cursor < size || in hasNext()
536 if (cursor < size) in next()
537 return (E) queue[lastRet = cursor++]; in next()
554 cursor--; in remove()
DFormatter.java2538 private int cursor; field in Formatter.FormatSpecifierParser
2552 cursor = startIdx; in FormatSpecifierParser()
2595 int strBegin = cursor; in nextInt()
2599 return format.substring(strBegin, cursor); in nextInt()
2610 return format.charAt(cursor); in peek()
2617 return format.charAt(cursor++); in advance()
2621 cursor -= len; in back()
2625 return cursor == format.length(); in isEnd()
2633 return cursor; in getEndIdx()
/libcore/luni/src/main/java/java/util/concurrent/
DArrayBlockingQueue.java949 private int cursor; field in ArrayBlockingQueue.Itr
989 cursor = NONE; in Itr()
996 cursor = incCursor(takeIndex); in Itr()
1067 if (invalidated(cursor, prevTakeIndex, dequeues, len)) in incorporateDequeues()
1068 cursor = takeIndex; in incorporateDequeues()
1070 if (cursor < 0 && nextIndex < 0 && lastRet < 0) in incorporateDequeues()
1150 final int cursor = this.cursor; in next() local
1151 if (cursor >= 0) { in next()
1152 nextItem = itemAt(nextIndex = cursor); in next()
1154 this.cursor = incCursor(cursor); in next()
[all …]
DDelayQueue.java505 int cursor; // index of next element to return field in DelayQueue.Itr
514 return cursor < array.length; in hasNext()
519 if (cursor >= array.length) in next()
521 lastRet = cursor; in next()
522 return (E)array[cursor++]; in next()
DPriorityBlockingQueue.java834 int cursor; // index of next element to return field in PriorityBlockingQueue.Itr
843 return cursor < array.length; in hasNext()
847 if (cursor >= array.length) in next()
849 lastRet = cursor; in next()
850 return (E)array[cursor++]; in next()
DScheduledThreadPoolExecutor.java1267 int cursor; // index of next element to return; initially 0 field in ScheduledThreadPoolExecutor.DelayedWorkQueue.Itr
1275 return cursor < array.length; in hasNext()
1279 if (cursor >= array.length) in next()
1281 lastRet = cursor; in next()
1282 return array[cursor++]; in next()
/libcore/expectations/
Dknownfailures.txt587 description: "no exception is thrown when moving cursor backwards on forward only statement",
630 …n: "Second block first assertion fails. Is Last should evaluate true if the row on which the cursor