Home
last modified time | relevance | path

Searched refs:subList (Results 1 – 16 of 16) sorted by relevance

/libcore/luni/src/test/java/libcore/java/util/concurrent/
DCopyOnWriteArrayListTest.java55 List<String> bcd = list.subList(1, 4); in testSubListAndNonStructuralChanges()
67 List<String> bcd = list.subList(1, 4); in testSubListAndStructuralChanges()
79 List<String> bcd = list.subList(1, 4); in testSubListAndSizePreservingStructuralChanges()
106 List<String> bcd = list.subList(1, 4); in testSubListClear()
114 new CopyOnWriteArrayList<String>().subList(0, 0).clear(); // the RI fails here in testSubListClearWhenEmpty()
120 Iterator<String> bcd = list.subList(1, 4).iterator(); in testSubListIteratorGetsSnapshot()
131 List<String> bcd = list.subList(1, 4); in testSubListRemoveByValue()
140 List<String> bcd = list.subList(1, 4); in testSubListRemoveByIndex()
149 List<String> def = list.subList(3, 6); in testSubListRetainAll()
158 List<String> def = list.subList(3, 6); in testSubListRemoveAll()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DAbstractListTest.java133 List sList = mList.subList(0, 2); in test_subListII()
165 al.subList(3, 7) instanceof RandomAccess); in test_subListII()
173 !(ll.subList(3, 7) instanceof RandomAccess)); in test_subListII()
184 List emptySubList = al.subList(0, 0); in test_subList_empty()
285 List subList = mainList.subList(1, 2); in test_subList_addAll() local
286 assertFalse("subList should not contain \"a\"", subList.contains("a")); in test_subList_addAll()
287 assertFalse("subList should not contain \"c\"", subList.contains("c")); in test_subList_addAll()
288 assertTrue("subList should contain \"b\"", subList.contains("b")); in test_subList_addAll()
291 subList.addAll(Arrays.asList(subObjects)); in test_subList_addAll()
292 assertFalse("subList should not contain \"a\"", subList.contains("a")); in test_subList_addAll()
[all …]
DConcurrentModTest.java44 List sub = al.subList(1, 3); in testGet()
88 List sub = al.subList(1, 3); in testSet()
118 List sub = al.subList(1, 3); in testAdd()
148 List sub = al.subList(1, 3); in testRemove()
214 List sub = al.subList(1, 3); in testAddAll()
DCollectionsTest.java960 List subList = list.subList(1, 5); in testRotate() local
961 Collections.rotate(subList, -1); in testRotate()
966 Collections.rotate(subList, 2); in testRotate()
1081 sub = new ArrayList(src.subList(3, 11)); in test_indexOfSubList2()
1086 sub = new ArrayList(src.subList(6, 11)); in test_indexOfSubList2()
1091 sub = new ArrayList(src.subList(0, 3)); in test_indexOfSubList2()
1096 sub = new ArrayList(src.subList(9, 11)); in test_indexOfSubList2()
1101 sub = new ArrayList(src.subList(10, 11)); in test_indexOfSubList2()
1106 sub = new ArrayList(src.subList(0, 11)); in test_indexOfSubList2()
1194 sub = new ArrayList(src.subList(0, 8)); in test_lastIndexOfSubList2()
[all …]
DArrayListTest.java44 ArrayList subList = new ArrayList(); in test_Constructor() local
46 subList.add(new Integer(i)); in test_Constructor()
47 new Support_ListTest("", subList.subList(50, 150)).runTest(); in test_Constructor()
DLinkedListTest.java61 LinkedList subList = new LinkedList(); in test_Constructor() local
63 subList.add(new Integer(i)); in test_Constructor()
64 new Support_ListTest("", subList.subList(50, 150)).runTest(); in test_Constructor()
DVectorTest.java52 new Support_ListTest("", tv.subList(50, 150)).runTest(); in test_Constructor()
1239 List sl = tVector.subList(10, 25); in test_subListII()
/libcore/luni/src/main/java/java/util/
DAbstractList.java169 private final SubAbstractList<E> subList; field in AbstractList.SubAbstractList.SubAbstractListIterator
180 subList = list; in SubAbstractListIterator()
187 subList.sizeChanged(true); in add()
227 subList.sizeChanged(false); in remove()
728 public List<E> subList(int start, int end) { in subList() method in AbstractList
DList.java329 public List<E> subList(int start, int end); in subList() method
DCollections.java481 @Override public List<E> subList(int start, int end) {
483 return new SynchronizedRandomAccessList<E>(list.subList(start, end), mutex);
619 @Override public List<E> subList(int start, int end) {
621 return new SynchronizedList<E>(list.subList(start, end), mutex);
1006 @Override public List<E> subList(int start, int end) {
1007 return new UnmodifiableRandomAccessList<E>(list.subList(start, end));
1119 @Override public List<E> subList(int start, int end) {
1120 return new UnmodifiableList<E>(list.subList(start, end));
2002 List<Object> sublist1 = list.subList(0, divideIndex);
2003 List<Object> sublist2 = list.subList(divideIndex, size);
[all …]
DVector.java960 public synchronized List<E> subList(int start, int end) { in subList() method
961 return new Collections.SynchronizedRandomAccessList<E>(super.subList( in subList()
/libcore/jsr166-tests/src/test/java/jsr166/
DCopyOnWriteArrayListTest.java472 assertTrue(a.subList(1,1).isEmpty()); in testSubList()
475 List b = a.subList(j,i); in testSubList()
482 List s = a.subList(2, 5); in testSubList()
656 c.subList(-1,100); in testSubList1_IndexOutOfBoundsException()
668 c.subList(1,100); in testSubList2_IndexOutOfBoundsException()
680 c.subList(3,1); in testSubList3_IndexOutOfBoundsException()
/libcore/luni/src/main/java/libcore/util/
DCollectionUtils.java95 list.subList(j, list.size()).clear();
/libcore/support/src/test/java/tests/support/
DSupport_ListTest.java97 List<Integer> mySubList = list.subList(50, 53); in runTest()
/libcore/luni/src/main/java/java/util/concurrent/
DCopyOnWriteArrayList.java214 public List<E> subList(int from, int to) { in subList() method in CopyOnWriteArrayList
552 @Override public List<E> subList(int from, int to) { in subList() method in CopyOnWriteArrayList.CowSubList
/libcore/benchmarks/libs/
Dcaliper.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/ ...