Home
last modified time | relevance | path

Searched refs:cursor (Results 1 – 12 of 12) 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.java599 private int cursor = head; field in ArrayDeque.DeqIterator
614 return cursor != fence; in hasNext()
618 if (cursor == fence) in next()
621 E result = (E) elements[cursor]; in next()
626 lastRet = cursor; in next()
627 cursor = (cursor + 1) & (elements.length - 1); in next()
635 cursor = (cursor - 1) & (elements.length - 1); in remove()
645 int m = a.length - 1, f = fence, i = cursor; in forEachRemaining()
646 cursor = f; in forEachRemaining()
666 private int cursor = tail; field in ArrayDeque.DescendingIterator
[all …]
DArrayList.java849 int cursor; // index of next element to return field in ArrayList.Itr
854 return cursor < limit; in hasNext()
861 int i = cursor; in next()
867 cursor = i + 1; in next()
879 cursor = lastRet; in remove()
893 int i = cursor; in forEachRemaining()
905 cursor = i; in forEachRemaining()
919 cursor = index; in ListItr()
923 return cursor != 0; in hasPrevious()
927 return cursor; in nextIndex()
[all …]
DVector.java1135 int cursor; // index of next element to return field in Itr
1140 return cursor < limit; in hasNext()
1146 int i = cursor; in next()
1149 cursor = i + 1; in next()
1163 cursor = lastRet; in remove()
1172 int i = cursor; in forEachRemaining()
1185 cursor = i; in forEachRemaining()
1203 cursor = index; in ListItr()
1207 return cursor != 0; in hasPrevious()
1211 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.java2571 private int cursor; field in Formatter.FormatSpecifierParser
2585 cursor = startIdx; in FormatSpecifierParser()
2628 int strBegin = cursor; in nextInt()
2632 return format.substring(strBegin, cursor); in nextInt()
2643 return format.charAt(cursor); in peek()
2650 return format.charAt(cursor++); in advance()
2654 cursor -= len; in back()
2658 return cursor == format.length(); in isEnd()
2666 return cursor; in getEndIdx()
/libcore/ojluni/src/main/java/java/util/concurrent/
DArrayBlockingQueue.java978 private int cursor; field in ArrayBlockingQueue.Itr
1018 cursor = NONE; in Itr()
1025 cursor = incCursor(takeIndex); in Itr()
1096 if (invalidated(cursor, prevTakeIndex, dequeues, len)) in incorporateDequeues()
1097 cursor = takeIndex; in incorporateDequeues()
1099 if (cursor < 0 && nextIndex < 0 && lastRet < 0) in incorporateDequeues()
1179 final int cursor = this.cursor; in next() local
1180 if (cursor >= 0) { in next()
1181 nextItem = itemAt(nextIndex = cursor); in next()
1183 this.cursor = incCursor(cursor); in next()
[all …]
DDelayQueue.java534 int cursor; // index of next element to return field in DelayQueue.Itr
543 return cursor < array.length; in hasNext()
548 if (cursor >= array.length) in next()
550 lastRet = cursor; in next()
551 return (E)array[cursor++]; in next()
DCopyOnWriteArrayList.java1068 private int cursor; field in CopyOnWriteArrayList.COWIterator
1071 cursor = initialCursor; in COWIterator()
1076 return cursor < snapshot.length; in hasNext()
1080 return cursor > 0; in hasPrevious()
1087 return (E) snapshot[cursor++]; in next()
1094 return (E) snapshot[--cursor]; in previous()
1098 return cursor; in nextIndex()
1102 return cursor-1; in previousIndex()
1137 for (int i = cursor; i < size; i++) { in forEachRemaining()
1140 cursor = size; in forEachRemaining()
DPriorityBlockingQueue.java863 int cursor; // index of next element to return field in PriorityBlockingQueue.Itr
872 return cursor < array.length; in hasNext()
876 if (cursor >= array.length) in next()
878 lastRet = cursor; in next()
879 return (E)array[cursor++]; in next()
DScheduledThreadPoolExecutor.java1296 int cursor; // index of next element to return; initially 0 field in ScheduledThreadPoolExecutor.DelayedWorkQueue.Itr
1304 return cursor < array.length; in hasNext()
1308 if (cursor >= array.length) in next()
1310 lastRet = cursor; in next()
1311 return array[cursor++]; in next()
/libcore/expectations/
Dknownfailures.txt600 description: "no exception is thrown when moving cursor backwards on forward only statement",
643 …n: "Second block first assertion fails. Is Last should evaluate true if the row on which the cursor