Home
last modified time | relevance | path

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

12

/libcore/luni/src/test/java/libcore/java/util/concurrent/
DCopyOnWriteArrayListTest.java56 List<String> bcd = list.subList(1, 4); in testSubListAndNonStructuralChanges()
68 List<String> bcd = list.subList(1, 4); in testSubListAndStructuralChanges()
80 List<String> bcd = list.subList(1, 4); in testSubListAndSizePreservingStructuralChanges()
107 List<String> bcd = list.subList(1, 4); in testSubListClear()
115 new CopyOnWriteArrayList<String>().subList(0, 0).clear(); // the RI fails here in testSubListClearWhenEmpty()
121 Iterator<String> bcd = list.subList(1, 4).iterator(); in testSubListIteratorGetsSnapshot()
132 List<String> bcd = list.subList(1, 4); in testSubListRemoveByValue()
141 List<String> bcd = list.subList(1, 4); in testSubListRemoveByIndex()
150 List<String> def = list.subList(3, 6); in testSubListRetainAll()
159 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.java962 List subList = list.subList(1, 5); in testRotate() local
963 Collections.rotate(subList, -1); in testRotate()
968 Collections.rotate(subList, 2); in testRotate()
1083 sub = new ArrayList(src.subList(3, 11)); in test_indexOfSubList2()
1088 sub = new ArrayList(src.subList(6, 11)); in test_indexOfSubList2()
1093 sub = new ArrayList(src.subList(0, 3)); in test_indexOfSubList2()
1098 sub = new ArrayList(src.subList(9, 11)); in test_indexOfSubList2()
1103 sub = new ArrayList(src.subList(10, 11)); in test_indexOfSubList2()
1108 sub = new ArrayList(src.subList(0, 11)); in test_indexOfSubList2()
1196 sub = new ArrayList(src.subList(0, 8)); in test_lastIndexOfSubList2()
[all …]
DArrayListTest.java50 ArrayList subList = new ArrayList(); in test_Constructor() local
52 subList.add(new Integer(i)); in test_Constructor()
53 new Support_ListTest("", subList.subList(50, 150)).runTest(); in test_Constructor()
1169 testElements = new ArrayList<Integer>(list.subList(8, 16)); in test_sublist_spliterator()
1170 list = list.subList(8, 16); in test_sublist_spliterator()
DLinkedListTest.java66 LinkedList subList = new LinkedList(); in test_Constructor() local
68 subList.add(new Integer(i)); in test_Constructor()
69 new Support_ListTest("", subList.subList(50, 150)).runTest(); in test_Constructor()
DVectorTest.java62 new Support_ListTest("", tv.subList(50, 150)).runTest(); in test_Constructor()
1258 List sl = tVector.subList(10, 25); in test_subListII()
/libcore/jsr166-tests/src/test/java/jsr166/
DCopyOnWriteArrayListTest.java495 assertTrue(a.subList(1,1).isEmpty()); in testSubList()
498 List b = a.subList(j,i); in testSubList()
505 List s = a.subList(2, 5); in testSubList()
534 List[] lists = { c, c.subList(1, c.size() - 1) }; in testGet1_IndexOutOfBoundsException()
548 List[] lists = { c, c.subList(1, c.size() - 1) }; in testGet2_IndexOutOfBoundsException()
562 List[] lists = { c, c.subList(1, c.size() - 1) }; in testSet1_IndexOutOfBoundsException()
576 List[] lists = { c, c.subList(1, c.size() - 1) }; in testSet2()
590 List[] lists = { c, c.subList(1, c.size() - 1) }; in testAdd1_IndexOutOfBoundsException()
604 List[] lists = { c, c.subList(1, c.size() - 1) }; in testAdd2_IndexOutOfBoundsException()
618 List[] lists = { c, c.subList(1, c.size() - 1) }; in testRemove1_IndexOutOfBounds()
[all …]
/libcore/luni/src/test/java/libcore/java/util/
DCollectionsTest.java826 keysInOrder.subList(0, i), in check_unmodifiableNavigableMap_defaultMethods()
827 valuesInOrder.subList(0, i), in check_unmodifiableNavigableMap_defaultMethods()
832 keysInOrder.subList(0, i), in check_unmodifiableNavigableMap_defaultMethods()
833 valuesInOrder.subList(0, i), in check_unmodifiableNavigableMap_defaultMethods()
838 keysInOrder.subList(0, i + 1), in check_unmodifiableNavigableMap_defaultMethods()
839 valuesInOrder.subList(0, i + 1), in check_unmodifiableNavigableMap_defaultMethods()
847 keysInOrder.subList(0, i), in check_unmodifiableNavigableMap_defaultMethods()
848 valuesInOrder.subList(0, i), in check_unmodifiableNavigableMap_defaultMethods()
855 keysInOrder.subList(i, numEntries), in check_unmodifiableNavigableMap_defaultMethods()
856 valuesInOrder.subList(i, numEntries), in check_unmodifiableNavigableMap_defaultMethods()
[all …]
/libcore/ojluni/src/main/java/java/util/
DAbstractList.java483 public List<E> subList(int fromIndex, int toIndex) { in subList() method in AbstractList
749 public List<E> subList(int fromIndex, int toIndex) { in subList() method
778 public List<E> subList(int fromIndex, int toIndex) {
DList.java730 List<E> subList(int fromIndex, int toIndex); in subList() method
DCollections.java855 reverse(list.subList(0, mid)); in rotate2()
856 reverse(list.subList(mid, size)); in rotate2()
1407 public List<E> subList(int fromIndex, int toIndex) { in subList() method
1408 return new UnmodifiableList<>(list.subList(fromIndex, toIndex)); in subList()
1440 public List<E> subList(int fromIndex, int toIndex) {
1442 list.subList(fromIndex, toIndex));
2492 public List<E> subList(int fromIndex, int toIndex) {
2494 return new SynchronizedList<>(list.subList(fromIndex, toIndex),
2542 public List<E> subList(int fromIndex, int toIndex) {
2545 list.subList(fromIndex, toIndex), mutex);
[all …]
DVector.java1037 public synchronized List<E> subList(int fromIndex, int toIndex) { in subList() method
1038 return Collections.synchronizedList(super.subList(fromIndex, toIndex), in subList()
DArrayList.java1007 public List<E> subList(int fromIndex, int toIndex) { in subList() method in ArrayList
1237 public List<E> subList(int fromIndex, int toIndex) { in subList() method in ArrayList
/libcore/luni/src/main/java/libcore/util/
DCollectionUtils.java95 list.subList(j, list.size()).clear();
/libcore/ojluni/src/test/java/util/stream/boottest/java/util/stream/
DIntNodeTest.java118 tree(l.subList(0, l.size() / 2), m), in tree()
119 tree(l.subList(l.size() / 2, l.size()), m)); in tree()
DLongNodeTest.java118 tree(l.subList(0, l.size() / 2), m), in tree()
119 tree(l.subList(l.size() / 2, l.size()), m)); in tree()
DNodeTest.java95 tree(l.subList(0, l.size() / 2), m), in tree()
96 tree(l.subList(l.size() / 2, l.size()), m )); in tree()
DDoubleNodeTest.java118 tree(l.subList(0, l.size() / 2), m), in tree()
119 tree(l.subList(l.size() / 2, l.size()), m)); in tree()
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/
DStreamTestDataProvider.java111 … (ints.length) <= 1 ? aList.subList(0, 0) : aList.subList(1, ints.length / 2)));
/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/
DStreamTestDataProvider.java105 … (ints.length) <= 1 ? aList.subList(0, 0) : aList.subList(1, ints.length / 2)));
/libcore/ojluni/src/main/java/java/lang/invoke/
DMethodHandles.java2746 .equals(targetType.parameterList().subList(afterInsertPos, in foldArgumentChecks()
2803 if (gpc >= tpc || !targs.subList(0, gpc).equals(gargs)) in guardWithTest()
2805 test = dropArguments(test, gpc, targs.subList(gpc, tpc)); in guardWithTest()
2872 hargs = hargs.subList(1, hargs.size()); // omit leading parameter from handler in catchException()
2875 if (hpc >= tpc || !targs.subList(0, hpc).equals(hargs)) in catchException()
/libcore/support/src/test/java/tests/support/
DSupport_ListTest.java97 List<Integer> mySubList = list.subList(50, 53); in runTest()
/libcore/ojluni/src/main/java/java/util/regex/
DPattern.java1150 return matchList.subList(0, resultSize).toArray(result); in split()
/libcore/ojluni/src/main/java/java/util/concurrent/
DCopyOnWriteArrayList.java1159 public List<E> subList(int fromIndex, int toIndex) { in subList() method in CopyOnWriteArrayList
1299 public List<E> subList(int fromIndex, int toIndex) { in subList() method in CopyOnWriteArrayList.COWSubList

12