Home
last modified time | relevance | path

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

/frameworks/base/tools/aapt2/format/binary/
DXmlFlattener_test.cpp57 ::testing::AssertionResult Flatten(xml::XmlResource* doc, android::ResXMLTree* out_tree, in Flatten()
93 ASSERT_THAT(tree.next(), Eq(android::ResXMLTree::START_TAG)); in TEST_F()
104 ASSERT_THAT(tree.next(), Eq(android::ResXMLTree::START_TAG)); in TEST_F()
112 ASSERT_THAT(tree.next(), Eq(android::ResXMLTree::END_TAG)); in TEST_F()
113 ASSERT_THAT(tree.next(), Eq(android::ResXMLTree::START_TAG)); in TEST_F()
119 ASSERT_THAT(tree.next(), Eq(android::ResXMLTree::TEXT)); in TEST_F()
122 ASSERT_THAT(tree.next(), Eq(android::ResXMLTree::END_TAG)); in TEST_F()
126 ASSERT_THAT(tree.next(), Eq(android::ResXMLTree::END_TAG)); in TEST_F()
130 ASSERT_THAT(tree.next(), Eq(android::ResXMLTree::END_NAMESPACE)); in TEST_F()
134 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()
DCommand.cpp218 ResXMLTree tree; in doList()
233 static void printResolvedResourceAttribute(const ResTable& resTable, const ResXMLTree& tree, in printResolvedResourceAttribute()
315 static void printCompatibleScreens(ResXMLTree& tree, String8* outError) { in printCompatibleScreens()
317 ResXMLTree::event_code_t code; in printCompatibleScreens()
321 while ((code=tree.next()) != ResXMLTree::END_DOCUMENT && code != ResXMLTree::BAD_DOCUMENT) { in printCompatibleScreens()
322 if (code == ResXMLTree::END_TAG) { in printCompatibleScreens()
329 if (code != ResXMLTree::START_TAG) { in printCompatibleScreens()
416 ResXMLTree tree; in getNfcAidCategories()
421 ResXMLTree::event_code_t code; in getNfcAidCategories()
422 while ((code=tree.next()) != ResXMLTree::END_DOCUMENT && code != ResXMLTree::BAD_DOCUMENT) { in getNfcAidCategories()
[all …]
DResource.cpp233 ResXMLTree block; in parsePackage()
240 ResXMLTree::event_code_t code; in parsePackage()
241 while ((code=block.next()) != ResXMLTree::START_TAG in parsePackage()
242 && code != ResXMLTree::END_DOCUMENT in parsePackage()
243 && code != ResXMLTree::BAD_DOCUMENT) { in parsePackage()
247 if (code != ResXMLTree::START_TAG) { in parsePackage()
274 while ((code=block.next()) != ResXMLTree::END_DOCUMENT in parsePackage()
275 && code != ResXMLTree::BAD_DOCUMENT) { in parsePackage()
276 if (code == ResXMLTree::START_TAG) { in parsePackage()
583 ResXMLTree::event_code_t code; in checkForIds()
[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 …]
DXMLNode.h26 ResXMLTree* inXml,
33 void printXMLBlock(ResXMLTree* block);
35 status_t parseXMLResource(const sp<AaptFile>& file, ResXMLTree* outTree,
DResourceTable.cpp141 ResXMLTree tree; in compileXmlFile()
304 ResXMLTree& block, bool _appendComment) in PendingAttribute()
330 ResXMLTree& block, in compileAttribute()
345 ResXMLTree::event_code_t code; in compileAttribute()
444 while ((code=block.next()) != ResXMLTree::END_DOCUMENT && code != ResXMLTree::BAD_DOCUMENT) { in compileAttribute()
445 if (code == ResXMLTree::START_TAG) { in compileAttribute()
550 } else if (code == ResXMLTree::END_TAG) { in compileAttribute()
592 ResXMLTree* block, in parseAndAddBag()
689 ResXMLTree* block, in parseAndAddEntry()
786 ResXMLTree block; in compileResourceFile()
[all …]
/frameworks/base/cmds/idmap2/include/idmap2/
DXmlParser.h50 explicit Node(const ResXMLTree& tree);
51 Node(const ResXMLTree& tree, const ResXMLParser::ResXMLPosition& pos);
115 explicit iterator(const ResXMLTree& tree) : tree_(tree), iter_(Node(tree)) { in iterator()
117 iterator(const ResXMLTree& tree, const Node& node) in iterator()
121 const ResXMLTree& tree_;
138 explicit XmlParser(std::unique_ptr<ResXMLTree> tree);
139 mutable std::unique_ptr<ResXMLTree> tree_;
/frameworks/base/core/jni/
Dandroid_util_XmlBlock.cpp53 ResXMLTree* osb = new ResXMLTree(); in android_content_XmlBlock_nativeCreate()
68 ResXMLTree* osb = reinterpret_cast<ResXMLTree*>(token); in android_content_XmlBlock_nativeGetStringBlock()
80 ResXMLTree* osb = reinterpret_cast<ResXMLTree*>(token); in android_content_XmlBlock_nativeCreateParseState()
332 ResXMLTree* osb = reinterpret_cast<ResXMLTree*>(token); in android_content_XmlBlock_nativeDestroy()
Dandroid_content_res_ApkAssets.cpp462 auto xml_tree = util::make_unique<ResXMLTree>(nullptr /*dynamicRefTable*/); in NativeOpenXml()
Dandroid_util_AssetManager.cpp638 auto xml_tree = util::make_unique<ResXMLTree>(assetmanager->GetDynamicRefTableForCookie(cookie)); in NativeOpenXmlAsset()
677 auto xml_tree = util::make_unique<ResXMLTree>(assetmanager->GetDynamicRefTableForCookie(cookie)); in NativeOpenXmlAssetFd()
/frameworks/base/cmds/idmap2/libidmap2/
DXmlParser.cpp32 XmlParser::Node::Node(const ResXMLTree& tree) : Node(tree, get_tree_position(tree)) { in Node()
34 XmlParser::Node::Node(const ResXMLTree& tree, const ResXMLParser::ResXMLPosition& pos) in Node()
155 XmlParser::XmlParser(std::unique_ptr<ResXMLTree> tree) : tree_(std::move(tree)) { in XmlParser()
159 auto tree = std::make_unique<ResXMLTree>(); in Create()
/frameworks/base/libs/androidfw/tests/
DAttributeResolution_bench.cpp55 ResXMLTree xml_tree; in BM_ApplyStyle()
128 ResXMLTree xml_tree; in BM_ApplyStyleFramework()
DIdmap_test.cpp156 auto xml_tree = util::make_unique<ResXMLTree>(std::move(dynamic_ref_table)); in TEST_F()
DAttributeResolution_test.cpp65 ResXMLTree xml_parser_;
/frameworks/base/libs/androidfw/include/androidfw/
DResourceTypes.h722 class ResXMLTree; variable
727 explicit ResXMLParser(const ResXMLTree& tree);
820 friend class ResXMLTree;
824 const ResXMLTree& mTree;
841 class ResXMLTree : public ResXMLParser
849 explicit ResXMLTree(std::shared_ptr<const DynamicRefTable> dynamicRefTable);
850 ResXMLTree();
851 ~ResXMLTree();
/frameworks/base/libs/androidfw/fuzz/resxmlparser_fuzzer/
Dresxmlparser_fuzzer.cpp59 auto tree = android::ResXMLTree(std::move(dynamic_ref_table)); in LLVMFuzzerTestOneInput()
/frameworks/base/tools/aapt2/cmd/
DConvert_test.cpp60 android::ResXMLTree tree; in TEST_F()
98 android::ResXMLTree tree; in TEST_F()
DDump.cpp333 android::ResXMLTree tree; in Dump()
DLink_test.cpp50 android::ResXMLTree tree; in TEST_F()
78 android::ResXMLTree tree; in TEST_F()
/frameworks/base/tools/aapt2/test/
DFixture.h94 android::ResXMLTree* out_tree);
/frameworks/base/tools/split-select/
DMain.cpp135 ResXMLTree xml; in getAppInfo()
/frameworks/base/libs/androidfw/
DResourceTypes.cpp1264 ResXMLParser::ResXMLParser(const ResXMLTree& tree) in ResXMLParser()
1794 ResXMLTree::ResXMLTree(std::shared_ptr<const DynamicRefTable> dynamicRefTable) in ResXMLTree() function in android::ResXMLTree
1805 ResXMLTree::ResXMLTree() in ResXMLTree() function in android::ResXMLTree
1816 ResXMLTree::~ResXMLTree() in ~ResXMLTree()
1824 status_t ResXMLTree::setTo(const void* data, size_t size, bool copyData) in setTo()
1938 status_t ResXMLTree::getError() const in getError()
1943 void ResXMLTree::uninit() in uninit()
1954 status_t ResXMLTree::validateNode(const ResXMLTree_node* node) const in validateNode()
/frameworks/base/tools/aapt2/xml/
DXmlDom.cpp280 ResXMLTree tree; in Inflate()