/third_party/protobuf/src/google/protobuf/ |
D | preserve_unknown_enum_test.cc | 193 const EnumValueDescriptor* enum_value = r->GetEnum(message, field); in TEST() local 194 EXPECT_EQ(enum_value->number(), in TEST() 199 EXPECT_EQ(enum_value, enum_value_second); in TEST() 203 enum_value = r->GetRepeatedEnum(message, repeated_field, 0); in TEST() 204 EXPECT_EQ(enum_value->number(), in TEST() 207 EXPECT_EQ(enum_value, enum_value_second); in TEST() 212 r->SetEnum(m, field, enum_value); in TEST() 213 EXPECT_EQ(enum_value, r->GetEnum(*m, field)); in TEST() 233 const EnumValueDescriptor* enum_value = r->GetEnum(message, singular_field); in TEST() local 234 EXPECT_EQ(42, enum_value->number()); in TEST() [all …]
|
D | drop_unknown_fields_test.cc | 54 static_cast<int>(foo.enum_value())); in TEST() 59 EXPECT_EQ(FooWithExtraFields::QUX, foo_with_extra_fields.enum_value()); in TEST() 77 EXPECT_EQ(FooWithExtraFields::QUX, foo_with_extra_fields.enum_value()); in TEST()
|
D | map_test_util_impl.h | 64 template <typename EnumType, EnumType enum_value, typename MapMessage> 81 template <typename EnumType, EnumType enum_value, typename MapMessage> 214 template <typename EnumType, EnumType enum_value, typename MapMessage> 231 (*message->mutable_map_int32_enum())[1] = enum_value; in ModifyMapFields() 372 template <typename EnumType, EnumType enum_value, typename MapMessage> 407 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
|
/third_party/gstreamer/gstplugins_bad/ext/srtp/ |
D | gstsrtp.c | 117 GEnumValue *enum_value; in enum_nick_from_value() local 123 enum_value = g_enum_get_value (enum_class, value); in enum_nick_from_value() 124 if (!enum_value) in enum_nick_from_value() 126 nick = enum_value->value_nick; in enum_nick_from_value() 137 GEnumValue *enum_value; in enum_value_from_nick() local 143 enum_value = g_enum_get_value_by_nick (enum_class, nick); in enum_value_from_nick() 144 if (!enum_value) in enum_value_from_nick() 146 value = enum_value->value; in enum_value_from_nick()
|
/third_party/gstreamer/gstplugins_base/gst-libs/gst/gl/ |
D | gstglcontextconfig.c | 395 GEnumValue *enum_value; in gst_gl_enum_value_to_const_string() local 399 enum_value = g_enum_get_value (enum_class, value); in gst_gl_enum_value_to_const_string() 401 if (enum_value) in gst_gl_enum_value_to_const_string() 402 str = enum_value->value_nick; in gst_gl_enum_value_to_const_string()
|
/third_party/protobuf/src/google/protobuf/util/internal/ |
D | utility.cc | 198 const google::protobuf::EnumValue& enum_value = enum_type->enumvalue(i); in FindEnumValueByNameOrNull() local 199 if (enum_value.name() == enum_name) { in FindEnumValueByNameOrNull() 200 return &enum_value; in FindEnumValueByNameOrNull() 211 const google::protobuf::EnumValue& enum_value = enum_type->enumvalue(i); in FindEnumValueByNumberOrNull() local 212 if (enum_value.number() == value) { in FindEnumValueByNumberOrNull() 213 return &enum_value; in FindEnumValueByNumberOrNull() 224 const google::protobuf::EnumValue& enum_value = enum_type->enumvalue(i); in FindEnumValueByNameWithoutUnderscoreOrNull() local 225 std::string enum_name_without_underscore = enum_value.name(); in FindEnumValueByNameWithoutUnderscoreOrNull() 239 return &enum_value; in FindEnumValueByNameWithoutUnderscoreOrNull()
|
/third_party/gstreamer/gstplugins_bad/ext/webrtc/ |
D | utils.c | 139 GEnumValue *enum_value; in _enum_value_to_string() local 143 enum_value = g_enum_get_value (enum_class, value); in _enum_value_to_string() 145 if (enum_value) in _enum_value_to_string() 146 str = g_strdup (enum_value->value_nick); in _enum_value_to_string()
|
/third_party/protobuf/src/google/protobuf/util/ |
D | json_util_test.cc | 214 EXPECT_EQ(proto3::BAR, parsed.enum_value()); in TEST_F() 407 ASSERT_EQ(proto3::BAR, m.enum_value()); // Keep previous value in TEST_F() 411 EXPECT_EQ(0, m.enum_value()); // Unknown enum value must be decoded as 0 in TEST_F() 422 ASSERT_EQ(12345, m.enum_value()); in TEST_F() 426 EXPECT_EQ(12345, m.enum_value()); in TEST_F() 467 ASSERT_EQ(proto3::FOO, m.enum_value()); in TEST_F() 478 ASSERT_EQ(proto3::FOO, m.enum_value()); // Keep previous value in TEST_F() 489 ASSERT_EQ(proto3::BAR, m.enum_value()); in TEST_F()
|
/third_party/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() 255 const EnumValueDescriptor* enum_value = in Item() local 258 result = PyInt_FromLong(enum_value->number()); in Item() 398 const EnumValueDescriptor* enum_value = in Subscript() local 400 if (enum_value != NULL) { in Subscript() 401 reflection->AddEnum(message, field_descriptor, enum_value); in Subscript()
|
/third_party/spirv-tools/utils/ |
D | generate_language_headers.py | 73 def enum_value(self, prefix, name, value): member in LangGenerator 108 parts.append(self.enum_value(grammar.name, inst['opname'], inst['opcode'])) 116 parts.append(self.enum_value(grammar.name, e['enumerant'], e['value']))
|
/third_party/skia/third_party/externals/spirv-tools/utils/ |
D | generate_language_headers.py | 73 def enum_value(self, prefix, name, value): member in LangGenerator 108 parts.append(self.enum_value(grammar.name, inst['opname'], inst['opcode'])) 116 parts.append(self.enum_value(grammar.name, e['enumerant'], e['value']))
|
/third_party/spirv-headers/tools/buildHeaders/bin/ |
D | generate_language_headers.py | 112 def enum_value(self, prefix, name, value): member in LangGenerator 147 parts.append(self.enum_value(grammar.name, inst['opname'], inst['opcode'])) 155 parts.append(self.enum_value(grammar.name, e['enumerant'], e['value']))
|
/third_party/skia/third_party/externals/spirv-headers/tools/buildHeaders/bin/ |
D | generate_language_headers.py | 112 def enum_value(self, prefix, name, value): member in LangGenerator 147 parts.append(self.enum_value(grammar.name, inst['opname'], inst['opcode'])) 155 parts.append(self.enum_value(grammar.name, e['enumerant'], e['value']))
|
/third_party/gstreamer/gstreamer/tests/examples/controller/ |
D | controller-graph.c | 124 GEnumValue *enum_value; in main() local 167 if ((enum_value = g_enum_get_value (enum_class, i))) { in main() 169 enum_value->value_nick); in main()
|
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/utils/ |
D | generate_language_headers.py | 73 def enum_value(self, prefix, name, value): member in LangGenerator 108 parts.append(self.enum_value(grammar.name, inst['opname'], inst['opcode'])) 116 parts.append(self.enum_value(grammar.name, e['enumerant'], e['value']))
|
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Headers/tools/buildHeaders/bin/ |
D | generate_language_headers.py | 112 def enum_value(self, prefix, name, value): member in LangGenerator 147 parts.append(self.enum_value(grammar.name, inst['opname'], inst['opcode'])) 155 parts.append(self.enum_value(grammar.name, e['enumerant'], e['value']))
|
/third_party/protobuf/python/google/protobuf/ |
D | json_format.py | 289 enum_value = field.enum_type.values_by_number.get(value, None) 290 if enum_value is not None: 291 return enum_value.name 742 enum_value = field.enum_type.values_by_name.get(value, None) 743 if enum_value is None: 746 enum_value = field.enum_type.values_by_number.get(number, None) 750 if enum_value is None: 756 return enum_value.number
|
D | descriptor_database.py | 79 for enum_value in enum.value: 81 '.'.join((package, enum_value.name))] = file_desc_proto
|
D | text_format.py | 606 enum_value = field.enum_type.values_by_number.get(value, None) 607 if enum_value is not None: 608 out.write(enum_value.name) 1804 enum_value = enum_descriptor.values_by_name.get(value, None) 1805 if enum_value is None: 1815 enum_value = enum_descriptor.values_by_number.get(number, None) 1816 if enum_value is None: 1819 return enum_value.number
|
/third_party/gstreamer/gstplugins_bad/ext/dtls/ |
D | gstdtlssrtpenc.c | 283 GEnumValue *enum_value; in transform_enum() local 290 enum_value = g_enum_get_value_by_nick (enum_class, nick); in transform_enum() 291 g_return_val_if_fail (enum_value, FALSE); in transform_enum() 296 "transforming enum from %s to %d", nick, enum_value->value); in transform_enum() 300 g_value_set_enum (target_value, enum_value->value); in transform_enum()
|
/third_party/json/docs/examples/ |
D | basic_json__CompatibleType.cpp | 155 enum { enum_value = 17 }; in main() enumerator 156 json j_enum(enum_value); in main()
|
/third_party/libbpf/src/ |
D | bpf_core_read.h | 215 #define bpf_core_enum_value_exists(enum_type, enum_value) \ argument 216 __builtin_preserve_enum_value(*(typeof(enum_type) *)enum_value, BPF_ENUMVAL_EXISTS) 226 #define bpf_core_enum_value(enum_type, enum_value) \ argument 227 __builtin_preserve_enum_value(*(typeof(enum_type) *)enum_value, BPF_ENUMVAL_VALUE)
|
/third_party/protobuf/src/google/protobuf/compiler/ |
D | parser.cc | 580 const EnumValueDescriptorProto& enum_value = proto->value(i); in ValidateEnum() local 581 if (used_values.find(enum_value.number()) != used_values.end()) { in ValidateEnum() 585 used_values.insert(enum_value.number()); in ValidateEnum() 603 for (const auto& enum_value : proto->value()) { in ValidateEnum() local 604 if (!IsUpperUnderscore(enum_value.name())) { in ValidateEnum() 607 enum_value.name() + in ValidateEnum() 2031 bool Parser::ParseEnumConstant(EnumValueDescriptorProto* enum_value, in ParseEnumConstant() argument 2038 location.RecordLegacyLocation(enum_value, in ParseEnumConstant() 2040 DO(ConsumeIdentifier(enum_value->mutable_name(), in ParseEnumConstant() 2050 location.RecordLegacyLocation(enum_value, in ParseEnumConstant() [all …]
|
/third_party/protobuf/python/google/protobuf/internal/ |
D | decoder.py | 504 (enum_value, pos) = _DecodeSignedVarint32(buffer, pos) 507 if clear_if_default and not enum_value: 511 if enum_value in enum_type.values_by_number: 512 field_dict[key] = enum_value 523 field_number, wire_format.WIRETYPE_VARINT, enum_value)
|