Home
last modified time | relevance | path

Searched refs:enum_type (Results 1 – 25 of 88) sorted by relevance

1234

/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/python/google/protobuf/
Ddescriptor_database.py73 for enum in file_desc_proto.enum_type:
140 for enum_type in desc_proto.enum_type:
141 yield '.'.join((message_name, enum_type.name))
Ddescriptor_pool.py341 for enum_type in message_desc.enum_types:
342 _AddEnumDescriptor(enum_type)
347 for enum_type in file_descriptor.enum_types_by_name.values():
348 _AddEnumDescriptor(enum_type)
369 for enum_type in file_proto.enum_type:
370 file_descriptor.enum_types_by_name[enum_type.name] = (
371 self._ConvertEnumDescriptor(enum_type, file_proto.package,
440 for enum in desc_proto.enum_type]
558 enum_type=None,
627 field_desc.enum_type = desc
[all …]
Ddescriptor.py303 for enum_type in self.enum_types:
304 enum_type.containing_type = self
498 default_value, message_type, enum_type, containing_type, argument
508 default_value, message_type, enum_type, containing_type, argument
531 self.enum_type = enum_type
948 for enum_proto in desc_proto.enum_type:
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/util/
Dtype_resolver_util.cc95 Status ResolveEnumType(const string& type_url, Enum* enum_type) { in ResolveEnumType() argument
111 ConvertEnumDescriptor(descriptor, enum_type); in ResolveEnumType()
169 field->set_type_url(GetTypeUrl(descriptor->enum_type())); in ConvertFieldDescriptor()
182 Enum* enum_type) { in ConvertEnumDescriptor() argument
183 enum_type->Clear(); in ConvertEnumDescriptor()
184 enum_type->set_name(descriptor->full_name()); in ConvertEnumDescriptor()
185 enum_type->mutable_source_context()->set_file_name( in ConvertEnumDescriptor()
189 EnumValue* value = enum_type->mutable_enumvalue()->Add(); in ConvertEnumDescriptor()
Dtype_resolver.h65 google::protobuf::Enum* enum_type) = 0;
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/python/google/protobuf/internal/
Denum_type_wrapper.py46 def __init__(self, enum_type): argument
48 self._enum_type = enum_type
49 self.DESCRIPTOR = enum_type;
Ddescriptor_test.py74 enum_proto = message_proto.enum_type.add(
735 enum_type = nested_type.enum_type.add()
736 enum_type.name = 'FOO'
737 enum_type_val = enum_type.value.add()
767 self.assertEqual(result.nested_types[0].fields[0].enum_type,
775 enum_type = message_type.enum_type.add()
776 enum_type.name = 'FOO'
777 enum_type_val = enum_type.value.add()
Ddecoder.py354 enum_type = key.enum_type
368 if element in enum_type.values_by_number:
378 if element in enum_type.values_by_number:
394 if element in enum_type.values_by_number:
416 if enum_value in enum_type.values_by_number:
Dpython_message.py366 for enum_type in descriptor.enum_types:
367 setattr(cls, enum_type.name, enum_type_wrapper.EnumTypeWrapper(enum_type))
368 for enum_value in enum_type.values:
461 def _GetIntegerEnumValue(enum_type, value): argument
470 return enum_type.values_by_name[value].number
473 enum_type.full_name, value))
515 field_value = [_GetIntegerEnumValue(field.enum_type, val)
531 field_value = _GetIntegerEnumValue(field.enum_type, field_value)
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/compiler/javanano/
Djavanano_enum_field.cc79 const EnumDescriptor* enum_type = descriptor->enum_type(); in SetEnumVariables() local
81 + ToJavaName(params, enum_type->name(), true, in SetEnumVariables()
82 enum_type->containing_type(), enum_type->file()); in SetEnumVariables()
116 LoadEnumValues(params, descriptor->enum_type(), &canonical_values_); in EnumFieldGenerator()
257 LoadEnumValues(params, descriptor->enum_type(), &canonical_values_); in AccessorEnumFieldGenerator()
355 LoadEnumValues(params, descriptor->enum_type(), &canonical_values_); in RepeatedEnumFieldGenerator()
Djavanano_file.cc143 if (file_->enum_type(i)->name() == classname_) { in Validate()
193 EnumGenerator(file_->enum_type(i), params_).Generate(printer); in Generate()
253 file_->enum_type(i), in GenerateSiblings()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/util/internal/
Dutility.cc182 const google::protobuf::Enum* enum_type, StringPiece enum_name) { in FindEnumValueByNameOrNull() argument
183 if (enum_type != NULL) { in FindEnumValueByNameOrNull()
184 for (int i = 0; i < enum_type->enumvalue_size(); ++i) { in FindEnumValueByNameOrNull()
185 const google::protobuf::EnumValue& enum_value = enum_type->enumvalue(i); in FindEnumValueByNameOrNull()
195 const google::protobuf::Enum* enum_type, int32 value) { in FindEnumValueByNumberOrNull() argument
196 if (enum_type != NULL) { in FindEnumValueByNumberOrNull()
197 for (int i = 0; i < enum_type->enumvalue_size(); ++i) { in FindEnumValueByNumberOrNull()
198 const google::protobuf::EnumValue& enum_value = enum_type->enumvalue(i); in FindEnumValueByNumberOrNull()
Dtype_info.cc96 google::protobuf::scoped_ptr<google::protobuf::Enum> enum_type( in GetEnumByTypeUrl() local
99 type_resolver_->ResolveEnumType(string_type_url, enum_type.get()); in GetEnumByTypeUrl()
101 status.ok() ? StatusOrEnum(enum_type.release()) : StatusOrEnum(status); in GetEnumByTypeUrl()
Ddatapiece.cc262 StatusOr<int> DataPiece::ToEnum(const google::protobuf::Enum* enum_type) const { in ToEnum()
269 FindEnumValueByNameOrNull(enum_type, enum_name); in ToEnum()
275 value = FindEnumValueByNameOrNull(enum_type, enum_name); in ToEnum()
281 FindEnumValueByNumberOrNull(enum_type, value.ValueOrDie())) { in ToEnum()
Dutility.h142 const google::protobuf::Enum* enum_type, StringPiece enum_name);
147 const google::protobuf::Enum* enum_type, int32 value);
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/compiler/objectivec/
Dobjectivec_enum_field.cc50 string type = EnumName(descriptor->enum_type()); in SetEnumVariables()
56 (descriptor->file() != descriptor->enum_type()->file())) { in SetEnumVariables()
122 if (descriptor_->file() != descriptor_->enum_type()->file()) { in DetermineForwardDeclarations()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/compiler/ruby/
Druby_generator.cc138 "subtype", value_field->enum_type()->full_name()); in GenerateField()
160 "subtype", field->enum_type()->full_name()); in GenerateField()
216 GenerateEnum(message->enum_type(i), printer); in GenerateMessage()
323 GenerateEnumAssignment(nested_prefix, message->enum_type(i), printer); in GenerateMessageAssignment()
383 field->enum_type()->file() == file)) { in UsesTypeFromFile()
461 GenerateEnum(file->enum_type(i), printer); in GenerateFile()
472 GenerateEnumAssignment("", file->enum_type(i), printer); in GenerateFile()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/compiler/cpp/
Dcpp_extension.cc71 type_traits_.append(ClassName(descriptor_->enum_type(), true)); in ExtensionGenerator()
73 type_traits_.append(ClassName(descriptor_->enum_type(), true)); in ExtensionGenerator()
187 "type", ClassName(descriptor_->enum_type(), true)); in GenerateRegistration()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/compiler/
Dparser_unittest.cc2604 EXPECT_TRUE(HasSpan('a', 'd', file_.enum_type(0))); in TEST_F()
2605 EXPECT_TRUE(HasSpan('b', 'c', file_.enum_type(0), "name")); in TEST_F()
2606 EXPECT_TRUE(HasSpan('e', 'h', file_.enum_type(1))); in TEST_F()
2607 EXPECT_TRUE(HasSpan('f', 'g', file_.enum_type(1), "name")); in TEST_F()
2620 const EnumValueDescriptorProto& bar = file_.enum_type(0).value(0); in TEST_F()
2621 const EnumValueDescriptorProto& baz = file_.enum_type(0).value(1); in TEST_F()
2632 EXPECT_TRUE(HasSpan(file_.enum_type(0))); in TEST_F()
2633 EXPECT_TRUE(HasSpan(file_.enum_type(0), "name")); in TEST_F()
2643 const EnumDescriptorProto& bar = file_.message_type(0).enum_type(0); in TEST_F()
2644 const EnumDescriptorProto& baz = file_.message_type(0).enum_type(1); in TEST_F()
[all …]
/frameworks/opt/gamesdk/samples/tuningfork/prototest/src/
Dsztool.cc57 dynamicproto::print(fd->enum_type(), std::cerr); in FieldSize()
62 return fd->enum_type()->value_count() + 1; in FieldSize()
90 if(ann_values[i]<fd->enum_type()->value_count()) { in NextAnnotation()
144 1 + (RandInt32() % fd->enum_type()->value_count())); in RandomFidelityParams()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/compiler/java/
Djava_file.cc304 EnumGenerator(file_->enum_type(i), immutable_api_, context_.get()) in Generate()
307 EnumLiteGenerator(file_->enum_type(i), immutable_api_, context_.get()) in Generate()
591 EnumGenerator generator(file_->enum_type(i), immutable_api_, in GenerateSiblings()
594 package_dir, java_package_, file_->enum_type(i), context, file_list, in GenerateSiblings()
598 EnumLiteGenerator generator(file_->enum_type(i), immutable_api_, in GenerateSiblings()
601 package_dir, java_package_, file_->enum_type(i), context, file_list, in GenerateSiblings()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/compiler/csharp/
Dcsharp_reflection_class.cc77 EnumGenerator enumGenerator(file_->enum_type(i), this->options()); in Generate()
189 printer->Print("typeof($type_name$), ", "type_name", GetClassName(file_->enum_type(i))); in WriteDescriptor()
264 enums.push_back(GetClassName(descriptor->enum_type(i))); in WriteGeneratedCodeInfo()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/compiler/python/
Dpython_generator.cc449 const EnumDescriptor& enum_descriptor = *file_->enum_type(i); in PrintTopLevelEnums()
530 PrintEnum(*descriptor.enum_type(i)); in PrintNestedEnums()
702 *message_descriptor.enum_type(i)); in PrintDescriptor()
850 const EnumDescriptor& enum_descriptor = *descriptor.enum_type(i); in FixForeignFieldsInDescriptor()
927 const EnumDescriptor* enum_type = field.enum_type(); in FixForeignFieldsInField() local
928 if (enum_type) { in FixForeignFieldsInField()
929 m["enum_type"] = ModuleLevelDescriptorName(*enum_type); in FixForeignFieldsInField()
988 AddEnumToFileDescriptor(*file_->enum_type(i)); in FixForeignFieldsInDescriptors()
1258 const EnumDescriptor& enum_descriptor = *file_->enum_type(i); in FixAllDescriptorOptions()
1344 FixOptionsForEnum(*descriptor.enum_type(i)); in FixOptionsForMessage()
/frameworks/base/tools/streaming_proto/java/
Dmain.cpp132 write_enum(text, message.enum_type(i), indented); in write_message()
219 enums.push_back(file_descriptor.enum_type(i)); in write_multiple_files()
251 enums.push_back(file_descriptor.enum_type(i)); in write_single_file()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/
Ddescriptor.cc1751 enum_type(i)->CopyTo(proto->add_enum_type()); in CopyTo()
1799 enum_type(i)->CopyTo(proto->add_enum_type()); in CopyTo()
1874 if (!enum_type()->is_unqualified_placeholder_) { in CopyTo()
1877 proto->mutable_type_name()->append(enum_type()->full_name()); in CopyTo()
2155 enum_type(i)->DebugString(0, &contents, debug_string_options); in DebugStringWithOptions()
2255 enum_type(i)->DebugString(depth, contents, debug_string_options); in DebugString()
2345 return "." + enum_type()->full_name(); in FieldTypeNameDebugString()
3008 void CrossLinkEnum(EnumDescriptor* enum_type,
4002 BUILD_ARRAY(proto, result, enum_type , BuildEnum , NULL); in BuildFileImpl()
4080 BUILD_ARRAY(proto, result, enum_type , BuildEnum , result); in BuildMessage()
[all …]

1234