Home
last modified time | relevance | path

Searched refs:retainAll (Results 1 – 25 of 44) sorted by relevance

12

/libcore/support/src/test/java/tests/support/
DSupport_CollectionTest.java87 .retainAll(myCollection)); in runTest()
89 .retainAll(myCollection)); // should not change the colletion in runTest()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DLinkedHashSetTest.java231 public boolean retainAll(Collection c) { in retainAll() method in LinkedHashSetTest.Mock_LinkedHashSet
242 lhs.retainAll(v); in test_retainAllLjava_util_Collection()
261 lhs.retainAll(v); in test_retainAllLjava_util_Collection()
265 lhs.retainAll(null); in test_retainAllLjava_util_Collection()
274 lhs.retainAll(v); in test_retainAllLjava_util_Collection()
DEnumSetTest.java1207 set.retainAll(null); in test_retainAll_LCollection()
1214 boolean result = set.retainAll(null); in test_retainAll_LCollection()
1218 result = set.retainAll(rawCollection); in test_retainAll_LCollection()
1222 result = set.retainAll(rawCollection); in test_retainAll_LCollection()
1226 result = set.retainAll(rawCollection); in test_retainAll_LCollection()
1231 result = set.retainAll(rawCollection); in test_retainAll_LCollection()
1235 result = set.retainAll(anotherSet); in test_retainAll_LCollection()
1241 result = set.retainAll(setWithInnerClass); in test_retainAll_LCollection()
1246 result = set.retainAll(setWithInnerClass); in test_retainAll_LCollection()
1250 result = set.retainAll(emptySet); in test_retainAll_LCollection()
[all …]
DEnumMapTest.java417 assertTrue("Retain does not success", set.retainAll(c)); in test_entrySet()
419 assertFalse("Should return false", set.retainAll(c)); in test_entrySet()
672 assertTrue("Should return true", set.retainAll(c)); in test_keySet()
674 assertFalse("Should return false", set.retainAll(c)); in test_keySet()
688 assertTrue("Should return true", set.retainAll(c)); in test_keySet()
1060 assertTrue("Should return true", collection.retainAll(c)); in test_values()
1062 assertFalse("Should return false", collection.retainAll(c)); in test_values()
DAbstractCollectionTest.java211 assertTrue(ac.retainAll(Arrays.asList("1", "2"))); in test_retainAllLjava_util_Collection()
DAbstractMapTest.java405 assertTrue(view.retainAll(setOfNull)); // destructive
/libcore/ojluni/src/main/java/java/util/
DSet.java320 boolean retainAll(Collection<?> c); in retainAll() method
DRegularEnumSet.java262 public boolean retainAll(Collection<?> c) { in retainAll() method in RegularEnumSet
264 return super.retainAll(c); in retainAll()
DCollection.java431 boolean retainAll(Collection<?> c); in retainAll() method
DList.java377 boolean retainAll(Collection<?> c); in retainAll() method
DJumboEnumSet.java314 public boolean retainAll(Collection<?> c) { in retainAll() method in JumboEnumSet
316 return super.retainAll(c); in retainAll()
DAbstractCollection.java401 public boolean retainAll(Collection<?> c) { in retainAll() method in AbstractCollection
DVector.java932 public synchronized boolean retainAll(Collection<?> c) { in retainAll() method
933 return super.retainAll(c); in retainAll()
DCollections.java1143 public boolean retainAll(Collection<?> coll) { in retainAll() method in Collections
1895 public boolean retainAll(Collection<?> coll) {
1896 synchronized (mutex) {return c.retainAll(coll);}
2636 public boolean retainAll(Collection<?> coll) {
2637 return c.retainAll(coll);
3288 public boolean retainAll(Collection<?> c) {
4669 public boolean retainAll(Collection<?> c) {return s.retainAll(c);}
4746 public boolean retainAll(Collection<?> c) {return q.retainAll(c);}
/libcore/luni/src/main/java/java/util/concurrent/
DCopyOnWriteArraySet.java345 public boolean retainAll(Collection<?> c) { in retainAll() method in CopyOnWriteArraySet
346 return al.retainAll(c); in retainAll()
DCopyOnWriteArrayList.java366 public synchronized boolean retainAll(Collection<?> collection) { in retainAll() method in CopyOnWriteArrayList
689 @Override public boolean retainAll(Collection<?> collection) { in retainAll() method in CopyOnWriteArrayList.CowSubList
/libcore/ojluni/src/main/java/sun/nio/ch/
DUtil.java319 public boolean retainAll(Collection<?> coll) { in ungrowableSet() method in Util
320 return s.retainAll(coll); in ungrowableSet()
/libcore/jsr166-tests/src/test/java/jsr166/
DSynchronousQueueTest.java375 assertFalse(q.retainAll(Arrays.asList(empty)));
377 assertFalse(q.retainAll(Arrays.asList(ints)));
DPriorityQueueTest.java389 boolean changed = q.retainAll(p); in testRetainAll()
DConcurrentLinkedQueueTest.java355 boolean changed = q.retainAll(p); in testRetainAll()
DTreeSubSetTest.java308 boolean changed = q.retainAll(p); in testRetainAll()
787 boolean changed = q.retainAll(p); in testDescendingRetainAll()
DConcurrentSkipListSubSetTest.java311 boolean changed = q.retainAll(p); in testRetainAll()
801 boolean changed = q.retainAll(p); in testDescendingRetainAll()
/libcore/luni/src/test/java/libcore/java/security/
DProviderTest.java289 supportsParameterTypes.retainAll(TYPES_SUPPORTS_PARAMETER); in test_Provider_getServices_supportsParameter()
293 noSupportsParameterTypes.retainAll(TYPES_NOT_SUPPORTS_PARAMETER); in test_Provider_getServices_supportsParameter()
/libcore/luni/src/test/java/libcore/java/util/
DOldCollectionsTest.java389 public boolean retainAll(Collection c) { in retainAll() method in OldCollectionsTest.Mock_Collection
445 public boolean retainAll(Collection c) { in retainAll() method in OldCollectionsTest.Mock_WrongCollection
/libcore/luni/src/test/java/libcore/java/util/concurrent/
DCopyOnWriteArrayListTest.java151 def.retainAll(Arrays.asList("c", "e", "h")); // the RI fails here in testSubListRetainAll()

12