Home
last modified time | relevance | path

Searched refs:pb_attr (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/tools/aapt2/format/proto/
DProtoSerialize.cpp545 pb::Attribute* pb_attr = out_value_->mutable_compound_value()->mutable_attr(); in Visit() local
546 pb_attr->set_format_flags(attr->type_mask); in Visit()
547 pb_attr->set_min_int(attr->min_int); in Visit()
548 pb_attr->set_max_int(attr->max_int); in Visit()
551 pb::Attribute_Symbol* pb_symbol = pb_attr->add_symbol(); in Visit()
677 pb::XmlAttribute* pb_attr = pb_element->add_attribute(); in SerializeXmlToPb() local
678 pb_attr->set_name(attr.name); in SerializeXmlToPb()
679 pb_attr->set_namespace_uri(attr.namespace_uri); in SerializeXmlToPb()
680 pb_attr->set_value(attr.value); in SerializeXmlToPb()
683 pb_attr->set_resource_id(attr_id.id); in SerializeXmlToPb()
[all …]
DProtoDeserialize.cpp700 const pb::Attribute& pb_attr = pb_compound_value.attr(); in DeserializeValueFromPb() local
701 std::unique_ptr<Attribute> attr = util::make_unique<Attribute>(pb_attr.format_flags()); in DeserializeValueFromPb()
702 attr->min_int = pb_attr.min_int(); in DeserializeValueFromPb()
703 attr->max_int = pb_attr.max_int(); in DeserializeValueFromPb()
704 for (const pb::Attribute_Symbol& pb_symbol : pb_attr.symbol()) { in DeserializeValueFromPb()
971 for (const pb::XmlAttribute& pb_attr : pb_el.attribute()) { in DeserializeXmlFromPb() local
973 attr.name = pb_attr.name(); in DeserializeXmlFromPb()
974 attr.namespace_uri = pb_attr.namespace_uri(); in DeserializeXmlFromPb()
975 attr.value = pb_attr.value(); in DeserializeXmlFromPb()
976 if (pb_attr.resource_id() != 0u) { in DeserializeXmlFromPb()
[all …]