/frameworks/base/tools/aapt2/link/ |
H A D | XmlNamespaceRemover.cpp | 32 void Visit(xml::Element* el) override { 33 el->namespace_decls.clear(); 36 for (xml::Attribute& attr : el->attributes) { 39 el->namespace_uri.clear(); 41 xml::Visitor::Visit(el);
|
H A D | ManifestFixer.cpp | 32 static bool RequiredNameIsNotEmpty(xml::Element* el, SourcePathDiagnostics* diag) { argument 33 xml::Attribute* attr = el->FindAttribute(xml::kSchemaAndroid, "name"); 35 diag->Error(DiagMessage(el->line_number) 36 << "<" << el->name << "> is missing attribute 'android:name'"); 41 diag->Error(DiagMessage(el->line_number) 42 << "attribute 'android:name' in <" << el->name << "> tag must not be empty"); 49 static bool NameIsJavaClassName(xml::Element* el, xml::Attribute* attr, argument 62 diag->Error(DiagMessage(el->line_number) 63 << "attribute 'android:name' in <" << el->name 70 static bool OptionalNameIsJavaClassName(xml::Element* el, SourcePathDiagnostic argument 77 RequiredNameIsJavaClassName(xml::Element* el, SourcePathDiagnostics* diag) argument 87 RequiredNameIsJavaPackage(xml::Element* el, SourcePathDiagnostics* diag) argument [all...] |
H A D | XmlNamespaceRemover_test.cpp | 31 void Visit(xml::Element* el) override { 32 EXPECT_THAT(el->namespace_decls, SizeIs(0u)); 34 for (const auto& attr : el->attributes) { 37 EXPECT_THAT(el->namespace_uri, StrEq("")); 39 xml::Visitor::Visit(el); 50 void Visit(xml::Element* el) override { 51 EXPECT_THAT(el->namespace_decls, SizeIs(0u)); 52 xml::Visitor::Visit(el);
|
H A D | XmlReferenceLinker.cpp | 80 void Visit(xml::Element* el) override { 85 const Source source = source_.WithLine(el->line_number); 86 for (xml::Attribute& attr : el->attributes) { 132 xml::PackageAwareVisitor::Visit(el);
|
H A D | ManifestFixer_test.cpp | 127 xml::Element* el; 130 el = doc->root.get(); 131 ASSERT_THAT(el, NotNull()); 132 el = el->FindChild({}, "uses-sdk"); 133 ASSERT_THAT(el, NotNull()); 134 attr = el->FindAttribute(xml::kSchemaAndroid, "minSdkVersion"); 137 attr = el->FindAttribute(xml::kSchemaAndroid, "targetSdkVersion"); 149 el = doc->root.get(); 150 ASSERT_THAT(el, NotNul [all...] |
H A D | XmlCompatVersioner.cpp | 110 cloned_doc->root = doc->root->CloneElement([&](const xml::Element& el, xml::Element* out_el) { 111 for (const auto& attr : el.attributes) { 122 ProcessRule(el, attr, attr_version, rule != rules_->end() ? rule->second.get() : nullptr,
|
/frameworks/base/tools/aapt2/xml/ |
H A D | XmlActionExecutor.cpp | 24 static bool wrapper_one(XmlNodeAction::ActionFunc& f, Element* el, SourcePathDiagnostics*) { argument 25 return f(el); 28 static bool wrapper_two(XmlNodeAction::ActionFuncWithDiag& f, Element* el, argument 30 return f(el, diag); 43 static void PrintElementToDiagMessage(const Element* el, DiagMessage* msg) { argument 45 if (!el->namespace_uri.empty()) { 46 *msg << el->namespace_uri << ":"; 48 *msg << el->name << ">"; 52 SourcePathDiagnostics* diag, Element* el) const { 55 error |= !action(el, dia 95 Element* el = doc->root.get(); local [all...] |
H A D | XmlUtil.cpp | 83 void Visit(Element* el) override { 85 std::remove_if(el->namespace_decls.begin(), el->namespace_decls.end(), 87 el->namespace_decls.erase(new_end, el->namespace_decls.end()); 90 el->attributes.begin(), el->attributes.end(), 92 el->attributes.erase(new_attr_end, el->attributes.end()); 94 Visitor::Visit(el); 100 StripAndroidStudioAttributes(Element* el) argument [all...] |
H A D | XmlDom.h | 172 virtual void Visit(Element* el) { argument 173 VisitChildren(el); 182 void VisitChildren(Element* el) { argument 183 for (auto& child : el->children) { 188 virtual void BeforeVisitElement(Element* el) { argument 190 virtual void AfterVisitElement(Element* el) { argument 203 virtual void Visit(const Element* el) { argument 204 VisitChildren(el); 213 void VisitChildren(const Element* el) { argument 214 for (const auto& child : el 219 BeforeVisitElement(const Element* el) argument 222 AfterVisitElement(const Element* el) argument [all...] |
H A D | XmlDom_test.cpp | 51 Element* el = doc->root.get(); 52 EXPECT_THAT(el->namespace_decls, SizeIs(1u)); 53 EXPECT_THAT(el->namespace_decls[0].uri, StrEq(xml::kSchemaAndroid)); 54 EXPECT_THAT(el->namespace_decls[0].prefix, StrEq("android")); 118 Element* el = doc->root.get(); 120 Attribute* attr = el->FindAttribute({}, "pattern"); 124 attr = el->FindAttribute({}, "value"); 128 ASSERT_THAT(el->children, SizeIs(1u)); 130 Text* text = xml::NodeCast<xml::Text>(el->children[0].get()); 146 void Visit(Element* el) overrid [all...] |
H A D | XmlDom.cpp | 110 std::unique_ptr<Element> el; local 112 el = std::move(stack->pending_element); 114 el = util::make_unique<Element>(); 117 el->line_number = XML_GetCurrentLineNumber(parser); 118 el->column_number = XML_GetCurrentColumnNumber(parser); 119 el->comment = std::move(stack->pending_comment); 121 SplitName(name, &el->namespace_uri, &el->name); 127 el->attributes.push_back(std::move(attribute)); 131 std::sort(el 222 CopyAttributes(Element* el, android::ResXMLParser* parser, StringPool* out_pool) argument 311 std::unique_ptr<Element> el; local 482 auto el = util::make_unique<Element>(); local 531 BeforeVisitElement(Element* el) argument 541 AfterVisitElement(Element* el) argument [all...] |
H A D | XmlUtil.h | 85 void StripAndroidStudioAttributes(Element* el);
|
H A D | XmlActionExecutor.h | 69 SourcePathDiagnostics* diag, Element* el) const;
|
/frameworks/base/tools/aapt2/compile/ |
H A D | InlineXmlFormatParser.cpp | 31 xml::Element* el; member in struct:aapt::__anon1165::InlineDeclaration 44 void Visit(xml::Element* el) override { 45 if (el->namespace_uri != xml::kSchemaAapt || el->name != "attr") { 46 xml::PackageAwareVisitor::Visit(el); 50 const Source src = xml_resource_->file.source.WithLine(el->line_number); 52 xml::Attribute* attr = el->FindAttribute({}, "name"); 80 decl.el = el; 128 new_doc->file.source.line = decl.el [all...] |
/frameworks/base/tools/aapt2/java/ |
H A D | ManifestClassGenerator.cpp | 59 static bool WriteSymbol(const Source& source, IDiagnostics* diag, xml::Element* el, argument 61 xml::Attribute* attr = el->FindAttribute(xml::kSchemaAndroid, "name"); 63 diag->Error(DiagMessage(source) << "<" << el->name << "> must define 'android:name'"); 68 ExtractJavaIdentifier(diag, source.WithLine(el->line_number), attr->value); 75 string_member->GetCommentBuilder()->AppendComment(el->comment); 78 diag->Warn(DiagMessage(source.WithLine(el->line_number)) 85 xml::Element* el = xml::FindRootElement(res->root.get()); local 86 if (!el) { 91 if (el->name != "manifest" && !el [all...] |
/frameworks/base/tools/aapt2/format/proto/ |
H A D | ProtoSerialize.h | 42 void SerializeXmlToPb(const xml::Element& el, pb::XmlNode* out_node);
|
H A D | ProtoSerialize.cpp | 602 void SerializeXmlToPb(const xml::Element& el, pb::XmlNode* out_node) { argument 603 SerializeXmlCommon(el, out_node); 606 pb_element->set_name(el.name); 607 pb_element->set_namespace_uri(el.namespace_uri); 609 for (const xml::NamespaceDecl& ns : el.namespace_decls) { 618 for (const xml::Attribute& attr : el.attributes) { 634 for (const std::unique_ptr<xml::Node>& child : el.children) {
|
/frameworks/base/tools/aapt2/ |
H A D | Debug.cpp | 420 void Visit(const xml::Element* el) override { 421 for (const xml::NamespaceDecl& decl : el->namespace_decls) { 428 if (!el->namespace_uri.empty()) { 429 printer_->Print(el->namespace_uri); 432 printer_->Println(StringPrintf("%s (line=%zu)", el->name.c_str(), el->line_number)); 435 for (const xml::Attribute& attr : el->attributes) { 467 xml::ConstVisitor::Visit(el); 471 for (size_t i = 0; i < el->namespace_decls.size(); i++) {
|
/frameworks/base/core/java/android/hardware/camera2/params/ |
H A D | StreamConfigurationMap.java | 1413 for (T el : array) { 1414 if (Objects.equals(el, element)) {
|
/frameworks/base/tools/aapt2/cmd/ |
H A D | Link.cpp | 506 xml::Element* el = doc->root.get(); local 507 if (el && el->namespace_uri.empty()) { 508 if ((options_.no_version_vectors && IsVectorElement(el->name)) || 509 (options_.no_version_transitions && IsTransitionElement(el->name))) {
|
/frameworks/data-binding/prebuilds/1.0-rc0/ |
H A D | databinding-studio-bundle.jar | META-INF/ META-INF/MANIFEST.MF android/ android/databinding/ android/databinding/Bindable.class Bindable. ... |