Home
last modified time | relevance | path

Searched refs:ResolvedBag (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/libs/androidfw/include/androidfw/
DAssetManager2.h44 struct ResolvedBag { struct
232 const ResolvedBag* GetBag(uint32_t resid);
281 const ResolvedBag* GetBag(uint32_t resid, std::vector<uint32_t>& child_resids);
335 std::unordered_map<uint32_t, util::unique_cptr<ResolvedBag>> cached_bags_;
407 inline const ResolvedBag::Entry* begin(const ResolvedBag* bag) { in begin()
411 inline const ResolvedBag::Entry* end(const ResolvedBag* bag) { in end()
/frameworks/base/libs/androidfw/
DAssetManager2.cpp570 const ResolvedBag* AssetManager2::GetBag(uint32_t resid) { in GetBag()
575 const ResolvedBag* AssetManager2::GetBag(uint32_t resid, std::vector<uint32_t>& child_resids) { in GetBag()
614 util::unique_cptr<ResolvedBag> new_bag{reinterpret_cast<ResolvedBag*>( in GetBag()
615 malloc(sizeof(ResolvedBag) + (entry_count * sizeof(ResolvedBag::Entry))))}; in GetBag()
616 ResolvedBag::Entry* new_entry = new_bag->entries; in GetBag()
644 ResolvedBag* result = new_bag.get(); in GetBag()
653 const ResolvedBag* parent_bag = GetBag(parent_resid, child_resids); in GetBag()
664 util::unique_cptr<ResolvedBag> new_bag{reinterpret_cast<ResolvedBag*>( in GetBag()
665 malloc(sizeof(ResolvedBag) + (max_count * sizeof(ResolvedBag::Entry))))}; in GetBag()
666 ResolvedBag::Entry* new_entry = new_bag->entries; in GetBag()
[all …]
DAttributeResolution.cpp52 : public BackTrackingAttributeFinder<BagAttributeFinder, const ResolvedBag::Entry*> {
54 BagAttributeFinder(const ResolvedBag* bag) in BagAttributeFinder()
59 inline uint32_t GetAttribute(const ResolvedBag::Entry* entry) const { in GetAttribute()
90 const ResolvedBag* default_style_bag = nullptr; in ResolveAttrs()
128 const ResolvedBag::Entry* const entry = def_style_attr_finder.Find(cur_ident); in ResolveAttrs()
250 const ResolvedBag* default_style_bag = nullptr; in ApplyStyle()
261 const ResolvedBag* xml_style_bag = nullptr; in ApplyStyle()
306 const ResolvedBag::Entry* entry = xml_style_attr_finder.Find(cur_ident); in ApplyStyle()
320 const ResolvedBag::Entry* entry = def_style_attr_finder.Find(cur_ident); in ApplyStyle()
/frameworks/base/libs/androidfw/tests/
DAssetManager2_test.cpp217 const ResolvedBag* bag = assetmanager.GetBag(basic::R::array::integerArray1); in TEST_F()
244 const ResolvedBag* bag = assetmanager.GetBag(fix_package_id(lib_one::R::style::Theme, 0x03)); in TEST_F()
263 const ResolvedBag* bag = assetmanager.GetBag(libclient::R::style::Theme); in TEST_F()
278 const ResolvedBag* bag_one = assetmanager.GetBag(app::R::style::StyleOne); in TEST_F()
292 const ResolvedBag* bag_two = assetmanager.GetBag(app::R::style::StyleTwo); in TEST_F()
338 const ResolvedBag* bag_one = assetmanager.GetBag(app::R::style::StyleFour); in TEST_F()
DAssetManager2_bench.cpp142 const ResolvedBag* bag = assets.GetBag(app::R::style::StyleTwo); in BM_AssetManagerGetBag()
/frameworks/base/core/jni/
Dandroid_util_AssetManager.cpp613 const ResolvedBag* bag = assetmanager->GetBag(static_cast<uint32_t>(resid)); in NativeGetResourceBagValue()
621 for (const ResolvedBag::Entry& entry : bag) { in NativeGetResourceBagValue()
646 const ResolvedBag* bag = assetmanager->GetBag(static_cast<uint32_t>(resid)); in NativeGetStyleAttributes()
666 const ResolvedBag* bag = assetmanager->GetBag(static_cast<uint32_t>(resid)); in NativeGetResourceStringArray()
677 const ResolvedBag::Entry& entry = bag->entries[i]; in NativeGetResourceStringArray()
722 const ResolvedBag* bag = assetmanager->GetBag(static_cast<uint32_t>(resid)); in NativeGetResourceStringArrayInfo()
738 const ResolvedBag::Entry& entry = bag->entries[i]; in NativeGetResourceStringArrayInfo()
764 const ResolvedBag* bag = assetmanager->GetBag(static_cast<uint32_t>(resid)); in NativeGetResourceIntArray()
780 const ResolvedBag::Entry& entry = bag->entries[i]; in NativeGetResourceIntArray()
802 const ResolvedBag* bag = assetmanager->GetBag(static_cast<uint32_t>(resid)); in NativeGetResourceArraySize()
[all …]