Home
last modified time | relevance | path

Searched refs:ImmutableSet (Results 1 – 25 of 432) sorted by relevance

12345678910>>...18

/external/owasp/sanitizer/src/main/org/owasp/html/
DCssSchema.java38 import com.google.common.collect.ImmutableSet;
50 final ImmutableSet<String> literals;
57 int bits, ImmutableSet<String> literals, in Property()
74 0, ImmutableSet.<String>of(), ImmutableMap.<String, String>of());
169 ImmutableSet<String> mozBorderRadiusLiterals0 = ImmutableSet.of("/");
170 ImmutableSet<String> mozOpacityLiterals0 = ImmutableSet.of("inherit");
171 ImmutableSet<String> mozOutlineLiterals0 = ImmutableSet.of(
199 ImmutableSet<String> mozOutlineLiterals1 = ImmutableSet.of(
201 ImmutableSet<String> mozOutlineLiterals2 = ImmutableSet.of("thick", "thin");
202 ImmutableSet<String> mozOutlineLiterals3 = ImmutableSet.of(
[all …]
/external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/
DImmutableSetTest.java22 import com.google.common.collect.ImmutableSet.Builder;
41 return ImmutableSet.of(); in of()
45 return ImmutableSet.of(e); in of()
49 return ImmutableSet.of(e1, e2); in of()
53 return ImmutableSet.of(e1, e2, e3); in of()
58 return ImmutableSet.of(e1, e2, e3, e4); in of()
63 return ImmutableSet.of(e1, e2, e3, e4, e5); in of()
68 return ImmutableSet.of(e1, e2, e3, e4, e5, e6, rest); in of()
72 return ImmutableSet.copyOf(elements); in copyOf()
76 return ImmutableSet.copyOf(elements); in copyOf()
[all …]
DSetsTest.java106 ImmutableSet<SomeEnum> none in testImmutableEnumSet_fromIterable()
110 ImmutableSet<SomeEnum> one in testImmutableEnumSet_fromIterable()
114 ImmutableSet<SomeEnum> two in testImmutableEnumSet_fromIterable()
138 Set<SomeEnum> set = ImmutableSet.of(SomeEnum.B, SomeEnum.C); in testNewEnumSet_collection()
143 Set<SomeEnum> set = ImmutableSet.of(SomeEnum.A, SomeEnum.B, SomeEnum.C); in testNewEnumSet_iterable()
481 ImmutableSet<Integer> elements = ImmutableSet.of(); in testPowerSetEmpty()
484 assertEquals(ImmutableSet.of(ImmutableSet.of()), powerSet); in testPowerSetEmpty()
489 ImmutableSet<Integer> elements = ImmutableSet.of(1, 2, 3); in testPowerSetContents()
495 expected.add(ImmutableSet.<Integer>of()); in testPowerSetContents()
496 expected.add(ImmutableSet.of(1)); in testPowerSetContents()
[all …]
/external/guava/guava-tests/test/com/google/common/collect/
DImmutableSetTest.java23 import com.google.common.collect.ImmutableSet.Builder;
91 return ImmutableSet.of(); in of()
95 return ImmutableSet.of(e); in of()
99 return ImmutableSet.of(e1, e2); in of()
103 return ImmutableSet.of(e1, e2, e3); in of()
108 return ImmutableSet.of(e1, e2, e3, e4); in of()
113 return ImmutableSet.of(e1, e2, e3, e4, e5); in of()
118 return ImmutableSet.of(e1, e2, e3, e4, e5, e6, rest); in of()
122 return ImmutableSet.copyOf(elements); in copyOf()
126 return ImmutableSet.copyOf(elements); in copyOf()
[all …]
DSetsTest.java326 ImmutableSet<SomeEnum> none
330 ImmutableSet<SomeEnum> one
334 ImmutableSet<SomeEnum> two
342 ImmutableSet<SomeEnum> original =
349 ImmutableSet<?> deserialized = (ImmutableSet<?>) in.readObject();
396 Set<SomeEnum> set = ImmutableSet.of(SomeEnum.B, SomeEnum.C);
401 Set<SomeEnum> set = ImmutableSet.of(SomeEnum.A, SomeEnum.B, SomeEnum.C);
768 ImmutableSet<Integer> elements = ImmutableSet.of();
771 assertEquals(ImmutableSet.of(ImmutableSet.of()), powerSet);
776 ImmutableSet<Integer> elements = ImmutableSet.of(1, 2, 3);
[all …]
/external/llvm/unittests/ADT/
DImmutableSetTest.cpp38 ImmutableSet<int>::Factory f; in TEST_F()
44 ImmutableSet<int> S = f.getEmptySet(); in TEST_F()
52 ImmutableSet<int>::Factory f; in TEST_F()
53 ImmutableSet<int> S = f.getEmptySet(); in TEST_F()
55 ImmutableSet<int> S2 = f.add(S, 3); in TEST_F()
65 ImmutableSet<int> S3 = f.add(S, 2); in TEST_F()
80 ImmutableSet<int>::Factory f; in TEST_F()
81 ImmutableSet<int> S = f.getEmptySet(); in TEST_F()
83 ImmutableSet<int> S2 = f.add(f.add(f.add(S, 3), 4), 5); in TEST_F()
84 ImmutableSet<int> S3 = f.add(f.add(f.add(S2, 9), 20), 43); in TEST_F()
[all …]
/external/swiftshader/third_party/LLVM/unittests/ADT/
DImmutableSetTest.cpp38 ImmutableSet<int>::Factory f; in TEST_F()
44 ImmutableSet<int> S = f.getEmptySet(); in TEST_F()
52 ImmutableSet<int>::Factory f; in TEST_F()
53 ImmutableSet<int> S = f.getEmptySet(); in TEST_F()
55 ImmutableSet<int> S2 = f.add(S, 3); in TEST_F()
65 ImmutableSet<int> S3 = f.add(S, 2); in TEST_F()
80 ImmutableSet<int>::Factory f; in TEST_F()
81 ImmutableSet<int> S = f.getEmptySet(); in TEST_F()
83 ImmutableSet<int> S2 = f.add(f.add(f.add(S, 3), 4), 5); in TEST_F()
84 ImmutableSet<int> S3 = f.add(f.add(f.add(S2, 9), 20), 43); in TEST_F()
[all …]
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
DImmutableSet.java40 public abstract class ImmutableSet<E> extends ImmutableCollection<E> implements Set<E> { class
41 ImmutableSet() {} in ImmutableSet() method in ImmutableSet
45 public static <E> ImmutableSet<E> of() { in of()
46 return (ImmutableSet<E>) EmptyImmutableSet.INSTANCE; in of()
49 public static <E> ImmutableSet<E> of(E element) { in of()
54 public static <E> ImmutableSet<E> of(E e1, E e2) { in of()
59 public static <E> ImmutableSet<E> of(E e1, E e2, E e3) { in of()
64 public static <E> ImmutableSet<E> of(E e1, E e2, E e3, E e4) { in of()
69 public static <E> ImmutableSet<E> of(E e1, E e2, E e3, E e4, E e5) { in of()
74 public static <E> ImmutableSet<E> of(E e1, E e2, E e3, E e4, E e5, E e6, E... others) { in of()
[all …]
DImmutableMap.java209 private transient ImmutableSet<Entry<K, V>> cachedEntrySet = null;
211 public final ImmutableSet<Entry<K, V>> entrySet() { in entrySet()
218 abstract ImmutableSet<Entry<K, V>> createEntrySet(); in createEntrySet()
220 private transient ImmutableSet<K> cachedKeySet = null;
222 public ImmutableSet<K> keySet() { in keySet()
229 ImmutableSet<K> createKeySet() { in createKeySet()
253 ImmutableMap<K, ImmutableSet<V>> map = viewValuesAsImmutableSet(); in createMultimapView()
257 private ImmutableMap<K, ImmutableSet<V>> viewValuesAsImmutableSet() { in viewValuesAsImmutableSet()
259 return new ImmutableMap<K, ImmutableSet<V>>() { in viewValuesAsImmutableSet()
266 public ImmutableSet<V> get(@Nullable Object key) { in viewValuesAsImmutableSet()
[all …]
/external/guava/guava-gwt/test-super/com/google/common/net/super/com/google/common/net/
DInternetDomainNameTest.java22 import com.google.common.collect.ImmutableSet;
57 private static final ImmutableSet<String> VALID_NAME = ImmutableSet.of(
75 private static final ImmutableSet<String> INVALID_NAME = ImmutableSet.of(
98 private static final ImmutableSet<String> PS = ImmutableSet.of(
111 private static final ImmutableSet<String> NO_PS = ImmutableSet.of(
114 private static final ImmutableSet<String> NON_PS = ImmutableSet.of(
120 private static final ImmutableSet<String> TOP_PRIVATE_DOMAIN =
121 ImmutableSet.of("google.com", "foo.Co.uk", "foo.ca.us.");
123 private static final ImmutableSet<String> UNDER_PRIVATE_DOMAIN =
124 ImmutableSet.of("foo.bar.google.com", "a.b.co.uk", "x.y.ca.us");
[all …]
/external/guava/guava/src/com/google/common/collect/
DImmutableSet.java74 public abstract class ImmutableSet<E> extends ImmutableCollection<E> class
83 public static <E> ImmutableSet<E> of() { in of()
84 return (ImmutableSet<E>) EmptyImmutableSet.INSTANCE; in of()
93 public static <E> ImmutableSet<E> of(E element) { in of()
104 public static <E> ImmutableSet<E> of(E e1, E e2) { in of()
115 public static <E> ImmutableSet<E> of(E e1, E e2, E e3) { in of()
126 public static <E> ImmutableSet<E> of(E e1, E e2, E e3, E e4) { in of()
137 public static <E> ImmutableSet<E> of(E e1, E e2, E e3, E e4, E e5) { in of()
149 public static <E> ImmutableSet<E> of(E e1, E e2, E e3, E e4, E e5, E e6, in of()
178 private static <E> ImmutableSet<E> construct(int n, Object... elements) { in construct()
[all …]
DImmutableMap.java384 private transient ImmutableSet<Entry<K, V>> entrySet;
391 public ImmutableSet<Entry<K, V>> entrySet() { in entrySet()
392 ImmutableSet<Entry<K, V>> result = entrySet; in entrySet()
396 abstract ImmutableSet<Entry<K, V>> createEntrySet(); in createEntrySet()
398 private transient ImmutableSet<K> keySet;
405 public ImmutableSet<K> keySet() { in keySet()
406 ImmutableSet<K> result = keySet; in keySet()
410 ImmutableSet<K> createKeySet() { in createKeySet()
441 ImmutableMap<K, ImmutableSet<V>> map = viewMapValuesAsSingletonSets(); in createMultimapView()
445 private ImmutableMap<K, ImmutableSet<V>> viewMapValuesAsSingletonSets() { in viewMapValuesAsSingletonSets()
[all …]
DRegularImmutableTable.java40 final ImmutableSet<Cell<R, C, V>> createCellSet() { in createCellSet()
41 return isEmpty() ? ImmutableSet.<Cell<R, C, V>>of() : new CellSet(); in createCellSet()
44 private final class CellSet extends ImmutableSet<Cell<R, C, V>> {
152 ImmutableSet.Builder<R> rowSpaceBuilder = ImmutableSet.builder();
153 ImmutableSet.Builder<C> columnSpaceBuilder = ImmutableSet.builder();
160 ImmutableSet<R> rowSpace = rowSpaceBuilder.build();
164 rowSpace = ImmutableSet.copyOf(rowList);
166 ImmutableSet<C> columnSpace = columnSpaceBuilder.build();
170 columnSpace = ImmutableSet.copyOf(columnList);
/external/guava/guava-tests/test/com/google/common/net/
DInternetDomainNameTest.java23 import com.google.common.collect.ImmutableSet;
59 private static final ImmutableSet<String> VALID_NAME = ImmutableSet.of(
77 private static final ImmutableSet<String> INVALID_NAME = ImmutableSet.of(
100 private static final ImmutableSet<String> PS = ImmutableSet.of(
113 private static final ImmutableSet<String> NO_PS = ImmutableSet.of(
116 private static final ImmutableSet<String> NON_PS = ImmutableSet.of(
122 private static final ImmutableSet<String> TOP_PRIVATE_DOMAIN =
123 ImmutableSet.of("google.com", "foo.Co.uk", "foo.ca.us.");
125 private static final ImmutableSet<String> UNDER_PRIVATE_DOMAIN =
126 ImmutableSet.of("foo.bar.google.com", "a.b.co.uk", "x.y.ca.us");
[all …]
DHttpHeadersTest.java23 import com.google.common.collect.ImmutableSet;
41 ImmutableSet<String> uppercaseAcronyms = ImmutableSet.of( in testConstantNameMatchesString()
48 ImmutableBiMap<String, String> specialCases, ImmutableSet<String> uppercaseAcronyms) in assertConstantNameMatchesString()
57 static ImmutableSet<Field> relevantFields(Class<?> cls) { in relevantFields()
58 ImmutableSet.Builder<Field> builder = ImmutableSet.builder(); in relevantFields()
76 ImmutableBiMap<String, String> specialCases, ImmutableSet<String> uppercaseAcronyms) { in upperToHttpHeaderName()
/external/guava/guava-tests/test/com/google/common/math/
DMathTesting.java34 import com.google.common.collect.ImmutableSet;
48 static final ImmutableSet<RoundingMode> ALL_ROUNDING_MODES = ImmutableSet.copyOf(RoundingMode
101 static final ImmutableSet<Integer> POSITIVE_INTEGER_CANDIDATES;
110 ImmutableSet.Builder<Integer> intValues = ImmutableSet.builder();
138 static final ImmutableSet<Long> POSITIVE_LONG_CANDIDATES;
147 ImmutableSet.Builder<Long> longValues = ImmutableSet.builder();
172 static final ImmutableSet<BigInteger> POSITIVE_BIGINTEGER_CANDIDATES;
181 ImmutableSet.Builder<BigInteger> bigValues = ImmutableSet.builder();
204 static final ImmutableSet<Double> INTEGRAL_DOUBLE_CANDIDATES;
205 static final ImmutableSet<Double> FRACTIONAL_DOUBLE_CANDIDATES;
[all …]
/external/caliper/caliper/src/test/java/com/google/caliper/runner/
DExperimentingRunnerModuleTest.java30 import com.google.common.collect.ImmutableSet;
62 when(options.benchmarkMethodNames()).thenReturn(ImmutableSet.<String>of()); in provideInstrumentations_noNames()
64 new ImmutableSet.Builder<Instrumentation>() in provideInstrumentations_noNames()
74 ImmutableSet.of(instrumentA, instrumentB))); in provideInstrumentations_noNames()
79 when(options.benchmarkMethodNames()).thenReturn(ImmutableSet.of("b"), in provideInstrumentations_withNames()
80 ImmutableSet.of("a", "c")); in provideInstrumentations_withNames()
82 new ImmutableSet.Builder<Instrumentation>() in provideInstrumentations_withNames()
88 ImmutableSet.of(instrumentA, instrumentB))); in provideInstrumentations_withNames()
90 new ImmutableSet.Builder<Instrumentation>() in provideInstrumentations_withNames()
98 ImmutableSet.of(instrumentA, instrumentB))); in provideInstrumentations_withNames()
[all …]
/external/guava/guava/src/com/google/common/reflect/
DClassPath.java28 import com.google.common.collect.ImmutableSet;
74 private final ImmutableSet<ResourceInfo> resources;
76 private ClassPath(ImmutableSet<ResourceInfo> resources) { in ClassPath()
101 public ImmutableSet<ResourceInfo> getResources() { in getResources()
110 public ImmutableSet<ClassInfo> getAllClasses() { in getAllClasses()
115 public ImmutableSet<ClassInfo> getTopLevelClasses() { in getTopLevelClasses()
120 public ImmutableSet<ClassInfo> getTopLevelClasses(String packageName) { in getTopLevelClasses()
122 ImmutableSet.Builder<ClassInfo> builder = ImmutableSet.builder(); in getTopLevelClasses()
135 public ImmutableSet<ClassInfo> getTopLevelClassesRecursive(String packageName) { in getTopLevelClassesRecursive()
138 ImmutableSet.Builder<ClassInfo> builder = ImmutableSet.builder(); in getTopLevelClassesRecursive()
[all …]
/external/dagger2/producers/src/test/java/dagger/producers/internal/
DSetOfProducedProducerTest.java18 import com.google.common.collect.ImmutableSet;
42 Producers.<Set<Integer>>immediateProducer(ImmutableSet.of(1, 2)), in success()
43 Producers.<Set<Integer>>immediateProducer(ImmutableSet.of(5, 7))); in success()
57 Producers.<Set<Integer>>immediateProducer(ImmutableSet.of(1, 2)), in failure()
80 Producers.<Set<Integer>>immediateProducer(ImmutableSet.of(7, 3))); in oneOfDelegateSetNpe()
113 final ImmutableSet<T> successes;
114 final ImmutableSet<ExecutionException> failures;
116 private Results(ImmutableSet<T> successes, ImmutableSet<ExecutionException> failures) { in Results()
122 ImmutableSet.Builder<T> successes = ImmutableSet.builder(); in create()
123 ImmutableSet.Builder<ExecutionException> failures = ImmutableSet.builder(); in create()
/external/turbine/java/com/google/turbine/binder/bound/
DAnnotationMetadata.java21 import com.google.common.collect.ImmutableSet;
33 private static final ImmutableSet<ElementType> DEFAULT_TARGETS = getDefaultElements();
35 private static ImmutableSet<ElementType> getDefaultElements() { in getDefaultElements()
39 return ImmutableSet.copyOf(values); in getDefaultElements()
43 private final ImmutableSet<ElementType> target;
48 ImmutableSet<ElementType> annotationTarget, in AnnotationMetadata()
61 public ImmutableSet<ElementType> target() { in target()
/external/smali/dexlib2/src/test/java/org/jf/dexlib2/writer/
DDexWriterTest.java34 import com.google.common.collect.ImmutableSet;
62 ImmutableSet<ImmutableAnnotationElement> elements = in testAnnotationElementOrder()
63ImmutableSet.of(new ImmutableAnnotationElement("zabaglione", ImmutableNullEncodedValue.INSTANCE), in testAnnotationElementOrder()
70 0, "Ljava/lang/Object;", null, null, ImmutableSet.of(annotation), null, null); in testAnnotationElementOrder()
75 … DexPool.writeTo(dataStore, new ImmutableDexFile(Opcodes.getDefault(), ImmutableSet.of(classDef))); in testAnnotationElementOrder()
96 ImmutableSet<ImmutableAnnotationElement> encodedElements = in testEncodedAnnotationElementOrder()
97ImmutableSet.of(new ImmutableAnnotationElement("zabaglione", ImmutableNullEncodedValue.INSTANCE), in testEncodedAnnotationElementOrder()
103 ImmutableSet<ImmutableAnnotationElement> elements = in testEncodedAnnotationElementOrder()
104ImmutableSet.of(new ImmutableAnnotationElement("encoded_annotation", encodedAnnotations)); in testEncodedAnnotationElementOrder()
110 0, "Ljava/lang/Object;", null, null, ImmutableSet.of(annotation), null, null); in testEncodedAnnotationElementOrder()
[all …]
/external/dagger2/compiler/src/main/java/dagger/internal/codegen/
DModuleProcessingStep.java22 import com.google.common.collect.ImmutableSet;
69 return ImmutableSet.of(Module.class, Provides.class); in annotations()
76 ImmutableSet.Builder<ExecutableElement> validProvidesMethodsBuilder = ImmutableSet.builder(); in process()
88 ImmutableSet<ExecutableElement> validProvidesMethods = validProvidesMethodsBuilder.build(); in process()
98 ImmutableSet.Builder<ExecutableElement> moduleProvidesMethodsBuilder = in process()
99 ImmutableSet.builder(); in process()
107 ImmutableSet<ExecutableElement> moduleProvidesMethods = in process()
113 ImmutableSet<ProvisionBinding> bindings = FluentIterable.from(moduleProvidesMethods) in process()
134 return ImmutableSet.of(); in process()
DBindingGraph.java27 import com.google.common.collect.ImmutableSet;
93 abstract ImmutableSet<ModuleDescriptor> ownedModules(); in ownedModules()
95 ImmutableSet<TypeElement> ownedModuleTypes() { in ownedModuleTypes()
114 ImmutableSet<TypeElement> componentRequirements() { in componentRequirements()
130 : ImmutableSet.<ContributionBinding>of(); in componentRequirements()
138 ? ImmutableSet.<TypeElement>of() in componentRequirements()
148 ImmutableSet<TypeElement> availableDependencies() {
149 return new ImmutableSet.Builder<TypeElement>()
181 ImmutableSet.Builder<ContributionBinding> explicitBindingsBuilder = ImmutableSet.builder();
191 ImmutableSet<TypeElement> componentDependencyTypes = componentMirror.isPresent()
[all …]
DProducerModuleProcessingStep.java23 import com.google.common.collect.ImmutableSet;
70 return ImmutableSet.of(Produces.class, ProducerModule.class); in annotations()
77 ImmutableSet.Builder<ExecutableElement> validProducesMethodsBuilder = ImmutableSet.builder(); in process()
89 ImmutableSet<ExecutableElement> validProducesMethods = validProducesMethodsBuilder.build(); in process()
101 ImmutableSet.Builder<ExecutableElement> moduleProducesMethodsBuilder = in process()
102 ImmutableSet.builder(); in process()
110 ImmutableSet<ExecutableElement> moduleProducesMethods = in process()
116 ImmutableSet<ProductionBinding> bindings = FluentIterable.from(moduleProducesMethods) in process()
139 return ImmutableSet.of(); in process()
/external/caliper/caliper/src/main/java/com/google/caliper/runner/
DFullCartesianExperimentSelector.java23 import com.google.common.collect.ImmutableSet;
41 private ImmutableSet<Instrumentation> instrumentations;
42 private final ImmutableSet<VirtualMachine> vms;
46 ImmutableSet<Instrumentation> instrumentations, in FullCartesianExperimentSelector()
47 ImmutableSet<VirtualMachine> vms, in FullCartesianExperimentSelector()
55 @Override public ImmutableSet<Instrument> instruments() { in instruments()
65 @Override public ImmutableSet<VirtualMachine> vms() {
73 @Override public ImmutableSet<Experiment> selectExperiments() {
84 return ImmutableSet.copyOf(experiments);

12345678910>>...18