Home
last modified time | relevance | path

Searched refs:el (Results 1 – 16 of 16) sorted by relevance

/frameworks/base/tools/aapt2/link/
DManifestFixer.cpp33 static bool NameIsJavaClassName(xml::Element* el, xml::Attribute* attr, in NameIsJavaClassName() argument
46 diag->Error(DiagMessage(el->line_number) in NameIsJavaClassName()
47 << "attribute 'android:name' in <" << el->name in NameIsJavaClassName()
54 static bool OptionalNameIsJavaClassName(xml::Element* el, SourcePathDiagnostics* diag) { in OptionalNameIsJavaClassName() argument
55 if (xml::Attribute* attr = el->FindAttribute(xml::kSchemaAndroid, "name")) { in OptionalNameIsJavaClassName()
56 return NameIsJavaClassName(el, attr, diag); in OptionalNameIsJavaClassName()
61 static bool RequiredNameIsJavaClassName(xml::Element* el, SourcePathDiagnostics* diag) { in RequiredNameIsJavaClassName() argument
62 if (xml::Attribute* attr = el->FindAttribute(xml::kSchemaAndroid, "name")) { in RequiredNameIsJavaClassName()
63 return NameIsJavaClassName(el, attr, diag); in RequiredNameIsJavaClassName()
65 diag->Error(DiagMessage(el->line_number) in RequiredNameIsJavaClassName()
[all …]
DXmlNamespaceRemover_test.cpp31 void Visit(xml::Element* el) override { in Visit() argument
32 EXPECT_THAT(el->namespace_decls, SizeIs(0u)); in Visit()
34 for (const auto& attr : el->attributes) { in Visit()
37 EXPECT_THAT(el->namespace_uri, StrEq("")); in Visit()
39 xml::Visitor::Visit(el); in Visit()
50 void Visit(xml::Element* el) override { in Visit() argument
51 EXPECT_THAT(el->namespace_decls, SizeIs(0u)); in Visit()
52 xml::Visitor::Visit(el); in Visit()
DXmlNamespaceRemover.cpp32 void Visit(xml::Element* el) override { in Visit() argument
33 el->namespace_decls.clear(); in Visit()
36 for (xml::Attribute& attr : el->attributes) { in Visit()
39 el->namespace_uri.clear(); in Visit()
41 xml::Visitor::Visit(el); in Visit()
DXmlReferenceLinker.cpp83 void Visit(xml::Element* el) override { in Visit() argument
89 const Source source = source_.WithLine(el->line_number); in Visit()
90 for (xml::Attribute& attr : el->attributes) { in Visit()
144 xml::PackageAwareVisitor::Visit(el); in Visit()
DManifestFixer_test.cpp347 xml::Element* el = doc->root.get(); in TEST_F() local
348 ASSERT_NE(nullptr, el); in TEST_F()
350 EXPECT_EQ("manifest", el->name); in TEST_F()
352 xml::Attribute* attr = el->FindAttribute("", "coreApp"); in TEST_F()
DXmlCompatVersioner.cpp110 cloned_doc->root = doc->root->CloneElement([&](const xml::Element& el, xml::Element* out_el) { in ProcessDoc() argument
111 for (const auto& attr : el.attributes) { in ProcessDoc()
122 ProcessRule(el, attr, attr_version, rule != rules_->end() ? rule->second.get() : nullptr, in ProcessDoc()
/frameworks/base/tools/aapt2/xml/
DXmlActionExecutor.cpp22 static bool wrapper_one(XmlNodeAction::ActionFunc& f, Element* el, SourcePathDiagnostics*) { in wrapper_one() argument
23 return f(el); in wrapper_one()
26 static bool wrapper_two(XmlNodeAction::ActionFuncWithDiag& f, Element* el, in wrapper_two() argument
28 return f(el, diag); in wrapper_two()
41 static void PrintElementToDiagMessage(const Element* el, DiagMessage* msg) { in PrintElementToDiagMessage() argument
43 if (!el->namespace_uri.empty()) { in PrintElementToDiagMessage()
44 *msg << el->namespace_uri << ":"; in PrintElementToDiagMessage()
46 *msg << el->name << ">"; in PrintElementToDiagMessage()
50 Element* el) const { in Execute()
53 error |= !action(el, diag); in Execute()
[all …]
DXmlDom.cpp110 std::unique_ptr<Element> el; in StartElementHandler() local
112 el = std::move(stack->pending_element); in StartElementHandler()
114 el = util::make_unique<Element>(); in StartElementHandler()
117 el->line_number = XML_GetCurrentLineNumber(parser); in StartElementHandler()
118 el->column_number = XML_GetCurrentColumnNumber(parser); in StartElementHandler()
119 el->comment = std::move(stack->pending_comment); in StartElementHandler()
121 SplitName(name, &el->namespace_uri, &el->name); in StartElementHandler()
127 el->attributes.push_back(std::move(attribute)); in StartElementHandler()
131 std::sort(el->attributes.begin(), el->attributes.end(), less_attribute); in StartElementHandler()
134 Element* this_el = el.get(); in StartElementHandler()
[all …]
DXmlDom.h156 virtual void Visit(Element* el) { in Visit() argument
157 VisitChildren(el); in Visit()
166 void VisitChildren(Element* el) { in VisitChildren() argument
167 for (auto& child : el->children) { in VisitChildren()
172 virtual void BeforeVisitElement(Element* el) { in BeforeVisitElement() argument
174 virtual void AfterVisitElement(Element* el) { in AfterVisitElement() argument
194 void BeforeVisitElement(Element* el) override;
195 void AfterVisitElement(Element* el) override;
213 void Visit(Element* el) override { in Visit() argument
215 void Visit(Text* el) override { in Visit() argument
[all …]
DXmlDom_test.cpp118 void Visit(Element* el) override { in Visit() argument
119 if (el->name == "View1") { in Visit()
122 } else if (el->name == "View2") { in Visit()
127 } else if (el->name == "View3") { in Visit()
DXmlActionExecutor.h68 bool Execute(XmlActionExecutorPolicy policy, SourcePathDiagnostics* diag, Element* el) const;
/frameworks/base/tools/aapt2/compile/
DInlineXmlFormatParser.cpp31 xml::Element* el; member
44 void Visit(xml::Element* el) override { in Visit() argument
45 if (el->namespace_uri != xml::kSchemaAapt || el->name != "attr") { in Visit()
46 xml::PackageAwareVisitor::Visit(el); in Visit()
50 const Source src = xml_resource_->file.source.WithLine(el->line_number); in Visit()
52 xml::Attribute* attr = el->FindAttribute({}, "name"); in Visit()
84 decl.el = el; in Visit()
123 new_doc->file.source = doc->file.source.WithLine(decl.el->line_number); in Consume()
134 for (std::unique_ptr<xml::Node>& child : decl.el->children) { in Consume()
157 xml::Element* parent_el = decl.el->parent; in Consume()
[all …]
/frameworks/base/tools/aapt2/java/
DManifestClassGenerator.cpp66 xml::Element* el, ClassDefinition* class_def) { in WriteSymbol() argument
67 xml::Attribute* attr = el->FindAttribute(xml::kSchemaAndroid, "name"); in WriteSymbol()
69 diag->Error(DiagMessage(source) << "<" << el->name in WriteSymbol()
75 diag, source.WithLine(el->line_number), attr->value); in WriteSymbol()
82 string_member->GetCommentBuilder()->AppendComment(el->comment); in WriteSymbol()
85 diag->Warn(DiagMessage(source.WithLine(el->line_number)) in WriteSymbol()
93 xml::Element* el = xml::FindRootElement(res->root.get()); in GenerateManifestClass() local
94 if (!el) { in GenerateManifestClass()
99 if (el->name != "manifest" && !el->namespace_uri.empty()) { in GenerateManifestClass()
111 std::vector<xml::Element*> children = el->GetChildElements(); in GenerateManifestClass()
/frameworks/base/tools/aapt2/
DDebug.cpp268 void Visit(xml::Element* el) override { in Visit() argument
271 for (const xml::NamespaceDecl& decl : el->namespace_decls) { in Visit()
278 if (!el->namespace_uri.empty()) { in Visit()
279 std::cerr << el->namespace_uri << ":"; in Visit()
281 std::cerr << el->name << " (line=" << el->line_number << ")\n"; in Visit()
283 for (const xml::Attribute& attr : el->attributes) { in Visit()
298 xml::Visitor::Visit(el); in Visit()
/frameworks/base/core/java/android/hardware/camera2/params/
DStreamConfigurationMap.java1413 for (T el : array) { in arrayContains()
1414 if (Objects.equals(el, element)) { in arrayContains()
/frameworks/base/tools/aapt2/cmd/
DLink.cpp486 xml::Element* el = doc->root.get(); in LinkAndVersionXmlFile() local
487 if (el && el->namespace_uri.empty()) { in LinkAndVersionXmlFile()
488 if ((options_.no_version_vectors && IsVectorElement(el->name)) || in LinkAndVersionXmlFile()
489 (options_.no_version_transitions && IsTransitionElement(el->name))) { in LinkAndVersionXmlFile()