/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/python/google/protobuf/ |
D | descriptor_database.py | 73 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))
|
D | descriptor_pool.py | 341 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 …]
|
D | descriptor.py | 303 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/ |
D | type_resolver_util.cc | 95 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()
|
D | type_resolver.h | 65 google::protobuf::Enum* enum_type) = 0;
|
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/python/google/protobuf/internal/ |
D | enum_type_wrapper.py | 46 def __init__(self, enum_type): argument 48 self._enum_type = enum_type 49 self.DESCRIPTOR = enum_type;
|
D | descriptor_test.py | 74 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()
|
D | decoder.py | 354 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:
|
D | python_message.py | 366 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/ |
D | javanano_enum_field.cc | 79 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()
|
D | javanano_file.cc | 143 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/ |
D | utility.cc | 182 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()
|
D | type_info.cc | 96 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()
|
D | datapiece.cc | 262 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()
|
D | utility.h | 142 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/ |
D | objectivec_enum_field.cc | 50 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/ |
D | ruby_generator.cc | 138 "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/ |
D | cpp_extension.cc | 71 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/ |
D | parser_unittest.cc | 2604 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/ |
D | sztool.cc | 57 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/ |
D | java_file.cc | 304 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/ |
D | csharp_reflection_class.cc | 77 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/ |
D | python_generator.cc | 449 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/ |
D | main.cpp | 132 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/ |
D | descriptor.cc | 1751 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 …]
|