Home
last modified time | relevance | path

Searched refs:XMLNode (Results 1 – 10 of 10) sorted by relevance

/frameworks/base/tools/aapt/
DXMLNode.h13 class XMLNode; variable
37 class XMLNode : public RefBase
40 static sp<XMLNode> parse(const sp<AaptFile>& file);
43 sp<XMLNode> newNamespace(const String8& filename, const String16& prefix, const String16& uri) { in newNamespace()
44 return new XMLNode(filename, prefix, uri, true); in newNamespace()
48 sp<XMLNode> newElement(const String8& filename, const String16& ns, const String16& name) { in newElement()
49 return new XMLNode(filename, ns, name, false); in newElement()
53 sp<XMLNode> newCData(const String8& filename) { in newCData()
54 return new XMLNode(filename); in newCData()
70 const Vector<sp<XMLNode> >& getChildren() const;
[all …]
DXMLNode.cpp558 sp<XMLNode> root = XMLNode::parse(file); in parseXMLResource()
586 sp<XMLNode> XMLNode::parse(const sp<AaptFile>& file) in parse()
632 XMLNode::XMLNode() in XMLNode() function in XMLNode
638 XMLNode::XMLNode(const String8& filename, const String16& s1, const String16& s2, bool isNamespace) in XMLNode() function in XMLNode
654 XMLNode::XMLNode(const String8& filename) in XMLNode() function in XMLNode
660 XMLNode::type XMLNode::getType() const in getType()
671 const String16& XMLNode::getNamespacePrefix() const in getNamespacePrefix()
676 const String16& XMLNode::getNamespaceUri() const in getNamespaceUri()
681 const String16& XMLNode::getElementNamespace() const in getElementNamespace()
686 const String16& XMLNode::getElementName() const in getElementName()
[all …]
DResource.cpp709 bool addTagAttribute(const sp<XMLNode>& node, const char* ns8, in addTagAttribute()
720 XMLNode::attribute_entry* existingEntry = node->editAttribute(ns, attr); in addTagAttribute()
757 bool addTagAttribute(const sp<XMLNode>& node, const char* ns8, in addTagAttribute()
763 static void fullyQualifyClassName(const String8& package, sp<XMLNode> node, in fullyQualifyClassName()
765 XMLNode::attribute_entry* attr = node->editAttribute( in fullyQualifyClassName()
793 status_t massageManifest(Bundle* bundle, sp<XMLNode> root) in massageManifest()
808 const XMLNode::attribute_entry* attr = root->getAttribute( in massageManifest()
819 const XMLNode::attribute_entry* attr = root->getAttribute( in massageManifest()
826 sp<XMLNode> vers = root->getChildElement(String16(), String16("uses-sdk")); in massageManifest()
831 vers = XMLNode::newElement(root->getFilename(), String16(), String16("uses-sdk")); in massageManifest()
[all …]
DAndroid.mk46 XMLNode.cpp \
DResourceTable.h20 class XMLNode; variable
54 const sp<XMLNode>& xmlTree,
207 const sp<XMLNode>& root);
DResourceTable.cpp49 sp<XMLNode> root = XMLNode::parse(target); in compileXmlFile()
65 sp<XMLNode> root = XMLNode::parse(target); in compileXmlFile()
76 const sp<XMLNode>& root, in compileXmlFile()
4677 const sp<XMLNode>& root) { in modifyForCompat()
4695 sp<XMLNode> newRoot = NULL; in modifyForCompat()
4698 Vector<sp<XMLNode> > nodesToVisit; in modifyForCompat()
4701 sp<XMLNode> node = nodesToVisit.top(); in modifyForCompat()
4710 const Vector<XMLNode::attribute_entry>& attrs = node->getAttributes(); in modifyForCompat()
4712 const XMLNode::attribute_entry& attr = attrs[i]; in modifyForCompat()
4738 const Vector<sp<XMLNode> >& children = node->getChildren(); in modifyForCompat()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/omadm/
DMOTree.java28 public MOTree(XMLNode node, String urn) throws IOException, SAXException { in MOTree()
29 Iterator<XMLNode> children = node.getChildren().iterator(); in MOTree()
34 XMLNode child = children.next(); in MOTree()
47 for (XMLNode child : node.getChildren()) { in MOTree()
88 private static void buildNode(OMANode parent, XMLNode node) throws IOException { in buildNode()
92 Map<String, XMLNode> checkMap = new HashMap<String, XMLNode>(3); in buildNode()
95 List<XMLNode> children = new ArrayList<XMLNode>(); in buildNode()
99 for (XMLNode child : node.getChildren()) { in buildNode()
100 XMLNode old = checkMap.put(child.getTag(), child); in buildNode()
124 XMLNode typeNode = getNextNode(child, TypeTag); in buildNode()
[all …]
DXMLNode.java14 public class XMLNode { class
17 private final List<XMLNode> mChildren;
18 private final XMLNode mParent;
23 public XMLNode(XMLNode parent, String tag, Attributes attributes) throws SAXException { in XMLNode() method in XMLNode
35 mChildren = new ArrayList<XMLNode>(); in XMLNode()
53 public void addChild(XMLNode child) { in addChild()
80 public XMLNode getParent() { in getParent()
97 public List<XMLNode> getChildren() { in getChildren()
118 for (XMLNode child : mChildren) in toString()
DSOAPParser.java21 private XMLNode mRoot;
22 private XMLNode mCurrent;
55 public XMLNode parse(File file) throws IOException, ParserConfigurationException, SAXException { in parse()
70 XMLNode parent = mCurrent; in startElement()
72 mCurrent = new XMLNode(mCurrent, qName, attributes); in startElement()
109 private static void extractFields(XMLNode node, Map<RequestDetail.RequestFields, in extractFields()
133 for (XMLNode child : node.getChildren()) { in extractFields()
140 XMLNode root = soapParser.parse(new File(args[0])); in main()
DOMAParser.java18 private XMLNode mRoot;
19 private XMLNode mCurrent;
34 XMLNode parent = mCurrent; in startElement()
36 mCurrent = new XMLNode(mCurrent, qName, attributes); in startElement()