Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/hardware/camera2/marshal/impl/
DMarshalQueryableEnum.java148 public static <T extends Enum<T>> void registerEnumValues(Class<T> enumType, int[] values) { in registerEnumValues() argument
149 if (enumType.getEnumConstants().length != values.length) { in registerEnumValues()
152 + values.length + " for type " + enumType); in registerEnumValues()
155 Log.v(TAG, "Registered enum values for type " + enumType + " values"); in registerEnumValues()
158 sEnumValues.put(enumType, values); in registerEnumValues()
190 private static <T extends Enum<T>> T getEnumFromValue(Class<T> enumType, int value) { in getEnumFromValue() argument
193 int[] registeredValues = sEnumValues.get(enumType); in getEnumFromValue()
207 T[] values = enumType.getEnumConstants(); in getEnumFromValue()
215 enumType, (registeredValues != null))); in getEnumFromValue()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/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 …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/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 …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/compatibility_tests/v2.5.0/tests/src/main/java/com/google/protobuf/test/
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()
185 EnumDescriptor enumType = TestAllTypes.NestedEnum.getDescriptor(); in testDescriptor() local
186 assertEquals(enumType, messageType.getEnumTypes().get(0)); in testDescriptor()
187 assertEquals(enumType, messageType.findEnumTypeByName("NestedEnum")); in testDescriptor()
293 EnumDescriptor enumType = ForeignEnum.getDescriptor(); in testEnumDescriptor() local
296 assertEquals("ForeignEnum", enumType.getName()); in testEnumDescriptor()
297 assertEquals("protobuf_unittest.ForeignEnum", enumType.getFullName()); in testEnumDescriptor()
298 assertEquals(UnittestProto.getDescriptor(), enumType.getFile()); in testEnumDescriptor()
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/csharp/src/Google.Protobuf/
DJsonFormatter.cs871 var enumType = value.GetType(); in GetOriginalName()
875 if (!dictionaries.TryGetValue(enumType, out nameMapping)) in GetOriginalName()
877 nameMapping = GetNameMapping(enumType); in GetOriginalName()
878 dictionaries[enumType] = nameMapping; in GetOriginalName()
890 private static Dictionary<object, string> GetNameMapping(System.Type enumType) => field in Google.Protobuf.JsonFormatter.OriginalEnumValueHelper
891enumType.GetFields(BindingFlags.NonPublic | BindingFlags.Public | BindingFlags.Static)
898 private static Dictionary<object, string> GetNameMapping(System.Type enumType) => field in Google.Protobuf.JsonFormatter.OriginalEnumValueHelper
899 enumType.GetTypeInfo().DeclaredFields
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/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()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/core/src/main/java/com/google/protobuf/
DTextFormat.java1678 final EnumDescriptor enumType = field.getEnumType(); in consumeFieldValue() local
1682 value = enumType.findValueByNumber(number); in consumeFieldValue()
1685 "Enum type \"" + enumType.getFullName() in consumeFieldValue()
1690 value = enumType.findValueByName(id); in consumeFieldValue()
1693 "Enum type \"" + enumType.getFullName() in consumeFieldValue()
DDescriptors.java1104 return enumType; in getEnumType()
1145 private EnumDescriptor enumType; field in Descriptors.FieldDescriptor
1367 enumType = (EnumDescriptor)typeDescriptor; in crossLink()
1453 defaultValue = enumType.findValueByName(proto.getDefaultValue()); in crossLink()
1479 defaultValue = enumType.getValues().get(0); in crossLink()
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt41267 method public java.lang.Class<? extends java.lang.Enum> enumType();
/frameworks/base/api/
Dcurrent.txt59919 method public Class<? extends java.lang.Enum> enumType();
/frameworks/base/config/
Dhiddenapi-greylist-max-o.txt110773 Ljava/lang/EnumConstantNotPresentException;->enumType:Ljava/lang/Class;