/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/deser/jdk/ |
D | EnumDefaultReadTest.java | 12 enum SimpleEnum { enum in EnumDefaultReadTest 67 _verifyOkDeserialization(r, "ZERO", SimpleEnum.class, SimpleEnum.ZERO); in testWithoutCustomFeatures() 68 _verifyOkDeserialization(r, "ONE", SimpleEnum.class, SimpleEnum.ONE); in testWithoutCustomFeatures() 69 _verifyOkDeserialization(r, "0", SimpleEnum.class, SimpleEnum.ZERO); in testWithoutCustomFeatures() 70 _verifyOkDeserialization(r, "1", SimpleEnum.class, SimpleEnum.ONE); in testWithoutCustomFeatures() 71 _verifyFailingDeserialization(r, "TWO", SimpleEnum.class); in testWithoutCustomFeatures() 72 _verifyFailingDeserialization(r, "2", SimpleEnum.class); in testWithoutCustomFeatures() 101 _verifyOkDeserialization(r, "ZERO", SimpleEnum.class, SimpleEnum.ZERO); in testWithFailOnNumbers() 102 _verifyOkDeserialization(r, "ONE", SimpleEnum.class, SimpleEnum.ONE); in testWithFailOnNumbers() 103 _verifyFailingDeserialization(r, "TWO", SimpleEnum.class); in testWithFailOnNumbers() [all …]
|
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/module/ |
D | SimpleModuleTest.java | 35 static enum SimpleEnum { A, B; } enum in SimpleModuleTest 73 static class SimpleEnumSerializer extends StdSerializer<SimpleEnum> 75 public SimpleEnumSerializer() { super(SimpleEnum.class); } in SimpleEnumSerializer() 78 public void serialize(SimpleEnum value, JsonGenerator jgen, SerializerProvider provider) in serialize() 90 static class SimpleEnumDeserializer extends JsonDeserializer<SimpleEnum> 93 public SimpleEnum deserialize(JsonParser jp, DeserializationContext ctxt) in deserialize() 96 return SimpleEnum.valueOf(jp.getText().toUpperCase()); in deserialize() 246 assertEquals(quote("b"), mapper.writeValueAsString(SimpleEnum.B)); in testSimpleEnumSerializer() 282 mod.addDeserializer(SimpleEnum.class, new SimpleEnumDeserializer()); in testSimpleEnumDeserializer() 284 SimpleEnum result = mapper.readValue(quote("a"), SimpleEnum.class); in testSimpleEnumDeserializer() [all …]
|
/external/python/pybind11/tests/ |
D | test_enum.cpp | 75 enum SimpleEnum in TEST_SUBMODULE() enum 81 py::enum_<SimpleEnum>(m, "SimpleEnum") in TEST_SUBMODULE() 82 ….value("ONE", SimpleEnum::ONE) //NOTE: all value function calls are called with the same … in TEST_SUBMODULE() 83 .value("ONE", SimpleEnum::TWO) in TEST_SUBMODULE() 84 .value("ONE", SimpleEnum::THREE) in TEST_SUBMODULE()
|
/external/auto/common/src/test/java/com/google/auto/common/ |
D | AnnotationMirrorsTest.java | 18 import static com.google.auto.common.AnnotationMirrorsTest.SimpleEnum.BLAH; 19 import static com.google.auto.common.AnnotationMirrorsTest.SimpleEnum.FOO; 58 enum SimpleEnum { enum in AnnotationMirrorsTest 63 SimpleEnum value(); in value() 71 SimpleEnum value() default SimpleEnum.BLAH; in value()
|
/external/libchrome/base/ |
D | template_util_unittest.cc | 16 enum SimpleEnum { SIMPLE_ENUM }; enum 44 static_assert(internal::SupportsOstreamOperator<SimpleEnum>::value, 46 static_assert(internal::SupportsOstreamOperator<const SimpleEnum&>::value,
|
/external/python/apitools/apitools/base/protorpclite/ |
D | test_util.py | 286 class SimpleEnum(messages.Enum): class in OptionalMessage 299 enum_value = messages.EnumField(SimpleEnum, 10) 305 class SimpleEnum(messages.Enum): class in RepeatedMessage 334 enum_value = messages.EnumField(SimpleEnum, 468 message.enum_value = OptionalMessage.SimpleEnum.VAL2 483 message.enum_value = OptionalMessage.SimpleEnum.VAL2 498 message.enum_value = [RepeatedMessage.SimpleEnum.VAL2, 499 RepeatedMessage.SimpleEnum.VAL1]
|
D | descriptor_test.py | 430 test_util.OptionalMessage.SimpleEnum.VAL1), 431 descriptor.describe(test_util.OptionalMessage.SimpleEnum.VAL1)) 439 descriptor.describe_enum(test_util.OptionalMessage.SimpleEnum), 440 descriptor.describe(test_util.OptionalMessage.SimpleEnum)) 474 test_util.OptionalMessage.SimpleEnum.VAL1),
|
/external/libchrome/base/json/ |
D | json_value_converter_unittest.cc | 21 enum SimpleEnum { enum 28 SimpleEnum simple_enum; 33 static bool ParseSimpleEnum(StringPiece value, SimpleEnum* field) { in ParseSimpleEnum() 65 converter->RegisterCustomField<SimpleEnum>( in RegisterJSONConverter()
|
/external/apache-commons-bcel/src/test/java/org/apache/bcel/data/ |
D | AnnotatedWithEnumClass.java | 21 @AnnotationEnumElement(enumval = SimpleEnum.Red)
|
D | SimpleEnum.java | 21 public enum SimpleEnum { Red,Orange,Yellow,Green,Blue,Indigo,Violet } enum
|
D | AnnotationEnumElement.java | 27 SimpleEnum enumval(); in enumval()
|
/external/protobuf/src/google/protobuf/compiler/ |
D | parser_unittest.cc | 1018 TEST_F(ParseEnumTest, SimpleEnum) { in TEST_F() argument
|