Lines Matching refs:Element
43 std::unique_ptr<xml::Element> root;
44 std::stack<xml::Element*> node_stack;
45 std::unique_ptr<xml::Element> pending_element;
90 stack->pending_element = util::make_unique<Element>(); in StartNamespaceHandler()
111 std::unique_ptr<Element> el; in StartElementHandler()
115 el = util::make_unique<Element>(); in StartElementHandler()
135 Element* this_el = el.get(); in StartElementHandler()
223 static void CopyAttributes(Element* el, android::ResXMLParser* parser, StringPool* out_pool) { in CopyAttributes()
275 std::stack<Element*> node_stack; in Inflate()
276 std::unique_ptr<Element> pending_element; in Inflate()
306 pending_element = util::make_unique<Element>(); in Inflate()
315 std::unique_ptr<Element> el; in Inflate()
319 el = util::make_unique<Element>(); in Inflate()
334 Element* this_el = el.get(); in Inflate()
378 cloned->root = root->CloneElement([&](const xml::Element& src, xml::Element* dst) { in Clone()
396 Element* FindRootElement(Node* node) { in FindRootElement()
404 return NodeCast<Element>(node); in FindRootElement()
407 void Element::AppendChild(std::unique_ptr<Node> child) { in AppendChild()
412 void Element::InsertChild(size_t index, std::unique_ptr<Node> child) { in InsertChild()
417 Attribute* Element::FindAttribute(const StringPiece& ns, const StringPiece& name) { in FindAttribute()
418 return const_cast<Attribute*>(static_cast<const Element*>(this)->FindAttribute(ns, name)); in FindAttribute()
421 const Attribute* Element::FindAttribute(const StringPiece& ns, const StringPiece& name) const { in FindAttribute()
430 void Element::RemoveAttribute(const StringPiece& ns, const StringPiece& name) { in RemoveAttribute()
439 Attribute* Element::FindOrCreateAttribute(const StringPiece& ns, const StringPiece& name) { in FindOrCreateAttribute()
448 Element* Element::FindChild(const StringPiece& ns, const StringPiece& name) { in FindChild()
452 const Element* Element::FindChild(const StringPiece& ns, const StringPiece& name) const { in FindChild()
456 Element* Element::FindChildWithAttribute(const StringPiece& ns, const StringPiece& name, in FindChildWithAttribute()
459 return const_cast<Element*>(static_cast<const Element*>(this)->FindChildWithAttribute( in FindChildWithAttribute()
463 const Element* Element::FindChildWithAttribute(const StringPiece& ns, const StringPiece& name, in FindChildWithAttribute()
468 if (const Element* el = NodeCast<Element>(child.get())) { in FindChildWithAttribute()
484 std::vector<Element*> Element::GetChildElements() { in GetChildElements()
485 std::vector<Element*> elements; in GetChildElements()
487 if (Element* child = NodeCast<Element>(child_node.get())) { in GetChildElements()
494 std::unique_ptr<Node> Element::Clone(const ElementCloneFunc& el_cloner) const { in Clone()
495 auto el = util::make_unique<Element>(); in Clone()
511 std::unique_ptr<Element> Element::CloneElement(const ElementCloneFunc& el_cloner) const { in CloneElement()
512 return std::unique_ptr<Element>(static_cast<Element*>(Clone(el_cloner).release())); in CloneElement()
515 void Element::Accept(Visitor* visitor) { in Accept()
521 void Element::Accept(ConstVisitor* visitor) const { in Accept()
544 void PackageAwareVisitor::BeforeVisitElement(Element* el) { in BeforeVisitElement()
554 void PackageAwareVisitor::AfterVisitElement(Element* el) { in AfterVisitElement()