Home
last modified time | relevance | path

Searched refs:addAll (Results 1 – 25 of 142) sorted by relevance

123456

/libcore/luni/src/test/java/libcore/java/util/concurrent/
DCopyOnWriteArrayListTest.java38 list.addAll(Arrays.asList("a", "b", "c", "d", "e")); in testIteratorAndNonStructuralChanges()
55 list.addAll(Arrays.asList("a", "b", "c", "d", "e")); in testSubListAndNonStructuralChanges()
67 list.addAll(Arrays.asList("a", "b", "c", "d", "e")); in testSubListAndStructuralChanges()
79 list.addAll(Arrays.asList("a", "b", "c", "d", "e")); in testSubListAndSizePreservingStructuralChanges()
82 list.addAll(Arrays.asList("A", "B", "C", "D", "E")); in testSubListAndSizePreservingStructuralChanges()
92 list.addAll(Arrays.asList("a", "b", "c", "d", "e")); in testRemoveAll()
106 list.addAll(Arrays.asList("a", "b", "c", "d", "e")); in testSubListClear()
110 bcd.addAll(Arrays.asList("B", "C", "D")); in testSubListClear()
120 list.addAll(Arrays.asList("a", "b", "c", "d", "e")); in testSubListIteratorGetsSnapshot()
131 list.addAll(Arrays.asList("a", "b", "c", "d", "e")); in testSubListRemoveByValue()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DAbstractQueueTest.java162 queue.addAll(null); in test_addAllLE_null()
175 queue.addAll(list); in test_addAllLE_with_null()
188 queue.addAll(list); in test_addAllLE_full()
201 assertFalse("Non modification to queue should return false", queue.addAll(list)); in test_addAllLE_empty()
209 queue.addAll(queue); in test_addAllLE_this()
226 assertTrue(queue.addAll(c)); in test_addAllLjava_lang_Object()
244 queue.addAll(list); in test_clear()
DAbstractSequentialListTest.java66 al.addAll(c); in test_addAll_ILCollection()
67 assertTrue("Should return true", al.addAll(2, c)); in test_addAll_ILCollection()
165 asl.addAll(0, strV); in test_addAllILjava_util_Collection()
171 asl.addAll(0, null); in test_addAllILjava_util_Collection()
193 asl.addAll(0, strV); in test_addAllILjava_util_Collection()
203 asl.addAll(0, strV); in test_addAllILjava_util_Collection()
210 asl.addAll(0, strV); in test_addAllILjava_util_Collection()
215 asl.addAll(-10, strV); in test_addAllILjava_util_Collection()
222 asl.addAll(1, strV); in test_addAllILjava_util_Collection()
DArrayListTest.java201 alist.addAll(50, alist); in test_addAllILjava_util_Collection()
219 alist.addAll(100, listWithNulls); in test_addAllILjava_util_Collection()
228 alist.addAll(205, listWithNulls); in test_addAllILjava_util_Collection()
240 obj.addAll((int) -1, (Collection) null); in test_addAllILjava_util_Collection_2()
258 list1.addAll(list2); in test_addAllILjava_util_Collection_2()
267 obj.addAll(list1); in test_addAllILjava_util_Collection_2()
288 list1.addAll(location, list2); in test_addAllILjava_util_Collection_2()
306 obj.addAll(0, obj); in test_addAllILjava_util_Collection_3()
307 obj.addAll(obj.size(), obj); in test_addAllILjava_util_Collection_3()
309 obj.addAll(-1, obj); in test_addAllILjava_util_Collection_3()
[all …]
DConcurrentModTest.java227 sub.addAll(1, c); in testAddAll()
422 abstr.addAll(0, null); in test_addAllILjava_util_Collection()
429 abstr.addAll(0, c); in test_addAllILjava_util_Collection()
452 abstr.addAll(0, c); in test_addAllILjava_util_Collection()
484 abstr.addAll(0, c); in test_addAllILjava_util_Collection()
489 abstr.addAll(0, c); in test_addAllILjava_util_Collection()
495 abstr.addAll(0, c); in test_addAllILjava_util_Collection()
498 abstr.addAll(-1, c); in test_addAllILjava_util_Collection()
505 abstr.addAll(abstr.size() + 1, c); in test_addAllILjava_util_Collection()
539 abstr1.addAll(c); in test_equalsLjava_lang_Object()
[all …]
DCollections2Test.java328 assertFalse(Collections.addAll(l, new Object[] { })); in test_AddAll()
330 assertTrue(Collections.addAll(l, new Object[] { new Integer(1), in test_AddAll()
348 Collections.addAll(c1, arr1); in test_Disjoint()
349 Collections.addAll(c2, arr2); in test_Disjoint()
356 Collections.addAll(c1, arr1); in test_Disjoint()
357 Collections.addAll(c2, arr2); in test_Disjoint()
364 Collections.addAll(c1, arr1); in test_Disjoint()
365 Collections.addAll(c2, arr2); in test_Disjoint()
372 Collections.addAll(c1, arr1); in test_Disjoint()
373 Collections.addAll(c2, arr2); in test_Disjoint()
[all …]
DLinkedListTest.java149 ll.addAll(50, (Collection) ll.clone()); in test_addAllILjava_util_Collection()
166 ll.addAll(50, myList); in test_addAllILjava_util_Collection()
176 ll.addAll(-1, (Collection) null); in test_addAllILjava_util_Collection()
183 ll.addAll(ll.size() + 1, (Collection) null); in test_addAllILjava_util_Collection()
190 ll.addAll(0, null); in test_addAllILjava_util_Collection()
204 obj.addAll(-1, (Collection) null); in test_addAllILjava_util_Collection_2()
217 l.addAll((Collection) ll.clone()); in test_addAllLjava_util_Collection()
221 ll.addAll((Collection) ll.clone()); in test_addAllLjava_util_Collection()
236 ll.addAll(myList); in test_addAllLjava_util_Collection()
246 ll.addAll(null); in test_addAllLjava_util_Collection()
[all …]
DAbstractListTest.java140 sList.addAll(Arrays.asList(new String[] { "1", "2" })); in test_subListII()
143 sList.addAll(0, Arrays.asList(new String[] { "3", "4" })); in test_subListII()
284 mainList.addAll(Arrays.asList(mainObjects)); in test_subList_addAll()
291 subList.addAll(Arrays.asList(subObjects)); in test_subList_addAll()
517 list.addAll(Arrays.asList(array)); in test_indexOf_Ljava_lang_Object()
533 list.addAll(Arrays.asList(array)); in test_lastIndexOf_Ljava_lang_Object()
/libcore/luni/src/test/java/libcore/java/util/
DOldCollectionsTest.java358 public boolean addAll(Collection c) { in addAll() method in OldCollectionsTest.Mock_Collection
414 public boolean addAll(Collection c) { in addAll() method in OldCollectionsTest.Mock_WrongCollection
464 assertFalse(Collections.addAll(l, new Object[] {})); in test_AddAll()
466 assertTrue(Collections.addAll(l, new Object[] { new Integer(1), in test_AddAll()
473 Collections.addAll(null,new Object[] { new Integer(1), in test_AddAll()
482 Collections.addAll(c, new Object[] { new Integer(1), in test_AddAll()
492 Collections.addAll(c, new String[] { "String", in test_AddAll()
500 Collections.addAll(c, new String[] { "String", in test_AddAll()
507 Collections.addAll(c, new String[] { "String", in test_AddAll()
521 Collections.addAll(c1, arr1); in test_Disjoint()
[all …]
DOldTreeSetTest.java95 s.addAll(ts); in test_addAllLjava_util_Collection()
106 s.addAll(hm.values()); in test_addAllLjava_util_Collection()
113 s.addAll(null); in test_addAllLjava_util_Collection()
/libcore/jsr166-tests/src/test/java/jsr166/
DAbstractQueueTest.java126 q.addAll(null); in testAddAll1()
137 q.addAll(q); in testAddAllSelf()
149 q.addAll(Arrays.asList(ints)); in testAddAll2()
164 q.addAll(Arrays.asList(ints)); in testAddAll3()
178 q.addAll(Arrays.asList(ints)); in testAddAll4()
DPriorityQueueTest.java127 q.addAll(Arrays.asList(ints)); in testConstructor7()
221 q.addAll(null); in testAddAll1()
232 q.addAll(Arrays.asList(new Integer[SIZE])); in testAddAll2()
247 q.addAll(Arrays.asList(ints)); in testAddAll3()
261 assertFalse(q.addAll(Arrays.asList(empty))); in testAddAll5()
262 assertTrue(q.addAll(Arrays.asList(ints))); in testAddAll5()
DConcurrentLinkedQueueTest.java176 q.addAll(null); in testAddAll1()
187 q.addAll(q); in testAddAllSelf()
198 q.addAll(Arrays.asList(new Integer[SIZE])); in testAddAll2()
213 q.addAll(Arrays.asList(ints)); in testAddAll3()
227 assertFalse(q.addAll(Arrays.asList(empty))); in testAddAll5()
228 assertTrue(q.addAll(Arrays.asList(ints))); in testAddAll5()
/libcore/luni/src/test/java/tests/com/android/org/bouncycastle/jce/provider/
DCertBlacklistTest.java239 bl.addAll(DEFAULT_PUBKEYS); in testPubkeyBlacklistLegit()
277 bl.addAll(DEFAULT_SERIALS); in testSerialBlacklistLegit()
290 bl.addAll(DEFAULT_PUBKEYS); in testPubkeyBlacklistMultipleLegit()
303 bl.addAll(DEFAULT_SERIALS); in testSerialBlacklistMultipleLegit()
317 bl.addAll(DEFAULT_PUBKEYS); in testPubkeyBlacklistMultipleBad()
333 bl.addAll(DEFAULT_SERIALS); in testSerialBlacklistMultipleBad()
385 bl.addAll(DEFAULT_SERIALS); in testSerialBlacklistZero()
397 bl.addAll(DEFAULT_SERIALS); in testSerialBlacklistNegative()
/libcore/ojluni/src/main/java/java/security/
DUnresolvedPermissionCollection.java128 results.addAll(l); in elements()
174 vec.addAll(list); in writeObject()
214 list.addAll(vec); in readObject()
/libcore/ojluni/src/main/java/java/util/
DTreeSet.java160 addAll(c); in TreeSet()
172 addAll(s); in TreeSet()
298 public boolean addAll(Collection<? extends E> c) { in addAll() method in TreeSet
312 return super.addAll(c); in addAll()
DRegularEnumSet.java52 void addAll() { in addAll() method in RegularEnumSet
216 public boolean addAll(Collection<? extends E> c) { in addAll() method in RegularEnumSet
218 return super.addAll(c); in addAll()
DList.java307 boolean addAll(Collection<? extends E> c); in addAll() method
336 boolean addAll(int index, Collection<? extends E> c); in addAll() method
DAbstractList.java256 public boolean addAll(int index, Collection<? extends E> c) { in addAll() method in AbstractList
673 public boolean addAll(Collection<? extends E> c) { in addAll() method in SubList
674 return addAll(size, c); in addAll()
677 public boolean addAll(int index, Collection<? extends E> c) { in addAll() method in SubList
684 l.addAll(offset+index, c); in addAll()
DLinkedHashSet.java169 addAll(c); in LinkedHashSet()
/libcore/support/src/test/java/tests/support/
DSupport_CollectionTest.java62 .addAll(myCollection)); in runTest()
85 col.addAll(myCollection); in runTest()
/libcore/tools/upstream/src/main/java/libcore/
DRepository.java173 sourceDirs.addAll(Arrays.asList( in openJdkLegacy()
192 sourceDirs.addAll(nativeSourceDirs); in openJdkLegacy()
235 result.addAll(loadRelPathsFromBlueprint( in loadRelPathsFromBlueprint()
237 result.addAll(loadRelPathsFromBlueprint( in loadRelPathsFromBlueprint()
/libcore/ojluni/src/main/java/sun/util/resources/
DOpenListResourceBundle.java106 ks.addAll(handleKeySet()); in keySet()
108 ks.addAll(parent.keySet()); in keySet()
/libcore/ojluni/annotations/hiddenapi/java/util/
DArrayList.java138 public boolean addAll(java.util.Collection<? extends E> c) { in addAll() method in ArrayList
142 public boolean addAll(int index, java.util.Collection<? extends E> c) { in addAll() method in ArrayList
379 public boolean addAll(java.util.Collection<? extends E> c) { in addAll() method in ArrayList.SubList
383 public boolean addAll(int index, java.util.Collection<? extends E> c) { in addAll() method in ArrayList.SubList
/libcore/support/src/test/java/tests/util/
DClassLoaderBuilder.java114 classpath.addAll(classpathToUrls("java.class.path")); in build()
115 classpath.addAll(classpathToUrls("sun.boot.class.path")); in build()

123456