Home
last modified time | relevance | path

Searched refs:enumType (Results 1 – 25 of 39) sorted by relevance

12

/external/desugar/java/com/google/devtools/common/options/
DEnumConverter.java32 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()
DBoolOrEnumConverter.java42 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/
DUnknownEnumValueTest.java133 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 …]
DDescriptorsTest.java113 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/
DEnumSupplier.java12 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/
DDescriptorsTest.cs179 …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/
DInternalFlags.java121 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/
DOptionParser.java503 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/
DFieldDescriptor.cs43 private EnumDescriptor enumType; field in Google.Protobuf.Reflection.FieldDescriptor
234 return enumType;
299 enumType = (EnumDescriptor) typeDescriptor; in CrossLink()
DFileDescriptor.cs62 (enumType, index) => in FileDescriptor()
63 … new EnumDescriptor(enumType, this, null, index, generatedCodeInfo.NestedEnums[index])); in FileDescriptor()
/external/protobuf/csharp/src/Google.Protobuf/
DJsonFormatter.cs885 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/
DElementValueGenTestCase.java181 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/
DSemaCXXScopeSpec.cpp233 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/
Dxcore-stringtype.c176 int enumType(enum E e) {return EnumAnon;} in enumType() function
/external/protobuf/java/core/src/main/java/com/google/protobuf/
DTextFormat.java1649 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()
DDescriptors.java1100 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/
Dproperties.go465 func EnumValueMap(enumType string) map[string]int32 {
466 return enumValueMaps[enumType]
/external/golang-protobuf/proto/
Dproperties.go466 func EnumValueMap(enumType string) map[string]int32 {
467 return enumValueMaps[enumType]
/external/guava/guava-tests/benchmark/com/google/common/base/
DEnumsBenchmark.java35 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/
Des31cExplicitUniformLocationTest.cpp268 : 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/
DASTMatchersNodeTest.cpp1302 loc(enumType()))); in TEST()
1304 loc(enumType()))); in TEST()
/external/clang/lib/ASTMatchers/Dynamic/
DRegistry.cpp174 REGISTER_MATCHER(enumType); in RegistryMaps()
/external/v8/tools/clang/rewrite_to_chrome_style/
DRewriteToChromeStyle.cpp1575 hasType(type(anyOf(builtinType(), enumType()))), in main()
1861 anyOf(enumType(hasDeclaration(in_blink_namespace)), in main()
/external/skia/src/sksl/
DSkSLIRGenerator.cpp960 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/
DSkSLIRGenerator.cpp938 ASTType enumType(e.fOffset, e.fTypeName, ASTType::kIdentifier_Kind, {}); in convertEnum() local
939 const Type* type = this->convertType(enumType); in convertEnum()

12