Home
last modified time | relevance | path

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

1234

/libcore/luni/src/test/java/libcore/java/util/concurrent/
DCopyOnWriteArrayListTest.java37 list.addAll(Arrays.asList("a", "b", "c", "d", "e")); in testIteratorAndNonStructuralChanges()
54 list.addAll(Arrays.asList("a", "b", "c", "d", "e")); in testSubListAndNonStructuralChanges()
66 list.addAll(Arrays.asList("a", "b", "c", "d", "e")); in testSubListAndStructuralChanges()
78 list.addAll(Arrays.asList("a", "b", "c", "d", "e")); in testSubListAndSizePreservingStructuralChanges()
81 list.addAll(Arrays.asList("A", "B", "C", "D", "E")); in testSubListAndSizePreservingStructuralChanges()
91 list.addAll(Arrays.asList("a", "b", "c", "d", "e")); in testRemoveAll()
105 list.addAll(Arrays.asList("a", "b", "c", "d", "e")); in testSubListClear()
109 bcd.addAll(Arrays.asList("B", "C", "D")); in testSubListClear()
119 list.addAll(Arrays.asList("a", "b", "c", "d", "e")); in testSubListIteratorGetsSnapshot()
130 list.addAll(Arrays.asList("a", "b", "c", "d", "e")); in testSubListRemoveByValue()
[all …]
/libcore/jsr166-tests/src/test/java/jsr166/
DAbstractQueueTest.java115 q.addAll(null); in testAddAll1()
126 q.addAll(q); in testAddAllSelf()
138 q.addAll(Arrays.asList(ints)); in testAddAll2()
153 q.addAll(Arrays.asList(ints)); in testAddAll3()
167 q.addAll(Arrays.asList(ints)); in testAddAll4()
DPriorityQueueTest.java117 q.addAll(Arrays.asList(ints)); in testConstructor7()
212 q.addAll(null); in testAddAll1()
224 q.addAll(Arrays.asList(ints)); in testAddAll2()
239 q.addAll(Arrays.asList(ints)); in testAddAll3()
253 assertFalse(q.addAll(Arrays.asList(empty))); in testAddAll5()
254 assertTrue(q.addAll(Arrays.asList(ints))); in testAddAll5()
DConcurrentLinkedQueueTest.java165 q.addAll(null); in testAddAll1()
176 q.addAll(q); in testAddAllSelf()
188 q.addAll(Arrays.asList(ints)); in testAddAll2()
203 q.addAll(Arrays.asList(ints)); in testAddAll3()
217 assertFalse(q.addAll(Arrays.asList(empty))); in testAddAll5()
218 assertTrue(q.addAll(Arrays.asList(ints))); in testAddAll5()
/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()
DCollections2Test.java325 assertFalse(Collections.addAll(l, new Object[] { })); in test_AddAll()
327 assertTrue(Collections.addAll(l, new Object[] { new Integer(1), in test_AddAll()
345 Collections.addAll(c1, arr1); in test_Disjoint()
346 Collections.addAll(c2, arr2); in test_Disjoint()
353 Collections.addAll(c1, arr1); in test_Disjoint()
354 Collections.addAll(c2, arr2); in test_Disjoint()
361 Collections.addAll(c1, arr1); in test_Disjoint()
362 Collections.addAll(c2, arr2); in test_Disjoint()
369 Collections.addAll(c1, arr1); in test_Disjoint()
370 Collections.addAll(c2, arr2); in test_Disjoint()
[all …]
DArrayListTest.java194 alist.addAll(50, alist); in test_addAllILjava_util_Collection()
212 alist.addAll(100, listWithNulls); in test_addAllILjava_util_Collection()
221 alist.addAll(205, listWithNulls); in test_addAllILjava_util_Collection()
233 obj.addAll((int) -1, (Collection) null); in test_addAllILjava_util_Collection_2()
251 list1.addAll(list2); in test_addAllILjava_util_Collection_2()
260 obj.addAll(list1); in test_addAllILjava_util_Collection_2()
281 list1.addAll(location, list2); in test_addAllILjava_util_Collection_2()
299 obj.addAll(0, obj); in test_addAllILjava_util_Collection_3()
300 obj.addAll(obj.size(), obj); in test_addAllILjava_util_Collection_3()
302 obj.addAll(-1, obj); in test_addAllILjava_util_Collection_3()
[all …]
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()
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 …]
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()
DLinkedListTest.java144 ll.addAll(50, (Collection) ll.clone()); in test_addAllILjava_util_Collection()
161 ll.addAll(50, myList); in test_addAllILjava_util_Collection()
171 ll.addAll(-1, (Collection) null); in test_addAllILjava_util_Collection()
178 ll.addAll(ll.size() + 1, (Collection) null); in test_addAllILjava_util_Collection()
185 ll.addAll(0, null); in test_addAllILjava_util_Collection()
199 obj.addAll(-1, (Collection) null); in test_addAllILjava_util_Collection_2()
212 l.addAll((Collection) ll.clone()); in test_addAllLjava_util_Collection()
216 ll.addAll((Collection) ll.clone()); in test_addAllLjava_util_Collection()
231 ll.addAll(myList); in test_addAllLjava_util_Collection()
241 ll.addAll(null); in test_addAllLjava_util_Collection()
[all …]
/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/luni/src/test/java/com/android/org/bouncycastle/jce/provider/
DCertBlacklistTest.java241 bl.addAll(DEFAULT_PUBKEYS); in testPubkeyBlacklistLegit()
279 bl.addAll(DEFAULT_SERIALS); in testSerialBlacklistLegit()
292 bl.addAll(DEFAULT_PUBKEYS); in testPubkeyBlacklistMultipleLegit()
305 bl.addAll(DEFAULT_SERIALS); in testSerialBlacklistMultipleLegit()
319 bl.addAll(DEFAULT_PUBKEYS); in testPubkeyBlacklistMultipleBad()
335 bl.addAll(DEFAULT_SERIALS); in testSerialBlacklistMultipleBad()
387 bl.addAll(DEFAULT_SERIALS); in testSerialBlacklistZero()
399 bl.addAll(DEFAULT_SERIALS); in testSerialBlacklistNegative()
/libcore/luni/src/main/java/java/util/
DList.java89 public boolean addAll(int location, Collection<? extends E> collection); in addAll() method
108 public boolean addAll(Collection<? extends E> collection); in addAll() method
DAbstractList.java259 public boolean addAll(int location, Collection<? extends E> collection) { in addAll() method in AbstractList.SubAbstractList
262 boolean result = fullList.addAll(location + offset, in addAll()
276 public boolean addAll(Collection<? extends E> collection) { in addAll() method in AbstractList.SubAbstractList
278 boolean result = fullList.addAll(offset + size, collection); in addAll()
448 public boolean addAll(int location, Collection<? extends E> collection) { in addAll() method in AbstractList
DCollection.java107 public boolean addAll(Collection<? extends E> collection); in addAll() method
DSet.java58 public boolean addAll(Collection<? extends E> collection); in addAll() method
DAbstractQueue.java151 public boolean addAll(Collection<? extends E> c) { in addAll() method in AbstractQueue
DTreeSet.java68 addAll(collection); in TreeSet()
131 public boolean addAll(Collection<? extends E> collection) { in addAll() method in TreeSet
132 return super.addAll(collection); in addAll()
/libcore/support/src/test/java/tests/support/
DSupport_CollectionTest.java62 .addAll(myCollection)); in runTest()
85 col.addAll(myCollection); in runTest()
/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()
/libcore/luni/src/test/java/tests/security/cert/
DX509CRL2Test.java86 extensionOids.addAll(pemCert.getCriticalExtensionOIDs()); in test_getExtensionValueLjava_lang_String()
87 extensionOids.addAll(pemCert.getNonCriticalExtensionOIDs()); in test_getExtensionValueLjava_lang_String()
/libcore/luni/src/main/java/java/util/concurrent/
DCopyOnWriteArrayList.java282 public synchronized boolean addAll(Collection<? extends E> collection) { in addAll() method in CopyOnWriteArrayList
283 return addAll(elements.length, collection); in addAll()
286 public synchronized boolean addAll(int index, Collection<? extends E> collection) { in addAll() method in CopyOnWriteArrayList
595 @Override public boolean addAll(int index, Collection<? extends E> collection) { in addAll() method in CopyOnWriteArrayList.CowSubList
600 boolean result = CopyOnWriteArrayList.this.addAll(index + slice.from, collection); in addAll()
606 @Override public boolean addAll(Collection<? extends E> collection) { in addAll() method in CopyOnWriteArrayList.CowSubList
608 return addAll(size(), collection); in addAll()
/libcore/luni/src/test/java/libcore/java/lang/
DClassCastExceptionTest.java73 m.addAll(n); in testMiniEnumSetAddAll()
105 m.addAll(n); in testHugeEnumSetAddAll()

1234