Searched refs:xml_tree (Results 1 – 5 of 5) sorted by relevance
/frameworks/base/libs/androidfw/tests/ |
D | AttributeResolution_bench.cpp | 55 ResXMLTree xml_tree; in BM_ApplyStyle() local 56 if (xml_tree.setTo(asset->getBuffer(true), asset->getLength(), false /*copyData*/) != NO_ERROR) { in BM_ApplyStyle() 62 while (xml_tree.next() != ResXMLParser::START_TAG) { in BM_ApplyStyle() 75 ApplyStyle(theme.get(), &xml_tree, 0u /*def_style_attr*/, 0u /*def_style_res*/, attrs.data(), in BM_ApplyStyle() 128 ResXMLTree xml_tree; in BM_ApplyStyleFramework() local 129 if (xml_tree.setTo(asset->getBuffer(true), asset->getLength(), false /*copyData*/) != NO_ERROR) { in BM_ApplyStyleFramework() 135 while (xml_tree.next() != ResXMLParser::START_TAG) { in BM_ApplyStyleFramework() 160 ApplyStyle(theme.get(), &xml_tree, 0x01010084u /*def_style_attr*/, 0u /*def_style_res*/, in BM_ApplyStyleFramework()
|
D | Idmap_test.cpp | 156 auto xml_tree = util::make_unique<ResXMLTree>(std::move(dynamic_ref_table)); in TEST_F() local 157 status_t err = xml_tree->setTo(asset->getBuffer(true), asset->getLength(), false); in TEST_F() 160 while (xml_tree->next() != ResXMLParser::START_TAG) { } in TEST_F() 164 ASSERT_EQ(xml_tree->getAttributeNameResID(0), 0x010100d0 /* android:attr/id */); in TEST_F() 165 ASSERT_EQ(xml_tree->getAttributeDataType(0), Res_value::TYPE_REFERENCE); in TEST_F() 166 ASSERT_EQ(xml_tree->getAttributeData(0), overlayable::R::id::hello_view); in TEST_F() 170 ASSERT_EQ(xml_tree->getAttributeNameResID(1), 0x0101014f /* android:attr/text */); in TEST_F() 171 ASSERT_EQ(xml_tree->getAttributeDataType(1), Res_value::TYPE_REFERENCE); in TEST_F() 172 ASSERT_EQ(xml_tree->getAttributeData(1), 0x01040013 /* android:string/yes */); in TEST_F() 176 ASSERT_EQ(xml_tree->getAttributeNameResID(2), overlayable::R::attr::max_lines); in TEST_F() [all …]
|
/frameworks/base/tools/localedata/ |
D | extract_icu_data.py | 64 xml_tree = ElementTree.parse(input_file_name) 65 likely_subtags = xml_tree.find('likelySubtags')
|
/frameworks/base/core/jni/ |
D | android_content_res_ApkAssets.cpp | 462 auto xml_tree = util::make_unique<ResXMLTree>(nullptr /*dynamicRefTable*/); in NativeOpenXml() local 463 status_t err = xml_tree->setTo(buffer.unsafe_ptr(), length, true); in NativeOpenXml() 468 return reinterpret_cast<jlong>(xml_tree.release()); in NativeOpenXml()
|
D | android_util_AssetManager.cpp | 638 auto xml_tree = util::make_unique<ResXMLTree>(assetmanager->GetDynamicRefTableForCookie(cookie)); in NativeOpenXmlAsset() local 639 status_t err = xml_tree->setTo(buffer.unsafe_ptr(), length, true); in NativeOpenXmlAsset() 644 return reinterpret_cast<jlong>(xml_tree.release()); in NativeOpenXmlAsset() 677 auto xml_tree = util::make_unique<ResXMLTree>(assetmanager->GetDynamicRefTableForCookie(cookie)); in NativeOpenXmlAssetFd() local 678 status_t err = xml_tree->setTo(buffer.unsafe_ptr(), length, true); in NativeOpenXmlAssetFd() 683 return reinterpret_cast<jlong>(xml_tree.release()); in NativeOpenXmlAssetFd()
|