Home
last modified time | relevance | path

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

/frameworks/base/tools/aapt2/cmd/
DUtil.cpp159 std::unique_ptr<xml::Element> manifest_el = util::make_unique<xml::Element>(); in GenerateSplitManifest() local
160 manifest_el->namespace_decls.push_back(CreateAndroidNamespaceDecl()); in GenerateSplitManifest()
161 manifest_el->name = "manifest"; in GenerateSplitManifest()
162 manifest_el->attributes.push_back(xml::Attribute{"", "package", app_info.package}); in GenerateSplitManifest()
166 manifest_el->attributes.push_back(xml::Attribute{ in GenerateSplitManifest()
174 manifest_el->attributes.push_back(xml::Attribute{ in GenerateSplitManifest()
190 manifest_el->attributes.push_back(xml::Attribute{"", "split", split_name.str()}); in GenerateSplitManifest()
193 manifest_el->attributes.push_back( in GenerateSplitManifest()
202 manifest_el->attributes.push_back(xml::Attribute{"", "targetConfig", target_config_str.str()}); in GenerateSplitManifest()
210 manifest_el->AppendChild(std::move(application_el)); in GenerateSplitManifest()
[all …]
DLink.cpp766 xml::Element* manifest_el = xml::FindRootElement(xml_res->root.get()); in ExtractAppInfoFromManifest() local
767 if (manifest_el == nullptr) { in ExtractAppInfoFromManifest()
773 if (!manifest_el->namespace_uri.empty() || manifest_el->name != "manifest") { in ExtractAppInfoFromManifest()
778 xml::Attribute* package_attr = manifest_el->FindAttribute({}, "package"); in ExtractAppInfoFromManifest()
787 manifest_el->FindAttribute(xml::kSchemaAndroid, "versionCode")) { in ExtractAppInfoFromManifest()
790 diag->Error(DiagMessage(xml_res->file.source.WithLine(manifest_el->line_number)) in ExtractAppInfoFromManifest()
798 manifest_el->FindAttribute(xml::kSchemaAndroid, "revisionCode")) { in ExtractAppInfoFromManifest()
801 diag->Error(DiagMessage(xml_res->file.source.WithLine(manifest_el->line_number)) in ExtractAppInfoFromManifest()
808 if (xml::Attribute* split_name_attr = manifest_el->FindAttribute({}, "split")) { in ExtractAppInfoFromManifest()
814 if (xml::Element* uses_sdk_el = manifest_el->FindChild({}, "uses-sdk")) { in ExtractAppInfoFromManifest()
/frameworks/base/tools/aapt2/xml/
DXmlActionExecutor_test.cpp31 Element* manifest_el = nullptr; in TEST() local
33 manifest_el = manifest; in TEST()
48 ASSERT_THAT(manifest_el, NotNull()); in TEST()
49 EXPECT_EQ(std::string("manifest"), manifest_el->name); in TEST()
/frameworks/base/tools/aapt2/link/
DManifestFixer.cpp373 static bool RenameManifestPackage(const StringPiece& package_override, xml::Element* manifest_el) { in RenameManifestPackage() argument
374 xml::Attribute* attr = manifest_el->FindAttribute({}, "package"); in RenameManifestPackage()
384 manifest_el->Accept(&visitor); in RenameManifestPackage()