/external/guava/guava-testlib/src/com/google/common/collect/testing/testers/ |
CollectionRetainAllTester.java | 35 * A generic JUnit test which tests {@code retainAll} operations on a 78 * We test that nullSingleton.retainAll(disjointList) does NOT throw a 104 // retainAll(empty) 135 // retainAll(disjoint) 166 // retainAll(superset) 180 // retainAll(subset) 196 // retainAll(sameElements) 210 // retainAll(partialOverlap) 226 // retainAll(containsDuplicates) 242 // retainAll(nullSingleton [all...] |
ListRetainAllTester.java | 29 * A generic JUnit test which tests {@code retainAll} operations on a list. 44 assertFalse("containsDuplicates.retainAll(superset) should return false", 45 collection.retainAll(MinimalCollection.of(createSamplesArray()))); 56 assertTrue("containsDuplicates.retainAll(subset) should return true", 57 collection.retainAll(MinimalCollection.of(samples.e2)));
|
/external/apache-harmony/support/src/test/java/tests/support/ |
Support_CollectionTest.java | 87 assertTrue("CollectionTest - a) retainAll failed", col 88 .retainAll(myCollection)); 89 assertTrue("CollectionTest - b) retainAll failed", !col 90 .retainAll(myCollection)); // should not change the colletion 92 assertTrue("CollectionTest - c) retainAll failed", col 94 assertTrue("CollectionTest - d) retainAll failed", !col 96 assertTrue("CollectionTest - e) retainAll failed", !col
|
/libcore/support/src/test/java/tests/support/ |
Support_CollectionTest.java | 86 assertTrue("CollectionTest - a) retainAll failed", col 87 .retainAll(myCollection)); 88 assertTrue("CollectionTest - b) retainAll failed", !col 89 .retainAll(myCollection)); // should not change the colletion 91 assertTrue("CollectionTest - c) retainAll failed", col 93 assertTrue("CollectionTest - d) retainAll failed", !col 95 assertTrue("CollectionTest - e) retainAll failed", !col
|
/external/guava/guava-tests/test/com/google/common/collect/ |
ConstrainedMapImplementsMapTest.java | 70 // GWT's HashMap.entrySet().retainAll(null) doesn't throws NPE. 86 // GWT's HashMap.keySet().retainAll(null) doesn't throws NPE. 102 // GWT's HashMap.values().retainAll(null) doesn't throws NPE.
|
ForMapMultimapAsMapImplementsMapTest.java | 64 // GWT's HashMap.entrySet().retainAll(null) doesn't throws NPE. 80 // GWT's HashMap.keySet().retainAll(null) doesn't throws NPE. 96 // GWT's HashMap.values().retainAll(null) doesn't throws NPE.
|
SubMapMultimapAsMapImplementsMapTest.java | 82 // GWT's TreeMap.entrySet().retainAll(null) doesn't throws NPE. 98 // GWT's TreeMap.keySet().retainAll(null) doesn't throws NPE. 114 // GWT's TreeMap.values().retainAll(null) doesn't throws NPE.
|
ForwardingSortedMapImplementsMapTest.java | 106 // GWT's TreeMap.entrySet().retainAll(null) doesn't throws NPE. 122 // GWT's TreeMap.keySet().retainAll(null) doesn't throws NPE. 138 // GWT's TreeMap.values().retainAll(null) doesn't throws NPE.
|
ForwardingMultisetTest.java | 87 @Override public boolean retainAll(Collection<?> collection) { 221 @Override public boolean retainAll(Collection<?> collection) { 252 @Override public boolean retainAll(Collection<?> collection) { 329 forward().retainAll(EMPTY_COLLECTION); 330 assertEquals("[retainAll(Collection)]", getCalls());
|
MapsTransformValuesUnmodifiableIteratorTest.java | 68 @Override public boolean retainAll(Collection<?> c) { 69 return delegate.keySet().retainAll(c); 85 @Override public boolean retainAll(Collection<?> c) { 86 return delegate.values().retainAll(c); 102 @Override public boolean retainAll(Collection<?> c) { 103 return delegate.entrySet().retainAll(c);
|
AbstractMultisetTest.java | 297 assertTrue(ms.retainAll(asList("a", "c"))); 304 assertTrue(ms.retainAll(asList("c", "d"))); 311 assertFalse(ms.retainAll(asList("a", "b"))); 361 assertFalse(ms.elementSet().retainAll(asList("a"))); 367 assertTrue(ms.elementSet().retainAll(Collections.emptySet())); 374 assertTrue(ms.elementSet().retainAll(asList("a", "c"))); 381 assertTrue(ms.elementSet().retainAll(asList("c", "d"))); 388 assertFalse(ms.elementSet().retainAll(asList("a", "b")));
|
SynchronizedSetTest.java | 123 @Override public boolean retainAll(Collection<?> c) { 125 return super.retainAll(c);
|
ForwardingCollectionTest.java | 77 @Override public boolean retainAll(Collection<?> collection) { 191 forward.retainAll(EMPTY_COLLECTION); 192 assertEquals("[retainAll(Collection)]", getCalls());
|
ForwardingListTest.java | 81 @Override public boolean retainAll(Collection<?> collection) { 268 forward.retainAll(EMPTY_LIST); 269 assertEquals("[retainAll(Collection)]", getCalls());
|
ForwardingQueueTest.java | 77 @Override public boolean retainAll(Collection<?> collection) { 216 forward.retainAll(Collections.singleton("asdf")); 217 assertEquals("[retainAll(Collection)]", getCalls());
|
ForwardingSetTest.java | 85 @Override public boolean retainAll(Collection<?> collection) { 198 forward().retainAll(EMPTY_LIST); 199 assertEquals("[retainAll(Collection)]", getCalls());
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
PagedViewIconCache.java | 87 private void retainAll(HashSet<Key> keysToKeep, Key.Type t) { 103 retainAll(keysSet, Key.Type.ApplicationInfoKey); 111 retainAll(keysSet, Key.Type.ResolveInfoKey); 119 retainAll(keysSet, Key.Type.AppWidgetProviderInfoKey);
|
/external/guava/guava/src/com/google/common/collect/ |
ForwardingCollection.java | 104 public boolean retainAll(Collection<?> collection) { 105 return delegate().retainAll(collection); 193 * A sensible definition of {@link #retainAll} in terms of {@link #iterator}, 195 * #iterator}, you may wish to override {@link #retainAll} to forward to this 201 return Iterators.retainAll(iterator(), collection);
|
/external/guava/guava-testlib/src/com/google/common/collect/testing/google/ |
MultisetWritesTester.java | 218 "multiset.entrySet.retainAll(presentEntry) returned false", 219 getMultiset().entrySet().retainAll( 230 "multiset.entrySet.retainAll(missingEntry) returned true", 231 getMultiset().entrySet().retainAll( 241 getMultiset().entrySet().retainAll(null);
|
/external/guava/guava-tests/test/com/google/common/cache/ |
EmptyCachesTest.java | 163 assertFalse(keys.retainAll(asList(null, 0, 15, 1500))); 183 assertFalse(keys.retainAll(asList(null, 0, 15, 1500))); 240 assertFalse(values.retainAll(asList(null, 0, 15, 1500))); 260 assertFalse(values.retainAll(asList(null, 0, 15, 1500))); 317 assertFalse(entrySet.retainAll( asList(null, entryOf(0, 0), entryOf(15, 15)))); 337 assertFalse(entrySet.retainAll(asList(null, entryOf(1, 1), entryOf(15, 15))));
|
/external/mockito/src/org/mockito/internal/util/collections/ |
HashCodeAndEqualsSafeSet.java | 127 public boolean retainAll(Collection<?> mocks) { 128 return backingHashSet.retainAll(asWrappedMocks(mocks));
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
EnumSetTest.java | [all...] |
LinkedHashSetTest.java | 225 public boolean retainAll(Collection c) { 236 lhs.retainAll(v); 255 lhs.retainAll(v); 259 lhs.retainAll(null); 268 lhs.retainAll(v);
|
/libcore/luni/src/main/java/java/util/concurrent/ |
ConcurrentNavigableMap.java | 90 * {@code removeAll}, {@code retainAll}, and {@code clear} 111 * {@code removeAll}, {@code retainAll}, and {@code clear} 134 * {@code removeAll}, {@code retainAll}, and {@code clear}
|
/external/guava/guava-testlib/src/com/google/common/collect/testing/ |
MapInterfaceTest.java | 718 boolean didRemove = entrySet.retainAll(entriesToRetain); 726 entrySet.retainAll(entriesToRetain); 746 entrySet.retainAll(null); 753 entrySet.retainAll(null); [all...] |