Home
last modified time | relevance | path

Searched refs:Sets (Results 1 – 25 of 212) sorted by relevance

123456789

/external/guava/guava-tests/test/com/google/common/collect/
DSetOperationsTest.java50 return Sets.union( in suite()
51 Sets.<String>newHashSet(), Sets.<String>newHashSet()); in suite()
62 return Sets.union( in suite()
63 Sets.<String>newHashSet(elements), Sets.newHashSet(elements)); in suite()
72 return Sets.union( in suite()
73 Sets.<String>newHashSet(), Sets.newHashSet(elements)); in suite()
83 return Sets.union( in suite()
84 Sets.newHashSet(elements), Sets.<String>newHashSet()); in suite()
96 return Sets.union( in suite()
97 Sets.newLinkedHashSet(asList(elements)), in suite()
[all …]
DSetsTest.java20 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;
118 return Sets.newConcurrentHashSet(Arrays.asList(elements)); in suite()
130 ? Sets.newHashSet( in suite()
132 : Sets.newHashSet(elements); in suite()
135 ? Sets.newHashSet( in suite()
137 : Sets.<String>newHashSet(); in suite()
138 return Sets.union(set1, set2); in suite()
[all …]
DImmutableSortedSetTest.java586 copyOf(Sets.newTreeSet(asList("e", "a", "f", "b", "d", "c"))); in testCopyOf_sortedSet_ordering()
591 SortedSet<String> set = copyOf(Sets.<String>newTreeSet()); in testCopyOf_sortedSet_comparator()
640 SortedSet<String> input = Sets.newTreeSet(STRING_LENGTH); in testCopyOf_sortedSetIterable()
647 SortedSet<String> input = Sets.newTreeSet( in testCopyOfSorted_natural_ordering()
655 Sets.newTreeSet(asList("in", "the", "quick", "jumped", "over", "a")); in testCopyOfSorted_natural_comparator()
661 SortedSet<String> input = Sets.newTreeSet(STRING_LENGTH); in testCopyOfSorted_explicit_ordering()
670 assertEquals(set, Sets.newTreeSet(asList("a", "b", "c"))); in testEquals_bothDefaultOrdering()
671 assertEquals(Sets.newTreeSet(asList("a", "b", "c")), set); in testEquals_bothDefaultOrdering()
672 assertFalse(set.equals(Sets.newTreeSet(asList("a", "b", "d")))); in testEquals_bothDefaultOrdering()
673 assertFalse(Sets.newTreeSet(asList("a", "b", "d")).equals(set)); in testEquals_bothDefaultOrdering()
[all …]
DSortedIterablesTest.java31 assertTrue(SortedIterables.hasSameComparator(Ordering.natural(), Sets.newTreeSet())); in testSameComparator()
38 Sets.newTreeSet(Ordering.natural().reverse()))); in testSameComparator()
42 assertEquals(Ordering.natural(), SortedIterables.comparator(Sets.newTreeSet())); in testComparator()
DAbstractImmutableSetTest.java74 assertEquals(Sets.newHashSet("a", "b"), set); in testCreation_twoElements()
79 assertEquals(Sets.newHashSet("a", "b", "c"), set); in testCreation_threeElements()
84 assertEquals(Sets.newHashSet("a", "b", "c", "d"), set); in testCreation_fourElements()
89 assertEquals(Sets.newHashSet("a", "b", "c", "d", "e"), set); in testCreation_fiveElements()
94 assertEquals(Sets.newHashSet("a", "b", "c", "d", "e", "f"), set); in testCreation_sixElements()
99 assertEquals(Sets.newHashSet("a", "b", "c", "d", "e", "f", "g"), set); in testCreation_sevenElements()
104 assertEquals(Sets.newHashSet("a", "b", "c", "d", "e", "f", "g", "h"), set); in testCreation_eightElements()
472 Sets.newHashSet(expected), copyOf(misleading)); in verifyThreadSafe()
DLinkedHashMultimapTest.java20 import static com.google.common.collect.Sets.newHashSet;
21 import static com.google.common.collect.Sets.newLinkedHashSet;
306 Set<Entry<String, Integer>> set = Sets.newLinkedHashSet(asList( in testEntriesIteration()
401 (Collection<Integer>) Sets.newHashSet(2, 3, 6)), in testAsSetIteration()
403 (Collection<Integer>) Sets.newHashSet(4, 5, 10, 11)), in testAsSetIteration()
405 (Collection<Integer>) Sets.newHashSet(7, 8)), in testAsSetIteration()
407 (Collection<Integer>) Sets.newHashSet(9)), in testAsSetIteration()
409 (Collection<Integer>) Sets.newHashSet(12, 13, 14)) in testAsSetIteration()
DFluentIterableTest.java96 Iterable<String> set = Sets.newHashSet("a", null, "b"); in testContains_nullSetYes()
116 Iterable<String> set = Sets.newHashSet("a", null, "b"); in testContains_nonNullSetYes()
121 Iterable<String> set = Sets.newHashSet("a", "b"); in testContains_nonNullSetNo()
338 Set<String> set = Sets.newHashSet(); in testFirst_emptyIterable()
377 Set<String> set = Sets.newHashSet(); in testLast_emptyIterable()
421 Collection<Integer> collection = Sets.newLinkedHashSet(); in testSkip_iterator()
448 Collection<String> set = Sets.newLinkedHashSet(); in testSkip_structurallyModifiedSkipSome()
465 Collection<String> set = Sets.newLinkedHashSet(); in testSkip_structurallyModifiedSkipAll()
665 ASSERT.that(fluent(1, 3, 5).copyInto(Sets.newHashSet(1, 2))) in testCopyInto_Set()
670 ASSERT.that(fluent(1, 3, 5).copyInto(Sets.newHashSet(1, 2, 3, 5))) in testCopyInto_SetAllDuplicates()
DFilteredCollectionsTest.java202 Set<Integer> expected = Sets.newHashSet(); in testEqualsAndHashCode()
312 return Sets.newHashSet(contents); in createUnfiltered()
317 return Sets.filter(elements, predicate); in filter()
325 final TreeSet<Integer> result = Sets.newTreeSet(contents); in createUnfiltered()
337 return Sets.filter(elements, predicate); in filter()
/external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/
DSetOperationsTest.java40 friends = Sets.newHashSet("Tom", "Joe", "Dave"); in setUp()
41 enemies = Sets.newHashSet("Dick", "Harry", "Tom"); in setUp()
45 Set<String> all = Sets.union(friends, enemies); in testUnion()
48 ImmutableSet<String> immut = Sets.union(friends, enemies).immutableCopy(); in testUnion()
50 = Sets.union(friends, enemies).copyInto(new HashSet<String>()); in testUnion()
59 Set<String> friends = Sets.newHashSet("Tom", "Joe", "Dave"); in testIntersection()
60 Set<String> enemies = Sets.newHashSet("Dick", "Harry", "Tom"); in testIntersection()
62 Set<String> frenemies = Sets.intersection(friends, enemies); in testIntersection()
66 = Sets.intersection(friends, enemies).immutableCopy(); in testIntersection()
68 = Sets.intersection(friends, enemies).copyInto(new HashSet<String>()); in testIntersection()
[all …]
DSetsTest.java20 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;
92 Set<SomeEnum> units = Sets.immutableEnumSet(SomeEnum.D, SomeEnum.B); in testImmutableEnumSet()
107 = Sets.immutableEnumSet(MinimalIterable.<SomeEnum>of()); in testImmutableEnumSet_fromIterable()
111 = Sets.immutableEnumSet(MinimalIterable.of(SomeEnum.B)); in testImmutableEnumSet_fromIterable()
115 = Sets.immutableEnumSet(MinimalIterable.of(SomeEnum.D, SomeEnum.B)); in testImmutableEnumSet_fromIterable()
148 HashSet<Integer> set = Sets.newHashSet(); in testNewHashSetEmpty()
153 HashSet<Integer> set = Sets.newHashSet(0, 1, 1); in testNewHashSetVarArgs()
[all …]
DImmutableSortedSetTest.java428 copyOf(Sets.newTreeSet(asList("e", "a", "f", "b", "d", "c"))); in testCopyOf_sortedSet_ordering()
433 SortedSet<String> set = copyOf(Sets.<String>newTreeSet()); in testCopyOf_sortedSet_comparator()
482 SortedSet<String> input = Sets.newTreeSet(STRING_LENGTH); in testCopyOf_sortedSetIterable()
489 SortedSet<String> input = Sets.newTreeSet( in testCopyOfSorted_natural_ordering()
497 Sets.newTreeSet(asList("in", "the", "quick", "jumped", "over", "a")); in testCopyOfSorted_natural_comparator()
503 SortedSet<String> input = Sets.newTreeSet(STRING_LENGTH); in testCopyOfSorted_explicit_ordering()
512 assertEquals(set, Sets.newTreeSet(asList("a", "b", "c"))); in testEquals_bothDefaultOrdering()
513 assertEquals(Sets.newTreeSet(asList("a", "b", "c")), set); in testEquals_bothDefaultOrdering()
514 assertFalse(set.equals(Sets.newTreeSet(asList("a", "b", "d")))); in testEquals_bothDefaultOrdering()
515 assertFalse(Sets.newTreeSet(asList("a", "b", "d")).equals(set)); in testEquals_bothDefaultOrdering()
[all …]
DAbstractImmutableSetTest.java70 assertEquals(Sets.newHashSet("a", "b"), set); in testCreation_twoElements()
75 assertEquals(Sets.newHashSet("a", "b", "c"), set); in testCreation_threeElements()
80 assertEquals(Sets.newHashSet("a", "b", "c", "d"), set); in testCreation_fourElements()
85 assertEquals(Sets.newHashSet("a", "b", "c", "d", "e"), set); in testCreation_fiveElements()
90 assertEquals(Sets.newHashSet("a", "b", "c", "d", "e", "f"), set); in testCreation_sixElements()
95 assertEquals(Sets.newHashSet("a", "b", "c", "d", "e", "f", "g"), set); in testCreation_sevenElements()
100 assertEquals(Sets.newHashSet("a", "b", "c", "d", "e", "f", "g", "h"), set); in testCreation_eightElements()
/external/llvm/lib/Support/
DDeltaAlgorithm.cpp45 const changesetlist_ty &Sets) { in Delta() argument
47 UpdatedSearchState(Changes, Sets); in Delta()
50 if (Sets.size() <= 1) in Delta()
55 if (Search(Changes, Sets, Res)) in Delta()
60 for (changesetlist_ty::const_iterator it = Sets.begin(), in Delta()
61 ie = Sets.end(); it != ie; ++it) in Delta()
63 if (SplitSets.size() == Sets.size()) in Delta()
70 const changesetlist_ty &Sets, in Search() argument
73 for (changesetlist_ty::const_iterator it = Sets.begin(), in Search()
74 ie = Sets.end(); it != ie; ++it) { in Search()
[all …]
/external/guava/guava-tests/test/com/google/common/cache/
DCacheBuilderFactory.java24 import com.google.common.collect.Sets;
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);
51 this.concurrencyLevels = Sets.newLinkedHashSet(concurrencyLevels); in withConcurrencyLevels()
[all …]
/external/guava/guava-testlib/test/com/google/common/collect/testing/features/
DFeatureUtilTest.java22 import com.google.common.collect.Sets;
152 Set<Feature<?>> features = Sets.<Feature<?>>newHashSet( in testAddImpliedFeatures_returnsSameSetInstance()
160 features = Sets.<Feature<?>>newHashSet( in testAddImpliedFeatures_addsImpliedFeatures()
165 features = Sets.<Feature<?>>newHashSet( in testAddImpliedFeatures_addsImpliedFeatures()
171 features = Sets.<Feature<?>>newHashSet( in testAddImpliedFeatures_addsImpliedFeatures()
182 Set<Feature<?>> features = Sets.<Feature<?>>newHashSet( in testImpliedFeatures_returnsNewSetInstance()
190 features = Sets.<Feature<?>>newHashSet( in testImpliedFeatures_returnsImpliedFeatures()
194 features = Sets.<Feature<?>>newHashSet( in testImpliedFeatures_returnsImpliedFeatures()
199 features = Sets.<Feature<?>>newHashSet( in testImpliedFeatures_returnsImpliedFeatures()
212 Sets.<Feature<?>>newHashSet(ExampleBaseFeature.BASE_FEATURE_1), in testBuildTesterRequirements_class()
[all …]
/external/guava/guava-testlib/src/com/google/common/collect/testing/google/
DSetMultimapAsMapTester.java23 import com.google.common.collect.Sets;
74 expected.put(sampleKeys().e0, Sets.newHashSet(sampleValues().e0, sampleValues().e3)); in testEquals()
75 expected.put(sampleKeys().e1, Sets.newHashSet(sampleValues().e0)); in testEquals()
87 Set<Entry<K, Collection<V>>> expected = Sets.newHashSet(); in testEntrySetEquals()
90 (Collection<V>) Sets.newHashSet(sampleValues().e0, sampleValues().e3))); in testEntrySetEquals()
93 (Collection<V>) Sets.newHashSet(sampleValues().e0))); in testEntrySetEquals()
110 sampleKeys().e0, Sets.newHashSet(sampleValues().e0, sampleValues().e3)), in testValuesRemove()
/external/llvm/lib/Analysis/
DCFLAliasAnalysis.cpp147 StratifiedSets<Value *> Sets; member
152 : Sets(std::move(S)), ReturnedValues(std::move(RV)) {} in FunctionInfo()
364 static Optional<Level> getIndexRelation(const StratifiedSets<Value *> &Sets, in getIndexRelation() argument
370 const auto *Current = &Sets.getLink(Index1); in getIndexRelation()
374 Current = &Sets.getLink(Current->Below); in getIndexRelation()
377 Current = &Sets.getLink(Index1); in getIndexRelation()
381 Current = &Sets.getLink(Current->Above); in getIndexRelation()
413 auto &Sets = Info.Sets; in tryInterproceduralAnalysis() local
418 auto MaybeInfo = Sets.find(&Param); in tryInterproceduralAnalysis()
433 auto MaybeInfo = Sets.find(RetVals[X]); in tryInterproceduralAnalysis()
[all …]
/external/llvm/include/llvm/ADT/
DDeltaAlgorithm.h61 const changesetlist_ty &Sets);
69 bool Search(const changeset_ty &Changes, const changesetlist_ty &Sets,
75 const changesetlist_ty &Sets) {} in UpdatedSearchState() argument
/external/guava/guava/src/com/google/common/collect/
DForwardingSet.java76 return Sets.removeAllImpl(this, checkNotNull(collection)); // for GWT in standardRemoveAll()
87 return Sets.equalsImpl(this, object); in standardEquals()
98 return Sets.hashCodeImpl(this); in standardHashCode()
DFilteredKeySetMultimap.java73 return Sets.hashCodeImpl(this); in hashCode()
78 return Sets.equalsImpl(this, o); in equals()
/external/guava/guava-tests/test/com/google/common/reflect/
DClassPathTest.java24 import com.google.common.collect.Sets;
86 Set<String> names = Sets.newHashSet(); in testGetAllClasses()
87 Set<String> strings = Sets.newHashSet(); in testGetAllClasses()
88 Set<Class<?>> classes = Sets.newHashSet(); in testGetAllClasses()
89 Set<String> packageNames = Sets.newHashSet(); in testGetAllClasses()
90 Set<String> simpleNames = Sets.newHashSet(); in testGetAllClasses()
115 Set<String> names = Sets.newHashSet(); in testGetTopLevelClasses()
116 Set<String> strings = Sets.newHashSet(); in testGetTopLevelClasses()
117 Set<Class<?>> classes = Sets.newHashSet(); in testGetTopLevelClasses()
118 Set<String> packageNames = Sets.newHashSet(); in testGetTopLevelClasses()
[all …]
/external/llvm/utils/TableGen/
DTableGen.cpp153 SetTheory Sets; in LLVMTableGenMain() local
154 Sets.addFieldExpander("Set", "Elements"); in LLVMTableGenMain()
157 const std::vector<Record*> *Elts = Sets.expand(Rec); in LLVMTableGenMain()
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
DImmutableSet.java118 Set<E> delegate = Sets.newLinkedHashSet(); in copyOf()
142 Set<E> set = Sets.newLinkedHashSet(); in create()
159 return Sets.equalsImpl(this, obj); in equals()
163 return Sets.hashCodeImpl(this); in hashCode()
/external/sonivox/jet_tools/JetCreator/
DJetCreatorhlp.dat14 starting m/b/t = Sets the starting measure, beat, and tick for the event.
16 eventid = Sets the ID of the event. Each event must have a unique ID.
28 ending m/b/t = Sets the ending measure, beat, and tick for the segment.
55 starting m/b/t = Sets the starting measure, beat, and tick for the segment.
58 repeat = Sets the number of repeats for the segment.
60 transpose = Sets the transposition value for the segment, in semitones (half-steps).
67 ending m/b/t = Sets the ending measure, beat, and tick for the segment.
/external/guava/guava/src/com/google/common/reflect/
DTypeVisitor.java19 import com.google.common.collect.Sets;
63 private final Set<Type> visited = Sets.newHashSet();

123456789