Home
last modified time | relevance | path

Searched refs:enum_value (Results 1 – 25 of 32) sorted by relevance

12

/external/ltrace/
Dlens_enum.c71 enum_values_equal(struct value *inf_value, struct value *enum_value, in enum_values_equal() argument
87 assert(inf_value->type->type == enum_value->type->type); in enum_values_equal()
89 unsigned char *enum_data = value_get_data(enum_value, arguments); in enum_values_equal()
90 size_t enum_sz = value_size(enum_value, arguments); in enum_values_equal()
/external/chromium-trace/catapult/third_party/gsutil/third_party/apitools/apitools/gen/
Dextended_descriptor.py254 def __PrintEnumValueCommentLines(self, enum_value): argument
255 if enum_value.description:
257 for line in textwrap.wrap(enum_value.description, width):
266 for enum_value in enum_values:
268 self.__PrintEnumValueCommentLines(enum_value)
269 self.__printer('%s = %s;', enum_value.name, enum_value.number)
376 for enum_value in enum_values:
377 self.__printer('%s = %s', enum_value.name, enum_value.number)
Dmessage_registry.py188 enum_value = extended_descriptor.ExtendedEnumValueDescriptor()
189 enum_value.name = self.__names.NormalizeEnumName(enum_name)
190 if enum_value.name != enum_name:
193 python_name=enum_value.name, json_name=enum_name))
196 enum_value.number = index
197 enum_value.description = util.CleanDescription(
199 message.values.append(enum_value)
/external/chromium-trace/catapult/third_party/gsutil/third_party/protorpc/protorpc/
Dgenerate_proto.py56 for enum_value in enum.values:
57 out << '%s = %s;' % (enum_value.name, enum_value.number)
Dprotobuf_test.py68 proto.enum_value = protorpc_test_pb2.OptionalMessage.VAL2
83 proto.enum_value = protorpc_test_pb2.OptionalMessage.VAL2
106 proto.enum_value.append(protorpc_test_pb2.RepeatedMessage.VAL2)
107 proto.enum_value.append(protorpc_test_pb2.RepeatedMessage.VAL1)
166 field_num = test_util.OptionalMessage.enum_value.number
Dgenerate_python.py55 for enum_value in enum.values:
56 out << '%s = %s' % (enum_value.name, enum_value.number)
Dtest_util.py293 enum_value = messages.EnumField(SimpleEnum, 10) variable in OptionalMessage
334 enum_value = messages.EnumField(SimpleEnum, variable in RepeatedMessage
469 message.enum_value = OptionalMessage.SimpleEnum.VAL2
484 message.enum_value = OptionalMessage.SimpleEnum.VAL2
499 message.enum_value = [RepeatedMessage.SimpleEnum.VAL2,
Dprotorpc_test.proto48 optional SimpleEnum enum_value = 10; field
71 repeated SimpleEnum enum_value = 10; field
Ddescriptor.py303 def describe_enum_value(enum_value): argument
313 enum_value_descriptor.name = six.text_type(enum_value.name)
314 enum_value_descriptor.number = enum_value.number
/external/nanopb-c/generator/google/protobuf/
Dtext_format.py125 enum_value = field.enum_type.values_by_number.get(value, None)
126 if enum_value is not None:
127 out.write(enum_value.name)
727 enum_value = enum_descriptor.values_by_name.get(value, None)
728 if enum_value is None:
734 enum_value = enum_descriptor.values_by_number.get(number, None)
735 if enum_value is None:
739 return enum_value.number
/external/protobuf/python/google/protobuf/
Dtext_format.py185 enum_value = field.enum_type.values_by_number.get(value, None)
186 if enum_value is not None:
187 out.write(enum_value.name)
861 enum_value = enum_descriptor.values_by_name.get(value, None)
862 if enum_value is None:
868 enum_value = enum_descriptor.values_by_number.get(number, None)
869 if enum_value is None:
873 return enum_value.number
/external/clang/bindings/python/tests/cindex/
Dtest_cursor.py246 assert spam.enum_value == 1
248 assert egg.enum_value == 2
250 assert ham.enum_value == 40
265 assert spam.enum_value == -1
267 assert ham.enum_value == 0x10000000000
/external/llvm/bindings/python/llvm/tests/
Dtest_core.py13 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/protobuf/python/google/protobuf/pyext/
Drepeated_scalar_container.cc169 const google::protobuf::EnumValueDescriptor* enum_value = in AssignItem() local
171 if (enum_value != NULL) { in AssignItem()
173 enum_value); in AssignItem()
255 const google::protobuf::EnumValueDescriptor* enum_value = in Item() local
258 result = PyInt_FromLong(enum_value->number()); in Item()
417 const google::protobuf::EnumValueDescriptor* enum_value = in Append() local
419 if (enum_value != NULL) { in Append()
420 reflection->AddEnum(message, field_descriptor, enum_value); in Append()
Dmessage.cc1689 const google::protobuf::EnumValueDescriptor* enum_value = in CheckAndGetInteger() local
1691 result = PyInt_FromLong(enum_value->number()); in CheckAndGetInteger()
1807 const google::protobuf::EnumValueDescriptor* enum_value = in CheckAndGetInteger() local
1809 if (enum_value != NULL) { in CheckAndGetInteger()
1810 reflection->SetEnum(message, field_descriptor, enum_value); in CheckAndGetInteger()
1958 ScopedPyObjectPtr enum_value; in CheckAndGetInteger() local
1959 while ((enum_value.reset(PyIter_Next(values_iter))) != NULL) { in CheckAndGetInteger()
1960 ScopedPyObjectPtr value_name(PyObject_GetAttr(enum_value, kname)); in CheckAndGetInteger()
1964 ScopedPyObjectPtr value_number(PyObject_GetAttrString(enum_value, in CheckAndGetInteger()
/external/chromium-trace/catapult/third_party/gsutil/third_party/apitools/apitools/base/py/
Dencoding_test.py95 enum_value = 1 variable in MessageWithRemappings.SomeEnum
294 enum_field=MessageWithRemappings.SomeEnum.enum_value)
303 MessageWithRemappings.SomeEnum.enum_value,
328 double_encoding=MessageWithRemappings.SomeEnum.enum_value)
/external/protobuf/src/google/protobuf/
Dwire_format.cc515 const EnumValueDescriptor* enum_value = in ParseAndMergeField() local
517 if (enum_value != NULL) { in ParseAndMergeField()
518 message_reflection->AddEnum(message, field, enum_value); in ParseAndMergeField()
575 const EnumValueDescriptor* enum_value = in ParseAndMergeField() local
577 if (enum_value != NULL) { in ParseAndMergeField()
579 message_reflection->AddEnum(message, field, enum_value); in ParseAndMergeField()
581 message_reflection->SetEnum(message, field, enum_value); in ParseAndMergeField()
Dtext_format.cc679 const EnumValueDescriptor* enum_value = NULL; in ConsumeFieldValue() local
684 enum_value = enum_type->FindValueByName(value); in ConsumeFieldValue()
691 enum_value = enum_type->FindValueByNumber(int_value); in ConsumeFieldValue()
697 if (enum_value == NULL) { in ConsumeFieldValue()
709 SET_FIELD(Enum, enum_value); in ConsumeFieldValue()
Ddescriptor.cc2514 void CrossLinkEnumValue(EnumValueDescriptor* enum_value,
2664 void ValidateEnumValueOptions(EnumValueDescriptor* enum_value,
4385 EnumValueDescriptor* enum_value, in CrossLinkEnumValue() argument
4387 if (enum_value->options_ == NULL) { in CrossLinkEnumValue()
4388 enum_value->options_ = &EnumValueOptions::default_instance(); in CrossLinkEnumValue()
4562 const EnumValueDescriptor* enum_value = enm->value(i); in ValidateEnumOptions() local
4563 if (used_values.find(enum_value->number()) != used_values.end()) { in ValidateEnumOptions()
4565 "\"" + enum_value->full_name() + in ValidateEnumOptions()
4567 used_values[enum_value->number()] + "\". If this is intended, set " in ValidateEnumOptions()
4580 used_values[enum_value->number()] = enum_value->full_name(); in ValidateEnumOptions()
[all …]
/external/protobuf/src/google/protobuf/compiler/
Dparser.cc1384 bool Parser::ParseEnumConstant(EnumValueDescriptorProto* enum_value, in ParseEnumConstant() argument
1392 enum_value, DescriptorPool::ErrorCollector::NAME); in ParseEnumConstant()
1393 DO(ConsumeIdentifier(enum_value->mutable_name(), in ParseEnumConstant()
1404 enum_value, DescriptorPool::ErrorCollector::NUMBER); in ParseEnumConstant()
1408 enum_value->set_number(number); in ParseEnumConstant()
1411 DO(ParseEnumConstantOptions(enum_value, enum_value_location, in ParseEnumConstant()
Dparser.h383 bool ParseEnumConstant(EnumValueDescriptorProto* enum_value,
/external/protobuf/python/google/protobuf/internal/
Ddecoder.py431 (enum_value, pos) = _DecodeSignedVarint32(buffer, pos)
434 if enum_value in enum_type.values_by_number:
435 field_dict[key] = enum_value
Dcpp_message.py416 for enum_value in enum_type.values:
417 dictionary[enum_value.name] = enum_value.number
Dpython_message.py256 for enum_value in enum_type.values:
257 setattr(cls, enum_value.name, enum_value.number)
/external/nanopb-c/generator/google/protobuf/internal/
Dpython_message.py244 for enum_value in enum_type.values:
245 setattr(cls, enum_value.name, enum_value.number)

12