Home
last modified time | relevance | path

Searched refs:manifest_el (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/tools/aapt2/cmd/
DUtil.cpp149 std::unique_ptr<xml::Element> manifest_el = util::make_unique<xml::Element>(); in GenerateSplitManifest() local
150 manifest_el->name = "manifest"; in GenerateSplitManifest()
151 manifest_el->attributes.push_back(xml::Attribute{"", "package", app_info.package}); in GenerateSplitManifest()
155 manifest_el->attributes.push_back(xml::Attribute{ in GenerateSplitManifest()
163 manifest_el->attributes.push_back(xml::Attribute{ in GenerateSplitManifest()
175 manifest_el->attributes.push_back(xml::Attribute{"", "split", split_name.str()}); in GenerateSplitManifest()
178 manifest_el->attributes.push_back( in GenerateSplitManifest()
188 manifest_el->AppendChild(std::move(application_el)); in GenerateSplitManifest()
189 namespace_android->AppendChild(std::move(manifest_el)); in GenerateSplitManifest()
280 xml::Element* manifest_el = xml::FindRootElement(xml_res->root.get()); in ExtractAppInfoFromBinaryManifest() local
[all …]
DLink.cpp760 xml::Element* manifest_el = xml::FindRootElement(xml_res->root.get()); in ExtractAppInfoFromManifest() local
761 if (manifest_el == nullptr) { in ExtractAppInfoFromManifest()
767 if (!manifest_el->namespace_uri.empty() || manifest_el->name != "manifest") { in ExtractAppInfoFromManifest()
772 xml::Attribute* package_attr = manifest_el->FindAttribute({}, "package"); in ExtractAppInfoFromManifest()
781 manifest_el->FindAttribute(xml::kSchemaAndroid, "versionCode")) { in ExtractAppInfoFromManifest()
784 diag->Error(DiagMessage(xml_res->file.source.WithLine(manifest_el->line_number)) in ExtractAppInfoFromManifest()
792 manifest_el->FindAttribute(xml::kSchemaAndroid, "revisionCode")) { in ExtractAppInfoFromManifest()
795 diag->Error(DiagMessage(xml_res->file.source.WithLine(manifest_el->line_number)) in ExtractAppInfoFromManifest()
802 if (xml::Attribute* split_name_attr = manifest_el->FindAttribute({}, "split")) { in ExtractAppInfoFromManifest()
808 if (xml::Element* uses_sdk_el = manifest_el->FindChild({}, "uses-sdk")) { in ExtractAppInfoFromManifest()
/frameworks/base/tools/aapt2/xml/
DXmlActionExecutor_test.cpp29 Element* manifest_el = nullptr; in TEST() local
31 manifest_el = manifest; in TEST()
47 ASSERT_NE(nullptr, manifest_el); in TEST()
48 EXPECT_EQ(std::string("manifest"), manifest_el->name); in TEST()
/frameworks/base/tools/aapt2/link/
DManifestFixer.cpp367 static bool RenameManifestPackage(const StringPiece& package_override, xml::Element* manifest_el) { in RenameManifestPackage() argument
368 xml::Attribute* attr = manifest_el->FindAttribute({}, "package"); in RenameManifestPackage()
378 manifest_el->Accept(&visitor); in RenameManifestPackage()