/external/desugar/java/com/google/devtools/common/options/ |
D | EnumConverter.java | 32 private final Class<T> enumType; field in EnumConverter 45 protected EnumConverter(Class<T> enumType, String typeName) { in EnumConverter() argument 46 this.enumType = enumType; in EnumConverter() 55 for (T value : enumType.getEnumConstants()) { in convert() 71 Arrays.asList(enumType.getEnumConstants())).toLowerCase(); in getTypeDescription()
|
D | BoolOrEnumConverter.java | 42 protected BoolOrEnumConverter(Class<T> enumType, String typeName, T trueValue, T falseValue) { in BoolOrEnumConverter() argument 43 super(enumType, typeName); in BoolOrEnumConverter()
|
/external/protobuf/java/core/src/test/java/com/google/protobuf/ |
D | UnknownEnumValueTest.java | 133 EnumDescriptor enumType = TestAllTypes.NestedEnum.getDescriptor(); in testUnknownEnumValueInReflectionApi() local 137 enumType.findValueByNumberCreatingIfUnknown(4321)); in testUnknownEnumValueInReflectionApi() 139 enumType.findValueByNumberCreatingIfUnknown(5432)); in testUnknownEnumValueInReflectionApi() 141 enumType.findValueByNumberCreatingIfUnknown(6543)); in testUnknownEnumValueInReflectionApi() 183 EnumDescriptor enumType = TestAllTypes.NestedEnum.getDescriptor(); in testUnknownEnumValueWithDynamicMessage() local 189 enumType.findValueByNumberCreatingIfUnknown(4321)); in testUnknownEnumValueWithDynamicMessage() 191 enumType.findValueByNumberCreatingIfUnknown(5432)); in testUnknownEnumValueWithDynamicMessage() 193 enumType.findValueByNumberCreatingIfUnknown(6543)); in testUnknownEnumValueWithDynamicMessage() 218 enumType.findValueByNumberCreatingIfUnknown(4321)); in testUnknownEnumValueWithDynamicMessage() 220 enumType.findValueByNumberCreatingIfUnknown(5432)); in testUnknownEnumValueWithDynamicMessage() [all …]
|
D | DescriptorsTest.java | 113 EnumDescriptor enumType = ForeignEnum.getDescriptor(); in testFileDescriptor() local 114 assertEquals(enumType, file.getEnumTypes().get(0)); in testFileDescriptor() 115 assertEquals(enumType, file.findEnumTypeByName("ForeignEnum")); in testFileDescriptor() 186 EnumDescriptor enumType = TestAllTypes.NestedEnum.getDescriptor(); in testDescriptor() local 187 assertEquals(enumType, messageType.getEnumTypes().get(0)); in testDescriptor() 188 assertEquals(enumType, messageType.findEnumTypeByName("NestedEnum")); in testDescriptor() 303 EnumDescriptor enumType = ForeignEnum.getDescriptor(); in testEnumDescriptor() local 306 assertEquals("ForeignEnum", enumType.getName()); in testEnumDescriptor() 307 assertEquals("protobuf_unittest.ForeignEnum", enumType.getFullName()); in testEnumDescriptor() 308 assertEquals(UnittestProto.getDescriptor(), enumType.getFile()); in testEnumDescriptor() [all …]
|
/external/junit/src/main/java/org/junit/experimental/theories/internal/ |
D | EnumSupplier.java | 12 private Class<?> enumType; field in EnumSupplier 14 public EnumSupplier(Class<?> enumType) { in EnumSupplier() argument 15 this.enumType = enumType; in EnumSupplier() 20 Object[] enumValues = enumType.getEnumConstants(); in getValueSources()
|
/external/protobuf/csharp/src/Google.Protobuf.Test/Reflection/ |
D | DescriptorsTest.cs | 179 …EnumDescriptor enumType = UnittestProto3Reflection.Descriptor.FindTypeByName<EnumDescriptor>("Fore… in EnumDescriptor() 182 Assert.AreEqual("ForeignEnum", enumType.Name); in EnumDescriptor() 183 Assert.AreEqual("protobuf_unittest.ForeignEnum", enumType.FullName); in EnumDescriptor() 184 Assert.AreEqual(UnittestProto3Reflection.Descriptor, enumType.File); in EnumDescriptor() 185 Assert.Null(enumType.ContainingType); in EnumDescriptor() 186 Assert.Null(enumType.Proto.Options); in EnumDescriptor() 194 EnumValueDescriptor value = enumType.FindValueByName("FOREIGN_FOO"); in EnumDescriptor() 195 Assert.AreEqual(value, enumType.Values[1]); in EnumDescriptor() 199 Assert.AreEqual(value, enumType.FindValueByNumber(4)); in EnumDescriptor() 200 Assert.Null(enumType.FindValueByName("NO_SUCH_VALUE")); in EnumDescriptor() [all …]
|
/external/guice/core/src/com/google/inject/internal/ |
D | InternalFlags.java | 121 Class<T> enumType = defaultValue.getDeclaringClass(); in getSystemOption() local 132 return (value != null && value.length() > 0) ? Enum.valueOf(enumType, value) : defaultValue; in getSystemOption() 137 + " Values must be one of " + Arrays.asList(enumType.getEnumConstants())); in getSystemOption()
|
/external/vogar/src/vogar/ |
D | OptionParser.java | 503 private final Class<?> enumType; field in OptionParser.EnumHandler 505 public EnumHandler(Class<?> enumType) { in EnumHandler() argument 506 this.enumType = enumType; in EnumHandler() 511 return Enum.valueOf((Class) enumType, valueText.toUpperCase()); in translate()
|
/external/protobuf/csharp/src/Google.Protobuf/Reflection/ |
D | FieldDescriptor.cs | 43 private EnumDescriptor enumType; field in Google.Protobuf.Reflection.FieldDescriptor 234 return enumType; 299 enumType = (EnumDescriptor) typeDescriptor; in CrossLink()
|
D | FileDescriptor.cs | 62 (enumType, index) => in FileDescriptor() 63 … new EnumDescriptor(enumType, this, null, index, generatedCodeInfo.NestedEnums[index])); in FileDescriptor()
|
/external/protobuf/csharp/src/Google.Protobuf/ |
D | JsonFormatter.cs | 885 var enumType = value.GetType(); in GetOriginalName() 889 if (!dictionaries.TryGetValue(enumType, out nameMapping)) in GetOriginalName() 891 nameMapping = GetNameMapping(enumType); in GetOriginalName() 892 dictionaries[enumType] = nameMapping; in GetOriginalName() 902 private static Dictionary<object, string> GetNameMapping(System.Type enumType) => field in Google.Protobuf.JsonFormatter.OriginalEnumValueHelper 903 enumType.GetTypeInfo().DeclaredFields
|
/external/apache-commons-bcel/src/test/java/org/apache/bcel/ |
D | ElementValueGenTestCase.java | 181 final ObjectType enumType = new ObjectType("SimpleEnum"); // Supports rainbow in testCreateEnumElementValue() local 183 final EnumElementValueGen evg = new EnumElementValueGen(enumType, "Red", cp); in testCreateEnumElementValue()
|
/external/clang/lib/Sema/ |
D | SemaCXXScopeSpec.cpp | 233 const EnumType *enumType = dyn_cast_or_null<EnumType>(tagType); in RequireCompleteDeclContext() local 234 if (!enumType) in RequireCompleteDeclContext() 236 if (enumType->getDecl()->isCompleteDefinition()) { in RequireCompleteDeclContext() 239 if (!hasVisibleDefinition(enumType->getDecl(), &SuggestedDef, in RequireCompleteDeclContext() 253 EnumDecl *ED = enumType->getDecl(); in RequireCompleteDeclContext()
|
/external/clang/test/CodeGen/ |
D | xcore-stringtype.c | 176 int enumType(enum E e) {return EnumAnon;} in enumType() function
|
/external/protobuf/java/core/src/main/java/com/google/protobuf/ |
D | TextFormat.java | 1649 final EnumDescriptor enumType = field.getEnumType(); in consumeFieldValue() local 1653 value = enumType.findValueByNumber(number); in consumeFieldValue() 1656 "Enum type \"" + enumType.getFullName() in consumeFieldValue() 1661 value = enumType.findValueByName(id); in consumeFieldValue() 1664 "Enum type \"" + enumType.getFullName() in consumeFieldValue()
|
D | Descriptors.java | 1100 return enumType; in getEnumType() 1141 private EnumDescriptor enumType; field in Descriptors.FieldDescriptor 1363 enumType = (EnumDescriptor)typeDescriptor; in crossLink() 1449 defaultValue = enumType.findValueByName(proto.getDefaultValue()); in crossLink() 1475 defaultValue = enumType.getValues().get(0); in crossLink()
|
/external/syzkaller/vendor/github.com/golang/protobuf/proto/ |
D | properties.go | 465 func EnumValueMap(enumType string) map[string]int32 { 466 return enumValueMaps[enumType]
|
/external/golang-protobuf/proto/ |
D | properties.go | 466 func EnumValueMap(enumType string) map[string]int32 { 467 return enumValueMaps[enumType]
|
/external/guava/guava-tests/benchmark/com/google/common/base/ |
D | EnumsBenchmark.java | 35 private Class<? extends Enum> enumType; field in EnumsBenchmark 44 enumType = (Class<? extends Enum>) in setUp() 47 Enum<?>[] allConstants = enumType.getEnumConstants(); in setUp() 70 Enums.getIfPresent(enumType, sampleData[i & 255]); in getIfPresent()
|
/external/deqp/external/openglcts/modules/gles31/ |
D | es31cExplicitUniformLocationTest.cpp | 268 : enumType(_enumType), arraySize(_arraySize), isArray(_arraySize > 0), signedType(true) in UniformType() 278 : enumType(_enumType), arraySizesSegmented(_arraySizesSegmented), isArray(true), signedType(true) in UniformType() 289 …: enumType(0), arraySize(_arraySize), childTypes(_childTypes), isArray(_arraySize > 0), signedType… in UniformType() 374 GLenum enumType; member in glcts::__anon838ff34b0111::UniformType 391 switch (enumType) in fill() 1447 switch (uniform.type.enumType) in setUniform()
|
/external/clang/unittests/ASTMatchers/ |
D | ASTMatchersNodeTest.cpp | 1302 loc(enumType()))); in TEST() 1304 loc(enumType()))); in TEST()
|
/external/clang/lib/ASTMatchers/Dynamic/ |
D | Registry.cpp | 174 REGISTER_MATCHER(enumType); in RegistryMaps()
|
/external/v8/tools/clang/rewrite_to_chrome_style/ |
D | RewriteToChromeStyle.cpp | 1575 hasType(type(anyOf(builtinType(), enumType()))), in main() 1861 anyOf(enumType(hasDeclaration(in_blink_namespace)), in main()
|
/external/skia/src/sksl/ |
D | SkSLIRGenerator.cpp | 960 ASTType enumType(e.fOffset, e.fTypeName, ASTType::kIdentifier_Kind, {}, false); in convertEnum() local 961 const Type* type = this->convertType(enumType); in convertEnum()
|
/external/skqp/src/sksl/ |
D | SkSLIRGenerator.cpp | 938 ASTType enumType(e.fOffset, e.fTypeName, ASTType::kIdentifier_Kind, {}); in convertEnum() local 939 const Type* type = this->convertType(enumType); in convertEnum()
|