/external/protobuf/src/google/protobuf/ |
D | preserve_unknown_enum_test.cc | 196 const google::protobuf::EnumValueDescriptor* enum_value = r->GetEnum(message, field); in TEST() local 197 EXPECT_EQ(enum_value->number(), in TEST() 203 EXPECT_EQ(enum_value, enum_value_second); in TEST() 208 enum_value = r->GetRepeatedEnum(message, repeated_field, 0); in TEST() 209 EXPECT_EQ(enum_value->number(), in TEST() 212 EXPECT_EQ(enum_value, enum_value_second); in TEST() 217 r->SetEnum(m, field, enum_value); in TEST() 218 EXPECT_EQ(enum_value, r->GetEnum(*m, field)); in TEST() 239 const google::protobuf::EnumValueDescriptor* enum_value = r->GetEnum(message, in TEST() local 241 EXPECT_EQ(42, enum_value->number()); in TEST() [all …]
|
D | drop_unknown_fields_test.cc | 56 static_cast<int>(foo.enum_value())); in TEST() 63 EXPECT_EQ(FooWithExtraFields::QUX, foo_with_extra_fields.enum_value()); in TEST() 82 EXPECT_EQ(FooWithExtraFields::QUX, foo_with_extra_fields.enum_value()); in TEST()
|
D | map_test_util_impl.h | 69 template <typename EnumType, EnumType enum_value, typename MapMessage> 86 template <typename EnumType, EnumType enum_value, typename MapMessage> 221 template <typename EnumType, EnumType enum_value, typename MapMessage> 238 (*message->mutable_map_int32_enum())[1] = enum_value; in ModifyMapFields() 384 template <typename EnumType, EnumType enum_value, typename MapMessage> 420 EXPECT_EQ(enum_value, message.map_int32_enum().at(0)); in ExpectMapFieldsSetInitialized()
|
D | unittest_drop_unknown_fields.proto | 45 NestedEnum enum_value = 2; field 56 NestedEnum enum_value = 2; field
|
D | text_format.cc | 707 const EnumValueDescriptor* enum_value = NULL; in ConsumeFieldValue() local 712 enum_value = enum_type->FindValueByName(value); in ConsumeFieldValue() 719 enum_value = enum_type->FindValueByNumber(int_value); in ConsumeFieldValue() 725 if (enum_value == NULL) { in ConsumeFieldValue() 737 SET_FIELD(Enum, enum_value); in ConsumeFieldValue() 1806 int enum_value = field->is_repeated() in PrintFieldValue() local 1810 field->enum_type()->FindValueByNumber(enum_value); in PrintFieldValue() 1812 generator.Print(printer->PrintEnum(enum_value, enum_desc->name())); in PrintFieldValue() 1820 generator.Print(printer->PrintEnum(enum_value, in PrintFieldValue() 1821 StringPrintf("%d", enum_value))); in PrintFieldValue()
|
D | wire_format.cc | 540 const EnumValueDescriptor* enum_value = in ParseAndMergeField() local 542 if (enum_value != NULL) { in ParseAndMergeField() 543 message_reflection->AddEnum(message, field, enum_value); in ParseAndMergeField() 617 const EnumValueDescriptor* enum_value = in ParseAndMergeField() local 619 if (enum_value != NULL) { in ParseAndMergeField() 621 message_reflection->AddEnum(message, field, enum_value); in ParseAndMergeField() 623 message_reflection->SetEnum(message, field, enum_value); in ParseAndMergeField()
|
/external/tensorflow/tensorflow/lite/schema/builtin_ops_header/ |
D | generator.cc | 111 for (auto enum_value : EnumValuesBuiltinOperator()) { in GenerateHeader() local 112 auto enum_name = enum_names[enum_value]; in GenerateHeader() 120 for (auto enum_value : EnumValuesBuiltinOperator()) { in GenerateHeader() local 121 auto enum_name = enum_names[enum_value]; in GenerateHeader() 125 os << enum_value; in GenerateHeader()
|
/external/python/apitools/apitools/gen/ |
D | extended_descriptor.py | 269 def __PrintEnumValueCommentLines(self, enum_value): argument 270 if enum_value.description: 272 for line in textwrap.wrap(enum_value.description, width): 281 for enum_value in enum_values: 283 self.__PrintEnumValueCommentLines(enum_value) 284 self.__printer('%s = %s;', enum_value.name, enum_value.number) 391 for enum_value in enum_values: 392 self.__printer('%s = %s', enum_value.name, enum_value.number)
|
D | message_registry.py | 205 enum_value = extended_descriptor.ExtendedEnumValueDescriptor() 206 enum_value.name = self.__names.NormalizeEnumName(enum_name) 207 if enum_value.name != enum_name: 210 python_name=enum_value.name, json_name=enum_name)) 213 enum_value.number = index 214 enum_value.description = util.CleanDescription( 216 message.values.append(enum_value)
|
/external/flatbuffers/src/ |
D | idl_gen_json_schema.cpp | 131 for (auto enum_value = (*e)->vals.vec.begin(); in generate() local 132 enum_value != (*e)->vals.vec.end(); ++enum_value) { in generate() 133 enumdef.append("\"" + (*enum_value)->name + "\""); in generate() 134 if (*enum_value != (*e)->vals.vec.back()) { enumdef.append(", "); } in generate()
|
/external/protobuf/src/google/protobuf/util/internal/ |
D | utility.cc | 181 const google::protobuf::EnumValue& enum_value = enum_type->enumvalue(i); in FindEnumValueByNameOrNull() local 182 if (enum_value.name() == enum_name) { in FindEnumValueByNameOrNull() 183 return &enum_value; in FindEnumValueByNameOrNull() 194 const google::protobuf::EnumValue& enum_value = enum_type->enumvalue(i); in FindEnumValueByNumberOrNull() local 195 if (enum_value.number() == value) { in FindEnumValueByNumberOrNull() 196 return &enum_value; in FindEnumValueByNumberOrNull()
|
/external/protobuf/python/google/protobuf/pyext/ |
D | repeated_scalar_container.cc | 166 const EnumValueDescriptor* enum_value = in AssignItem() local 168 if (enum_value != NULL) { in AssignItem() 170 enum_value); in AssignItem() 252 const EnumValueDescriptor* enum_value = in Item() local 255 result = PyInt_FromLong(enum_value->number()); in Item() 409 const EnumValueDescriptor* enum_value = in Append() local 411 if (enum_value != NULL) { in Append() 412 reflection->AddEnum(message, field_descriptor, enum_value); in Append()
|
/external/llvm/bindings/python/llvm/tests/ |
D | test_core.py | 13 for enum_name, enum_value in enum_spec: 23 self.assertEqual(v_attr.value, enum_value) 25 e = enum_cls.from_value(enum_value)
|
/external/swiftshader/third_party/llvm-7.0/llvm/bindings/python/llvm/tests/ |
D | test_core.py | 13 for enum_name, enum_value in enum_spec: 23 self.assertEqual(v_attr.value, enum_value) 25 e = enum_cls.from_value(enum_value)
|
/external/libchrome/mojo/public/tools/bindings/generators/java_templates/ |
D | enum_definition.tmpl | 1 {%- macro enum_value(enum, field, index) -%} 15 public static final int {{field|name}} = {{enum_value(enum, field, loop.index0)}};
|
/external/deqp-deps/SPIRV-Tools/utils/ |
D | generate_language_headers.py | 75 def enum_value(self, prefix, name, value): member in LangGenerator 110 parts.append(self.enum_value(grammar.name, inst['opname'], inst['opcode'])) 118 parts.append(self.enum_value(grammar.name, e['enumerant'], e['value']))
|
/external/swiftshader/third_party/SPIRV-Tools/utils/ |
D | generate_language_headers.py | 75 def enum_value(self, prefix, name, value): member in LangGenerator 110 parts.append(self.enum_value(grammar.name, inst['opname'], inst['opcode'])) 118 parts.append(self.enum_value(grammar.name, e['enumerant'], e['value']))
|
/external/protobuf/python/google/protobuf/ |
D | json_format.py | 180 enum_value = field.enum_type.values_by_number.get(value, None) 181 if enum_value is not None: 182 return enum_value.name 556 enum_value = field.enum_type.values_by_name.get(value, None) 557 if enum_value is None: 562 return enum_value.number
|
D | text_format.py | 296 enum_value = field.enum_type.values_by_number.get(value, None) 297 if enum_value is not None: 298 out.write(enum_value.name) 1207 enum_value = enum_descriptor.values_by_name.get(value, None) 1208 if enum_value is None: 1214 enum_value = enum_descriptor.values_by_number.get(number, None) 1215 if enum_value is None: 1219 return enum_value.number
|
/external/clang/bindings/python/tests/cindex/ |
D | test_cursor.py | 328 assert spam.enum_value == 1 330 assert egg.enum_value == 2 332 assert ham.enum_value == 40 347 assert spam.enum_value == -1 349 assert ham.enum_value == 0x10000000000
|
/external/python/apitools/apitools/base/protorpclite/ |
D | test_util.py | 299 enum_value = messages.EnumField(SimpleEnum, 10) variable in OptionalMessage 334 enum_value = messages.EnumField(SimpleEnum, variable in RepeatedMessage 468 message.enum_value = OptionalMessage.SimpleEnum.VAL2 483 message.enum_value = OptionalMessage.SimpleEnum.VAL2 498 message.enum_value = [RepeatedMessage.SimpleEnum.VAL2,
|
D | descriptor.py | 267 def describe_enum_value(enum_value): argument 277 enum_value_descriptor.name = six.text_type(enum_value.name) 278 enum_value_descriptor.number = enum_value.number
|
/external/libprotobuf-mutator/src/ |
D | field_instance.h | 288 const protobuf::EnumValueDescriptor* enum_value = in Store() local 291 reflection().SetRepeatedEnum(message_, descriptor(), index(), enum_value); in Store() 293 reflection().SetEnum(message_, descriptor(), enum_value); in Store() 362 const protobuf::EnumValueDescriptor* enum_value = in PushBackRepeated() local 365 reflection().AddEnum(message_, descriptor(), enum_value); in PushBackRepeated()
|
/external/vulkan-validation-layers/layers/ |
D | vk_layer_config.cpp | 116 auto enum_value = enum_data.find(option); in GetLayerOptionFlags() local 117 if (enum_value != enum_data.end()) { in GetLayerOptionFlags() 118 flags |= enum_value->second; in GetLayerOptionFlags()
|
/external/python/apitools/apitools/base/py/ |
D | encoding_test.py | 121 enum_value = 1 variable in MessageWithRemappings.SomeEnum 338 enum_field=MessageWithRemappings.SomeEnum.enum_value) 347 MessageWithRemappings.SomeEnum.enum_value, 372 double_encoding=MessageWithRemappings.SomeEnum.enum_value)
|