/third_party/glib/gobject/ |
D | genums.c | 408 GEnumValue *enum_value; in g_enum_get_value_by_name() local 410 for (enum_value = enum_class->values; enum_value->value_name; enum_value++) in g_enum_get_value_by_name() 411 if (strcmp (name, enum_value->value_name) == 0) in g_enum_get_value_by_name() 412 return enum_value; in g_enum_get_value_by_name() 467 GEnumValue *enum_value; in g_enum_get_value_by_nick() local 469 for (enum_value = enum_class->values; enum_value->value_name; enum_value++) in g_enum_get_value_by_nick() 470 if (enum_value->value_nick && strcmp (nick, enum_value->value_nick) == 0) in g_enum_get_value_by_nick() 471 return enum_value; in g_enum_get_value_by_nick() 524 GEnumValue *enum_value; in g_enum_get_value() local 526 for (enum_value = enum_class->values; enum_value->value_name; enum_value++) in g_enum_get_value() [all …]
|
/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()
|
/third_party/mindspore/mindspore/lite/schema/ |
D | model_v0_generated.h | 706 static const PrimitiveType enum_value = PrimitiveType_NONE; member 710 static const PrimitiveType enum_value = PrimitiveType_Concat; 714 static const PrimitiveType enum_value = PrimitiveType_SoftMax; 718 static const PrimitiveType enum_value = PrimitiveType_Activation; 722 static const PrimitiveType enum_value = PrimitiveType_Conv2D; 726 static const PrimitiveType enum_value = PrimitiveType_FusedBatchNorm; 730 static const PrimitiveType enum_value = PrimitiveType_BatchNorm; 734 static const PrimitiveType enum_value = PrimitiveType_BiasAdd; 738 static const PrimitiveType enum_value = PrimitiveType_Pooling; 742 static const PrimitiveType enum_value = PrimitiveType_ROIPooling; [all …]
|
D | ops_generated.h | 1242 static const PrimitiveType enum_value = PrimitiveType_NONE; member 1246 static const PrimitiveType enum_value = PrimitiveType_Abs; 1250 static const PrimitiveType enum_value = PrimitiveType_Activation; 1254 static const PrimitiveType enum_value = PrimitiveType_ActivationGrad; 1258 static const PrimitiveType enum_value = PrimitiveType_Adam; 1262 static const PrimitiveType enum_value = PrimitiveType_AddFusion; 1266 static const PrimitiveType enum_value = PrimitiveType_AdderFusion; 1270 static const PrimitiveType enum_value = PrimitiveType_AddGrad; 1274 static const PrimitiveType enum_value = PrimitiveType_AddN; 1278 static const PrimitiveType enum_value = PrimitiveType_All; [all …]
|
/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/mindspore/mindspore/lite/schema/inner/ |
D | model_v0_generated.h | 724 static const PrimitiveType enum_value = PrimitiveType_NONE; member 728 static const PrimitiveType enum_value = PrimitiveType_Concat; 732 static const PrimitiveType enum_value = PrimitiveType_SoftMax; 736 static const PrimitiveType enum_value = PrimitiveType_Activation; 740 static const PrimitiveType enum_value = PrimitiveType_Conv2D; 744 static const PrimitiveType enum_value = PrimitiveType_FusedBatchNorm; 748 static const PrimitiveType enum_value = PrimitiveType_BatchNorm; 752 static const PrimitiveType enum_value = PrimitiveType_BiasAdd; 756 static const PrimitiveType enum_value = PrimitiveType_Pooling; 760 static const PrimitiveType enum_value = PrimitiveType_ROIPooling; [all …]
|
/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/flatbuffers/src/ |
D | idl_gen_json_schema.cpp | 182 for (auto enum_value = (*e)->Vals().begin(); in generate() local 183 enum_value != (*e)->Vals().end(); ++enum_value) { in generate() 184 enumdef.append("\"" + (*enum_value)->name + "\""); in generate() 185 if (*enum_value != (*e)->Vals().back()) { enumdef.append(", "); } in generate()
|
/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/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-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/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-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/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/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/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
|
/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/mindspore/mindspore/core/utils/ |
D | check_convert_utils.cc | 147 bool CheckAndConvertUtils::GetDataFormatEnumValue(const ValuePtr &value, int64_t *enum_value) { in GetDataFormatEnumValue() argument 155 *enum_value = DataFormatToEnumMap[attr_value_str]; in GetDataFormatEnumValue() 158 *enum_value = GetValue<int64_t>(value); in GetDataFormatEnumValue() 163 void CheckAndConvertUtils::GetPadModEnumValue(const ValuePtr &value, int64_t *enum_value, bool is_u… in GetPadModEnumValue() argument 175 *enum_value = pad_map[attr_value_str]; in GetPadModEnumValue() 177 *enum_value = GetValue<int64_t>(value); in GetPadModEnumValue() 181 void CheckAndConvertUtils::GetReductionEnumValue(const ValuePtr &value, int64_t *enum_value) { in GetReductionEnumValue() argument 190 *enum_value = pad_map[attr_value_str]; in GetReductionEnumValue() 192 *enum_value = GetValue<int64_t>(value); in GetReductionEnumValue()
|