Home
last modified time | relevance | path

Searched refs:ResXMLTree (Results 1 – 24 of 24) sorted by relevance

/frameworks/base/tools/aapt2/format/binary/
DXmlFlattener_test.cpp58 ::testing::AssertionResult Flatten(xml::XmlResource* doc, android::ResXMLTree* out_tree, in Flatten()
94 ASSERT_THAT(tree.next(), Eq(android::ResXMLTree::START_TAG)); in TEST_F()
105 ASSERT_THAT(tree.next(), Eq(android::ResXMLTree::START_TAG)); in TEST_F()
113 ASSERT_THAT(tree.next(), Eq(android::ResXMLTree::END_TAG)); in TEST_F()
114 ASSERT_THAT(tree.next(), Eq(android::ResXMLTree::START_TAG)); in TEST_F()
120 ASSERT_THAT(tree.next(), Eq(android::ResXMLTree::TEXT)); in TEST_F()
123 ASSERT_THAT(tree.next(), Eq(android::ResXMLTree::END_TAG)); in TEST_F()
127 ASSERT_THAT(tree.next(), Eq(android::ResXMLTree::END_TAG)); in TEST_F()
131 ASSERT_THAT(tree.next(), Eq(android::ResXMLTree::END_NAMESPACE)); in TEST_F()
135 ASSERT_THAT(tree.next(), Eq(android::ResXMLTree::END_DOCUMENT)); in TEST_F()
[all …]
/frameworks/base/tools/aapt/
DAaptXml.h31 ssize_t indexOfAttribute(const android::ResXMLTree& tree, uint32_t attrRes);
37 android::String8 getAttribute(const android::ResXMLTree& tree, const char* ns,
45 android::String8 getAttribute(const android::ResXMLTree& tree, uint32_t attrRes,
53 int32_t getIntegerAttribute(const android::ResXMLTree& tree, const char* ns,
61 inline int32_t getIntegerAttribute(const android::ResXMLTree& tree, const char* ns, in getIntegerAttribute()
71 int32_t getIntegerAttribute(const android::ResXMLTree& tree, uint32_t attrRes,
79 inline int32_t getIntegerAttribute(const android::ResXMLTree& tree, uint32_t attrRes, in getIntegerAttribute()
90 const android::ResXMLTree& tree, uint32_t attrRes, int32_t defValue = -1,
99 const android::ResXMLTree& tree, uint32_t attrRes, in getResolvedIntegerAttribute()
110 const android::ResXMLTree& tree, uint32_t attrRes,
[all …]
DAaptXml.cpp26 static String8 getStringAttributeAtIndex(const ResXMLTree& tree, ssize_t attrIndex, in getStringAttributeAtIndex()
48 static int32_t getIntegerAttributeAtIndex(const ResXMLTree& tree, ssize_t attrIndex, in getIntegerAttributeAtIndex()
69 ssize_t indexOfAttribute(const ResXMLTree& tree, uint32_t attrRes) { in indexOfAttribute()
79 String8 getAttribute(const ResXMLTree& tree, const char* ns, in getAttribute()
88 String8 getAttribute(const ResXMLTree& tree, uint32_t attrRes, String8* outError) { in getAttribute()
96 String8 getResolvedAttribute(const ResTable& resTable, const ResXMLTree& tree, in getResolvedAttribute()
139 int32_t getIntegerAttribute(const ResXMLTree& tree, const char* ns, in getIntegerAttribute()
148 int32_t getIntegerAttribute(const ResXMLTree& tree, uint32_t attrRes, int32_t defValue, in getIntegerAttribute()
157 int32_t getResolvedIntegerAttribute(const ResTable& resTable, const ResXMLTree& tree, in getResolvedIntegerAttribute()
179 void getResolvedResourceAttribute(const ResTable& resTable, const ResXMLTree& tree, in getResolvedResourceAttribute()
DResource.cpp230 ResXMLTree block; in parsePackage()
237 ResXMLTree::event_code_t code; in parsePackage()
238 while ((code=block.next()) != ResXMLTree::START_TAG in parsePackage()
239 && code != ResXMLTree::END_DOCUMENT in parsePackage()
240 && code != ResXMLTree::BAD_DOCUMENT) { in parsePackage()
244 if (code != ResXMLTree::START_TAG) { in parsePackage()
271 while ((code=block.next()) != ResXMLTree::END_DOCUMENT in parsePackage()
272 && code != ResXMLTree::BAD_DOCUMENT) { in parsePackage()
273 if (code == ResXMLTree::START_TAG) { in parsePackage()
580 ResXMLTree::event_code_t code; in checkForIds()
[all …]
DCommand.cpp217 ResXMLTree tree; in doList()
232 static void printResolvedResourceAttribute(const ResTable& resTable, const ResXMLTree& tree, in printResolvedResourceAttribute()
314 static void printCompatibleScreens(ResXMLTree& tree, String8* outError) { in printCompatibleScreens()
316 ResXMLTree::event_code_t code; in printCompatibleScreens()
320 while ((code=tree.next()) != ResXMLTree::END_DOCUMENT && code != ResXMLTree::BAD_DOCUMENT) { in printCompatibleScreens()
321 if (code == ResXMLTree::END_TAG) { in printCompatibleScreens()
328 if (code != ResXMLTree::START_TAG) { in printCompatibleScreens()
415 ResXMLTree tree; in getNfcAidCategories()
420 ResXMLTree::event_code_t code; in getNfcAidCategories()
421 while ((code=tree.next()) != ResXMLTree::END_DOCUMENT && code != ResXMLTree::BAD_DOCUMENT) { in getNfcAidCategories()
[all …]
DXMLNode.cpp97 ResXMLTree* inXml, in hasSubstitutionErrors()
203 ResXMLTree* inXml, in parseStyledString()
219 ResXMLTree::event_code_t code; in parseStyledString()
221 while ((code=inXml->next()) != ResXMLTree::END_DOCUMENT && code != ResXMLTree::BAD_DOCUMENT) { in parseStyledString()
222 if (code == ResXMLTree::TEXT) { in parseStyledString()
242 } else if (code == ResXMLTree::START_TAG) { in parseStyledString()
302 } else if (code == ResXMLTree::END_TAG) { in parseStyledString()
369 } else if (code == ResXMLTree::START_NAMESPACE) { in parseStyledString()
376 if (code == ResXMLTree::BAD_DOCUMENT) { in parseStyledString()
436 void printXMLBlock(ResXMLTree* block) in printXMLBlock()
[all …]
DResourceTable.cpp139 ResXMLTree tree; in compileXmlFile()
302 ResXMLTree& block, bool _appendComment) in PendingAttribute()
328 ResXMLTree& block, in compileAttribute()
343 ResXMLTree::event_code_t code; in compileAttribute()
442 while ((code=block.next()) != ResXMLTree::END_DOCUMENT && code != ResXMLTree::BAD_DOCUMENT) { in compileAttribute()
443 if (code == ResXMLTree::START_TAG) { in compileAttribute()
548 } else if (code == ResXMLTree::END_TAG) { in compileAttribute()
590 ResXMLTree* block, in parseAndAddBag()
687 ResXMLTree* block, in parseAndAddEntry()
784 ResXMLTree block; in compileResourceFile()
[all …]
DXMLNode.h26 ResXMLTree* inXml,
33 void printXMLBlock(ResXMLTree* block);
35 status_t parseXMLResource(const sp<AaptFile>& file, ResXMLTree* outTree,
/frameworks/base/core/jni/
Dandroid_util_XmlBlock.cpp50 ResXMLTree* osb = new ResXMLTree(); in android_content_XmlBlock_nativeCreate()
65 ResXMLTree* osb = reinterpret_cast<ResXMLTree*>(token); in android_content_XmlBlock_nativeGetStringBlock()
77 ResXMLTree* osb = reinterpret_cast<ResXMLTree*>(token); in android_content_XmlBlock_nativeCreateParseState()
365 ResXMLTree* osb = reinterpret_cast<ResXMLTree*>(token); in android_content_XmlBlock_nativeDestroy()
Dandroid_content_res_ApkAssets.cpp129 std::unique_ptr<ResXMLTree> xml_tree = util::make_unique<ResXMLTree>(nullptr /*dynamicRefTable*/); in NativeOpenXml()
Dandroid_util_AssetManager.cpp732 std::unique_ptr<ResXMLTree> xml_tree = util::make_unique<ResXMLTree>(dynamic_ref_table); in NativeOpenXmlAsset()
/frameworks/base/tools/aapt2/cmd/
DLink_test.cpp44 android::ResXMLTree tree; in TEST_F()
72 android::ResXMLTree tree; in TEST_F()
DConvert_test.cpp55 android::ResXMLTree tree; in TEST_F()
93 android::ResXMLTree tree; in TEST_F()
DDump.cpp328 android::ResXMLTree tree; in Dump()
/frameworks/base/cmds/idmap2/include/idmap2/
DXml.h42 mutable ResXMLTree xml_;
/frameworks/base/libs/androidfw/tests/
DAttributeResolution_bench.cpp56 ResXMLTree xml_tree; in BM_ApplyStyle()
137 ResXMLTree xml_tree; in BM_ApplyStyleFramework()
DAttributeResolution_test.cpp65 ResXMLTree xml_parser_;
/frameworks/base/libs/androidfw/include/androidfw/
DResourceTypes.h691 class ResXMLTree; variable
696 explicit ResXMLParser(const ResXMLTree& tree);
789 friend class ResXMLTree;
793 const ResXMLTree& mTree;
805 class ResXMLTree : public ResXMLParser
813 explicit ResXMLTree(const DynamicRefTable* dynamicRefTable);
814 ResXMLTree();
815 ~ResXMLTree();
/frameworks/base/tools/aapt2/test/
DFixture.h92 android::ResXMLTree* out_tree);
/frameworks/base/cmds/idmap/
Dscan.cpp91 int parse_overlay_tag(const ResXMLTree& parser, const char *target_package_name, in parse_overlay_tag()
150 ResXMLTree parser; in parse_manifest()
/frameworks/base/startop/view_compiler/
Dapk_layout_compiler.cc114 android::ResXMLTree xml_tree{dynamic_ref_table}; in CompileApkAssetsLayouts()
/frameworks/base/tools/split-select/
DMain.cpp136 ResXMLTree xml; in getAppInfo()
/frameworks/base/libs/androidfw/
DResourceTypes.cpp1080 ResXMLParser::ResXMLParser(const ResXMLTree& tree) in ResXMLParser()
1611 ResXMLTree::ResXMLTree(const DynamicRefTable* dynamicRefTable) in ResXMLTree() function in android::ResXMLTree
1623 ResXMLTree::ResXMLTree() in ResXMLTree() function in android::ResXMLTree
1634 ResXMLTree::~ResXMLTree() in ~ResXMLTree()
1642 status_t ResXMLTree::setTo(const void* data, size_t size, bool copyData) in setTo()
1739 status_t ResXMLTree::getError() const in getError()
1744 void ResXMLTree::uninit() in uninit()
1755 status_t ResXMLTree::validateNode(const ResXMLTree_node* node) const in validateNode()
/frameworks/base/tools/aapt2/xml/
DXmlDom.cpp278 ResXMLTree tree; in Inflate()