Home
last modified time | relevance | path

Searched refs:xml_tree (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/libs/androidfw/tests/
DAttributeResolution_bench.cpp56 ResXMLTree xml_tree; in BM_ApplyStyle() local
57 if (xml_tree.setTo(asset->getBuffer(true), asset->getLength(), false /*copyData*/) != NO_ERROR) { in BM_ApplyStyle()
63 while (xml_tree.next() != ResXMLParser::START_TAG) { in BM_ApplyStyle()
76 ApplyStyle(theme.get(), &xml_tree, 0u /*def_style_attr*/, 0u /*def_style_res*/, attrs.data(), in BM_ApplyStyle()
137 ResXMLTree xml_tree; in BM_ApplyStyleFramework() local
138 if (xml_tree.setTo(asset->getBuffer(true), asset->getLength(), false /*copyData*/) != NO_ERROR) { in BM_ApplyStyleFramework()
144 while (xml_tree.next() != ResXMLParser::START_TAG) { in BM_ApplyStyleFramework()
169 ApplyStyle(theme.get(), &xml_tree, 0x01010084u /*def_style_attr*/, 0u /*def_style_res*/, in BM_ApplyStyleFramework()
/frameworks/base/core/jni/
Dandroid_content_res_ApkAssets.cpp129 std::unique_ptr<ResXMLTree> xml_tree = util::make_unique<ResXMLTree>(nullptr /*dynamicRefTable*/); in NativeOpenXml() local
130 status_t err = xml_tree->setTo(asset->getBuffer(true), asset->getLength(), true); in NativeOpenXml()
137 return reinterpret_cast<jlong>(xml_tree.release()); in NativeOpenXml()
Dandroid_util_AssetManager.cpp732 std::unique_ptr<ResXMLTree> xml_tree = util::make_unique<ResXMLTree>(dynamic_ref_table); in NativeOpenXmlAsset() local
733 status_t err = xml_tree->setTo(asset->getBuffer(true), asset->getLength(), true); in NativeOpenXmlAsset()
740 return reinterpret_cast<jlong>(xml_tree.release()); in NativeOpenXmlAsset()
/frameworks/base/startop/view_compiler/
Dapk_layout_compiler.cc114 android::ResXMLTree xml_tree{dynamic_ref_table}; in CompileApkAssetsLayouts() local
115 xml_tree.setTo(asset->getBuffer(/*wordAligned=*/true), in CompileApkAssetsLayouts()
118 android::ResXMLParser parser{xml_tree}; in CompileApkAssetsLayouts()