Home
last modified time | relevance | path

Searched refs:unknown_fields (Results 1 – 25 of 40) sorted by relevance

12

/external/protobuf/src/google/protobuf/
Dunknown_field_set_unittest.cc191 empty_message_.unknown_fields()); in TEST_F()
199 empty_message_.unknown_fields(), target); in TEST_F()
205 WireFormat::SerializeUnknownFields(empty_message_.unknown_fields(), in TEST_F()
268 EXPECT_GT(empty_message_.unknown_fields().field_count(), 0); in TEST_F()
269 EXPECT_GT(other_message.unknown_fields().field_count(), 0); in TEST_F()
281 EXPECT_GT(empty_message_.unknown_fields().field_count(), 0); in TEST_F()
284 EXPECT_GT(empty_message_.unknown_fields().field_count(), 0); in TEST_F()
335 ASSERT_EQ(1, destination.unknown_fields().field_count()); in TEST_F()
337 destination.unknown_fields().field(0).type()); in TEST_F()
338 EXPECT_EQ(654321, destination.unknown_fields().field(0).varint()); in TEST_F()
[all …]
Dwire_format.h134 UnknownFieldSet* unknown_fields);
139 UnknownFieldSet* unknown_fields);
146 UnknownFieldSet* unknown_fields,
150 static void SerializeUnknownFields(const UnknownFieldSet& unknown_fields,
158 const UnknownFieldSet& unknown_fields,
164 const UnknownFieldSet& unknown_fields,
172 const UnknownFieldSet& unknown_fields,
176 static int ComputeUnknownFieldsSize(const UnknownFieldSet& unknown_fields);
181 const UnknownFieldSet& unknown_fields);
253 UnknownFieldSet* unknown_fields);
[all …]
Dreflection_ops_unittest.cc159 ASSERT_EQ(2, message1.unknown_fields().field_count()); in TEST()
161 message1.unknown_fields().field(0).type()); in TEST()
162 EXPECT_EQ(1, message1.unknown_fields().field(0).varint()); in TEST()
164 message1.unknown_fields().field(1).type()); in TEST()
165 EXPECT_EQ(2, message1.unknown_fields().field(1).varint()); in TEST()
251 EXPECT_EQ(0, message.unknown_fields().field_count()); in TEST()
285 EXPECT_EQ(1, message.unknown_fields().field_count()); in TEST()
287 .unknown_fields().field_count()); in TEST()
289 .unknown_fields().field_count()); in TEST()
295 EXPECT_EQ(0, message.unknown_fields().field_count()); in TEST()
[all …]
Dwire_format.cc75 UnknownFieldSet* unknown_fields) { in SkipField() argument
82 if (unknown_fields != NULL) unknown_fields->AddVarint(number, value); in SkipField()
88 if (unknown_fields != NULL) unknown_fields->AddFixed64(number, value); in SkipField()
94 if (unknown_fields == NULL) { in SkipField()
97 if (!input->ReadString(unknown_fields->AddLengthDelimited(number), in SkipField()
106 if (!SkipMessage(input, (unknown_fields == NULL) ? in SkipField()
107 NULL : unknown_fields->AddGroup(number))) { in SkipField()
125 if (unknown_fields != NULL) unknown_fields->AddFixed32(number, value); in SkipField()
135 UnknownFieldSet* unknown_fields) { in SkipMessage() argument
150 if (!SkipField(input, tag, unknown_fields)) return false; in SkipMessage()
[all …]
Dtext_format_unittest.cc244 UnknownFieldSet* unknown_fields = message.mutable_unknown_fields(); in TEST_F() local
246 unknown_fields->AddVarint(5, 1); in TEST_F()
247 unknown_fields->AddFixed32(5, 2); in TEST_F()
248 unknown_fields->AddFixed64(5, 3); in TEST_F()
249 unknown_fields->AddLengthDelimited(5, "4"); in TEST_F()
250 unknown_fields->AddGroup(5)->AddVarint(10, 5); in TEST_F()
252 unknown_fields->AddVarint(8, 1); in TEST_F()
253 unknown_fields->AddVarint(8, 2); in TEST_F()
254 unknown_fields->AddVarint(8, 3); in TEST_F()
275 UnknownFieldSet* unknown_fields = message.mutable_unknown_fields(); in TEST_F() local
[all …]
Dtext_format.h74 static bool PrintUnknownFields(const UnknownFieldSet& unknown_fields,
81 static bool PrintUnknownFieldsToString(const UnknownFieldSet& unknown_fields,
138 bool PrintUnknownFields(const UnknownFieldSet& unknown_fields,
143 bool PrintUnknownFieldsToString(const UnknownFieldSet& unknown_fields,
282 void PrintUnknownFields(const UnknownFieldSet& unknown_fields,
Ddescriptor.cc3050 const UnknownFieldSet& unknown_fields);
3055 UnknownFieldSet* unknown_fields);
3060 UnknownFieldSet* unknown_fields);
3065 UnknownFieldSet* unknown_fields);
3067 UnknownFieldSet* unknown_fields);
3069 UnknownFieldSet* unknown_fields);
3071 UnknownFieldSet* unknown_fields);
5735 google::protobuf::scoped_ptr<UnknownFieldSet> unknown_fields(new UnknownFieldSet()); in InterpretSingleOption() local
5736 if (!SetOptionValue(field, unknown_fields.get())) { in InterpretSingleOption()
5752 internal::WireFormat::SerializeUnknownFields(*unknown_fields, &out); in InterpretSingleOption()
[all …]
Ddescriptor.pb.cc1014 unknown_fields(), output); in SerializeWithCachedSizes()
1031 unknown_fields(), target); in SerializeWithCachedSizesToArray()
1052 unknown_fields()); in ByteSize()
1080 mutable_unknown_fields()->MergeFrom(from.unknown_fields()); in MergeFrom()
1602 unknown_fields(), output); in SerializeWithCachedSizes()
1709 unknown_fields(), target); in SerializeWithCachedSizesToArray()
1820 unknown_fields()); in ByteSize()
1876 mutable_unknown_fields()->MergeFrom(from.unknown_fields()); in MergeFrom()
2597 unknown_fields(), output); in SerializeWithCachedSizes()
2617 unknown_fields(), target); in SerializeWithCachedSizesToArray()
[all …]
Dextension_set_heavy.cc55 explicit MessageSetFieldSkipper(UnknownFieldSet* unknown_fields) in MessageSetFieldSkipper() argument
56 : UnknownFieldSetFieldSkipper(unknown_fields) {} in MessageSetFieldSkipper()
291 UnknownFieldSet* unknown_fields) { in ParseField() argument
292 UnknownFieldSetFieldSkipper skipper(unknown_fields); in ParseField()
306 UnknownFieldSet* unknown_fields) { in ParseMessageSet() argument
307 MessageSetFieldSkipper skipper(unknown_fields); in ParseMessageSet()
Ddescriptor.pb.h195 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { in unknown_fields() function
196 return _internal_metadata_.unknown_fields(); in unknown_fields()
287 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { in unknown_fields() function
288 return _internal_metadata_.unknown_fields(); in unknown_fields()
530 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { in unknown_fields() function
531 return _internal_metadata_.unknown_fields(); in unknown_fields()
629 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { in unknown_fields() function
630 return _internal_metadata_.unknown_fields(); in unknown_fields()
728 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { in unknown_fields() function
729 return _internal_metadata_.unknown_fields(); in unknown_fields()
[all …]
Dtext_format.cc1473 const UnknownFieldSet& unknown_fields, in PrintUnknownFieldsToString() argument
1479 return PrintUnknownFields(unknown_fields, &output_stream); in PrintUnknownFieldsToString()
1493 const UnknownFieldSet& unknown_fields, in PrintUnknownFields() argument
1497 PrintUnknownFields(unknown_fields, generator); in PrintUnknownFields()
1841 const UnknownFieldSet& unknown_fields, in PrintUnknownFields() argument
1843 return Printer().PrintUnknownFields(unknown_fields, output); in PrintUnknownFields()
1852 const UnknownFieldSet& unknown_fields, string* output) { in PrintUnknownFieldsToString() argument
1853 return Printer().PrintUnknownFieldsToString(unknown_fields, output); in PrintUnknownFieldsToString()
1884 const UnknownFieldSet& unknown_fields, TextGenerator& generator) const { in PrintUnknownFields() argument
1885 for (int i = 0; i < unknown_fields.field_count(); i++) { in PrintUnknownFields()
[all …]
Dproto3_arena_unittest.cc143 UnknownFieldSet* unknown_fields = in TEST() local
146 unknown_fields->AddVarint(1, 2); in TEST()
Darena_unittest.cc303 EXPECT_TRUE(arena_message_3->unknown_fields().empty()); in TEST()
327 EXPECT_EQ(0, arena1_message->unknown_fields().field_count()); in TEST()
328 EXPECT_EQ(1, arena2_message->unknown_fields().field_count()); in TEST()
329 EXPECT_EQ(42, arena2_message->unknown_fields().field(0).varint()); in TEST()
339 EXPECT_EQ(1, arena1_message->unknown_fields().field_count()); in TEST()
340 EXPECT_EQ(1, arena2_message->unknown_fields().field_count()); in TEST()
341 EXPECT_EQ(84, arena1_message->unknown_fields().field(0).varint()); in TEST()
342 EXPECT_EQ(42, arena2_message->unknown_fields().field(0).varint()); in TEST()
Dwire_format_unittest.cc440 EXPECT_EQ(0, raw.unknown_fields().field_count()); in TEST()
553 ASSERT_EQ(1, message_set.unknown_fields().field_count()); in TEST()
555 message_set.unknown_fields().field(0).type()); in TEST()
556 EXPECT_EQ("bar", message_set.unknown_fields().field(0).length_delimited()); in TEST()
1094 UnknownFieldSet unknown_fields; in TEST_F() local
1095 EXPECT_FALSE(WireFormat::SkipMessage(&coded_input, &unknown_fields)); in TEST_F()
/external/perfetto/src/tracing/core/
Dtrace_config.cc95 unknown_fields_ = proto.unknown_fields(); in FromProto()
177 unknown_fields_ = proto.unknown_fields(); in FromProto()
217 unknown_fields_ = proto.unknown_fields(); in FromProto()
259 unknown_fields_ = proto.unknown_fields(); in FromProto()
313 unknown_fields_ = proto.unknown_fields(); in FromProto()
361 unknown_fields_ = proto.unknown_fields(); in FromProto()
Dcommit_data_request.cc60 unknown_fields_ = proto.unknown_fields(); in FromProto()
106 unknown_fields_ = proto.unknown_fields(); in FromProto()
160 unknown_fields_ = proto.unknown_fields(); in FromProto()
210 unknown_fields_ = proto.unknown_fields(); in FromProto()
Dinode_file_config.cc76 unknown_fields_ = proto.unknown_fields(); in FromProto()
142 unknown_fields_ = proto.unknown_fields(); in FromProto()
Ddata_source_descriptor.cc49 unknown_fields_ = proto.unknown_fields(); in FromProto()
Dchrome_config.cc45 unknown_fields_ = proto.unknown_fields(); in FromProto()
Dprocess_stats_config.cc65 unknown_fields_ = proto.unknown_fields(); in FromProto()
/external/protobuf/python/google/protobuf/internal/
Dunknown_fields_test.py154 self.unknown_fields = self.empty_message._unknown_fields
166 for tag_bytes, value in self.unknown_fields:
265 self.unknown_fields = self.missing_message._unknown_fields
277 for tag_bytes, value in self.unknown_fields:
/external/protobuf/src/google/protobuf/compiler/
Dplugin.pb.cc371 unknown_fields(), output); in SerializeWithCachedSizes()
409 unknown_fields(), target); in SerializeWithCachedSizesToArray()
444 unknown_fields()); in ByteSize()
479 mutable_unknown_fields()->MergeFrom(from.unknown_fields()); in MergeFrom()
876 unknown_fields(), output); in SerializeWithCachedSizes()
919 unknown_fields(), target); in SerializeWithCachedSizesToArray()
955 unknown_fields()); in ByteSize()
996 mutable_unknown_fields()->MergeFrom(from.unknown_fields()); in MergeFrom()
1206 unknown_fields(), output); in SerializeWithCachedSizes()
1234 unknown_fields(), target); in SerializeWithCachedSizesToArray()
[all …]
Dplugin.pb.h60 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { in unknown_fields() function
61 return _internal_metadata_.unknown_fields(); in unknown_fields()
184 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { in unknown_fields() function
185 return _internal_metadata_.unknown_fields(); in unknown_fields()
308 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { in unknown_fields() function
309 return _internal_metadata_.unknown_fields(); in unknown_fields()
/external/protobuf/src/google/protobuf/compiler/java/
Djava_enum_lite.cc54 if (descriptor->options().unknown_fields().field_count() > 0) return true; in EnumHasCustomOptions()
57 if (value->options().unknown_fields().field_count() > 0) return true; in EnumHasCustomOptions()
Djava_enum.cc54 if (descriptor->options().unknown_fields().field_count() > 0) return true; in EnumHasCustomOptions()
57 if (value->options().unknown_fields().field_count() > 0) return true; in EnumHasCustomOptions()

12