Home
last modified time | relevance | path

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

/frameworks/base/libs/androidfw/include/androidfw/
DAssetManager2.h44 struct ResolvedBag { struct
267 const ResolvedBag* GetBag(uint32_t resid);
375 const ResolvedBag* GetBag(uint32_t resid, std::vector<uint32_t>& child_resids);
397 std::unordered_map<uint32_t, util::unique_cptr<ResolvedBag>> cached_bags_;
524 inline const ResolvedBag::Entry* begin(const ResolvedBag* bag) { in begin()
528 inline const ResolvedBag::Entry* end(const ResolvedBag* bag) { in end()
/frameworks/base/libs/androidfw/
DAttributeResolution.cpp52 : public BackTrackingAttributeFinder<BagAttributeFinder, const ResolvedBag::Entry*> {
54 explicit 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()
308 const ResolvedBag::Entry* entry = xml_style_attr_finder.Find(cur_ident); in ApplyStyle()
324 const ResolvedBag::Entry* entry = def_style_attr_finder.Find(cur_ident); in ApplyStyle()
DAssetManager2.cpp975 const ResolvedBag* AssetManager2::GetBag(uint32_t resid) { in GetBag()
987 static bool compare_bag_entries(const ResolvedBag::Entry& entry1, in compare_bag_entries()
988 const ResolvedBag::Entry& entry2) { in compare_bag_entries()
992 const ResolvedBag* AssetManager2::GetBag(uint32_t resid, std::vector<uint32_t>& child_resids) { in GetBag()
1032 util::unique_cptr<ResolvedBag> new_bag{reinterpret_cast<ResolvedBag*>( in GetBag()
1033 malloc(sizeof(ResolvedBag) + (entry_count * sizeof(ResolvedBag::Entry))))}; in GetBag()
1036 ResolvedBag::Entry* new_entry = new_bag->entries; in GetBag()
1072 ResolvedBag* result = new_bag.get(); in GetBag()
1081 const ResolvedBag* parent_bag = GetBag(parent_resid, child_resids); in GetBag()
1092 util::unique_cptr<ResolvedBag> new_bag{reinterpret_cast<ResolvedBag*>( in GetBag()
[all …]
/frameworks/base/libs/androidfw/tests/
DAssetManager2_test.cpp260 const ResolvedBag* bag = assetmanager.GetBag(basic::R::array::integerArray1); in TEST_F()
287 const ResolvedBag* bag = assetmanager.GetBag(fix_package_id(lib_one::R::style::Theme, 0x03)); in TEST_F()
306 const ResolvedBag* bag = assetmanager.GetBag(libclient::R::style::ThemeMultiLib); in TEST_F()
327 const ResolvedBag* bag = assetmanager.GetBag(libclient::R::style::Theme); in TEST_F()
342 const ResolvedBag* bag_one = assetmanager.GetBag(app::R::style::StyleOne); in TEST_F()
356 const ResolvedBag* bag_two = assetmanager.GetBag(app::R::style::StyleTwo); in TEST_F()
408 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.cpp737 const ResolvedBag* bag = assetmanager->GetBag(static_cast<uint32_t>(resid)); in NativeGetResourceBagValue()
745 for (const ResolvedBag::Entry& entry : bag) { in NativeGetResourceBagValue()
770 const ResolvedBag* bag = assetmanager->GetBag(static_cast<uint32_t>(resid)); in NativeGetStyleAttributes()
790 const ResolvedBag* bag = assetmanager->GetBag(static_cast<uint32_t>(resid)); in NativeGetResourceStringArray()
801 const ResolvedBag::Entry& entry = bag->entries[i]; in NativeGetResourceStringArray()
846 const ResolvedBag* bag = assetmanager->GetBag(static_cast<uint32_t>(resid)); in NativeGetResourceStringArrayInfo()
862 const ResolvedBag::Entry& entry = bag->entries[i]; in NativeGetResourceStringArrayInfo()
888 const ResolvedBag* bag = assetmanager->GetBag(static_cast<uint32_t>(resid)); in NativeGetResourceIntArray()
904 const ResolvedBag::Entry& entry = bag->entries[i]; in NativeGetResourceIntArray()
926 const ResolvedBag* bag = assetmanager->GetBag(static_cast<uint32_t>(resid)); in NativeGetResourceArraySize()
[all …]
/frameworks/base/cmds/idmap2/idmap2/
DLookup.cpp139 const android::ResolvedBag* bag = am->GetBag(static_cast<uint32_t>(value.data)); in GetValue()
151 const android::ResolvedBag::Entry& entry = bag->entries[i]; in GetValue()
/frameworks/base/tools/aapt2/process/
DSymbolTable.cpp272 const android::ResolvedBag* bag = am.GetBag(id.id); in LookupAttributeInTable()
290 const android::ResolvedBag::Entry& map_entry = bag->entries[i]; in LookupAttributeInTable()