summaryrefslogtreecommitdiff
path: root/tools/aapt/XMLNode.h
diff options
context:
space:
mode:
author Adam Lesinski <adamlesinski@google.com> 2014-09-19 15:10:04 -0700
committer Adam Lesinski <adamlesinski@google.com> 2014-09-22 10:51:20 -0700
commite572c011feabf6319ba836cf5bc4c3baa0ba6a85 (patch)
tree14a4e5461bbdcec4fb348663b8144efb28a796e4 /tools/aapt/XMLNode.h
parent82a2dd8efe48d3a4e04655f01329da857ace4b7d (diff)
AAPT: Continuation of public/private attribute fix
XML files like layouts are now scanned and checked for v21 attributes. If those kinds of attributes are found, then we remove them in the original version and synthesize a new xml file under the v21 configuration. Bug:17520380 Change-Id: Icf984cb96134180a2e35349c1dbf2cef9a8f0bda
Diffstat (limited to 'tools/aapt/XMLNode.h')
-rw-r--r--tools/aapt/XMLNode.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/aapt/XMLNode.h b/tools/aapt/XMLNode.h
index ccbf9f403116..3161f6500291 100644
--- a/tools/aapt/XMLNode.h
+++ b/tools/aapt/XMLNode.h
@@ -116,6 +116,8 @@ public:
status_t addAttribute(const String16& ns, const String16& name,
const String16& value);
+ status_t removeAttribute(size_t index);
+
void setAttributeResID(size_t attrIdx, uint32_t resId);
status_t appendChars(const String16& chars);
@@ -137,6 +139,8 @@ public:
status_t flatten(const sp<AaptFile>& dest, bool stripComments,
bool stripRawValues) const;
+ sp<XMLNode> clone() const;
+
void print(int indent=0);
private:
@@ -163,6 +167,9 @@ private:
static void XMLCALL
commentData(void *userData, const char *comment);
+ // For cloning
+ XMLNode();
+
// Creating an element node.
XMLNode(const String8& filename, const String16& s1, const String16& s2, bool isNamespace);