/frameworks/base/tools/aapt2/format/binary/ |
D | XmlFlattener_test.cpp | 57 ::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/ |
D | AaptXml.h | 31 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 …]
|
D | AaptXml.cpp | 26 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()
|
D | Command.cpp | 218 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 …]
|
D | Resource.cpp | 233 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 …]
|
D | XMLNode.cpp | 97 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 …]
|
D | XMLNode.h | 26 ResXMLTree* inXml, 33 void printXMLBlock(ResXMLTree* block); 35 status_t parseXMLResource(const sp<AaptFile>& file, ResXMLTree* outTree,
|
D | ResourceTable.cpp | 141 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/ |
D | XmlParser.h | 50 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/ |
D | android_util_XmlBlock.cpp | 53 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()
|
D | android_content_res_ApkAssets.cpp | 462 auto xml_tree = util::make_unique<ResXMLTree>(nullptr /*dynamicRefTable*/); in NativeOpenXml()
|
D | android_util_AssetManager.cpp | 638 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/ |
D | XmlParser.cpp | 32 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/ |
D | AttributeResolution_bench.cpp | 55 ResXMLTree xml_tree; in BM_ApplyStyle() 128 ResXMLTree xml_tree; in BM_ApplyStyleFramework()
|
D | Idmap_test.cpp | 156 auto xml_tree = util::make_unique<ResXMLTree>(std::move(dynamic_ref_table)); in TEST_F()
|
D | AttributeResolution_test.cpp | 65 ResXMLTree xml_parser_;
|
/frameworks/base/libs/androidfw/include/androidfw/ |
D | ResourceTypes.h | 722 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/ |
D | resxmlparser_fuzzer.cpp | 59 auto tree = android::ResXMLTree(std::move(dynamic_ref_table)); in LLVMFuzzerTestOneInput()
|
/frameworks/base/tools/aapt2/cmd/ |
D | Convert_test.cpp | 60 android::ResXMLTree tree; in TEST_F() 98 android::ResXMLTree tree; in TEST_F()
|
D | Dump.cpp | 333 android::ResXMLTree tree; in Dump()
|
D | Link_test.cpp | 50 android::ResXMLTree tree; in TEST_F() 78 android::ResXMLTree tree; in TEST_F()
|
/frameworks/base/tools/aapt2/test/ |
D | Fixture.h | 94 android::ResXMLTree* out_tree);
|
/frameworks/base/tools/split-select/ |
D | Main.cpp | 135 ResXMLTree xml; in getAppInfo()
|
/frameworks/base/libs/androidfw/ |
D | ResourceTypes.cpp | 1264 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/ |
D | XmlDom.cpp | 280 ResXMLTree tree; in Inflate()
|