Home
last modified time | relevance | path

Searched refs:previousIndex (Results 1 – 13 of 13) sorted by relevance

/libcore/support/src/test/java/tests/support/
DSupport_ListTest.java149 .previousIndex() == i - 1); in t_listIterator()
169 .previousIndex() == i - 1); in t_listIterator()
193 0, li.previousIndex()); in t_listIterator()
202 1, li.previousIndex()); in t_listIterator()
209 .previousIndex()); in t_listIterator()
218 assertEquals("list iterator previousIndex()3", -1, li.previousIndex()); in t_listIterator()
/libcore/ojluni/src/main/java/java/util/
DAbstractList.java182 return it.previousIndex(); in indexOf()
186 return it.previousIndex(); in indexOf()
416 public int previousIndex() { in previousIndex() method in AbstractList.ListItr
713 return previousIndex() >= 0; in listIterator()
727 public int previousIndex() { in listIterator() method
728 return i.previousIndex() - offset; in listIterator()
DListIterator.java131 int previousIndex(); in previousIndex() method
DArrayList.java930 public int previousIndex() { in previousIndex() method in ArrayList.ListItr
1187 public int previousIndex() { in listIterator() method
DVector.java1214 public int previousIndex() { in previousIndex() method in ListItr
DLinkedList.java916 public int previousIndex() { in previousIndex() method in LinkedList.ListItr
DCollections.java1388 public int previousIndex() {return i.previousIndex();} in listIterator() method
3502 public int previousIndex() { return i.previousIndex(); }
4284 public int previousIndex() { return -1; }
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DAbstractSequentialListTest.java95 public int previousIndex() { in previousIndex() method in AbstractSequentialListTest.Mock_unsupportedListIterator
134 public int previousIndex() { in previousIndex() method in AbstractSequentialListTest.Mock_ListIterator
337 public int previousIndex() { in test_getI()
452 public int previousIndex() { in test_removeI()
525 public int previousIndex() { in test_setILjava_lang_Object()
DLinkedListTest.java451 + i2.previousIndex() + ", n val: " + n, i2 in test_listIteratorI()
452 .previousIndex() == n); in test_listIteratorI()
/libcore/luni/src/test/java/libcore/java/util/concurrent/
DCopyOnWriteArrayListTest.java228 assertEquals(4, i.previousIndex()); in testListIterator()
231 assertEquals(3, i.previousIndex()); in testListIterator()
236 assertEquals(2, i.previousIndex()); in testListIterator()
241 assertEquals(1, i.previousIndex()); in testListIterator()
246 assertEquals(0, i.previousIndex()); in testListIterator()
251 assertEquals(-1, i.previousIndex()); in testListIterator()
/libcore/luni/src/test/java/libcore/java/util/
DOldListIteratorTest.java84 public int previousIndex() { in previousIndex() method in OldListIteratorTest.Mock_ListIterator
168 assertTrue(objArray[i].equals(l.previousIndex() + 1)); in testPreviousIndex()
DCollectionsTest.java121 assertEquals(-1, i.previousIndex()); in testEmptyListIterator()
/libcore/ojluni/src/main/java/java/util/concurrent/
DCopyOnWriteArrayList.java1101 public int previousIndex() { in previousIndex() method in CopyOnWriteArrayList.COWIterator
1506 return previousIndex() >= 0; in hasPrevious()
1520 public int previousIndex() { in previousIndex() method in CopyOnWriteArrayList.COWSubListIterator
1521 return it.previousIndex() - offset; in previousIndex()