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.cpp630 pb::Attribute* pb_attr = out_value_->mutable_compound_value()->mutable_attr(); in Visit() local
631 pb_attr->set_format_flags(attr->type_mask); in Visit()
632 pb_attr->set_min_int(attr->min_int); in Visit()
633 pb_attr->set_max_int(attr->max_int); in Visit()
636 pb::Attribute_Symbol* pb_symbol = pb_attr->add_symbol(); in Visit()
768 pb::XmlAttribute* pb_attr = pb_element->add_attribute(); in SerializeXmlToPb() local
769 pb_attr->set_name(attr.name); in SerializeXmlToPb()
770 pb_attr->set_namespace_uri(attr.namespace_uri); in SerializeXmlToPb()
771 pb_attr->set_value(attr.value); in SerializeXmlToPb()
774 pb_attr->set_resource_id(attr_id.id); in SerializeXmlToPb()
[all …]
DProtoDeserialize.cpp755 const pb::Attribute& pb_attr = pb_compound_value.attr(); in DeserializeValueFromPb() local
756 std::unique_ptr<Attribute> attr = util::make_unique<Attribute>(pb_attr.format_flags()); in DeserializeValueFromPb()
757 attr->min_int = pb_attr.min_int(); in DeserializeValueFromPb()
758 attr->max_int = pb_attr.max_int(); in DeserializeValueFromPb()
759 for (const pb::Attribute_Symbol& pb_symbol : pb_attr.symbol()) { in DeserializeValueFromPb()
1041 for (const pb::XmlAttribute& pb_attr : pb_el.attribute()) { in DeserializeXmlFromPb() local
1043 attr.name = pb_attr.name(); in DeserializeXmlFromPb()
1044 attr.namespace_uri = pb_attr.namespace_uri(); in DeserializeXmlFromPb()
1045 attr.value = pb_attr.value(); in DeserializeXmlFromPb()
1046 if (pb_attr.resource_id() != 0u) { in DeserializeXmlFromPb()
[all …]