/external/guava/guava-tests/test/com/google/common/collect/ |
SetOperationsTest.java | 37 * Unit tests for {@link Sets#union}, {@link Sets#intersection} and 38 * {@link Sets#difference}. 50 return Sets.union( 51 Sets.<String>newHashSet(), Sets.<String>newHashSet()); 62 return Sets.union( 63 Sets.<String>newHashSet(elements), Sets.newHashSet(elements)); 72 return Sets.union [all...] |
SortedIterablesTest.java | 31 assertTrue(SortedIterables.hasSameComparator(Ordering.natural(), Sets.newTreeSet())); 38 Sets.newTreeSet(Ordering.natural().reverse()))); 42 assertEquals(Ordering.natural(), SortedIterables.comparator(Sets.newTreeSet()));
|
SetsTest.java | 20 import static com.google.common.collect.Sets.newEnumSet; 21 import static com.google.common.collect.Sets.newHashSet; 22 import static com.google.common.collect.Sets.newLinkedHashSet; 23 import static com.google.common.collect.Sets.powerSet; 80 * Unit test for {@code Sets}. 118 return Sets.newConcurrentHashSet(Arrays.asList(elements)); 121 .named("Sets.newConcurrentHashSet") 130 ? Sets.newHashSet( 132 : Sets.newHashSet(elements); 135 ? Sets.newHashSet [all...] |
ForwardingObjectTest.java | 41 final Set<String> delegate = Sets.newHashSet("foo");
|
ImmutableSortedSetTest.java | 586 copyOf(Sets.newTreeSet(asList("e", "a", "f", "b", "d", "c"))); 591 SortedSet<String> set = copyOf(Sets.<String>newTreeSet()); 640 SortedSet<String> input = Sets.newTreeSet(STRING_LENGTH); 647 SortedSet<String> input = Sets.newTreeSet( 655 Sets.newTreeSet(asList("in", "the", "quick", "jumped", "over", "a")); 661 SortedSet<String> input = Sets.newTreeSet(STRING_LENGTH); 670 assertEquals(set, Sets.newTreeSet(asList("a", "b", "c"))); 671 assertEquals(Sets.newTreeSet(asList("a", "b", "c")), set); 672 assertFalse(set.equals(Sets.newTreeSet(asList("a", "b", "d")))); 673 assertFalse(Sets.newTreeSet(asList("a", "b", "d")).equals(set)) [all...] |
/external/llvm/lib/Support/ |
DeltaAlgorithm.cpp | 45 const changesetlist_ty &Sets) { 47 UpdatedSearchState(Changes, Sets); 50 if (Sets.size() <= 1) 55 if (Search(Changes, Sets, Res)) 58 // Otherwise, partition the sets if possible; if not we are done. 60 for (changesetlist_ty::const_iterator it = Sets.begin(), 61 ie = Sets.end(); it != ie; ++it) 63 if (SplitSets.size() == Sets.size()) 70 const changesetlist_ty &Sets, 73 for (changesetlist_ty::const_iterator it = Sets.begin() [all...] |
/external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/ |
SetOperationsTest.java | 27 * Unit tests for {@link Sets#union}, {@link Sets#intersection} and 28 * {@link Sets#difference}. 40 friends = Sets.newHashSet("Tom", "Joe", "Dave"); 41 enemies = Sets.newHashSet("Dick", "Harry", "Tom"); 45 Set<String> all = Sets.union(friends, enemies); 48 ImmutableSet<String> immut = Sets.union(friends, enemies).immutableCopy(); 50 = Sets.union(friends, enemies).copyInto(new HashSet<String>()); 59 Set<String> friends = Sets.newHashSet("Tom", "Joe", "Dave"); 60 Set<String> enemies = Sets.newHashSet("Dick", "Harry", "Tom") [all...] |
SetsTest.java | 20 import static com.google.common.collect.Sets.newEnumSet; 21 import static com.google.common.collect.Sets.newHashSet; 22 import static com.google.common.collect.Sets.newLinkedHashSet; 23 import static com.google.common.collect.Sets.powerSet; 58 * Unit test for {@code Sets}. 92 Set<SomeEnum> units = Sets.immutableEnumSet(SomeEnum.D, SomeEnum.B); 107 = Sets.immutableEnumSet(MinimalIterable.<SomeEnum>of()); 111 = Sets.immutableEnumSet(MinimalIterable.of(SomeEnum.B)); 115 = Sets.immutableEnumSet(MinimalIterable.of(SomeEnum.D, SomeEnum.B)); 148 HashSet<Integer> set = Sets.newHashSet() [all...] |
ImmutableSortedSetTest.java | 428 copyOf(Sets.newTreeSet(asList("e", "a", "f", "b", "d", "c"))); 433 SortedSet<String> set = copyOf(Sets.<String>newTreeSet()); 482 SortedSet<String> input = Sets.newTreeSet(STRING_LENGTH); 489 SortedSet<String> input = Sets.newTreeSet( 497 Sets.newTreeSet(asList("in", "the", "quick", "jumped", "over", "a")); 503 SortedSet<String> input = Sets.newTreeSet(STRING_LENGTH); 512 assertEquals(set, Sets.newTreeSet(asList("a", "b", "c"))); 513 assertEquals(Sets.newTreeSet(asList("a", "b", "c")), set); 514 assertFalse(set.equals(Sets.newTreeSet(asList("a", "b", "d")))); 515 assertFalse(Sets.newTreeSet(asList("a", "b", "d")).equals(set)) [all...] |
/external/llvm/include/llvm/ADT/ |
DeltaAlgorithm.h | 18 /// for minimizing arbitrary sets using a predicate function. 59 /// smaller sets, by attempting to remove individual subsets. 61 const changesetlist_ty &Sets); 63 /// Search - Search for a subset (or subsets) in \p Sets which can be 69 bool Search(const changeset_ty &Changes, const changesetlist_ty &Sets, 75 const changesetlist_ty &Sets) {}
|
DAGDeltaAlgorithm.h | 68 const changesetlist_ty &Sets,
|
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ |
EmptyImmutableSortedSet.java | 28 super(Sets.newTreeSet(comparator));
|
/external/guava/guava-tests/test/com/google/common/cache/ |
CacheBuilderFactory.java | 24 import com.google.common.collect.Sets; 33 * Helper class for creating {@link CacheBuilder} instances with all combinations of several sets of 41 private Set<Integer> concurrencyLevels = Sets.newHashSet((Integer) null); 42 private Set<Integer> initialCapacities = Sets.newHashSet((Integer) null); 43 private Set<Integer> maximumSizes = Sets.newHashSet((Integer) null); 44 private Set<DurationSpec> expireAfterWrites = Sets.newHashSet((DurationSpec) null); 45 private Set<DurationSpec> expireAfterAccesses = Sets.newHashSet((DurationSpec) null); 46 private Set<DurationSpec> refreshes = Sets.newHashSet((DurationSpec) null); 47 private Set<Strength> keyStrengths = Sets.newHashSet((Strength) null); 48 private Set<Strength> valueStrengths = Sets.newHashSet((Strength) null) [all...] |
/external/guava/guava/src/com/google/common/collect/ |
ForwardingSet.java | 76 return Sets.removeAllImpl(this, checkNotNull(collection)); // for GWT 87 return Sets.equalsImpl(this, object); 98 return Sets.hashCodeImpl(this);
|
FilteredKeySetMultimap.java | 73 return Sets.hashCodeImpl(this); 78 return Sets.equalsImpl(this, o);
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
TransactionContext.java | 20 import com.google.android.collect.Sets; 63 if (mUpdatedRawContacts == null) mUpdatedRawContacts = Sets.newHashSet(); 70 mDirtyRawContacts = Sets.newHashSet(); 80 mChangedRawContacts = Sets.newHashSet(); 91 if (mStaleSearchIndexRawContacts == null) mStaleSearchIndexRawContacts = Sets.newHashSet(); 96 if (mStaleSearchIndexContacts == null) mStaleSearchIndexContacts = Sets.newHashSet(); 106 if (mUpdatedRawContacts == null) mUpdatedRawContacts = Sets.newHashSet(); 111 if (mDirtyRawContacts == null) mDirtyRawContacts = Sets.newHashSet(); 116 if (mChangedRawContacts == null) mChangedRawContacts = Sets.newHashSet(); 121 if (mStaleSearchIndexRawContacts == null) mStaleSearchIndexRawContacts = Sets.newHashSet() [all...] |
/external/guava/guava-testlib/test/com/google/common/collect/testing/features/ |
FeatureUtilTest.java | 22 import com.google.common.collect.Sets; 152 Set<Feature<?>> features = Sets.<Feature<?>>newHashSet( 160 features = Sets.<Feature<?>>newHashSet( 165 features = Sets.<Feature<?>>newHashSet( 171 features = Sets.<Feature<?>>newHashSet( 182 Set<Feature<?>> features = Sets.<Feature<?>>newHashSet( 190 features = Sets.<Feature<?>>newHashSet( 194 features = Sets.<Feature<?>>newHashSet( 199 features = Sets.<Feature<?>>newHashSet( 212 Sets.<Feature<?>>newHashSet(ExampleBaseFeature.BASE_FEATURE_1) [all...] |
/frameworks/base/core/tests/coretests/src/android/widget/listview/ |
ListInterleaveFocusables.java | 21 import com.google.android.collect.Sets; 32 private Set<Integer> mFocusablePositions = Sets.newHashSet(1, 3, 6);
|
/frameworks/base/test-runner/src/android/test/ |
DatabaseTestUtils.java | 19 import com.google.android.collect.Sets; 44 Set<String> schemaSet = Sets.newHashSet();
|
ClassPathPackageInfo.java | 19 import com.google.android.collect.Sets; 46 Set<ClassPathPackageInfo> info = Sets.newHashSet(); 54 Set<Class<?>> set = Sets.newHashSet();
|
/packages/apps/Contacts/tests/src/com/android/contacts/editor/ |
ContactEditorUtilsTest.java | 26 import com.google.common.collect.Sets; 94 MoreAsserts.assertEquals(Sets.newHashSet(TYPE1.accountType), Sets.newHashSet(types)); 100 MoreAsserts.assertEquals(Sets.newHashSet(TYPE1.accountType, TYPE2EX.accountType), 101 Sets.newHashSet(types)); 108 Sets.newHashSet(TYPE1.accountType, TYPE2.accountType, TYPE2EX.accountType), 109 Sets.newHashSet(types)); 130 Sets.newHashSet(mAccountTypes.mAccounts), 138 Sets.newHashSet(mAccountTypes.mAccounts), 146 Sets.newHashSet(mAccountTypes.mAccounts) [all...] |
/external/guava/guava-testlib/src/com/google/common/collect/testing/google/ |
SetMultimapAsMapTester.java | 23 import com.google.common.collect.Sets; 74 expected.put(sampleKeys().e0, Sets.newHashSet(sampleValues().e0, sampleValues().e3)); 75 expected.put(sampleKeys().e1, Sets.newHashSet(sampleValues().e0)); 87 Set<Entry<K, Collection<V>>> expected = Sets.newHashSet(); 90 (Collection<V>) Sets.newHashSet(sampleValues().e0, sampleValues().e3))); 93 (Collection<V>) Sets.newHashSet(sampleValues().e0))); 110 sampleKeys().e0, Sets.newHashSet(sampleValues().e0, sampleValues().e3)),
|
/external/mockito/src/org/mockito/internal/util/collections/ |
Sets.java | 14 public abstract class Sets {
|
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/ |
ThreadingTest.java | 26 import com.google.android.collect.Sets; 64 final HashSet<String> expectedBodies = Sets.newHashSet(); 87 final Set<String> seenFiles = Sets.newHashSet(); 88 final HashSet<String> actualBodies = Sets.newHashSet();
|
/external/guava/guava/src/com/google/common/reflect/ |
TypeVisitor.java | 19 import com.google.common.collect.Sets; 63 private final Set<Type> visited = Sets.newHashSet();
|