Home
last modified time | relevance | path

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

/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.java1063 private int cursor; field in CopyOnWriteArrayList.COWIterator
1066 cursor = initialCursor; in COWIterator()
1071 return cursor < snapshot.length; in hasNext()
1075 return cursor > 0; in hasPrevious()
1082 return (E) snapshot[cursor++]; in next()
1089 return (E) snapshot[--cursor]; in previous()
1093 return cursor; in nextIndex()
1097 return cursor-1; in previousIndex()
1132 for (int i = cursor; i < size; i++) { in forEachRemaining()
1135 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/ojluni/src/main/java/java/util/
DArrayDeque.java605 private int cursor = head; field in ArrayDeque.DeqIterator
620 return cursor != fence; in hasNext()
624 if (cursor == fence) in next()
627 E result = (E) elements[cursor]; in next()
632 lastRet = cursor; in next()
633 cursor = (cursor + 1) & (elements.length - 1); in next()
641 cursor = (cursor - 1) & (elements.length - 1); in remove()
651 int m = a.length - 1, f = fence, i = cursor; in forEachRemaining()
652 cursor = f; in forEachRemaining()
672 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 …]
DAbstractList.java347 int cursor = 0; field in AbstractList.Itr
364 return cursor != size(); in hasNext()
370 int i = cursor; in next()
373 cursor = i + 1; in next()
388 if (lastRet < cursor) in remove()
389 cursor--; in remove()
405 cursor = index; in ListItr()
409 return cursor != 0; in hasPrevious()
415 int i = cursor - 1; in previous()
417 lastRet = cursor = i; in previous()
[all …]
DVector.java1135 int cursor; // index of next element to return field in Itr
1142 return cursor < limit; in hasNext()
1148 int i = cursor; in next()
1153 cursor = i + 1; in next()
1168 cursor = lastRet; in remove()
1179 int i = cursor; in forEachRemaining()
1192 cursor = i; in forEachRemaining()
1210 cursor = index; in ListItr()
1214 return cursor != 0; in hasPrevious()
1218 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.java2572 private int cursor; field in Formatter.FormatSpecifierParser
2586 cursor = startIdx; in FormatSpecifierParser()
2629 int strBegin = cursor; in nextInt()
2633 return format.substring(strBegin, cursor); in nextInt()
2644 return format.charAt(cursor); in peek()
2651 return format.charAt(cursor++); in advance()
2655 cursor -= len; in back()
2659 return cursor == format.length(); in isEnd()
2667 return cursor; in getEndIdx()
/libcore/ojluni/annotations/hiddenapi/java/util/
DArrayDeque.java248 private int cursor; field in ArrayDeque.DeqIterator
316 private int cursor; field in ArrayDeque.DescendingIterator
DPriorityQueue.java222 private int cursor; field in PriorityQueue.Itr
DVector.java311 int cursor; field in Vector.Itr
DArrayList.java307 int cursor; field in ArrayList.Itr
/libcore/ojluni/annotations/hiddenapi/java/util/concurrent/
DPriorityBlockingQueue.java264 int cursor; field in PriorityBlockingQueue.Itr
DCopyOnWriteArrayList.java322 private int cursor; field in CopyOnWriteArrayList.COWIterator
/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