Home
last modified time | relevance | path

Searched refs:child_el (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/tools/aapt2/java/
DManifestClassGenerator.cpp102 for (xml::Element* child_el : children) { in GenerateManifestClass()
103 if (child_el->namespace_uri.empty()) { in GenerateManifestClass()
104 if (child_el->name == "permission") { in GenerateManifestClass()
105 error |= !WriteSymbol(res->file.source, diag, child_el, permission_class.get()); in GenerateManifestClass()
106 } else if (child_el->name == "permission-group") { in GenerateManifestClass()
107 error |= !WriteSymbol(res->file.source, diag, child_el, permission_group_class.get()); in GenerateManifestClass()
/frameworks/base/tools/aapt2/xml/
DXmlActionExecutor.cpp71 for (Element* child_el : el->GetChildElements()) { in Execute()
72 if (child_el->namespace_uri.empty()) { in Execute()
73 std::map<std::string, XmlNodeAction>::const_iterator iter = map_.find(child_el->name); in Execute()
77 error |= !iter->second.Execute(policy, bread_crumb, diag, child_el); in Execute()
83 android::DiagMessage error_msg(child_el->line_number); in Execute()
85 PrintElementToDiagMessage(child_el, &error_msg); in Execute()
/frameworks/base/tools/aapt2/link/
DManifestFixer.cpp687 for (xml::Element* child_el : application_el->GetChildElements()) { in RenameManifestPackage()
688 if (child_el->namespace_uri.empty()) { in RenameManifestPackage()
689 if (child_el->name == "activity" || child_el->name == "activity-alias" || in RenameManifestPackage()
690 child_el->name == "provider" || child_el->name == "receiver" || in RenameManifestPackage()
691 child_el->name == "service") { in RenameManifestPackage()
692 FullyQualifyClassName(original_package, xml::kSchemaAndroid, "name", child_el); in RenameManifestPackage()
696 if (child_el->name == "activity-alias") { in RenameManifestPackage()
697 FullyQualifyClassName(original_package, xml::kSchemaAndroid, "targetActivity", child_el); in RenameManifestPackage()
701 if (child_el->name == "processes") { in RenameManifestPackage()
702 for (xml::Element* grand_child_el : child_el->GetChildElements()) { in RenameManifestPackage()
/frameworks/base/tools/aapt2/cmd/
DLink.cpp995 for (const xml::Element* child_el : manifest_el->GetChildElements()) { in ExtractAppInfoFromManifest() local
996 if (child_el->namespace_uri.empty() && child_el->name == "uses-split") { in ExtractAppInfoFromManifest()
998 child_el->FindAttribute(xml::kSchemaAndroid, "name")) { in ExtractAppInfoFromManifest()
1145 for (const xml::Element* child_el : localeConfig_el->GetChildElements()) { in VerifyLocaleFormat() local
1146 if (child_el->name == "locale") { in VerifyLocaleFormat()
1148 child_el->FindAttribute(xml::kSchemaAndroid, "name")) { in VerifyLocaleFormat()
1165 << "invalid element name: " << child_el->name << ", expected: locale"); in VerifyLocaleFormat()
/frameworks/base/tools/aapt2/format/proto/
DProtoSerialize_test.cpp331 const xml::Element* child_el = xml::NodeCast<xml::Element>(actual_el.children[1].get()); in TEST() local
332 ASSERT_THAT(child_el, NotNull()); in TEST()
338 EXPECT_THAT(child_el->name, StrEq("child")); in TEST()
339 ASSERT_THAT(child_el->children, SizeIs(1u)); in TEST()
341 child_text = xml::NodeCast<xml::Text>(child_el->children[0].get()); in TEST()
DProtoDeserialize.cpp1072 std::unique_ptr<xml::Element> child_el = util::make_unique<xml::Element>(); in DeserializeXmlFromPb() local
1073 if (!DeserializeXmlFromPb(pb_child, child_el.get(), value_pool, out_error)) { in DeserializeXmlFromPb()
1076 out_el->AppendChild(std::move(child_el)); in DeserializeXmlFromPb()
DProtoSerialize.cpp784 if (const xml::Element* child_el = xml::NodeCast<xml::Element>(child.get())) { in SerializeXmlToPb() local
785 SerializeXmlToPb(*child_el, pb_element->add_child()); in SerializeXmlToPb()