Home
last modified time | relevance | path

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

1234

/external/guava/guava-testlib/src/com/google/common/collect/testing/testers/
DCollectionRetainAllTester.java297 collection.retainAll(null); in testRetainAll_nullCollectionReferenceEmptySubject()
307 collection.retainAll(null); in testRetainAll_nullCollectionReferenceNonEmptySubject()
316 assertTrue(message, collection.retainAll(target.toRetain)); in expectReturnsTrue()
322 assertFalse(message, collection.retainAll(target.toRetain)); in expectReturnsFalse()
327 collection.retainAll(target.toRetain); in expectThrows()
338 assertFalse(message, collection.retainAll(target.toRetain)); in expectReturnsFalseOrThrows()
DListRetainAllTester.java45 collection.retainAll(MinimalCollection.of(createSamplesArray()))); in testRetainAll_duplicatesKept()
57 collection.retainAll(MinimalCollection.of(samples.e2))); in testRetainAll_duplicatesRemoved()
/external/guava/guava/src/com/google/common/collect/
DForwardingCollection.java104 public boolean retainAll(Collection<?> collection) { in retainAll() method in ForwardingCollection
105 return delegate().retainAll(collection); in retainAll()
201 return Iterators.retainAll(iterator(), collection); in standardRetainAll()
DMultiset.java435 boolean retainAll(Collection<?> c); in retainAll() method
DStandardTable.java610 @Override public boolean retainAll(Collection<?> c) {
679 @Override public boolean retainAll(final Collection<?> c) {
737 @Override public boolean retainAll(final Collection<?> c) {
837 @Override public boolean retainAll(Collection<?> c) {
843 if (map.keySet().retainAll(c)) {
1099 @Override public boolean retainAll(Collection<?> c) {
1139 @Override public boolean retainAll(Collection<?> c) {
/external/guava/guava-tests/test/com/google/common/cache/
DEmptyCachesTest.java163 assertFalse(keys.retainAll(asList(null, 0, 15, 1500))); in testKeySet_empty_remove()
183 assertFalse(keys.retainAll(asList(null, 0, 15, 1500))); in testKeySet_remove()
240 assertFalse(values.retainAll(asList(null, 0, 15, 1500))); in testValues_empty_remove()
260 assertFalse(values.retainAll(asList(null, 0, 15, 1500))); in testValues_remove()
317 assertFalse(entrySet.retainAll( asList(null, entryOf(0, 0), entryOf(15, 15)))); in testEntrySet_empty_remove()
337 assertFalse(entrySet.retainAll(asList(null, entryOf(1, 1), entryOf(15, 15)))); in testEntrySet_remove()
/external/guava/guava-tests/test/com/google/common/collect/
DAbstractMultisetTest.java297 assertTrue(ms.retainAll(asList("a", "c"))); in testRetainAllOfOne()
304 assertTrue(ms.retainAll(asList("c", "d"))); in testRetainAllOfDisjoint()
311 assertFalse(ms.retainAll(asList("a", "b"))); in testRetainAllOfEverything()
361 assertFalse(ms.elementSet().retainAll(asList("a"))); in testRetainAllVacuousViaElementSet()
367 assertTrue(ms.elementSet().retainAll(Collections.emptySet())); in testRetainAllOfNothingViaElementSet()
374 assertTrue(ms.elementSet().retainAll(asList("a", "c"))); in testRetainAllOfOneViaElementSet()
381 assertTrue(ms.elementSet().retainAll(asList("c", "d"))); in testRetainAllOfDisjointViaElementSet()
388 assertFalse(ms.elementSet().retainAll(asList("a", "b"))); in testRetainAllOfEverythingViaElementSet()
DMapsTransformValuesUnmodifiableIteratorTest.java68 @Override public boolean retainAll(Collection<?> c) { in keySet() method in MapsTransformValuesUnmodifiableIteratorTest.UnmodifiableIteratorMap
69 return delegate.keySet().retainAll(c); in keySet()
85 @Override public boolean retainAll(Collection<?> c) { in values() method
86 return delegate.values().retainAll(c); in values()
102 @Override public boolean retainAll(Collection<?> c) {
103 return delegate.entrySet().retainAll(c);
DForwardingMultisetTest.java87 @Override public boolean retainAll(Collection<?> collection) { in retainAll() method in ForwardingMultisetTest.StandardImplForwardingMultiset
221 @Override public boolean retainAll(Collection<?> collection) { in suite()
252 @Override public boolean retainAll(Collection<?> collection) { in suite()
329 forward().retainAll(EMPTY_COLLECTION); in testRetainAll_Collection()
DSynchronizedSetTest.java123 @Override public boolean retainAll(Collection<?> c) { in retainAll() method in SynchronizedSetTest.TestSet
125 return super.retainAll(c); in retainAll()
DForwardingCollectionTest.java77 @Override public boolean retainAll(Collection<?> collection) { in retainAll() method in ForwardingCollectionTest.StandardImplForwardingCollection
191 forward.retainAll(EMPTY_COLLECTION); in testRetainAll_Collection()
DForwardingQueueTest.java77 @Override public boolean retainAll(Collection<?> collection) { in retainAll() method in ForwardingQueueTest.StandardImplForwardingQueue
216 forward.retainAll(Collections.singleton("asdf")); in testRetainAll_Collection()
DForwardingSetTest.java85 @Override public boolean retainAll(Collection<?> collection) { in retainAll() method in ForwardingSetTest.StandardImplForwardingSet
198 forward().retainAll(EMPTY_LIST); in testRetainAll_Collection()
DAbstractCollectionTest.java109 assertFalse(c.retainAll(asList("a"))); in testRetainAllVacuous()
115 assertTrue(c.retainAll(Collections.emptySet())); in testRetainAllOfNothing()
DForwardingListTest.java81 @Override public boolean retainAll(Collection<?> collection) { in retainAll() method in ForwardingListTest.StandardImplForwardingList
268 forward.retainAll(EMPTY_LIST); in testRetainAll_Collection()
/external/apache-harmony/support/src/test/java/tests/support/
DSupport_CollectionTest.java88 .retainAll(myCollection)); in runTest()
90 .retainAll(myCollection)); // should not change the colletion in runTest()
/external/guava/guava-testlib/src/com/google/common/collect/testing/google/
DMultisetWritesTester.java219 getMultiset().entrySet().retainAll( in testEntrySet_retainAll_present()
231 getMultiset().entrySet().retainAll( in testEntrySet_retainAll_missing()
241 getMultiset().entrySet().retainAll(null); in testEntrySet_retainAll_null()
/external/mockito/src/org/mockito/internal/util/collections/
DHashCodeAndEqualsSafeSet.java127 public boolean retainAll(Collection<?> mocks) { in retainAll() method
128 return backingHashSet.retainAll(asWrappedMocks(mocks)); in retainAll()
/external/guava/guava-testlib/src/com/google/common/collect/testing/
DPerCollectionSizeTestSuiteBuilder.java75 sizesToTest.retainAll(features); in createTestSuite()
79 sizesToTest.retainAll(Arrays.asList( in createTestSuite()
DMapInterfaceTest.java718 boolean didRemove = entrySet.retainAll(entriesToRetain); in testEntrySetRetainAll()
726 entrySet.retainAll(entriesToRetain); in testEntrySetRetainAll()
746 entrySet.retainAll(null); in testEntrySetRetainAllNullFromEmpty()
753 entrySet.retainAll(null); in testEntrySetRetainAllNullFromEmpty()
1329 keys.retainAll(Collections.singleton(key)); in testKeySetRetainAll()
1334 keys.retainAll(Collections.singleton(key)); in testKeySetRetainAll()
1406 keySet.retainAll(null); in testKeySetRetainAllNullFromEmpty()
1413 keySet.retainAll(null); in testKeySetRetainAllNullFromEmpty()
1604 valueCollection.retainAll(valuesToRetain); in testValuesRetainAll()
1613 valueCollection.retainAll(valuesToRetain); in testValuesRetainAll()
[all …]
DSafeTreeSet.java163 @Override public boolean retainAll(Collection<?> c) { in retainAll() method in SafeTreeSet
164 return delegate.retainAll(c); in retainAll()
/external/google-tv-pairing-protocol/java/src/com/google/polo/pairing/message/
DOptionsMessage.java121 peerOutputs.retainAll(mInputEncodings); in getBestConfiguration()
124 peerInputs.retainAll(mOutputEncodings); in getBestConfiguration()
/external/smack/src/org/apache/harmony/javax/security/auth/
DSubject.java641 public boolean retainAll(Collection<?> c) { in retainAll() method
646 return super.retainAll(c); in retainAll()
688 public boolean retainAll(Collection<?> c) { in get()
693 return super.retainAll(c); in get()
/external/chromium_org/third_party/icu/source/test/intltest/
Dv32test.cpp277 a->retainAll(*b); in UVector32_API()
280 a->retainAll(*b); in UVector32_API()
285 a->retainAll(*b); in UVector32_API()
/external/icu/icu4c/source/test/intltest/
Dv32test.cpp277 a->retainAll(*b); in UVector32_API()
280 a->retainAll(*b); in UVector32_API()
285 a->retainAll(*b); in UVector32_API()

1234