/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/compiler/objectivec/ |
D | objectivec_message_field.cc | 49 const string& message_type = ClassName(descriptor->message_type()); in SetMessageVariables() local 50 (*variables)["type"] = message_type; in SetMessageVariables() 52 (*variables)["storage_type"] = message_type; in SetMessageVariables() 56 (*variables)["dataTypeSpecific_value"] = "GPBStringifySymbol(" + message_type + ")"; in SetMessageVariables()
|
D | objectivec_map_field.cc | 91 descriptor->message_type()->FindFieldByName("key"); in MapFieldGenerator() 93 descriptor->message_type()->FindFieldByName("value"); in MapFieldGenerator() 157 descriptor_->message_type()->FindFieldByName("value"); in FinishInitialization() 168 descriptor_->message_type()->FindFieldByName("value"); in DetermineForwardDeclarations()
|
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/compiler/ |
D | parser_unittest.cc | 2354 EXPECT_TRUE(HasSpan('a', 'd', file_.message_type(0))); in TEST_F() 2355 EXPECT_TRUE(HasSpan('b', 'c', file_.message_type(0), "name")); in TEST_F() 2356 EXPECT_TRUE(HasSpan('e', 'h', file_.message_type(1))); in TEST_F() 2357 EXPECT_TRUE(HasSpan('f', 'g', file_.message_type(1), "name")); in TEST_F() 2370 const FieldDescriptorProto& field1 = file_.message_type(0).field(0); in TEST_F() 2371 const FieldDescriptorProto& field2 = file_.message_type(0).field(1); in TEST_F() 2387 EXPECT_TRUE(HasSpan(file_.message_type(0))); in TEST_F() 2388 EXPECT_TRUE(HasSpan(file_.message_type(0), "name")); in TEST_F() 2445 const FieldDescriptorProto& field1 = file_.message_type(0).extension(0); in TEST_F() 2446 const FieldDescriptorProto& field2 = file_.message_type(0).extension(1); in TEST_F() [all …]
|
D | importer_unittest.cc | 152 EXPECT_EQ("Foo", file->message_type(0)->name()); in TEST_F() 188 ASSERT_EQ(1, foo->message_type(0)->field_count()); in TEST_F() 190 foo->message_type(0)->field(0)->type()); in TEST_F() 191 EXPECT_EQ(bar->message_type(0), in TEST_F() 192 foo->message_type(0)->field(0)->message_type()); in TEST_F()
|
D | mock_code_generator.cc | 135 if (HasPrefixString(file->message_type(i)->name(), "MockCodeGenerator_")) { in Generate() 136 string command = StripPrefixString(file->message_type(i)->name(), in Generate() 158 file->message_type(i)->field(0)->CopyTo(&field_descriptor_proto); in Generate() 239 file->message_type(0)->name() : "(none)"); in GetOutputFileContent()
|
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/compiler/cpp/ |
D | cpp_message_field.cc | 58 (HasFastArraySerialization(descriptor->message_type()->file(), options) in SetMessageVariables() 120 if (SupportsArenas(descriptor_->message_type())) { in GenerateAccessorDeclarations() 149 if (SupportsArenas(descriptor_->message_type())) { in GenerateNonInlineAccessorDefinitions() 177 if (SupportsArenas(descriptor_->message_type())) { in GenerateNonInlineAccessorDefinitions() 271 if (SupportsArenas(descriptor_->message_type())) { in GenerateDependentInlineAccessorDefinitions() 324 if (SupportsArenas(descriptor_->message_type())) { in GenerateDependentInlineAccessorDefinitions() 397 if (SupportsArenas(descriptor_->message_type())) { in GenerateInlineAccessorDefinitions() 444 if (SupportsArenas(descriptor_->message_type())) { in GenerateInlineAccessorDefinitions() 641 if (SupportsArenas(descriptor_->message_type())) { in InternalGenerateInlineAccessorDefinitions() 686 if (SupportsArenas(descriptor_->message_type())) { in InternalGenerateInlineAccessorDefinitions() [all …]
|
D | cpp_map_field.cc | 54 (HasFastArraySerialization(descriptor->message_type()->file(), options) in SetMessageVariables() 60 descriptor->message_type()->FindFieldByName("key"); in SetMessageVariables() 62 descriptor->message_type()->FindFieldByName("value"); in SetMessageVariables() 83 (*variables)["map_classname"] = ClassName(descriptor->message_type(), false); in SetMessageVariables() 186 descriptor_->message_type()->FindFieldByName("key"); in GenerateMergeFromCodedStream() 188 descriptor_->message_type()->FindFieldByName("value"); in GenerateMergeFromCodedStream() 320 descriptor_->message_type()->FindFieldByName("key"); in GenerateSerializeWithCachedSizes() 322 descriptor_->message_type()->FindFieldByName("value"); in GenerateSerializeWithCachedSizes()
|
D | cpp_helpers.cc | 228 const Descriptor* map_descriptor = field->message_type(); in IsFieldDependent() 266 if (field->file() == field->message_type()->file()) { in IsFieldDependent() 279 return ClassName(field->message_type(), true); in FieldMessageTypeName() 496 if (HasExtension(file->message_type(i))) { in StaticInitializersForced() 552 if (HasMapFields(file->message_type(i))) return true; in HasMapFields() 557 static bool HasEnumDefinitions(const Descriptor* message_type) { in HasEnumDefinitions() argument 558 if (message_type->enum_type_count() > 0) return true; in HasEnumDefinitions() 559 for (int i = 0; i < message_type->nested_type_count(); ++i) { in HasEnumDefinitions() 560 if (HasEnumDefinitions(message_type->nested_type(i))) return true; in HasEnumDefinitions() 568 if (HasEnumDefinitions(file->message_type(i))) return true; in HasEnumDefinitions()
|
/frameworks/base/tools/incident_section_gen/ |
D | main.cpp | 204 getMessageDest(field->message_type(), fieldDest); in getFieldDest() 258 if (parents->find(field->message_type()->full_name()) != parents->end()) break; in isDefaultMessageImpl() 260 if (isDefaultMessageImpl(field->message_type(), fieldDest, parents)) break; in isDefaultMessageImpl() 331 fieldMessageName = getMessageName(field->message_type(), fieldDest); in generatePrivacyFlags() 334 hasDefaultFlags[i] = isDefaultMessage(field->message_type(), fieldDest); in generatePrivacyFlags() 342 … } else if (generatePrivacyFlags(field->message_type(), p.dest(), variableNames, parents)) { in generatePrivacyFlags() 480 const string fieldMessageName = getMessageName(field->message_type(), fieldDest); in generateSectionListCpp() 482 if (generatePrivacyFlags(field->message_type(), incidentDest, variableNames, &parents)) { in generateSectionListCpp() 555 text << field->message_type()->name(); in generateCsv() 569 parents->find(field->message_type()->full_name()) == parents->end()) { in generateCsv() [all …]
|
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/compiler/javanano/ |
D | javanano_extension.cc | 91 string message_type = ClassName(params, descriptor->message_type()); in SetVariables() local 93 message_type += "[]"; in SetVariables() 95 (*variables)["class"] = message_type; in SetVariables()
|
D | javanano_file.cc | 137 if (file_->message_type(i)->name() == classname_) { in Validate() 199 MessageGenerator(file_->message_type(i), params_).Generate(printer); in Generate() 206 MessageGenerator(file_->message_type(i), params_).GenerateStaticVariables(printer); in Generate() 246 file_->message_type(i), in GenerateSiblings()
|
D | javanano_map_field.cc | 50 return ClassName(params, field->message_type()); in TypeName() 74 const Descriptor* message = descriptor->message_type(); in KeyField() 81 const Descriptor* message = descriptor->message_type(); in ValueField()
|
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/python/google/protobuf/internal/ |
D | descriptor_test.py | 67 message_proto = file_proto.message_type.add( 80 file_proto.message_type.add(name='ResponseMessage') 731 message_type = file_descriptor_proto.message_type.add() 732 message_type.name = file_descriptor_proto.name 733 nested_type = message_type.nested_type.add() 740 field = message_type.field.add() 745 field = message_type.field.add() 758 result = descriptor.MakeDescriptor(message_type) 763 self.assertEqual(result.fields[1].message_type.containing_type, 773 message_type = file_descriptor_proto.message_type.add() [all …]
|
D | python_message.py | 275 field.message_type.has_options and 276 field.message_type.GetOptions().map_entry) 280 value_type = field.message_type.fields_by_name["value"] 376 fields_by_name = field.message_type.fields_by_name 383 message._listener_for_children, value_field.message_type, key_checker) 416 message_type = field.message_type 419 message._listener_for_children, field.message_type) 430 message_type = field.message_type 432 result = message_type._concrete_class() 523 new_val = field.message_type._concrete_class(**field_value) [all …]
|
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/compiler/java/ |
D | java_map_field.cc | 48 const Descriptor* message = descriptor->message_type(); in KeyField() 55 const Descriptor* message = descriptor->message_type(); in ValueField() 64 return name_resolver->GetImmutableClassName(field->message_type()); in TypeName() 88 name_resolver->GetImmutableClassName(descriptor->message_type()); in SetMessageVariables() 148 ".internal_" + UniqueFileScopeIdentifier(descriptor->message_type()) + in SetMessageVariables() 737 return name_resolver_->GetImmutableClassName(descriptor_->message_type()); in GetBoxedType()
|
D | java_message_builder.cc | 75 return name_resolver->GetImmutableClassName(value_field->message_type()); in MapValueImmutableClassdName() 227 IsMapEntry(field->message_type())) { in GenerateDescriptorMethods() 657 HasRequiredFields(field->message_type())) { in GenerateIsInitialized() 665 field->message_type()), in GenerateIsInitialized() 691 if (IsMapEntry(field->message_type())) { in GenerateIsInitialized() 698 "type", MapValueImmutableClassdName(field->message_type(), in GenerateIsInitialized() 709 field->message_type()), in GenerateIsInitialized()
|
D | java_map_field_lite.cc | 48 const Descriptor* message = descriptor->message_type(); in KeyField() 55 const Descriptor* message = descriptor->message_type(); in ValueField() 64 return name_resolver->GetImmutableClassName(field->message_type()); in TypeName() 88 name_resolver->GetImmutableClassName(descriptor->message_type()); in SetMessageVariables() 830 return name_resolver_->GetImmutableClassName(descriptor_->message_type()); in GetBoxedType()
|
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/compiler/ruby/ |
D | ruby_generator.cc | 120 field->message_type()->FindFieldByNumber(1); in GenerateField() 122 field->message_type()->FindFieldByNumber(2); in GenerateField() 134 "subtype", value_field->message_type()->full_name()); in GenerateField() 156 "subtype", field->message_type()->full_name()); in GenerateField() 381 field->message_type()->file() == file) || in UsesTypeFromFile() 417 if (UsesTypeFromFile(from->message_type(i), import, error)) { in MaybeEmitDependency() 458 GenerateMessage(file->message_type(i), printer); in GenerateFile() 469 GenerateMessageAssignment("", file->message_type(i), printer); in GenerateFile()
|
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/ |
D | map_test_util.cc | 1606 descriptor->message_type()->FindFieldByName("key"); in ExpectMapEntryClearViaReflection() 1608 descriptor->message_type()->FindFieldByName("value"); in ExpectMapEntryClearViaReflection() 1618 descriptor->message_type()->FindFieldByName("key"); in ExpectMapEntryClearViaReflection() 1620 descriptor->message_type()->FindFieldByName("value"); in ExpectMapEntryClearViaReflection() 1630 descriptor->message_type()->FindFieldByName("key"); in ExpectMapEntryClearViaReflection() 1632 descriptor->message_type()->FindFieldByName("value"); in ExpectMapEntryClearViaReflection() 1642 descriptor->message_type()->FindFieldByName("key"); in ExpectMapEntryClearViaReflection() 1644 descriptor->message_type()->FindFieldByName("value"); in ExpectMapEntryClearViaReflection() 1654 descriptor->message_type()->FindFieldByName("key"); in ExpectMapEntryClearViaReflection() 1656 descriptor->message_type()->FindFieldByName("value"); in ExpectMapEntryClearViaReflection() [all …]
|
D | descriptor_database.cc | 68 if (!AddSymbol(path + file.message_type(i).name(), value)) return false; in AddFile() 69 if (!AddNestedExtensions(file.message_type(i), value)) return false; in AddFile() 138 const DescriptorProto& message_type, in AddNestedExtensions() argument 140 for (int i = 0; i < message_type.nested_type_size(); i++) { in AddNestedExtensions() 141 if (!AddNestedExtensions(message_type.nested_type(i), value)) return false; in AddNestedExtensions() 143 for (int i = 0; i < message_type.extension_size(); i++) { in AddNestedExtensions() 144 if (!AddExtension(message_type.extension(i), value)) return false; in AddNestedExtensions()
|
D | map_test.cc | 1022 fd_map_int32_int32->message_type()->FindFieldByName("key"); in TEST_F() 1024 fd_map_int32_int32->message_type()->FindFieldByName("value"); in TEST_F() 1026 fd_map_int32_double->message_type()->FindFieldByName("key"); in TEST_F() 1028 fd_map_int32_double->message_type()->FindFieldByName("value"); in TEST_F() 1030 fd_map_string_string->message_type()->FindFieldByName("key"); in TEST_F() 1032 fd_map_string_string->message_type()->FindFieldByName("value"); in TEST_F() 1034 fd_map_int32_foreign_message->message_type()->FindFieldByName("key"); in TEST_F() 1036 fd_map_int32_foreign_message->message_type()->FindFieldByName("value"); in TEST_F() 1213 fd_map_int32_int32->message_type()->FindFieldByName("key"); in TEST_F() 1215 fd_map_int32_int32->message_type()->FindFieldByName("value"); in TEST_F() [all …]
|
D | descriptor_unittest.cc | 295 foo_message_ = foo_file_->message_type(0); in SetUp() 306 bar_message_ = bar_file_->message_type(0); in SetUp() 639 foreign_ = foo_file_->message_type(0); in SetUp() 640 message_ = foo_file_->message_type(1); in SetUp() 649 message2_ = bar_file_->message_type(0); in SetUp() 657 message3_ = map_file_->message_type(0); in SetUp() 663 message4_ = json_file_->message_type(0); in SetUp() 856 EXPECT_TRUE(map_->message_type()->options().map_entry()); in TEST_F() 878 EXPECT_TRUE(foo_->message_type() == NULL); in TEST_F() 879 EXPECT_TRUE(bar_->message_type() == NULL); in TEST_F() [all …]
|
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/compiler/csharp/ |
D | csharp_map_field.cc | 61 descriptor_->message_type()->FindFieldByName("key"); in GenerateMembers() 63 descriptor_->message_type()->FindFieldByName("value"); in GenerateMembers()
|
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/python/google/protobuf/ |
D | descriptor_pool.py | 345 for message_type in file_descriptor.message_types_by_name.values(): 346 _AddMessageDescriptor(message_type) 362 for message_type in file_proto.message_type: 364 message_type, file_proto.package, file_descriptor, scope, 384 for desc_proto in file_proto.message_type: 392 for desc_proto in file_proto.message_type: 557 message_type=None, 624 field_desc.message_type = desc
|
D | message_factory.py | 80 if field.message_type: 81 self.GetPrototype(field.message_type)
|