Home
last modified time | relevance | path

Searched refs:field (Results 1 – 25 of 522) sorted by relevance

12345678910>>...21

/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/
Dgenerated_message_reflection.cc56 bool IsMapFieldInApi(const FieldDescriptor* field) { in IsMapFieldInApi() argument
57 return field->is_map(); in IsMapFieldInApi()
88 const Descriptor* descriptor, const FieldDescriptor* field, in ReportReflectionUsageError() argument
94 " Field : " << field->full_name() << "\n" in ReportReflectionUsageError()
113 const Descriptor* descriptor, const FieldDescriptor* field, in ReportReflectionUsageTypeError() argument
120 " Field : " << field->full_name() << "\n" in ReportReflectionUsageTypeError()
123 " Field type: " << cpptype_names_[field->cpp_type()]; in ReportReflectionUsageTypeError()
127 const Descriptor* descriptor, const FieldDescriptor* field, in ReportReflectionUsageEnumTypeError() argument
133 " Field : " << field->full_name() << "\n" in ReportReflectionUsageEnumTypeError()
135 " Expected : " << field->enum_type()->full_name() << "\n" in ReportReflectionUsageEnumTypeError()
[all …]
Dgenerated_message_reflection.h219 bool HasField(const Message& message, const FieldDescriptor* field) const;
220 int FieldSize(const Message& message, const FieldDescriptor* field) const;
221 void ClearField(Message* message, const FieldDescriptor* field) const;
224 void ClearOneof(Message* message, const OneofDescriptor* field) const;
225 void RemoveLast(Message* message, const FieldDescriptor* field) const;
226 Message* ReleaseLast(Message* message, const FieldDescriptor* field) const;
230 void SwapElements(Message* message, const FieldDescriptor* field,
236 const FieldDescriptor* field) const;
238 const FieldDescriptor* field) const;
240 const FieldDescriptor* field) const;
[all …]
Dwire_format.cc182 const UnknownField& field = unknown_fields.field(i); in SerializeUnknownFields() local
183 switch (field.type()) { in SerializeUnknownFields()
185 output->WriteVarint32(WireFormatLite::MakeTag(field.number(), in SerializeUnknownFields()
187 output->WriteVarint64(field.varint()); in SerializeUnknownFields()
190 output->WriteVarint32(WireFormatLite::MakeTag(field.number(), in SerializeUnknownFields()
192 output->WriteLittleEndian32(field.fixed32()); in SerializeUnknownFields()
195 output->WriteVarint32(WireFormatLite::MakeTag(field.number(), in SerializeUnknownFields()
197 output->WriteLittleEndian64(field.fixed64()); in SerializeUnknownFields()
200 output->WriteVarint32(WireFormatLite::MakeTag(field.number(), in SerializeUnknownFields()
202 output->WriteVarint32(field.length_delimited().size()); in SerializeUnknownFields()
[all …]
Drepeated_field_unittest.cc61 RepeatedField<int> field; in TEST() local
63 EXPECT_TRUE(field.empty()); in TEST()
64 EXPECT_EQ(field.size(), 0); in TEST()
66 field.Add(5); in TEST()
68 EXPECT_FALSE(field.empty()); in TEST()
69 EXPECT_EQ(field.size(), 1); in TEST()
70 EXPECT_EQ(field.Get(0), 5); in TEST()
72 field.Add(42); in TEST()
74 EXPECT_FALSE(field.empty()); in TEST()
75 EXPECT_EQ(field.size(), 2); in TEST()
[all …]
Dmessage.h424 const FieldDescriptor* field) const = 0;
428 const FieldDescriptor* field) const = 0;
433 const FieldDescriptor* field) const = 0;
463 const FieldDescriptor* field) const = 0;
467 const FieldDescriptor* field) const = 0;
480 const FieldDescriptor* field,
498 const FieldDescriptor* field) const = 0;
500 const FieldDescriptor* field) const = 0;
502 const FieldDescriptor* field) const = 0;
504 const FieldDescriptor* field) const = 0;
[all …]
Dreflection_ops.cc69 const FieldDescriptor* field = fields[i]; in Merge() local
71 if (field->is_repeated()) { in Merge()
72 int count = from_reflection->FieldSize(from, field); in Merge()
74 switch (field->cpp_type()) { in Merge()
77 to_reflection->Add##METHOD(to, field, \ in Merge()
78 from_reflection->GetRepeated##METHOD(from, field, j)); \ in Merge()
93 to_reflection->AddMessage(to, field)->MergeFrom( in Merge()
94 from_reflection->GetRepeatedMessage(from, field, j)); in Merge()
99 switch (field->cpp_type()) { in Merge()
102 to_reflection->Set##METHOD(to, field, \ in Merge()
[all …]
Dunknown_field_set.cc125 const UnknownField& field = (*fields_)[i]; in SpaceUsedExcludingSelf() local
126 switch (field.type()) { in SpaceUsedExcludingSelf()
128 total_size += sizeof(*field.length_delimited_.string_value_) + in SpaceUsedExcludingSelf()
130 *field.length_delimited_.string_value_); in SpaceUsedExcludingSelf()
133 total_size += field.group_->SpaceUsed(); in SpaceUsedExcludingSelf()
147 UnknownField field; in AddVarint() local
148 field.number_ = number; in AddVarint()
149 field.SetType(UnknownField::TYPE_VARINT); in AddVarint()
150 field.varint_ = value; in AddVarint()
152 fields_->push_back(field); in AddVarint()
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/compiler/java/
Djava_field.cc71 const FieldDescriptor* field, int messageBitIndex, int builderBitIndex, in MakeImmutableGenerator() argument
73 if (field->is_repeated()) { in MakeImmutableGenerator()
74 switch (GetJavaType(field)) { in MakeImmutableGenerator()
76 if (IsMapEntry(field->message_type())) { in MakeImmutableGenerator()
78 field, messageBitIndex, builderBitIndex, context); in MakeImmutableGenerator()
80 if (IsLazy(field, context->EnforceLite())) { in MakeImmutableGenerator()
82 field, messageBitIndex, builderBitIndex, context); in MakeImmutableGenerator()
85 field, messageBitIndex, builderBitIndex, context); in MakeImmutableGenerator()
90 field, messageBitIndex, builderBitIndex, context); in MakeImmutableGenerator()
93 field, messageBitIndex, builderBitIndex, context); in MakeImmutableGenerator()
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/js/binary/
Dwriter.js132 jspb.BinaryWriter.prototype.beginDelimited_ = function(field) { argument
133 this.writeFieldHeader_(field, jspb.BinaryConstants.WireType.DELIMITED);
252 jspb.BinaryWriter.prototype.beginSubMessage = function(field) { argument
253 this.bookmarks_.push(this.beginDelimited_(field));
276 function(field, wireType) { argument
277 goog.asserts.assert(field >= 1 && field == Math.floor(field));
278 var x = field * 8 + wireType;
289 jspb.BinaryWriter.prototype.writeAny = function(fieldType, field, value) { argument
293 this.writeDouble(field, /** @type {number} */(value));
296 this.writeFloat(field, /** @type {number} */(value));
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/core/src/main/java/com/google/protobuf/
DMessageReflection.java58 for (final FieldDescriptor field : in writeMessageTo()
60 if (field.isRequired() && !fields.containsKey(field)) { in writeMessageTo()
61 fields.put(field, message.getField(field)); in writeMessageTo()
67 final Descriptors.FieldDescriptor field = entry.getKey(); in writeMessageTo() local
69 if (isMessageSet && field.isExtension() && in writeMessageTo()
70 field.getType() == Descriptors.FieldDescriptor.Type.MESSAGE && in writeMessageTo()
71 !field.isRepeated()) { in writeMessageTo()
72 output.writeMessageSetExtension(field.getNumber(), (Message) value); in writeMessageTo()
74 FieldSet.writeField(field, value, output); in writeMessageTo()
95 final Descriptors.FieldDescriptor field = entry.getKey(); in getSerializedSize() local
[all …]
DDynamicMessage.java177 FieldDescriptor field = oneofCases[oneof.getIndex()]; in hasOneof() local
178 if (field == null) { in hasOneof()
191 public boolean hasField(FieldDescriptor field) { in hasField() argument
192 verifyContainingType(field); in hasField()
193 return fields.hasField(field); in hasField()
197 public Object getField(FieldDescriptor field) { in getField() argument
198 verifyContainingType(field); in getField()
199 Object result = fields.getField(field); in getField()
201 if (field.isRepeated()) { in getField()
203 } else if (field.getJavaType() == FieldDescriptor.JavaType.MESSAGE) { in getField()
[all …]
DMapEntry.java189 for (final FieldDescriptor field : metadata.descriptor.getFields()) { in getAllFields()
190 if (hasField(field)) { in getAllFields()
191 result.put(field, getField(field)); in getAllFields()
197 private void checkFieldDescriptor(FieldDescriptor field) { in checkFieldDescriptor() argument
198 if (field.getContainingType() != metadata.descriptor) { in checkFieldDescriptor()
200 "Wrong FieldDescriptor \"" + field.getFullName() in checkFieldDescriptor()
206 public boolean hasField(FieldDescriptor field) { in hasField() argument
207 checkFieldDescriptor(field);; in hasField()
213 public Object getField(FieldDescriptor field) { in getField() argument
214 checkFieldDescriptor(field); in getField()
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/objectivec/
DGPBUtilities.h66 BOOL GPBMessageHasFieldSet(GPBMessage *self, GPBFieldDescriptor *field);
69 void GPBClearMessageField(GPBMessage *self, GPBFieldDescriptor *field);
82 NSData *GPBGetMessageBytesField(GPBMessage *self, GPBFieldDescriptor *field);
84 void GPBSetMessageBytesField(GPBMessage *self, GPBFieldDescriptor *field, NSData *value);
87 NSString *GPBGetMessageStringField(GPBMessage *self, GPBFieldDescriptor *field);
89 void GPBSetMessageStringField(GPBMessage *self, GPBFieldDescriptor *field, NSString *value);
92 GPBMessage *GPBGetMessageMessageField(GPBMessage *self, GPBFieldDescriptor *field);
94 void GPBSetMessageMessageField(GPBMessage *self, GPBFieldDescriptor *field, GPBMessage *value);
97 GPBMessage *GPBGetMessageGroupField(GPBMessage *self, GPBFieldDescriptor *field);
99 void GPBSetMessageGroupField(GPBMessage *self, GPBFieldDescriptor *field, GPBMessage *value);
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/compiler/js/
Djs_generator.cc288 const FieldDescriptor* field) { in SubmessageTypeRef() argument
289 GOOGLE_CHECK(field->cpp_type() == FieldDescriptor::CPPTYPE_MESSAGE); in SubmessageTypeRef()
290 return MaybeCrossFileRef(options, field->file(), field->message_type()); in SubmessageTypeRef()
430 bool IgnoreExtensionField(const FieldDescriptor* field) { in IgnoreExtensionField() argument
433 return field->is_extension() && in IgnoreExtensionField()
434 field->containing_type()->file()->name() == in IgnoreExtensionField()
442 bool IgnoreField(const FieldDescriptor* field) { in IgnoreField() argument
443 return IgnoreExtensionField(field); in IgnoreField()
455 if (!IgnoreField(oneof->field(i))) { in IgnoreOneof()
463 const FieldDescriptor* field, in JSIdent() argument
[all …]
/frameworks/base/tools/incident_section_gen/
Dmain.cpp116 const FieldDescriptor* field = descriptor->field(i); in generateIncidentSectionsCpp() local
117 sections[field->name()] = field; in generateIncidentSectionsCpp()
125 const FieldDescriptor* field = it->second; in generateIncidentSectionsCpp() local
126 printf(" { %d, \"%s\" }", field->number(), field->name().c_str()); in generateIncidentSectionsCpp()
176 static inline void printPrivacy(const string& name, const FieldDescriptor* field, const string& chi… in printPrivacy() argument
178 printf("Privacy %s = { %d, %d, %s, %d, %s };%s\n", name.c_str(), field->number(), field->type(), in printPrivacy()
183 static inline SectionFlags getSectionFlags(const FieldDescriptor* field) { in getSectionFlags() argument
184 return field->options().GetExtension(section); in getSectionFlags()
187 static inline PrivacyFlags getPrivacyFlags(const FieldDescriptor* field) { in getPrivacyFlags() argument
188 return field->options().GetExtension(privacy); in getPrivacyFlags()
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/ruby/ext/google/protobuf_c/
Dstorage.c60 static VALUE value_from_default(const upb_fielddef *field) { in value_from_default() argument
61 switch (upb_fielddef_type(field)) { in value_from_default()
62 case UPB_TYPE_FLOAT: return DBL2NUM(upb_fielddef_defaultfloat(field)); in value_from_default()
63 case UPB_TYPE_DOUBLE: return DBL2NUM(upb_fielddef_defaultdouble(field)); in value_from_default()
65 return upb_fielddef_defaultbool(field) ? Qtrue : Qfalse; in value_from_default()
68 const upb_enumdef *enumdef = upb_fielddef_enumsubdef(field); in value_from_default()
69 int32_t num = upb_fielddef_defaultint32(field); in value_from_default()
77 case UPB_TYPE_INT32: return INT2NUM(upb_fielddef_defaultint32(field)); in value_from_default()
78 case UPB_TYPE_INT64: return LL2NUM(upb_fielddef_defaultint64(field));; in value_from_default()
79 case UPB_TYPE_UINT32: return UINT2NUM(upb_fielddef_defaultuint32(field)); in value_from_default()
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/python/google/protobuf/internal/
Dpython_message.py170 for field in descriptor.fields:
171 _AttachFieldHelpers(cls, field)
265 def _IsMessageSetExtension(field): argument
266 return (field.is_extension and
267 field.containing_type.has_options and
268 field.containing_type.GetOptions().message_set_wire_format and
269 field.type == _FieldDescriptor.TYPE_MESSAGE and
270 field.label == _FieldDescriptor.LABEL_OPTIONAL)
273 def _IsMapField(field): argument
274 return (field.type == _FieldDescriptor.TYPE_MESSAGE and
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/compiler/cpp/
Dcpp_field.cc131 field_generators_[i].reset(MakeGenerator(descriptor->field(i), options)); in FieldGeneratorMap()
135 FieldGenerator* FieldGeneratorMap::MakeGenerator(const FieldDescriptor* field, in MakeGenerator() argument
137 if (field->is_repeated()) { in MakeGenerator()
138 switch (field->cpp_type()) { in MakeGenerator()
140 if (field->is_map()) { in MakeGenerator()
141 return new MapFieldGenerator(field, options); in MakeGenerator()
143 return new RepeatedMessageFieldGenerator(field, options); in MakeGenerator()
146 switch (field->options().ctype()) { in MakeGenerator()
149 return new RepeatedStringFieldGenerator(field, options); in MakeGenerator()
152 return new RepeatedEnumFieldGenerator(field, options); in MakeGenerator()
[all …]
Dcpp_message.cc67 void PrintFieldComment(io::Printer* printer, const T* field) { in PrintFieldComment() argument
74 string def = field->DebugStringWithOptions(options); in PrintFieldComment()
92 fields[i] = descriptor->field(i); in SortFieldsByNumber()
109 inline static bool ShouldIgnoreRequiredFieldCheck(const FieldDescriptor* field, in ShouldIgnoreRequiredFieldCheck() argument
135 const FieldDescriptor* field = type->field(i); in HasRequiredFields() local
136 if (field->is_required()) { in HasRequiredFields()
139 if (field->cpp_type() == FieldDescriptor::CPPTYPE_MESSAGE && in HasRequiredFields()
140 !ShouldIgnoreRequiredFieldCheck(field, options)) { in HasRequiredFields()
141 if (HasRequiredFields(field->message_type(), options, already_seen)) { in HasRequiredFields()
159 int EstimateAlignmentSize(const FieldDescriptor* field) { in EstimateAlignmentSize() argument
[all …]
Dcpp_helpers.cc189 string FieldName(const FieldDescriptor* field) { in FieldName() argument
190 string result = field->name(); in FieldName()
206 string FieldConstantName(const FieldDescriptor *field) { in FieldConstantName() argument
207 string field_name = UnderscoresToCamelCase(field->name(), true); in FieldConstantName()
210 if (!field->is_extension() && in FieldConstantName()
211 field->containing_type()->FindFieldByCamelcaseName( in FieldConstantName()
212 field->camelcase_name()) != field) { in FieldConstantName()
216 result += "_" + SimpleItoa(field->number()); in FieldConstantName()
222 bool IsFieldDependent(const FieldDescriptor* field) { in IsFieldDependent() argument
223 if (field->containing_oneof() != NULL && in IsFieldDependent()
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/util/
Dfield_comparator.cc61 const google::protobuf::FieldDescriptor* field, in Compare() argument
67 switch (field->cpp_type()) { in Compare()
69 if (field->is_repeated()) { \ in Compare()
71 *field, \ in Compare()
72 reflection_1->GetRepeated##METHOD(message_1, field, index_1), \ in Compare()
73 reflection_2->GetRepeated##METHOD(message_2, field, index_2))); \ in Compare()
76 *field, \ in Compare()
77 reflection_1->Get##METHOD(message_1, field), \ in Compare()
78 reflection_2->Get##METHOD(message_2, field))); \ in Compare()
95 if (field->is_repeated()) { in Compare()
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/php/ext/google/protobuf/
Dstorage.c264 const upb_msgdef* tryget_map_entry_msgdef(const upb_fielddef* field) { in tryget_map_entry_msgdef() argument
266 if (upb_fielddef_label(field) != UPB_LABEL_REPEATED || in tryget_map_entry_msgdef()
267 upb_fielddef_type(field) != UPB_TYPE_MESSAGE) { in tryget_map_entry_msgdef()
270 subdef = upb_fielddef_msgsubdef(field); in tryget_map_entry_msgdef()
274 const upb_msgdef* map_entry_msgdef(const upb_fielddef* field) { in map_entry_msgdef() argument
275 const upb_msgdef* subdef = tryget_map_entry_msgdef(field); in map_entry_msgdef()
280 bool is_map_field(const upb_fielddef* field) { in is_map_field() argument
281 return tryget_map_entry_msgdef(field) != NULL; in is_map_field()
304 const upb_fielddef* field = upb_msg_iter_field(&it); in create_layout() local
307 if (upb_fielddef_containingoneof(field)) { in create_layout()
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/python/google/protobuf/
Djson_format.py106 def _IsMapEntry(field): argument
107 return (field.type == descriptor.FieldDescriptor.TYPE_MESSAGE and
108 field.message_type.has_options and
109 field.message_type.GetOptions().map_entry)
139 for field, value in fields:
140 name = field.camelcase_name
141 if _IsMapEntry(field):
143 v_field = field.message_type.fields_by_name['value']
156 elif field.label == descriptor.FieldDescriptor.LABEL_REPEATED:
158 js[name] = [self._FieldToJsonObject(field, k)
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/compiler/javanano/
Djavanano_field.cc86 descriptor->field(i), params, &next_has_bit_index); in FieldGeneratorMap()
95 FieldGenerator* FieldGeneratorMap::MakeGenerator(const FieldDescriptor* field, in MakeGenerator() argument
97 JavaType java_type = GetJavaType(field); in MakeGenerator()
98 if (field->is_repeated()) { in MakeGenerator()
101 if (IsMapEntry(field->message_type())) { in MakeGenerator()
102 return new MapFieldGenerator(field, params); in MakeGenerator()
104 return new RepeatedMessageFieldGenerator(field, params); in MakeGenerator()
107 return new RepeatedEnumFieldGenerator(field, params); in MakeGenerator()
109 return new RepeatedPrimitiveFieldGenerator(field, params); in MakeGenerator()
111 } else if (field->containing_oneof()) { in MakeGenerator()
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/util/internal/
Dproto_writer.cc280 const google::protobuf::Field& field = type.fields(i); in GetRequiredFields() local
281 if (field.cardinality() == in GetRequiredFields()
283 required.insert(&field); in GetRequiredFields()
310 const google::protobuf::Field* field, in ProtoElement() argument
315 parent_field_(field), in ProtoElement()
320 !is_list && field->kind() == google::protobuf::Field_Kind_TYPE_MESSAGE in ProtoElement()
327 if (ow_->IsRepeated(*field)) { in ProtoElement()
332 this->parent()->RegisterField(field); in ProtoElement()
335 if (field->kind() == google::protobuf::Field_Kind_TYPE_MESSAGE) { in ProtoElement()
385 const google::protobuf::Field* field) { in RegisterField() argument
[all …]

12345678910>>...21