Lines Matching refs:xml

25 static xml::Attribute CopyAttr(const xml::Attribute& src, StringPool* out_string_pool) {  in CopyAttr()
26 xml::Attribute dst{src.namespace_uri, src.name, src.value, src.compiled_attribute}; in CopyAttr()
35 static bool CopyAttribute(const xml::Attribute& src_attr, bool generated, xml::Element* dst_el, in CopyAttribute()
37 xml::Attribute* dst_attr = dst_el->FindAttribute(src_attr.namespace_uri, src_attr.name); in CopyAttribute()
54 void XmlCompatVersioner::ProcessRule(const xml::Element& src_el, const xml::Attribute& src_attr, in ProcessRule()
57 xml::Element* dst_el, in ProcessRule()
102 std::unique_ptr<xml::XmlResource> XmlCompatVersioner::ProcessDoc( in ProcessDoc()
103 ApiVersion target_api, ApiVersion max_api, xml::XmlResource* doc, in ProcessDoc()
107 std::unique_ptr<xml::XmlResource> cloned_doc = util::make_unique<xml::XmlResource>(doc->file); in ProcessDoc()
110 cloned_doc->root = doc->root->CloneElement([&](const xml::Element& el, xml::Element* out_el) { in ProcessDoc()
130 std::vector<std::unique_ptr<xml::XmlResource>> XmlCompatVersioner::Process( in Process()
131 IAaptContext* context, xml::XmlResource* doc, util::Range<ApiVersion> api_range) { in Process()
136 std::vector<std::unique_ptr<xml::XmlResource>> versioned_docs; in Process()
164 std::vector<DegradeResult> DegradeToManyRule::Degrade(const xml::Element& src_el, in Degrade()
165 const xml::Attribute& src_attr, in Degrade()
171 DegradeResult{xml::Attribute{xml::kSchemaAndroid, attr.name, src_attr.value, in Degrade()
172 xml::AaptAttribute{attr.attr, attr.id}, in Degrade()