Home
last modified time | relevance | path

Searched refs:el (Results 1 – 15 of 15) 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.cpp34 void Visit(xml::Element* el) override { in Visit() argument
36 for (auto& child : el->children) { in Visit()
42 child->parent = el; in Visit()
46 el->children.erase( in Visit()
47 std::remove_if(el->children.begin(), el->children.end(), in Visit()
51 el->children.end()); in Visit()
54 for (xml::Attribute& attr : el->attributes) { in Visit()
57 el->namespace_uri = std::string(); in Visit()
59 xml::Visitor::Visit(el); in Visit()
DXmlNamespaceRemover_test.cpp27 void Visit(xml::Element* el) override { in Visit() argument
28 for (const auto& attr : el->attributes) { in Visit()
31 EXPECT_EQ(std::string(), el->namespace_uri); in Visit()
32 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.cpp346 xml::Element* el = xml::FindRootElement(doc.get()); in TEST_F() local
347 ASSERT_NE(nullptr, el); in TEST_F()
349 EXPECT_EQ("manifest", el->name); in TEST_F()
351 xml::Attribute* attr = el->FindAttribute("", "coreApp"); in TEST_F()
DXmlCompatVersioner.cpp110 cloned_doc->root = doc->root->Clone([&](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.cpp132 std::unique_ptr<Element> el = util::make_unique<Element>(); in StartElementHandler() local
133 SplitName(name, &el->namespace_uri, &el->name); in StartElementHandler()
141 auto iter = std::lower_bound(el->attributes.begin(), el->attributes.end(), attribute, in StartElementHandler()
143 el->attributes.insert(iter, std::move(attribute)); in StartElementHandler()
146 el->comment = std::move(stack->pending_comment); in StartElementHandler()
147 AddToStack(stack, parser, std::move(el)); in StartElementHandler()
228 static void CopyAttributes(Element* el, android::ResXMLParser* parser, StringPool* out_pool) { in CopyAttributes() argument
231 el->attributes.reserve(attr_count); in CopyAttributes()
256 el->attributes.push_back(std::move(attr)); in CopyAttributes()
382 Element* el = nullptr; in FindRootElement() local
[all …]
DXmlActionExecutor.h68 bool Execute(XmlActionExecutorPolicy policy, SourcePathDiagnostics* diag, Element* el) const;
/frameworks/base/tools/aapt2/compile/
DInlineXmlFormatParser.cpp42 xml::Element* el; member
50 void Visit(xml::Element* el) override { in Visit() argument
51 if (el->namespace_uri != xml::kSchemaAapt || el->name != "attr") { in Visit()
52 xml::PackageAwareVisitor::Visit(el); in Visit()
56 const Source& src = xml_resource_->file.source.WithLine(el->line_number); in Visit()
58 xml::Attribute* attr = el->FindAttribute({}, "name"); in Visit()
96 decl.el = el; in Visit()
136 new_doc->file.source = doc->file.source.WithLine(decl.el->line_number); in Consume()
151 for (auto& child : decl.el->children) { in Consume()
172 xml::Node* node = decl.el; in Consume()
/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()
90 xml::Element* el = xml::FindRootElement(res->root.get()); in GenerateManifestClass() local
91 if (!el) { in GenerateManifestClass()
96 if (el->name != "manifest" && !el->namespace_uri.empty()) { in GenerateManifestClass()
108 std::vector<xml::Element*> children = el->GetChildElements(); in GenerateManifestClass()
/frameworks/base/tools/aapt2/
DDebug.cpp264 void Visit(xml::Element* el) override { in Visit() argument
267 if (!el->namespace_uri.empty()) { in Visit()
268 std::cerr << el->namespace_uri << ":"; in Visit()
270 std::cerr << el->name << " (line=" << el->line_number << ")\n"; in Visit()
272 for (const xml::Attribute& attr : el->attributes) { in Visit()
288 xml::Visitor::Visit(el); in Visit()
/frameworks/base/core/java/android/hardware/camera2/params/
DStreamConfigurationMap.java1408 for (T el : array) { in arrayContains()
1409 if (Objects.equals(el, element)) { in arrayContains()
/frameworks/base/tools/aapt2/cmd/
DLink.cpp485 xml::Element* el = xml::FindRootElement(doc); in LinkAndVersionXmlFile() local
486 if (el && el->namespace_uri.empty()) { in LinkAndVersionXmlFile()
487 if ((options_.no_version_vectors && IsVectorElement(el->name)) || in LinkAndVersionXmlFile()
488 (options_.no_version_transitions && IsTransitionElement(el->name))) { in LinkAndVersionXmlFile()
/frameworks/data-binding/prebuilds/1.0-rc0/
Ddatabinding-studio-bundle.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/databinding/ android/ ...