Home
last modified time | relevance | path

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

/frameworks/base/tools/aapt2/cmd/
DUtil.cpp182 std::unique_ptr<xml::Element> manifest_el = util::make_unique<xml::Element>(); in GenerateSplitManifest() local
183 manifest_el->namespace_decls.push_back(CreateAndroidNamespaceDecl()); in GenerateSplitManifest()
184 manifest_el->name = "manifest"; in GenerateSplitManifest()
185 manifest_el->attributes.push_back(xml::Attribute{"", "package", app_info.package}); in GenerateSplitManifest()
189 manifest_el->attributes.push_back(xml::Attribute{ in GenerateSplitManifest()
197 manifest_el->attributes.push_back(xml::Attribute{ in GenerateSplitManifest()
205 manifest_el->attributes.push_back(xml::Attribute{ in GenerateSplitManifest()
221 manifest_el->attributes.push_back(xml::Attribute{"", "split", split_name.str()}); in GenerateSplitManifest()
224 manifest_el->attributes.push_back( in GenerateSplitManifest()
233 manifest_el->attributes.push_back(xml::Attribute{"", "targetConfig", target_config_str.str()}); in GenerateSplitManifest()
[all …]
DDump.h47 xml::Element* manifest_el = apk->GetManifest()->root.get(); in GetPackageName() local
48 if (!manifest_el) { in GetPackageName()
53 xml::Attribute* attr = manifest_el->FindAttribute({}, "package"); in GetPackageName()
DLink.cpp902 xml::Element* manifest_el = xml::FindRootElement(xml_res->root.get()); in ExtractAppInfoFromManifest() local
903 if (manifest_el == nullptr) { in ExtractAppInfoFromManifest()
909 if (!manifest_el->namespace_uri.empty() || manifest_el->name != "manifest") { in ExtractAppInfoFromManifest()
914 xml::Attribute* package_attr = manifest_el->FindAttribute({}, "package"); in ExtractAppInfoFromManifest()
923 manifest_el->FindAttribute(xml::kSchemaAndroid, "versionCode")) { in ExtractAppInfoFromManifest()
926 diag->Error(DiagMessage(xml_res->file.source.WithLine(manifest_el->line_number)) in ExtractAppInfoFromManifest()
934 manifest_el->FindAttribute(xml::kSchemaAndroid, "versionCodeMajor")) { in ExtractAppInfoFromManifest()
937 diag->Error(DiagMessage(xml_res->file.source.WithLine(manifest_el->line_number)) in ExtractAppInfoFromManifest()
946 manifest_el->FindAttribute(xml::kSchemaAndroid, "revisionCode")) { in ExtractAppInfoFromManifest()
949 diag->Error(DiagMessage(xml_res->file.source.WithLine(manifest_el->line_number)) in ExtractAppInfoFromManifest()
[all …]
/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/optimize/
DMultiApkGenerator.cpp270 xml::Element* manifest_el = manifest->root.get(); in UpdateManifest() local
271 if (!manifest_el) { in UpdateManifest()
275 if (!manifest_el->namespace_uri.empty() || manifest_el->name != "manifest") { in UpdateManifest()
281 auto version_code = manifest_el->FindAttribute(kSchemaAndroid, "versionCode"); in UpdateManifest()
294 auto version_code_major = manifest_el->FindAttribute(kSchemaAndroid, "versionCodeMajor"); in UpdateManifest()
308 SetLongVersionCode(manifest_el, new_version); in UpdateManifest()
315 if (xml::Element* uses_sdk_el = manifest_el->FindChild({}, "uses-sdk")) { in UpdateManifest()
336 xml::Element* screens_el = manifest_el->FindChild({}, "compatible-screens"); in UpdateManifest()
342 manifest_el->AppendChild(std::move(new_screens_el)); in UpdateManifest()
/frameworks/base/tools/aapt2/link/
DManifestFixer.cpp443 static bool RenameManifestPackage(const StringPiece& package_override, xml::Element* manifest_el) { in RenameManifestPackage() argument
444 xml::Attribute* attr = manifest_el->FindAttribute({}, "package"); in RenameManifestPackage()
453 xml::Element* application_el = manifest_el->FindChild({}, "application"); in RenameManifestPackage()