/external/llvm-project/flang/include/flang/Common/ |
D | enum-set.h | 28 template <typename ENUM, std::size_t BITS> class EnumSet { 38 constexpr EnumSet() {} in EnumSet() function 39 constexpr EnumSet(const std::initializer_list<enumerationType> &enums) { in EnumSet() function 44 constexpr EnumSet(const EnumSet &) = default; 45 constexpr EnumSet(EnumSet &&) = default; 47 constexpr EnumSet &operator=(const EnumSet &) = default; 48 constexpr EnumSet &operator=(EnumSet &&) = default; 52 constexpr EnumSet &operator&=(const EnumSet &that) { 56 constexpr EnumSet &operator&=(EnumSet &&that) { 60 constexpr EnumSet &operator|=(const EnumSet &that) { [all …]
|
/external/swiftshader/third_party/SPIRV-Tools/test/ |
D | enum_set_test.cpp | 30 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/angle/third_party/vulkan-deps/spirv-tools/src/test/ |
D | enum_set_test.cpp | 30 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/deqp-deps/SPIRV-Tools/test/ |
D | enum_set_test.cpp | 30 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-unittest/src/org/unicode/cldr/unittest/ |
D | TestKeyboardModifierSet.java | 5 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/java/org/unicode/cldr/draft/keyboard/test/ |
D | ModifierKeySimplifierTest.java | 3 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 …]
|
D | KeyMapTest.java | 3 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/java/org/unicode/cldr/draft/ |
D | KeyboardModifierSet.java | 5 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/ |
D | enum_set.h | 34 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/ |
D | enum_set.h | 34 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/ |
D | enum_set.h | 34 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/jackson-databind/src/main/java/com/fasterxml/jackson/databind/deser/std/ |
D | EnumSetDeserializer.java | 24 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/icu/icu4c/source/common/unicode/ |
D | enumset.h | 34 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/ |
D | enumset.h | 34 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/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/ |
D | ShadowMediaPlayer.java | 26 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/cldr/tools/java/org/unicode/cldr/util/ |
D | LenientDateParser.java | 9 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/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_new_src/expected_output/ |
D | com_github_javaparser_ast_expr_VariableDeclarationExpr.txt | 1 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/ |
D | TypeDeclaration.java | 28 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()
|
D | AnnotationMemberDeclaration.java | 37 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()
|
D | FieldDeclaration.java | 28 import java.util.EnumSet; 58 private EnumSet<Modifier> modifiers = EnumSet.noneOf(Modifier.class); 69 …public FieldDeclaration(EnumSet<Modifier> modifiers, Type elementType, VariableDeclarator variable… in FieldDeclaration() 77 …public FieldDeclaration(EnumSet<Modifier> modifiers, Type elementType, List<VariableDeclarator> va… in FieldDeclaration() 83 …public FieldDeclaration(EnumSet<Modifier> modifiers, List<AnnotationExpr> annotations, Type elemen… in FieldDeclaration() 92 …public FieldDeclaration(Range range, EnumSet<Modifier> modifiers, List<AnnotationExpr> annotations… in FieldDeclaration() 112 public static FieldDeclaration create(EnumSet<Modifier> modifiers, Type type, in create() 130 public static FieldDeclaration create(EnumSet<Modifier> modifiers, Type type, String name) { in create() 153 public EnumSet<Modifier> getModifiers() { in getModifiers() 164 public FieldDeclaration setModifiers(EnumSet<Modifier> modifiers) { in setModifiers()
|
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/ser/std/ |
D | EnumSetSerializer.java | 12 extends AsArraySerializerBase<EnumSet<? extends Enum<?>>> 18 super(EnumSet.class, elemType, true, null, null); in EnumSetSerializer() 41 public boolean isEmpty(SerializerProvider prov, EnumSet<? extends Enum<?>> value) { in isEmpty() 46 public boolean hasSingleElement(EnumSet<? extends Enum<?>> value) { in hasSingleElement() 51 public final void serialize(EnumSet<? extends Enum<?>> value, JsonGenerator gen, in serialize() 69 public void serializeContents(EnumSet<? extends Enum<?>> value, JsonGenerator gen, in serializeContents()
|
/external/guava/android/guava/src/com/google/common/collect/ |
D | ImmutableEnumSet.java | 23 import java.util.EnumSet; 34 static ImmutableSet asImmutable(EnumSet set) { in asImmutable() 53 private final transient EnumSet<E> delegate; 55 private ImmutableEnumSet(EnumSet<E> delegate) { in ImmutableEnumSet() 131 final EnumSet<E> delegate; 133 EnumSerializedForm(EnumSet<E> delegate) { in EnumSerializedForm()
|
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_new_src/javaparser-core/com/github/javaparser/ast/expr/ |
D | VariableDeclarationExpr.java | 28 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()
|
/external/guava/guava/src/com/google/common/collect/ |
D | ImmutableEnumSet.java | 23 import java.util.EnumSet; 36 static ImmutableSet asImmutable(EnumSet set) { in asImmutable() 55 private final transient EnumSet<E> delegate; 57 private ImmutableEnumSet(EnumSet<E> delegate) { in ImmutableEnumSet() 143 final EnumSet<E> delegate; 145 EnumSerializedForm(EnumSet<E> delegate) { in EnumSerializedForm()
|
/external/llvm-project/flang/lib/Semantics/ |
D | check-directive-structure.h | 24 const common::EnumSet<C, ClauseEnumSize> allowed; 25 const common::EnumSet<C, ClauseEnumSize> allowedOnce; 26 const common::EnumSet<C, ClauseEnumSize> allowedExclusive; 27 const common::EnumSet<C, ClauseEnumSize> requiredOneOf; 129 common::EnumSet<C, ClauseEnumSize> allowedClauses{}; 130 common::EnumSet<C, ClauseEnumSize> allowedOnceClauses{}; 131 common::EnumSet<C, ClauseEnumSize> allowedExclusiveClauses{}; 132 common::EnumSet<C, ClauseEnumSize> requiredClauses{}; 166 void SetContextAllowed(const common::EnumSet<C, ClauseEnumSize> &allowed) { in SetContextAllowed() 171 const common::EnumSet<C, ClauseEnumSize> &allowedOnce) { in SetContextAllowedOnce() [all …]
|