Home
last modified time | relevance | path

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

12

/frameworks/base/tools/aapt2/link/
DManifestFixer.cpp33 static bool RequiredNameIsNotEmpty(xml::Element* el, SourcePathDiagnostics* diag) { in RequiredNameIsNotEmpty() argument
34 xml::Attribute* attr = el->FindAttribute(xml::kSchemaAndroid, "name"); in RequiredNameIsNotEmpty()
36 diag->Error(DiagMessage(el->line_number) in RequiredNameIsNotEmpty()
37 << "<" << el->name << "> is missing attribute 'android:name'"); in RequiredNameIsNotEmpty()
42 diag->Error(DiagMessage(el->line_number) in RequiredNameIsNotEmpty()
43 << "attribute 'android:name' in <" << el->name << "> tag must not be empty"); in RequiredNameIsNotEmpty()
50 static bool NameIsJavaClassName(xml::Element* el, xml::Attribute* attr, in NameIsJavaClassName() argument
63 diag->Error(DiagMessage(el->line_number) in NameIsJavaClassName()
64 << "attribute 'android:name' in <" << el->name in NameIsJavaClassName()
71 static bool OptionalNameIsJavaClassName(xml::Element* el, SourcePathDiagnostics* diag) { in OptionalNameIsJavaClassName() argument
[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.cpp81 void Visit(xml::Element* el) override { in Visit() argument
86 const Source source = source_.WithLine(el->line_number); in Visit()
87 for (xml::Attribute& attr : el->attributes) { in Visit()
133 xml::PackageAwareVisitor::Visit(el); in Visit()
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()
DManifestFixer_test.cpp554 xml::Element* el = doc->root.get(); in TEST_F() local
555 ASSERT_THAT(el, NotNull()); in TEST_F()
557 EXPECT_THAT(el->name, StrEq("manifest")); in TEST_F()
559 xml::Attribute* attr = el->FindAttribute("", "coreApp"); in TEST_F()
/frameworks/base/tools/aapt2/xml/
DXmlActionExecutor.cpp24 static bool wrapper_one(XmlNodeAction::ActionFunc& f, Element* el, SourcePathDiagnostics*) { in wrapper_one() argument
25 return f(el); in wrapper_one()
28 static bool wrapper_two(XmlNodeAction::ActionFuncWithDiag& f, Element* el, in wrapper_two() argument
30 return f(el, diag); in wrapper_two()
43 static void PrintElementToDiagMessage(const Element* el, DiagMessage* msg) { in PrintElementToDiagMessage() argument
45 if (!el->namespace_uri.empty()) { in PrintElementToDiagMessage()
46 *msg << el->namespace_uri << ":"; in PrintElementToDiagMessage()
48 *msg << el->name << ">"; in PrintElementToDiagMessage()
52 SourcePathDiagnostics* diag, Element* el) const { in Execute()
55 error |= !action(el, diag); in Execute()
[all …]
DXmlUtil.cpp83 void Visit(Element* el) override { in Visit() argument
85 std::remove_if(el->namespace_decls.begin(), el->namespace_decls.end(), in Visit()
87 el->namespace_decls.erase(new_end, el->namespace_decls.end()); in Visit()
90 el->attributes.begin(), el->attributes.end(), in Visit()
92 el->attributes.erase(new_attr_end, el->attributes.end()); in Visit()
94 Visitor::Visit(el); in Visit()
100 void StripAndroidStudioAttributes(Element* el) { in StripAndroidStudioAttributes() argument
102 el->Accept(&remover); in StripAndroidStudioAttributes()
DXmlDom.cpp111 std::unique_ptr<Element> el; in StartElementHandler() local
113 el = std::move(stack->pending_element); in StartElementHandler()
115 el = util::make_unique<Element>(); in StartElementHandler()
118 el->line_number = XML_GetCurrentLineNumber(parser); in StartElementHandler()
119 el->column_number = XML_GetCurrentColumnNumber(parser); in StartElementHandler()
120 el->comment = std::move(stack->pending_comment); in StartElementHandler()
122 SplitName(name, &el->namespace_uri, &el->name); in StartElementHandler()
128 el->attributes.push_back(std::move(attribute)); in StartElementHandler()
132 std::sort(el->attributes.begin(), el->attributes.end(), less_attribute); in StartElementHandler()
135 Element* this_el = el.get(); in StartElementHandler()
[all …]
DXmlDom.h174 virtual void Visit(Element* el) { in Visit() argument
175 VisitChildren(el); in Visit()
184 void VisitChildren(Element* el) { in VisitChildren() argument
185 for (auto& child : el->children) { in VisitChildren()
190 virtual void BeforeVisitElement(Element* el) { in BeforeVisitElement() argument
192 virtual void AfterVisitElement(Element* el) { in AfterVisitElement() argument
205 virtual void Visit(const Element* el) { in Visit() argument
206 VisitChildren(el); in Visit()
215 void VisitChildren(const Element* el) { in VisitChildren() argument
216 for (const auto& child : el->children) { in VisitChildren()
[all …]
DXmlDom_test.cpp146 void Visit(Element* el) override { in Visit() argument
147 if (el->name == "View1") { in Visit()
149 } else if (el->name == "View2") { in Visit()
152 } else if (el->name == "View3") { in Visit()
157 } else if (el->name == "View4") { in Visit()
DXmlUtil.h85 void StripAndroidStudioAttributes(Element* el);
DXmlActionExecutor.h69 SourcePathDiagnostics* diag, Element* el) const;
/frameworks/base/tools/aapt2/java/
DManifestClassGenerator.cpp58 static bool WriteSymbol(const Source& source, IDiagnostics* diag, xml::Element* el, in WriteSymbol() argument
60 xml::Attribute* attr = el->FindAttribute(xml::kSchemaAndroid, "name"); in WriteSymbol()
62 diag->Error(DiagMessage(source) << "<" << el->name << "> must define 'android:name'"); in WriteSymbol()
67 ExtractJavaIdentifier(diag, source.WithLine(el->line_number), attr->value); in WriteSymbol()
74 string_member->GetCommentBuilder()->AppendComment(el->comment); in WriteSymbol()
77 diag->Warn(DiagMessage(source.WithLine(el->line_number)) in WriteSymbol()
84 xml::Element* el = xml::FindRootElement(res->root.get()); in GenerateManifestClass() local
85 if (!el) { in GenerateManifestClass()
90 if (el->name != "manifest" && !el->namespace_uri.empty()) { in GenerateManifestClass()
101 std::vector<xml::Element*> children = el->GetChildElements(); in GenerateManifestClass()
/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()
80 decl.el = el; in Visit()
128 new_doc->file.source.line = decl.el->line_number; in Consume()
138 for (std::unique_ptr<xml::Node>& child : decl.el->children) { in Consume()
161 xml::Element* parent_el = decl.el->parent; in Consume()
[all …]
/frameworks/base/tools/aapt2/dump/
DDumpManifest.cpp96 static xml::Attribute* FindAttribute(xml::Element *el, uint32_t resd_id) { in FindAttribute() argument
97 for (auto& a : el->attributes) { in FindAttribute()
108 static xml::Attribute* FindAttribute(xml::Element *el, const std::string &package, in FindAttribute() argument
110 return el->FindAttribute(package, name); in FindAttribute()
126 static std::unique_ptr<Element> Inflate(ManifestExtractor* extractor, xml::Element* el);
150 virtual void Extract(xml::Element* el) { } in Extract() argument
1743 ForEachChild(this, [&printer, &first](ManifestExtractor::Element* el){ in Print() argument
1744 if (auto screen = ElementCast<Screen>(el)) { in Print()
1778 static void Print(ManifestExtractor::Element* el, text::Printer* printer) { in Print() argument
1779 el->Print(printer); in Print()
[all …]
/frameworks/base/tools/aapt2/
DDebug.cpp459 void Visit(const xml::Element* el) override { in Visit() argument
460 for (const xml::NamespaceDecl& decl : el->namespace_decls) { in Visit()
467 if (!el->namespace_uri.empty()) { in Visit()
468 printer_->Print(el->namespace_uri); in Visit()
471 printer_->Println(StringPrintf("%s (line=%zu)", el->name.c_str(), el->line_number)); in Visit()
474 for (const xml::Attribute& attr : el->attributes) { in Visit()
506 xml::ConstVisitor::Visit(el); in Visit()
510 for (size_t i = 0; i < el->namespace_decls.size(); i++) { in Visit()
/frameworks/base/tools/aapt2/format/proto/
DProtoSerialize.cpp659 void SerializeXmlToPb(const xml::Element& el, pb::XmlNode* out_node, in SerializeXmlToPb() argument
661 SerializeXmlCommon(el, out_node); in SerializeXmlToPb()
664 pb_element->set_name(el.name); in SerializeXmlToPb()
665 pb_element->set_namespace_uri(el.namespace_uri); in SerializeXmlToPb()
667 for (const xml::NamespaceDecl& ns : el.namespace_decls) { in SerializeXmlToPb()
676 for (const xml::Attribute& attr : el.attributes) { in SerializeXmlToPb()
692 for (const std::unique_ptr<xml::Node>& child : el.children) { in SerializeXmlToPb()
DProtoSerialize.h47 void SerializeXmlToPb(const xml::Element& el, pb::XmlNode* out_node,
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/
DCONTRIBUTORS.txt79 * Emacs mode for Protocol Buffers (editors/protobuf-mode.el).
/frameworks/base/tools/aapt2/cmd/
DLink.cpp462 xml::Element* el = doc->root.get(); in LinkAndVersionXmlFile() local
463 if (el && el->namespace_uri.empty()) { in LinkAndVersionXmlFile()
464 if ((options_.no_version_vectors && IsVectorElement(el->name)) || in LinkAndVersionXmlFile()
465 (options_.no_version_transitions && IsTransitionElement(el->name))) { in LinkAndVersionXmlFile()
/frameworks/av/media/codec2/sfplugin/
DCCodecConfig.cpp284 for (const std::pair<std::string, std::vector<ConfigMapper>> &el : mConfigMappers) { in getPathsForDomain() local
285 for (const ConfigMapper &cm : el.second) { in getPathsForDomain()
1068 for (const std::pair<std::string, std::vector<ConfigMapper>> &el : mStandardParams->getKeys()) { in getSdkFormatForDomain() local
1069 for (const ConfigMapper &cm : el.second) { in getSdkFormatForDomain()
1093 msg->setItem(el.first.c_str(), item); in getSdkFormatForDomain()
/frameworks/base/core/java/android/hardware/camera2/params/
DStreamConfigurationMap.java1673 for (T el : array) { in arrayContains()
1674 if (Objects.equals(el, element)) { in arrayContains()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/docs/
Dthird_party.md146 …on Language 3.0; pure Java ProtoBuf Parser and Builder.](https://github.com/protobufel/protobuf-el)
/frameworks/native/libs/gui/
DISurfaceComposer.cpp180 for (auto el : excludeLayers) { in captureLayers() local
181 data.writeStrongBinder(el); in captureLayers()

12