Home
last modified time | relevance | path

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

1234567

/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/ojluni/src/test/java/util/concurrent/tck/
DAbstractQueueTest.java149 q.addAll(null); in testAddAll1()
160 q.addAll(q); in testAddAllSelf()
172 q.addAll(Arrays.asList(ints)); in testAddAll2()
187 q.addAll(Arrays.asList(ints)); in testAddAll3()
201 q.addAll(Arrays.asList(ints)); in testAddAll4()
DArrayDeque8Test.java105 assertTrue(q.addAll(Collections.nCopies(maxArraySize - 3, e))); in testHugeCapacity()
120 () -> qq.addAll(qq), in testHugeCapacity()
121 () -> qq.addAll(smallish), in testHugeCapacity()
122 () -> smallish.addAll(qq)); in testHugeCapacity()
DConcurrentLinkedQueueTest.java209 q.addAll(null); in testAddAll1()
220 q.addAll(q); in testAddAllSelf()
231 q.addAll(Arrays.asList(new Integer[SIZE])); in testAddAll2()
246 q.addAll(Arrays.asList(ints)); in testAddAll3()
260 assertFalse(q.addAll(Arrays.asList(empty))); in testAddAll5()
261 assertTrue(q.addAll(Arrays.asList(ints))); in testAddAll5()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
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/tests/com/android/org/bouncycastle/jce/provider/
DCertBlocklistTest.java239 bl.addAll(DEFAULT_PUBKEYS); in testPubkeyBlocklistLegit()
277 bl.addAll(DEFAULT_SERIALS); in testSerialBlocklistLegit()
290 bl.addAll(DEFAULT_PUBKEYS); in testPubkeyBlocklistMultipleLegit()
303 bl.addAll(DEFAULT_SERIALS); in testSerialBlocklistMultipleLegit()
317 bl.addAll(DEFAULT_PUBKEYS); in testPubkeyBlocklistMultipleBad()
333 bl.addAll(DEFAULT_SERIALS); in testSerialBlocklistMultipleBad()
385 bl.addAll(DEFAULT_SERIALS); in testSerialBlocklistZero()
397 bl.addAll(DEFAULT_SERIALS); in testSerialBlocklistNegative()
/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()
DLinkedHashSet.java169 addAll(c); in LinkedHashSet()
DAbstractQueue.java180 public boolean addAll(Collection<? extends E> c) { in addAll() method in AbstractQueue
DJumboEnumSet.java70 void addAll() { in addAll() method in JumboEnumSet
271 public boolean addAll(Collection<? extends E> c) { in addAll() method in JumboEnumSet
273 return super.addAll(c); in addAll()
/libcore/support/src/test/java/tests/support/
DSupport_CollectionTest.java62 .addAll(myCollection)); in runTest()
85 col.addAll(myCollection); in runTest()
/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()

1234567