Home
last modified time | relevance | path

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

12345678910>>...22

/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;
24 import static com.google.common.collect.Sets.unmodifiableNavigableSet;
121 return Sets.newConcurrentHashSet(Arrays.asList(elements)); in suite()
133 ? Sets.newHashSet( in suite()
135 : Sets.newHashSet(elements); in suite()
138 ? Sets.newHashSet( in suite()
140 : Sets.<String>newHashSet(); 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()
/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 …]
/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/swiftshader/third_party/llvm-7.0/llvm/lib/Support/
DDeltaAlgorithm.cpp46 const changesetlist_ty &Sets) { in Delta() argument
48 UpdatedSearchState(Changes, Sets); in Delta()
51 if (Sets.size() <= 1) in Delta()
56 if (Search(Changes, Sets, Res)) in Delta()
61 for (changesetlist_ty::const_iterator it = Sets.begin(), in Delta()
62 ie = Sets.end(); it != ie; ++it) in Delta()
64 if (SplitSets.size() == Sets.size()) in Delta()
71 const changesetlist_ty &Sets, in Search() argument
74 for (changesetlist_ty::const_iterator it = Sets.begin(), in Search()
75 ie = Sets.end(); it != ie; ++it) { in Search()
[all …]
/external/swiftshader/third_party/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.java25 import com.google.common.collect.Sets;
42 private Set<Integer> concurrencyLevels = Sets.newHashSet((Integer) null);
43 private Set<Integer> initialCapacities = Sets.newHashSet((Integer) null);
44 private Set<Integer> maximumSizes = Sets.newHashSet((Integer) null);
45 private Set<DurationSpec> expireAfterWrites = Sets.newHashSet((DurationSpec) null);
46 private Set<DurationSpec> expireAfterAccesses = Sets.newHashSet((DurationSpec) null);
47 private Set<DurationSpec> refreshes = Sets.newHashSet((DurationSpec) null);
48 private Set<Strength> keyStrengths = Sets.newHashSet((Strength) null);
49 private Set<Strength> valueStrengths = Sets.newHashSet((Strength) null);
52 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/libcxx/benchmarks/
Dordered_set.bench.cpp46 std::vector<std::set<uint64_t> > Sets; member
53 R.Sets.resize(1); in makeTestingSets()
56 R.Sets[0].insert(2 * I); in makeTestingSets()
59 R.Sets.resize(NumTables, R.Sets[0]); in makeTestingSets()
91 std::vector<std::set<uint64_t>> Sets(NumTables); in run() local
93 for (auto& Set : Sets) { in run()
114 for (auto& Set : Data.Sets) { in run()
135 for (auto& Set : Data.Sets) { in run()
156 for (auto& Set : Data.Sets) { in run()
177 for (auto& Set : Data.Sets) { in run()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/
DCFLSteensAliasAnalysis.cpp72 StratifiedSets<InstantiatedValue> Sets; member in CFLSteensAAResult::FunctionInfo
80 return Sets; in getStratifiedSets()
118 : Sets(std::move(S)) { in FunctionInfo()
147 auto &Link = Sets.getLink(SetIndex); in FunctionInfo()
166 auto RetInfo = Sets.find(InstantiatedValue{RetVal, 0}); in FunctionInfo()
175 auto ParamInfo = Sets.find(InstantiatedValue{&Param, 0}); in FunctionInfo()
297 auto &Sets = MaybeInfo->getStratifiedSets(); in query() local
298 auto MaybeA = Sets.find(InstantiatedValue{ValA, 0}); in query()
302 auto MaybeB = Sets.find(InstantiatedValue{ValB, 0}); in query()
308 auto AttrsA = Sets.getLink(SetA.Index).Attrs; in query()
[all …]
/external/cldr/tools/java/org/unicode/cldr/draft/keyboard/
DModifierKeySimplifier.java18 import com.google.common.collect.Sets;
19 import com.google.common.collect.Sets.SetView;
94 checkArgument(Sets.intersection(onKeys, dontCareKeys).size() == 0); in simplifyInput()
149 TreeSet<ModifierKey> onKeysForOutput = Sets.newTreeSet(); in simplifyToString()
150 TreeSet<ModifierKey> dontCareKeysForOutput = Sets.newTreeSet(); in simplifyToString()
213 Set<ModifierKeyCombination> finalCombinations = Sets.newHashSet(combinations); in simplifySet()
233 Iterator<ModifierKeyCombination> iterator = Sets.newTreeSet(combinations).iterator(); in simplifyCombinationsOnePass()
234 Set<ModifierKeyCombination> finalCombinations = Sets.newHashSet(); in simplifyCombinationsOnePass()
263 SetView<ModifierKey> onKeyDifferences = Sets.symmetricDifference(combination1.onKeys(), in simplifyTwoCombinations()
265 SetView<ModifierKey> offKeyDifferences = Sets.symmetricDifference(combination1.offKeys(), in simplifyTwoCombinations()
[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/
DCFLSteensAliasAnalysis.cpp70 StratifiedSets<InstantiatedValue> Sets; member in CFLSteensAAResult::FunctionInfo
78 return Sets; in getStratifiedSets()
131 : Sets(std::move(S)) { in FunctionInfo()
160 auto &Link = Sets.getLink(SetIndex); in FunctionInfo()
179 auto RetInfo = Sets.find(InstantiatedValue{RetVal, 0}); in FunctionInfo()
188 auto ParamInfo = Sets.find(InstantiatedValue{&Param, 0}); in FunctionInfo()
309 auto &Sets = MaybeInfo->getStratifiedSets(); in query() local
310 auto MaybeA = Sets.find(InstantiatedValue{ValA, 0}); in query()
314 auto MaybeB = Sets.find(InstantiatedValue{ValB, 0}); in query()
320 auto AttrsA = Sets.getLink(SetA.Index).Attrs; in query()
[all …]
/external/libxkbcommon/xkbcommon/test/data/compat/
Dmisc13 // Sets the "Alt" virtual modifier.
35 // Sets the "Meta" virtual modifier.
57 // Sets the "Super" virtual modifier.
79 // Sets the "Hyper" virtual modifier.
101 // Sets the "ScrollLock" virtual modifier and
102 // makes it actually lock when pressed. Sets
/external/curl/docs/cmdline-opts/
Dtelnet-option.d8 TTYPE=<term> Sets the terminal type.
10 XDISPLOC=<X display> Sets the X display location.
12 NEW_ENV=<var,val> Sets an environment variable.
/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/apache-commons-compress/src/test/java/org/apache/commons/compress/compressors/
DTestCompressorStreamProvider.java26 import org.apache.commons.compress.utils.Sets;
53 return Sets.newHashSet("TestInput1"); in getInputStreamCompressorNames()
58 return Sets.newHashSet("TestOutput1"); in getOutputStreamCompressorNames()
/external/swiftshader/third_party/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()
/external/swiftshader/third_party/llvm-7.0/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/guice/extensions/servlet/test/com/google/inject/servlet/
DFilterDefinitionTest.java10 import com.google.common.collect.Sets;
71 filterDef.init(servletContext, injector, Sets.<Filter>newIdentityHashSet()); in testFilterInitAndConfig()
115 filterDef.init(createMock(ServletContext.class), injector, Sets.<Filter>newIdentityHashSet()); in testFilterCreateDispatchDestroy()
136 filterDef.destroy(Sets.<Filter>newIdentityHashSet()); in testFilterCreateDispatchDestroy()
178 filterDef.init(createMock(ServletContext.class), injector, Sets.<Filter>newIdentityHashSet()); in testFilterCreateDispatchDestroySupressChain()
199 filterDef.destroy(Sets.<Filter>newIdentityHashSet()); in testFilterCreateDispatchDestroySupressChain()
236 filterDef.init(servletContext, injector, Sets.<Filter>newIdentityHashSet()); in testGetFilterIfMatching()
273 filterDef.init(servletContext, injector, Sets.<Filter>newIdentityHashSet()); in testGetFilterIfMatchingNotMatching()

12345678910>>...22