OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:retainAll
(Results
1 - 25
of
156
) sorted by null
1
2
3
4
5
6
7
/libcore/luni/src/main/java/java/util/
Collection.java
269
public boolean
retainAll
(Collection<?> collection);
Set.java
164
public boolean
retainAll
(Collection<?> collection);
List.java
285
public boolean
retainAll
(Collection<?> collection);
/external/guava/guava-testlib/src/com/google/common/collect/testing/testers/
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)));
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
...]
/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);
Multiset.java
428
* <p>This method refines {@link Collection#
retainAll
} to further specify that
435
boolean
retainAll
(Collection<?> c);
/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/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/luni/src/main/java/java/util/concurrent/
CopyOnWriteArraySet.java
289
public boolean
retainAll
(Collection<?> c) {
290
return al.
retainAll
(c);
/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
/libcore/luni/src/test/java/tests/api/java/util/
LinkedHashSetTest.java
225
public boolean
retainAll
(Collection c) {
236
lhs.
retainAll
(v);
255
lhs.
retainAll
(v);
259
lhs.
retainAll
(null);
268
lhs.
retainAll
(v);
/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/guava/guava-tests/test/com/google/common/collect/
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);
AbstractCollectionTest.java
109
assertFalse(c.
retainAll
(asList("a")));
115
assertTrue(c.
retainAll
(Collections.emptySet()));
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")));
ForwardingCollectionTest.java
77
@Override public boolean
retainAll
(Collection<?> collection) {
191
forward.
retainAll
(EMPTY_COLLECTION);
192
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());
SynchronizedSetTest.java
123
@Override public boolean
retainAll
(Collection<?> c) {
125
return super.
retainAll
(c);
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());
/external/guava/guava-testlib/src/com/google/common/collect/testing/
PerCollectionSizeTestSuiteBuilder.java
75
sizesToTest.
retainAll
(features);
79
sizesToTest.
retainAll
(Arrays.asList(
MinimalCollection.java
111
@Override public boolean
retainAll
(Collection<?> elementsToRetain) {
/external/mockito/src/org/mockito/internal/util/collections/
HashCodeAndEqualsSafeSet.java
127
public boolean
retainAll
(Collection<?> mocks) {
128
return backingHashSet.
retainAll
(asWrappedMocks(mocks));
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/
AlbumSettings.java
97
mEnabledAlbums.
retainAll
(validAlbums);
Completed in 538 milliseconds
1
2
3
4
5
6
7