Home
last modified time | relevance | path

Searched refs:EnumSet (Results 1 – 25 of 321) sorted by relevance

12345678910>>...13

/external/cronet/base/containers/
Denum_set.h21 class EnumSet; variable
24 EnumSet<E, Min, Max> Union(EnumSet<E, Min, Max> set1,
25 EnumSet<E, Min, Max> set2);
28 EnumSet<E, Min, Max> Intersection(EnumSet<E, Min, Max> set1,
29 EnumSet<E, Min, Max> set2);
32 EnumSet<E, Min, Max> Difference(EnumSet<E, Min, Max> set1,
33 EnumSet<E, Min, Max> set2);
45 class EnumSet {
135 friend Iterator EnumSet::begin() const;
155 EnumSet() = default;
[all …]
/external/deqp-deps/SPIRV-Tools/test/
Denum_set_test.cpp30 TEST(EnumSet, IsEmpty1) { in TEST() argument
31 EnumSet<uint32_t> set; in TEST()
37 TEST(EnumSet, IsEmpty2) { in TEST() argument
38 EnumSet<uint32_t> set; in TEST()
44 TEST(EnumSet, IsEmpty3) { in TEST() argument
45 EnumSet<uint32_t> set(4); in TEST()
49 TEST(EnumSet, IsEmpty4) { in TEST() argument
50 EnumSet<uint32_t> set(300); in TEST()
55 const EnumSet<uint32_t> set; in TEST()
56 const EnumSet<uint32_t> empty; in TEST()
[all …]
/external/apache-commons-lang/src/test/java/org/apache/commons/lang3/
DEnumUtilsTest.java29 import java.util.EnumSet;
54 assertEquals(0L, EnumUtils.generateBitVector(Traffic.class, EnumSet.noneOf(Traffic.class))); in test_generateBitVector()
55 assertEquals(1L, EnumUtils.generateBitVector(Traffic.class, EnumSet.of(Traffic.RED))); in test_generateBitVector()
56 assertEquals(2L, EnumUtils.generateBitVector(Traffic.class, EnumSet.of(Traffic.AMBER))); in test_generateBitVector()
57 assertEquals(4L, EnumUtils.generateBitVector(Traffic.class, EnumSet.of(Traffic.GREEN))); in test_generateBitVector()
58 …assertEquals(3L, EnumUtils.generateBitVector(Traffic.class, EnumSet.of(Traffic.RED, Traffic.AMBER)… in test_generateBitVector()
59 …assertEquals(5L, EnumUtils.generateBitVector(Traffic.class, EnumSet.of(Traffic.RED, Traffic.GREEN)… in test_generateBitVector()
60 …assertEquals(6L, EnumUtils.generateBitVector(Traffic.class, EnumSet.of(Traffic.AMBER, Traffic.GREE… in test_generateBitVector()
62 …EnumUtils.generateBitVector(Traffic.class, EnumSet.of(Traffic.RED, Traffic.AMBER, Traffic.GREEN))); in test_generateBitVector()
65 assertEquals((1L << 31), EnumUtils.generateBitVector(Enum64.class, EnumSet.of(Enum64.A31))); in test_generateBitVector()
[all …]
/external/swiftshader/third_party/SPIRV-Tools/test/
Denum_set_test.cpp30 TEST(EnumSet, IsEmpty1) { in TEST() argument
31 EnumSet<uint32_t> set; in TEST()
37 TEST(EnumSet, IsEmpty2) { in TEST() argument
38 EnumSet<uint32_t> set; in TEST()
44 TEST(EnumSet, IsEmpty3) { in TEST() argument
45 EnumSet<uint32_t> set(4); in TEST()
49 TEST(EnumSet, IsEmpty4) { in TEST() argument
50 EnumSet<uint32_t> set(300); in TEST()
55 const EnumSet<uint32_t> set; in TEST()
56 const EnumSet<uint32_t> empty; in TEST()
[all …]
/external/cldr/tools/cldr-code/src/test/java/org/unicode/cldr/unittest/
DTestKeyboardModifierSet.java5 import java.util.EnumSet;
35 EnumSet<KeyboardModifierSet.Modifier> emptySet = EnumSet in testParseSet_empty()
46 EnumSet<Modifier> testSet = EnumSet.of(Modifier.cmd, Modifier.ctrlL, in testParseSet_allOnKeys()
57 assertTrue("x", modifierSet.contains(EnumSet.noneOf(Modifier.class))); in testParseSet_allDontCareKeys()
58 assertTrue("x", modifierSet.contains(EnumSet.of(Modifier.cmd))); in testParseSet_allDontCareKeys()
59 assertTrue("x", modifierSet.contains(EnumSet.of(Modifier.ctrlL))); in testParseSet_allDontCareKeys()
61 modifierSet.contains(EnumSet.of(Modifier.cmd, Modifier.ctrlL))); in testParseSet_allDontCareKeys()
70 assertTrue("x", modifierSet.contains(EnumSet.of(Modifier.optR, in testParseSet_mix()
72 assertTrue("x", modifierSet.contains(EnumSet.of(Modifier.optR, in testParseSet_mix()
81 assertTrue("x", modifierSet.contains(EnumSet.of(Modifier.altL))); in testParseSet_parentOn()
[all …]
/external/cldr/tools/cldr-code/src/main/java/org/unicode/cldr/draft/keyboard/test/
DModifierKeySimplifierTest.java3 import java.util.EnumSet;
179 EnumSet.of(ModifierKey.SHIFT, ModifierKey.ALT_RIGHT), EnumSet.of(ModifierKey.CAPSLOCK)); in testSimplifySetWithSingleOnKey()
185 ModifierKeyCombination combination1 = ModifierKeyCombination.ofOnKeys(EnumSet.of( in testSimplifySetWithParentOnKey()
188 ModifierKeyCombination combination2 = ModifierKeyCombination.ofOnKeys(EnumSet.of( in testSimplifySetWithParentOnKey()
195 EnumSet.of(ModifierKey.SHIFT, ModifierKey.ALT_RIGHT), EnumSet.of(ModifierKey.CONTROL)); in testSimplifySetWithParentOnKey()
201 ModifierKeyCombination combination1 = ModifierKeyCombination.ofOnKeys(EnumSet.of( in testSimplifySetWithSingleOffKey()
205 EnumSet.of(ModifierKey.SHIFT, ModifierKey.ALT_RIGHT), EnumSet.of(ModifierKey.COMMAND)); in testSimplifySetWithSingleOffKey()
211 EnumSet.of(ModifierKey.SHIFT, ModifierKey.ALT_RIGHT), EnumSet.of(ModifierKey.COMMAND)); in testSimplifySetWithSingleOffKey()
217 ModifierKeyCombination combination1 = ModifierKeyCombination.ofOnKeys(EnumSet.of( in testSimplifySetWithParentOffKey()
221 EnumSet.of(ModifierKey.SHIFT, ModifierKey.ALT_RIGHT), EnumSet.of(ModifierKey.OPTION)); in testSimplifySetWithParentOffKey()
[all …]
DKeyMapTest.java3 import java.util.EnumSet;
34 EnumSet.of(ModifierKey.CONTROL), EnumSet.of(ModifierKey.OPTION_RIGHT)); in testModifierKeyCombinationSet()
35 …ModifierKeyCombination combination2 = ModifierKeyCombination.ofOnKeys(EnumSet.of(ModifierKey.SHIFT… in testModifierKeyCombinationSet()
65 …ModifierKeyCombination combination2 = ModifierKeyCombination.ofOnKeys(EnumSet.of(ModifierKey.SHIFT… in testEqualsTrue()
77 …ModifierKeyCombination combination = ModifierKeyCombination.ofOnKeys(EnumSet.noneOf(ModifierKey.cl… in testCompareToGreater()
84 …ModifierKeyCombination combination = ModifierKeyCombination.ofOnKeys(EnumSet.of(ModifierKey.COMMAN… in testCompareToLess()
92 EnumSet.of(ModifierKey.CONTROL), EnumSet.of(ModifierKey.OPTION_RIGHT)); in testCompareTo_equals()
93 …ModifierKeyCombination combination2 = ModifierKeyCombination.ofOnKeys(EnumSet.of(ModifierKey.SHIFT… in testCompareTo_equals()
/external/cldr/tools/cldr-code/src/main/java/org/unicode/cldr/draft/
DKeyboardModifierSet.java5 import java.util.EnumSet;
62 private KeyboardModifierSet(String input, Set<EnumSet<Modifier>> variants) { in KeyboardModifierSet()
65 for (EnumSet<Modifier> item : variants) { in KeyboardModifierSet()
87 public boolean contains(EnumSet<Modifier> combination) { in contains()
136 Set<EnumSet<Modifier>> variants = new HashSet<>(); in parseSet()
157 private static Set<EnumSet<Modifier>> parseSingleSet(String input) { in parseSingleSet()
167 List<EnumSet<Modifier>> variants = new ArrayList<>(); in parseSingleSet()
168 variants.add(EnumSet.noneOf(Modifier.class)); // Add an initial set in parseSingleSet()
186 Set<EnumSet<Modifier>> newVariants = new HashSet<>(); in parseSingleSet()
187 for (EnumSet<Modifier> variant : variants) { in parseSingleSet()
[all …]
/external/deqp-deps/SPIRV-Tools/source/
Denum_set.h34 class EnumSet {
43 EnumSet() {} in EnumSet() function
45 explicit EnumSet(EnumType c) { Add(c); } in EnumSet() function
47 EnumSet(std::initializer_list<EnumType> cs) { in EnumSet() function
50 EnumSet(uint32_t count, const EnumType* ptr) { in EnumSet() function
54 EnumSet(const EnumSet& other) { *this = other; } in EnumSet() function
56 EnumSet(EnumSet&& other) { in EnumSet() function
63 EnumSet& operator=(const EnumSet& other) {
72 friend bool operator==(const EnumSet& a, const EnumSet& b) {
88 friend bool operator!=(const EnumSet& a, const EnumSet& b) {
[all …]
/external/swiftshader/third_party/SPIRV-Tools/source/
Denum_set.h34 class EnumSet {
43 EnumSet() {} in EnumSet() function
45 explicit EnumSet(EnumType c) { Add(c); } in EnumSet() function
47 EnumSet(std::initializer_list<EnumType> cs) { in EnumSet() function
50 EnumSet(uint32_t count, const EnumType* ptr) { in EnumSet() function
54 EnumSet(const EnumSet& other) { *this = other; } in EnumSet() function
56 EnumSet(EnumSet&& other) { in EnumSet() function
63 EnumSet& operator=(const EnumSet& other) {
72 friend bool operator==(const EnumSet& a, const EnumSet& b) {
88 friend bool operator!=(const EnumSet& a, const EnumSet& b) {
[all …]
/external/angle/third_party/vulkan-deps/spirv-tools/src/source/
Denum_set.h57 class EnumSet {
145 Iterator(const EnumSet* set, size_t bucketIndex, ElementType bucketOffset) in Iterator()
149 const EnumSet* set_ = nullptr;
155 friend class EnumSet; variable
188 EnumSet() : buckets_(0), size_(0) {} in EnumSet() function
191 EnumSet(T value) : EnumSet() { insert(value); } in EnumSet() function
194 EnumSet(std::initializer_list<T> values) : EnumSet() { in EnumSet() function
201 EnumSet(ElementType count, const T* array) : EnumSet() { in EnumSet() function
209 EnumSet(InputIt begin, InputIt end) : EnumSet() { in EnumSet() function
216 EnumSet(const EnumSet& other) in EnumSet() function
[all …]
/external/angle/third_party/vulkan-deps/spirv-tools/src/test/
Denum_set_test.cpp300 EnumSet<TestEnum> createSetUnorderedInsertion( in createSetUnorderedInsertion()
305 EnumSet<TestEnum> set; in createSetUnorderedInsertion()
313 TEST(EnumSet, IsEmpty1) { in TEST() argument
314 EnumSet<TestEnum> set; in TEST()
320 TEST(EnumSet, IsEmpty2) { in TEST() argument
321 EnumSet<TestEnum> set; in TEST()
327 TEST(EnumSet, IsEmpty3) { in TEST() argument
328 EnumSet<TestEnum> set(TestEnum::FOUR); in TEST()
332 TEST(EnumSet, IsEmpty4) { in TEST() argument
333 EnumSet<TestEnum> set(TestEnum::THREE_HUNDRED); in TEST()
[all …]
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/deser/std/
DEnumSetDeserializer.java24 extends StdDeserializer<EnumSet<?>>
66 super(EnumSet.class); in EnumSetDeserializer()
177 final Boolean unwrapSingle = findFormatFeature(ctxt, property, EnumSet.class, in createContextual()
195 public EnumSet<?> deserialize(JsonParser p, DeserializationContext ctxt) throws IOException in deserialize()
197 EnumSet result = constructSet(); in deserialize()
206 public EnumSet<?> deserialize(JsonParser p, DeserializationContext ctxt, in deserialize()
207 EnumSet<?> result) throws IOException in deserialize()
217 protected final EnumSet<?> _deserialize(JsonParser p, DeserializationContext ctxt, in _deserialize()
218 EnumSet result) throws IOException in _deserialize()
255 private EnumSet constructSet() in constructSet()
[all …]
/external/ow2-asm/asm-util/src/main/java/org/objectweb/asm/util/
DCheckSignatureAdapter.java30 import java.util.EnumSet;
60 private static final EnumSet<State> VISIT_FORMAL_TYPE_PARAMETER_STATES =
61 EnumSet.of(State.EMPTY, State.FORMAL, State.BOUND);
64 private static final EnumSet<State> VISIT_CLASS_BOUND_STATES = EnumSet.of(State.FORMAL);
67 private static final EnumSet<State> VISIT_INTERFACE_BOUND_STATES =
68 EnumSet.of(State.FORMAL, State.BOUND);
71 private static final EnumSet<State> VISIT_SUPER_CLASS_STATES =
72 EnumSet.of(State.EMPTY, State.FORMAL, State.BOUND);
75 private static final EnumSet<State> VISIT_INTERFACE_STATES = EnumSet.of(State.SUPER);
78 private static final EnumSet<State> VISIT_PARAMETER_TYPE_STATES =
[all …]
/external/cldr/tools/cldr-code/src/test/java/org/unicode/cldr/util/
DTestReportStatus.java7 import java.util.EnumSet;
24 assertEquals(EnumSet.noneOf(ReportId.class), in testGetSet()
29 assertEquals(EnumSet.of(ReportId.compact), in testGetSet()
31 assertEquals(EnumSet.noneOf(ReportId.class), in testGetSet()
38 assertEquals(EnumSet.allOf(ReportId.class), in testGetSet()
40 assertEquals(EnumSet.allOf(ReportId.class), in testGetSet()
46 EnumSet<ReportId> s = status.completed; in testGetSet()
47 assertNotEquals(EnumSet.allOf(ReportId.class), in testGetSet()
53 EnumSet<ReportId> s = status.acceptable; in testGetSet()
54 assertNotEquals(EnumSet.allOf(ReportId.class), in testGetSet()
[all …]
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowMediaPlayer.java26 import java.util.EnumSet;
680 private void checkStateLog(String method, EnumSet<State> allowedStates) {
720 private boolean checkStateError(String method, EnumSet<State> allowedStates) {
756 private void checkStateException(String method, EnumSet<State> allowedStates) {
801 static private final EnumSet<State> nonEndStates = EnumSet
802 .complementOf(EnumSet.of(END));
803 static private final EnumSet<State> nonErrorStates = EnumSet
804 .complementOf(EnumSet.of(ERROR, END));
825 private static EnumSet<State> preparableStates = EnumSet.of(INITIALIZED,
867 private static EnumSet<State> startableStates = EnumSet.of(PREPARED, STARTED,
[all …]
/external/icu/icu4c/source/common/unicode/
Denumset.h34 class EnumSet {
36 inline EnumSet() : fBools(0) {} in EnumSet() function
37 inline EnumSet(const EnumSet<T,minValue,limitValue>& other) : fBools(other.fBools) {} in EnumSet() function
38 inline ~EnumSet() {} in ~EnumSet()
48 …inline const EnumSet<T,minValue,limitValue>& operator=(const EnumSet<T,minValue,limitValue>& other…
/external/icu/libicu/cts_headers/unicode/
Denumset.h34 class EnumSet {
36 inline EnumSet() : fBools(0) {} in EnumSet() function
37 inline EnumSet(const EnumSet<T,minValue,limitValue>& other) : fBools(other.fBools) {} in EnumSet() function
38 inline ~EnumSet() {} in ~EnumSet()
48 …inline const EnumSet<T,minValue,limitValue>& operator=(const EnumSet<T,minValue,limitValue>& other…
/external/cronet/third_party/icu/source/common/unicode/
Denumset.h34 class EnumSet {
36 inline EnumSet() : fBools(0) {} in EnumSet() function
37 inline EnumSet(const EnumSet<T,minValue,limitValue>& other) : fBools(other.fBools) {} in EnumSet() function
38 inline ~EnumSet() {} in ~EnumSet()
48 …inline const EnumSet<T,minValue,limitValue>& operator=(const EnumSet<T,minValue,limitValue>& other…
/external/cldr/tools/cldr-code/src/main/java/org/unicode/cldr/util/
DLenientDateParser.java9 import java.util.EnumSet;
83 …private static final EnumSet<Type> dateTypes = EnumSet.of(Type.DAY, Type.MONTH, Type.YEAR, Type.WE…
84 …private static final EnumSet<Type> timeTypes = EnumSet.of(Type.HOUR, Type.MINUTE, Type.SECOND, Typ…
86 …private static final EnumSet<Type> integerTimeTypes = EnumSet.of(Type.HOUR, Type.MINUTE, Type.SECO…
145 EnumSet<Type> beforeTypes = ((SeparatorToken) token).getAllowsBefore(); in addToken()
163 EnumSet<Type> afterTypes = ((SeparatorToken) token).getAllowsAfter(); in addToken()
293 EnumSet<Type> possible = integerToken.allowsAt; in parse()
300 … integerToken.restrictAndSetCalendarFieldIfPossible(EnumSet.of(item), haveSoFar, tokens); in parse()
385 final EnumSet<Type> haveSoFarSet = EnumSet.noneOf(Type.class);
398 public void setFirstType(EnumSet<Type> set) { in setFirstType()
[all …]
/external/robolectric/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowMediaPlayer.java34 import java.util.EnumSet;
710 private void checkStateLog(String method, EnumSet<State> allowedStates) {
746 private boolean checkStateError(String method, EnumSet<State> allowedStates) {
779 private void checkStateException(String method, EnumSet<State> allowedStates) {
824 private static final EnumSet<State> nonEndStates = EnumSet.complementOf(EnumSet.of(END));
825 private static final EnumSet<State> nonErrorStates = EnumSet.complementOf(EnumSet.of(ERROR, END));
846 private static EnumSet<State> preparableStates = EnumSet.of(INITIALIZED, STOPPED);
893 private static EnumSet<State> startableStates =
894 EnumSet.of(PREPARED, STARTED, PAUSED, PLAYBACK_COMPLETED);
994 private static final EnumSet<State> pausableStates =
[all …]
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_new_src/expected_output/
Dcom_github_javaparser_ast_expr_VariableDeclarationExpr.txt1 Line 53) EnumSet.noneOf(Modifier.class) ==> java.util.EnumSet.noneOf(java.lang.Class<E>)
11 …llection(() -> EnumSet.noneOf(Modifier.class)))) ==> com.github.javaparser.ast.expr.VariableDeclar…
12 …Line 79) Arrays.stream(modifiers).collect(Collectors.toCollection(() -> EnumSet.noneOf(Modifier.cl…
14 …Line 80) Collectors.toCollection(() -> EnumSet.noneOf(Modifier.class)) ==> java.util.stream.Collec…
15 Line 80) EnumSet.noneOf(Modifier.class) ==> java.util.EnumSet.noneOf(java.lang.Class<E>)
19 …llection(() -> EnumSet.noneOf(Modifier.class)))) ==> com.github.javaparser.ast.expr.VariableDeclar…
20 …Line 86) Arrays.stream(modifiers).collect(Collectors.toCollection(() -> EnumSet.noneOf(Modifier.cl…
22 …Line 87) Collectors.toCollection(() -> EnumSet.noneOf(Modifier.class)) ==> java.util.stream.Collec…
23 Line 87) EnumSet.noneOf(Modifier.class) ==> java.util.EnumSet.noneOf(java.lang.Class<E>)
26 …ithub.javaparser.ast.expr.VariableDeclarationExpr.setModifiers(java.util.EnumSet<com.github.javapa…
[all …]
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_new_src/javaparser-core/com/github/javaparser/ast/body/
DTypeDeclaration.java28 import java.util.EnumSet;
49 private EnumSet<Modifier> modifiers = EnumSet.noneOf(Modifier.class);
56 public TypeDeclaration(EnumSet<Modifier> modifiers, String name) { in TypeDeclaration()
62 EnumSet<Modifier> modifiers, String name, in TypeDeclaration()
71 EnumSet<Modifier> modifiers, String name, in TypeDeclaration()
110 public final EnumSet<Modifier> getModifiers() { in getModifiers()
129 public T setModifiers(EnumSet<Modifier> modifiers) { in setModifiers()
DAnnotationMemberDeclaration.java37 import java.util.EnumSet;
47 private EnumSet<Modifier> modifiers = EnumSet.noneOf(Modifier.class);
58 …public AnnotationMemberDeclaration(EnumSet<Modifier> modifiers, Type type, String name, Expression… in AnnotationMemberDeclaration()
65 …public AnnotationMemberDeclaration(EnumSet<Modifier> modifiers, List<AnnotationExpr> annotations, … in AnnotationMemberDeclaration()
74 …public AnnotationMemberDeclaration(Range range, EnumSet<Modifier> modifiers, List<AnnotationExpr> … in AnnotationMemberDeclaration()
104 public EnumSet<Modifier> getModifiers() { in getModifiers()
125 public AnnotationMemberDeclaration setModifiers(EnumSet<Modifier> modifiers) { in setModifiers()
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_new_src/javaparser-core/com/github/javaparser/ast/expr/
DVariableDeclarationExpr.java28 import java.util.EnumSet;
53 private EnumSet<Modifier> modifiers = EnumSet.noneOf(Modifier.class);
80 .collect(Collectors.toCollection(() -> EnumSet.noneOf(Modifier.class)))); in VariableDeclarationExpr()
87 .collect(Collectors.toCollection(() -> EnumSet.noneOf(Modifier.class)))); in VariableDeclarationExpr()
95 public VariableDeclarationExpr(final EnumSet<Modifier> modifiers, final Type elementType, in VariableDeclarationExpr()
103 … final EnumSet<Modifier> modifiers, final List<AnnotationExpr> annotations, in VariableDeclarationExpr()
147 public EnumSet<Modifier> getModifiers() { in getModifiers()
170 public VariableDeclarationExpr setModifiers(final EnumSet<Modifier> modifiers) { in setModifiers()

12345678910>>...13