/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/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/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<EnumSet<Modifier>>(); in parseSet() 157 private static Set<EnumSet<Modifier>> parseSingleSet(String input) { in parseSingleSet() 167 List<EnumSet<Modifier>> variants = new ArrayList<EnumSet<Modifier>>(); in parseSingleSet() 168 variants.add(EnumSet.noneOf(Modifier.class)); // Add an initial set in parseSingleSet() 173 return new HashSet<EnumSet<Modifier>>(variants); in parseSingleSet() 186 Set<EnumSet<Modifier>> newVariants = new HashSet<EnumSet<Modifier>>(); in parseSingleSet() [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/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) { 99 bool HasAnyOf(const EnumSet<EnumType>& in_set) const { in HasAnyOf() 169 using CapabilitySet = EnumSet<SpvCapability>;
|
/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) { 99 bool HasAnyOf(const EnumSet<EnumType>& in_set) const { in HasAnyOf() 169 using CapabilitySet = EnumSet<SpvCapability>;
|
/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/javaparser/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/ |
D | NodeWithModifiers.java | 28 import java.util.EnumSet; 44 EnumSet<Modifier> getModifiers(); in getModifiers() 46 N setModifiers(EnumSet<Modifier> modifiers); in setModifiers() 50 EnumSet<Modifier> newModifiers = getModifiers().clone(); in addModifier() 52 .collect(Collectors.toCollection(() -> EnumSet.noneOf(Modifier.class)))); in addModifier() 59 EnumSet<Modifier> newModifiers = getModifiers().clone(); in removeModifier() 61 .collect(Collectors.toCollection(() -> EnumSet.noneOf(Modifier.class)))); in removeModifier()
|
/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/cldr/tools/java/org/unicode/cldr/util/ |
D | LenientDateParser.java | 9 import java.util.EnumSet; 84 …private static final EnumSet<Type> dateTypes = EnumSet.of(Type.DAY, Type.MONTH, Type.YEAR, Type.WE… 85 …private static final EnumSet<Type> timeTypes = EnumSet.of(Type.HOUR, Type.MINUTE, Type.SECOND, Typ… 87 …private static final EnumSet<Type> integerTimeTypes = EnumSet.of(Type.HOUR, Type.MINUTE, Type.SECO… 146 EnumSet<Type> beforeTypes = ((SeparatorToken) token).getAllowsBefore(); in addToken() 164 EnumSet<Type> afterTypes = ((SeparatorToken) token).getAllowsAfter(); in addToken() 294 EnumSet<Type> possible = integerToken.allowsAt; in parse() 301 … integerToken.restrictAndSetCalendarFieldIfPossible(EnumSet.of(item), haveSoFar, tokens); in parse() 386 final EnumSet<Type> haveSoFarSet = EnumSet.noneOf(Type.class); 399 public void setFirstType(EnumSet<Type> set) { in setFirstType() [all …]
|
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ast/expr/ |
D | VariableDeclarationExpr.java | 40 import java.util.EnumSet; 63 private EnumSet<Modifier> modifiers; 71 this(null, EnumSet.noneOf(Modifier.class), new NodeList<>(), new NodeList<>()); in VariableDeclarationExpr() 75 …this(null, EnumSet.noneOf(Modifier.class), new NodeList<>(), nodeList(new VariableDeclarator(type,… in VariableDeclarationExpr() 79 this(null, EnumSet.noneOf(Modifier.class), new NodeList<>(), nodeList(var)); in VariableDeclarationExpr() 83 …this(null, Arrays.stream(modifiers).collect(Collectors.toCollection(() -> EnumSet.noneOf(Modifier.… in VariableDeclarationExpr() 87 …this(null, Arrays.stream(modifiers).collect(Collectors.toCollection(() -> EnumSet.noneOf(Modifier.… in VariableDeclarationExpr() 91 this(null, EnumSet.noneOf(Modifier.class), new NodeList<>(), variables); in VariableDeclarationExpr() 94 …public VariableDeclarationExpr(final EnumSet<Modifier> modifiers, final NodeList<VariableDeclarato… in VariableDeclarationExpr() 99 …public VariableDeclarationExpr(final EnumSet<Modifier> modifiers, final NodeList<AnnotationExpr> a… in VariableDeclarationExpr() [all …]
|
/external/javaparser/javaparser-symbol-solver-testing/src/test/resources/javaparser_methodcalls_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()
|
D | Parameter.java | 37 import java.util.EnumSet; 56 private EnumSet<Modifier> modifiers = EnumSet.noneOf(Modifier.class); 85 public Parameter(EnumSet<Modifier> modifiers, Type elementType, VariableDeclaratorId id) { in Parameter() 92 EnumSet<Modifier> modifiers, in Parameter() 176 public EnumSet<Modifier> getModifiers() { in getModifiers() 199 public Parameter 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/ |
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; 34 static <E extends Enum<E>> ImmutableSet<E> asImmutable(EnumSet<E> set) { in asImmutable() 53 private final transient EnumSet<E> delegate; 55 private ImmutableEnumSet(EnumSet<E> delegate) { in ImmutableEnumSet() 109 final EnumSet<E> delegate; 110 EnumSerializedForm(EnumSet<E> delegate) { in EnumSerializedForm()
|
/external/javaparser/javaparser-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/transformations/ast/body/ |
D | AnnotationDeclarationTransformationsTest.java | 31 import java.util.EnumSet; 61 …cu.getAnnotationDeclarationByName("ClassPreamble").get().setModifiers(EnumSet.of(Modifier.PUBLIC)); in addingModifiers() 68 …cu.getAnnotationDeclarationByName("ClassPreamble").get().setModifiers(EnumSet.noneOf(Modifier.clas… in removingModifiers() 75 …cu.getAnnotationDeclarationByName("ClassPreamble").get().setModifiers(EnumSet.of(Modifier.PROTECTE… in replacingModifiers() 84 …nByName("ClassPreamble").get().addMember(new AnnotationMemberDeclaration(EnumSet.noneOf(Modifier.c… in addingMember() 98 …Name("ClassPreamble").get().setMember(2, new AnnotationMemberDeclaration(EnumSet.noneOf(Modifier.c… in replacingMember()
|
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ast/modules/ |
D | ModuleRequiresStmt.java | 15 import java.util.EnumSet; 28 private EnumSet<Modifier> modifiers; 33 this(null, EnumSet.noneOf(Modifier.class), new Name()); in ModuleRequiresStmt() 37 public ModuleRequiresStmt(EnumSet<Modifier> modifiers, Name name) { in ModuleRequiresStmt() 45 public ModuleRequiresStmt(TokenRange tokenRange, EnumSet<Modifier> modifiers, Name name) { in ModuleRequiresStmt() 65 public EnumSet<Modifier> getModifiers() { in getModifiers() 70 public ModuleRequiresStmt setModifiers(final EnumSet<Modifier> modifiers) { in setModifiers()
|
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ast/body/ |
D | Parameter.java | 41 import java.util.EnumSet; 67 private EnumSet<Modifier> modifiers; 74 …this(null, EnumSet.noneOf(Modifier.class), new NodeList<>(), new ClassOrInterfaceType(), false, ne… in Parameter() 78 … this(null, EnumSet.noneOf(Modifier.class), new NodeList<>(), type, false, new NodeList<>(), name); in Parameter() 88 …this(null, EnumSet.noneOf(Modifier.class), new NodeList<>(), type, false, new NodeList<>(), new Si… in Parameter() 91 public Parameter(EnumSet<Modifier> modifiers, Type type, SimpleName name) { in Parameter() 96 …public Parameter(EnumSet<Modifier> modifiers, NodeList<AnnotationExpr> annotations, Type type, boo… in Parameter() 104 …public Parameter(TokenRange tokenRange, EnumSet<Modifier> modifiers, NodeList<AnnotationExpr> anno… in Parameter() 181 public EnumSet<Modifier> getModifiers() { in getModifiers() 218 public Parameter setModifiers(final EnumSet<Modifier> modifiers) { in setModifiers()
|
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ |
D | Sets.java | 32 import java.util.EnumSet; 94 return ImmutableEnumSet.asImmutable(EnumSet.of(anElement, otherElements)); in immutableEnumSet() 119 return ImmutableEnumSet.asImmutable(EnumSet.copyOf(collection)); in immutableEnumSet() 124 EnumSet<E> enumSet = EnumSet.of(itr.next()); in immutableEnumSet() 139 public static <E extends Enum<E>> EnumSet<E> newEnumSet(Iterable<E> iterable, in newEnumSet() 141 EnumSet<E> set = EnumSet.noneOf(elementType); in newEnumSet() 409 public static <E extends Enum<E>> EnumSet<E> complementOf( in complementOf() 411 if (collection instanceof EnumSet) { in complementOf() 412 return EnumSet.complementOf((EnumSet<E>) collection); in complementOf() 432 public static <E extends Enum<E>> EnumSet<E> complementOf( in complementOf() [all …]
|
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_new_src/javaparser-core/com/github/javaparser/ast/ |
D | Modifier.java | 3 import java.util.EnumSet; 31 public EnumSet<Modifier> toEnumSet() { in toEnumSet() 32 return EnumSet.of(this); in toEnumSet() 35 public static AccessSpecifier getAccessSpecifier(EnumSet<Modifier> modifiers) { in getAccessSpecifier()
|