Lines Matching refs:XMLNode
46 sp<XMLNode> root = XMLNode::parse(target); in compileXmlFile()
62 sp<XMLNode> root = XMLNode::parse(target); in compileXmlFile()
73 const sp<XMLNode>& root, in compileXmlFile()
4770 const sp<AaptFile>& target, const sp<XMLNode>& root) { in versionForCompat()
4771 XMLNode* node = root.get(); in versionForCompat()
4772 while (node->getType() != XMLNode::TYPE_ELEMENT) { in versionForCompat()
4842 const sp<XMLNode>& root) { in modifyForCompat()
4864 sp<XMLNode> newRoot = NULL; in modifyForCompat()
4867 Vector<sp<XMLNode> > nodesToVisit; in modifyForCompat()
4870 sp<XMLNode> node = nodesToVisit.top(); in modifyForCompat()
4888 const Vector<XMLNode::attribute_entry>& attrs = node->getAttributes(); in modifyForCompat()
4890 const XMLNode::attribute_entry& attr = attrs[i]; in modifyForCompat()
4916 const Vector<sp<XMLNode> >& children = node->getChildren(); in modifyForCompat()
5028 static sp<XMLNode> findOnlyChildElement(const sp<XMLNode>& parent) { in findOnlyChildElement()
5029 const Vector<sp<XMLNode> >& children = parent->getChildren(); in findOnlyChildElement()
5030 sp<XMLNode> onlyChild; in findOnlyChildElement()
5032 if (children[i]->getType() != XMLNode::TYPE_CDATA) { in findOnlyChildElement()
5078 const sp<XMLNode>& root) { in processBundleFormat()
5079 Vector<sp<XMLNode> > namespaces; in processBundleFormat()
5080 if (root->getType() == XMLNode::TYPE_NAMESPACE) { in processBundleFormat()
5089 const sp<XMLNode>& parent, in processBundleFormatImpl()
5090 Vector<sp<XMLNode> >* namespaces) { in processBundleFormatImpl()
5096 Vector<sp<XMLNode> >& children = parent->getChildren(); in processBundleFormatImpl()
5098 const sp<XMLNode>& child = children[i]; in processBundleFormatImpl()
5100 if (child->getType() == XMLNode::TYPE_CDATA) { in processBundleFormatImpl()
5102 } else if (child->getType() == XMLNode::TYPE_NAMESPACE) { in processBundleFormatImpl()
5114 if (child->getType() == XMLNode::TYPE_NAMESPACE) { in processBundleFormatImpl()
5123 sp<XMLNode> nestedRoot = findOnlyChildElement(child); in processBundleFormatImpl()
5133 const XMLNode::attribute_entry* attr = child->getAttribute(String16(), kName16); in processBundleFormatImpl()
5228 const sp<XMLNode>& ns = namespaces->itemAt(nsIndex - 1); in processBundleFormatImpl()
5229 sp<XMLNode> newNs = XMLNode::newNamespace(ns->getFilename(), ns->getNamespacePrefix(), in processBundleFormatImpl()