Home
last modified time | relevance | path

Searched refs:field_count (Results 1 – 25 of 73) sorted by relevance

123

/external/protobuf/src/google/protobuf/compiler/javanano/
Djavanano_message.cc68 new const FieldDescriptor*[descriptor->field_count()]; in SortFieldsByNumber()
69 for (int i = 0; i < descriptor->field_count(); i++) { in SortFieldsByNumber()
72 sort(fields, fields + descriptor->field_count(), in SortFieldsByNumber()
194 for (int j = 0; j < oneof_desc->field_count(); j++) { in Generate()
265 for (int i = 0; i < descriptor_->field_count(); i++) { in Generate()
289 for (int i = 0; i < descriptor_->field_count(); i++) { in Generate()
348 if (descriptor_->field_count() == 0) { in GenerateMessageSerializationMethods()
363 for (int i = 0; i < descriptor_->field_count(); i++) { in GenerateMessageSerializationMethods()
383 for (int i = 0; i < descriptor_->field_count(); i++) { in GenerateMessageSerializationMethods()
442 for (int i = 0; i < descriptor_->field_count(); i++) { in GenerateMergeFromMethods()
[all …]
Djavanano_field.cc79 new scoped_ptr<FieldGenerator>[descriptor->field_count()]) { in FieldGeneratorMap()
84 for (int i = 0; i < descriptor->field_count(); i++) { in FieldGeneratorMap()
/external/protobuf/src/google/protobuf/compiler/javamicro/
Djavamicro_message.cc75 new const FieldDescriptor*[descriptor->field_count()]; in SortFieldsByNumber()
76 for (int i = 0; i < descriptor->field_count(); i++) { in SortFieldsByNumber()
79 sort(fields, fields + descriptor->field_count(), in SortFieldsByNumber()
117 for (int i = 0; i < type->field_count(); i++) { in HasRequiredFields()
208 for (int i = 0; i < descriptor_->field_count(); i++) { in Generate()
239 if (descriptor_->field_count() > 0) { in GenerateMessageSerializationMethods()
252 for (int i = 0; i < descriptor_->field_count(); i++) { in GenerateMessageSerializationMethods()
275 for (int i = 0; i < descriptor_->field_count(); i++) { in GenerateMessageSerializationMethods()
327 for (int i = 0; i < descriptor_->field_count(); i++) { in GenerateMergeFromMethods()
387 for (int i = 0; i < descriptor_->field_count(); i++) { in GenerateClear()
[all …]
Djavamicro_field.cc52 new scoped_ptr<FieldGenerator>[descriptor->field_count()]), in FieldGeneratorMap()
57 for (int i = 0; i < descriptor->field_count(); i++) { in FieldGeneratorMap()
/external/protobuf/src/google/protobuf/
Dunknown_field_set_unittest.cc72 for (int i = 0; i < unknown_fields_->field_count(); i++) { in GetField()
87 for (int i = 0; i < unknown_fields_->field_count(); i++) { in GetBizarroData()
123 ASSERT_LT(pos, unknown_fields_->field_count()); in TEST_F()
132 ASSERT_LT(pos, unknown_fields_->field_count()); in TEST_F()
137 EXPECT_EQ(unknown_fields_->field_count(), pos); in TEST_F()
177 ASSERT_EQ(1, field->group().field_count()); 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()
[all …]
Dreflection_ops_unittest.cc159 ASSERT_EQ(2, message1.unknown_fields().field_count()); 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()
297 .unknown_fields().field_count()); in TEST()
299 .unknown_fields().field_count()); in TEST()
316 EXPECT_EQ(1, message.unknown_fields().field_count()); in TEST()
319 .unknown_fields().field_count()); in TEST()
[all …]
Ddynamic_message.cc347 for (int i = 0; i < descriptor->field_count(); i++) { in SharedCtor()
439 for (int i = 0; i < descriptor->field_count(); i++) { in ~DynamicMessage()
448 descriptor->field_count() + field->containing_oneof()->index()]); in ~DynamicMessage()
542 for (int i = 0; i < descriptor->field_count(); i++) { in CrossLinkPrototypes()
667 int* offsets = new int[type->field_count() + type->oneof_decl_count()]; in GetPrototypeNoLock()
682 DivideRoundingUp(type->field_count(), bitsizeof(uint32)); in GetPrototypeNoLock()
714 for (int i = 0; i < type->field_count(); i++) { in GetPrototypeNoLock()
728 offsets[type->field_count() + i] = size; in GetPrototypeNoLock()
760 for (int j = 0; j < type->oneof_decl(i)->field_count(); j++) { in GetPrototypeNoLock()
814 for (int j = 0; j < type->oneof_decl(i)->field_count(); j++) { in ConstructDefaultOneofInstance()
[all …]
Dunknown_field_set.cc97 int other_field_count = other.field_count(); in InternalMergeFrom()
108 int other_field_count = other.field_count(); in MergeFrom()
121 int other_field_count = other->field_count(); in MergeFromAndDestroy()
/external/protobuf/src/google/protobuf/compiler/objectivec/
Dobjectivec_message.cc155 new const FieldDescriptor* [descriptor->field_count()]; in SortFieldsByNumber()
156 for (int i = 0; i < descriptor->field_count(); i++) { in SortFieldsByNumber()
159 sort(fields, fields + descriptor->field_count(), FieldOrderingByNumber()); in SortFieldsByNumber()
167 new const FieldDescriptor* [descriptor->field_count()]; in SortFieldsByStorageSize()
168 for (int i = 0; i < descriptor->field_count(); i++) { in SortFieldsByStorageSize()
171 sort(fields, fields + descriptor->field_count(), in SortFieldsByStorageSize()
235 for (int i = 0; i < descriptor_->field_count(); i++) { in DetermineForwardDeclarations()
293 if (descriptor_->field_count()) { in GenerateMessageHeader()
301 for (int i = 0; i < descriptor_->field_count(); i++) { in GenerateMessageHeader()
330 for (int i = 0; i < descriptor_->field_count(); i++) { in GenerateMessageHeader()
[all …]
Dobjectivec_field.cc414 new scoped_ptr<FieldGenerator>[descriptor->field_count()]), in FieldGeneratorMap()
418 for (int i = 0; i < descriptor->field_count(); i++) { in FieldGeneratorMap()
442 for (int i = 0; i < descriptor_->field_count(); i++) { in CalculateHasBits()
459 for (int i = 0; i < descriptor_->field_count(); i++) { in SetOneofIndexBase()
465 for (int i = 0; i < descriptor_->field_count(); i++) { in DoesAnyFieldHaveNonZeroDefault()
/external/protobuf/src/google/protobuf/compiler/cpp/
Dcpp_message.cc90 new const FieldDescriptor*[descriptor->field_count()]; in SortFieldsByNumber()
91 for (int i = 0; i < descriptor->field_count(); i++) { in SortFieldsByNumber()
94 std::sort(fields, fields + descriptor->field_count(), in SortFieldsByNumber()
134 for (int i = 0; i < type->field_count(); i++) { in HasRequiredFields()
408 for (int i = 0; i < descriptor->field_count(); i++) { in MessageGenerator()
470 for (int i = 0; i < descriptor_->field_count(); i++) { in GenerateDependentFieldAccessorDeclarations()
492 for (int i = 0; i < descriptor_->field_count(); i++) { in GenerateFieldAccessorDeclarations()
566 for (int i = 0; i < descriptor_->field_count(); i++) { in GenerateDependentFieldAccessorDefinitions()
747 for (int i = 0; i < descriptor_->field_count(); i++) { in GenerateFieldAccessorDefinitions()
881 vars["field_count"] = SimpleItoa(descriptor_->field_count()); in GenerateClassDefinition()
[all …]
Dcpp_field.cc128 new google::protobuf::scoped_ptr<FieldGenerator>[descriptor->field_count()]) { in FieldGeneratorMap()
130 for (int i = 0; i < descriptor->field_count(); i++) { in FieldGeneratorMap()
/external/protobuf/src/google/protobuf/compiler/java/
Djava_message_lite.cc142 for (int i = 0; i < descriptor_->field_count(); i++) { in GenerateInterface()
222 for (int i = 0; i < descriptor_->field_count(); i++) { in Generate()
250 for (int j = 0; j < descriptor_->oneof_decl(i)->field_count(); j++) { in Generate()
279 for (int j = 0; j < descriptor_->oneof_decl(i)->field_count(); j++) { in Generate()
315 for (int i = 0; i < descriptor_->field_count(); i++) { in Generate()
507 i < descriptor_->field_count() || j < sorted_extensions.size(); in GenerateMessageSerializationMethods()
509 if (i == descriptor_->field_count()) { in GenerateMessageSerializationMethods()
536 for (int i = 0; i < descriptor_->field_count(); i++) { in GenerateMessageSerializationMethods()
683 for (int i = 0; i < descriptor_->field_count(); i++) { in GenerateDynamicMethodIsInitialized()
700 for (int i = 0; i < descriptor_->field_count(); i++) { in GenerateDynamicMethodIsInitialized()
[all …]
Djava_message.cc214 *bytecode_estimate += 10 + 6 * descriptor_->field_count() in GenerateFieldAccessorTable()
228 for (int i = 0; i < descriptor_->field_count(); i++) { in GenerateFieldAccessorTableInitializer()
269 for (int i = 0; i < descriptor_->field_count(); i++) { in GenerateInterface()
385 for (int i = 0; i < descriptor_->field_count(); i++) { in Generate()
413 for (int j = 0; j < descriptor_->oneof_decl(i)->field_count(); j++) { in Generate()
442 for (int j = 0; j < descriptor_->oneof_decl(i)->field_count(); j++) { in Generate()
477 for (int i = 0; i < descriptor_->field_count(); i++) { in Generate()
592 i < descriptor_->field_count() || j < sorted_extensions.size(); in GenerateMessageSerializationMethods()
594 if (i == descriptor_->field_count()) { in GenerateMessageSerializationMethods()
626 for (int i = 0; i < descriptor_->field_count(); i++) { in GenerateMessageSerializationMethods()
[all …]
Djava_message_builder.cc155 for (int i = 0; i < descriptor_->field_count(); i++) { in Generate()
166 for (int i = 0; i < descriptor_->field_count(); i++) { in Generate()
210 for (int i = 0; i < descriptor_->field_count(); i++) { in GenerateDescriptorMethods()
309 for (int i = 0; i < descriptor_->field_count(); i++) { in GenerateCommonBuilderMethods()
328 for (int i = 0; i < descriptor_->field_count(); i++) { in GenerateCommonBuilderMethods()
387 for (int i = 0; i < descriptor_->field_count(); i++) { in GenerateCommonBuilderMethods()
412 for (int i = 0; i < descriptor_->field_count(); i++) { in GenerateCommonBuilderMethods()
464 for (int i = 0; i < descriptor_->field_count(); i++) { in GenerateCommonBuilderMethods()
479 for (int j = 0; j < descriptor_->oneof_decl(i)->field_count(); j++) { in GenerateCommonBuilderMethods()
564 for (int i = 0; i < descriptor_->field_count(); i++) { in GenerateIsInitialized()
[all …]
Djava_field.cc250 ImmutableFieldGenerator>[descriptor->field_count()]) { in FieldGeneratorMap()
256 for (int i = 0; i < descriptor->field_count(); i++) { in FieldGeneratorMap()
273 ImmutableFieldLiteGenerator>[descriptor->field_count()]) { in FieldGeneratorMap()
278 for (int i = 0; i < descriptor->field_count(); i++) { in FieldGeneratorMap()
Djava_message_builder_lite.cc135 for (int i = 0; i < descriptor_->field_count(); i++) { in Generate()
146 for (int i = 0; i < descriptor_->field_count(); i++) { in Generate()
Djava_helpers.cc689 new const FieldDescriptor*[descriptor->field_count()]; in SortFieldsByNumber()
690 for (int i = 0; i < descriptor->field_count(); i++) { in SortFieldsByNumber()
693 std::sort(fields, fields + descriptor->field_count(), in SortFieldsByNumber()
724 for (int i = 0; i < type->field_count(); i++) { in HasRequiredFields()
745 for (int i = 0; i < descriptor->field_count(); ++i) { in HasRepeatedFields()
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()
/external/protobuf/src/google/protobuf/compiler/csharp/
Dcsharp_message.cc69 for (int i = 0; i < descriptor_->field_count(); i++) { in MessageGenerator()
75 for (int i = 0; i < descriptor_->field_count(); i++) { in MessageGenerator()
153 for (int i = 0; i < descriptor_->field_count(); i++) { in Generate()
181 for (int j = 0; j < descriptor_->oneof_decl(i)->field_count(); j++) { in Generate()
264 for (int i = 0; i < descriptor_->field_count(); i++) { in GenerateCloningCode()
278 for (int j = 0; j < descriptor_->oneof_decl(i)->field_count(); j++) { in GenerateCloningCode()
325 for (int i = 0; i < descriptor_->field_count(); i++) { in GenerateFrameworkMethods()
345 for (int i = 0; i < descriptor_->field_count(); i++) { in GenerateFrameworkMethods()
384 for (int i = 0; i < descriptor_->field_count(); i++) { in GenerateMessageSerializationMethods()
410 for (int i = 0; i < descriptor_->field_count(); i++) { in GenerateMergingMethods()
[all …]
/external/tensorflow/tensorflow/core/kernels/
Ddecode_proto_op.cc727 int field_count = fields_.size(); in Compute() local
735 sizes_shape.AddDim(field_count); in Compute()
775 std::vector<int32> max_sizes(field_count, 1); in Compute()
787 std::vector<Tensor*> outputs(field_count); in Compute()
788 for (int fi = 0; fi < field_count; ++fi) { in Compute()
833 int field_count = fields_.size(); in CountFields() local
838 std::vector<int32> field_sizes(field_count, 0); in CountFields()
840 counters.reserve(field_count); in CountFields()
841 for (int i = 0; i < field_count; i++) { in CountFields()
858 for (int fi = 0; fi < field_count; fi++) { in CountFields()
[all …]
/external/libprotobuf-mutator/src/
Dmutator.cc159 message->GetDescriptor()->field_count() == 0); in MutationSampler()
173 int field_count = descriptor->field_count(); in Sample() local
174 for (int i = 0; i < field_count; ++i) { in Sample()
179 assert(oneof->field_count()); in Sample()
184 oneof->field(GetRandomIndex(random_, oneof->field_count())); in Sample()
190 if (oneof->field_count() < 2) break; in Sample()
290 int field_count = descriptor->field_count(); in Sample() local
291 for (int i = 0; i < field_count; ++i) { in Sample()
514 for (int i = 0; i < descriptor->field_count(); ++i) { in CrossOverImpl()
583 for (int i = 0; i < descriptor->field_count(); ++i) { in InitializeAndTrim()
/external/perfetto/tools/proto_to_cpp/
Dproto_to_cpp.cc106 for (int i = 0; i < msg->field_count(); i++) { in GenFwdDecl()
282 for (int i = 0; i < msg->field_count(); i++) { in GenHeader()
324 for (int i = 0; i < msg->field_count(); i++) { in GenHeader()
362 for (int i = 0; i < msg->field_count(); i++) { in GenHeader()
404 for (int i = 0; i < msg->field_count(); i++) { in GenCpp()
421 for (int i = 0; i < msg->field_count(); i++) { in GenCpp()
462 for (int i = 0; i < msg->field_count(); i++) { in GenCpp()
498 for (int i = 0; i < msg->field_count(); i++) { in GenCpp()
/external/perfetto/tools/ftrace_proto_gen/
Dftrace_descriptor_gen.cc31 for (int i = 0; i < one_of_event->field_count(); i++) in GenerateFtraceDescriptors()
62 for (int j = 0; j < event_descriptor->field_count(); j++) in GenerateFtraceDescriptors()
/external/perfetto/src/protozero/protoc_plugin/
Dprotozero_generator.cc234 for (int i = 0; i < message->field_count(); ++i) { in CollectDependencies()
470 for (int i = 0; i < message->field_count(); ++i) { in GenerateDecoder()
491 for (int i = 0; i < message->field_count(); ++i) { in GenerateDecoder()
578 const bool has_fields = (message->field_count() > 0); in GenerateConstantsForMessageFields()
585 for (int i = 0; i < message->field_count(); ++i) { in GenerateConstantsForMessageFields()
636 for (int i = 0; i < message->field_count(); ++i) { in GenerateMessageDescriptor()

123