Searched refs:xml_tree (Results 1 – 5 of 5) sorted by relevance
/aosp14/frameworks/base/libs/androidfw/tests/ |
H A 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()
|
H A 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() 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() 177 ASSERT_EQ(xml_tree->getAttributeDataType(2), Res_value::TYPE_INT_DEC); in TEST_F() [all …]
|
/aosp14/frameworks/base/startop/view_compiler/ |
H A D | apk_layout_compiler.cc | 117 android::ResXMLTree xml_tree{dynamic_ref_table}; in CompileApkAssetsLayouts() local 118 xml_tree.setTo(asset->getBuffer(/*wordAligned=*/true), asset->getLength(), in CompileApkAssetsLayouts() 120 android::ResXMLParser parser{xml_tree}; in CompileApkAssetsLayouts()
|
/aosp14/frameworks/base/core/jni/ |
H A 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()
|
H A D | android_util_AssetManager.cpp | 612 auto xml_tree = util::make_unique<ResXMLTree>(assetmanager->GetDynamicRefTableForCookie(cookie)); in NativeOpenXmlAsset() local 613 status_t err = xml_tree->setTo(buffer.unsafe_ptr(), length, true); in NativeOpenXmlAsset() 618 return reinterpret_cast<jlong>(xml_tree.release()); in NativeOpenXmlAsset() 651 auto xml_tree = util::make_unique<ResXMLTree>(assetmanager->GetDynamicRefTableForCookie(cookie)); in NativeOpenXmlAssetFd() local 652 status_t err = xml_tree->setTo(buffer.unsafe_ptr(), length, true); in NativeOpenXmlAssetFd() 657 return reinterpret_cast<jlong>(xml_tree.release()); in NativeOpenXmlAssetFd()
|