/frameworks/base/libs/androidfw/tests/ |
D | AssetManager2_test.cpp | 260 const ResolvedBag* bag = assetmanager.GetBag(basic::R::array::integerArray1); in TEST_F() local 261 ASSERT_NE(nullptr, bag); in TEST_F() 262 ASSERT_EQ(3u, bag->entry_count); in TEST_F() 264 EXPECT_EQ(static_cast<uint8_t>(Res_value::TYPE_INT_DEC), bag->entries[0].value.dataType); in TEST_F() 265 EXPECT_EQ(1u, bag->entries[0].value.data); in TEST_F() 266 EXPECT_EQ(0, bag->entries[0].cookie); in TEST_F() 268 EXPECT_EQ(static_cast<uint8_t>(Res_value::TYPE_INT_DEC), bag->entries[1].value.dataType); in TEST_F() 269 EXPECT_EQ(2u, bag->entries[1].value.data); in TEST_F() 270 EXPECT_EQ(0, bag->entries[1].cookie); in TEST_F() 272 EXPECT_EQ(static_cast<uint8_t>(Res_value::TYPE_INT_DEC), bag->entries[2].value.dataType); in TEST_F() [all …]
|
D | AssetManager2_bench.cpp | 142 const ResolvedBag* bag = assets.GetBag(app::R::style::StyleTwo); in BM_AssetManagerGetBag() local 143 const auto bag_end = end(bag); in BM_AssetManagerGetBag() 144 for (auto iter = begin(bag); iter != bag_end; ++iter) { in BM_AssetManagerGetBag()
|
/frameworks/base/core/jni/ |
D | android_util_AssetManager.cpp | 737 const ResolvedBag* bag = assetmanager->GetBag(static_cast<uint32_t>(resid)); in NativeGetResourceBagValue() local 738 if (bag == nullptr) { in NativeGetResourceBagValue() 742 uint32_t type_spec_flags = bag->type_spec_flags; in NativeGetResourceBagValue() 745 for (const ResolvedBag::Entry& entry : bag) { in NativeGetResourceBagValue() 770 const ResolvedBag* bag = assetmanager->GetBag(static_cast<uint32_t>(resid)); in NativeGetStyleAttributes() local 771 if (bag == nullptr) { in NativeGetStyleAttributes() 775 jintArray array = env->NewIntArray(bag->entry_count); in NativeGetStyleAttributes() 780 for (uint32_t i = 0; i < bag->entry_count; i++) { in NativeGetStyleAttributes() 781 jint attr_resid = bag->entries[i].key; in NativeGetStyleAttributes() 790 const ResolvedBag* bag = assetmanager->GetBag(static_cast<uint32_t>(resid)); in NativeGetResourceStringArray() local [all …]
|
/frameworks/base/cmds/idmap2/idmap2/ |
D | Lookup.cpp | 139 const android::ResolvedBag* bag = am->GetBag(static_cast<uint32_t>(value.data)); in GetValue() local 140 if (bag == nullptr) { in GetValue() 150 for (size_t i = 0; i < bag->entry_count; ++i) { in GetValue() 151 const android::ResolvedBag::Entry& entry = bag->entries[i]; in GetValue() 160 if (i != bag->entry_count - 1) { in GetValue()
|
/frameworks/base/libs/androidfw/include/androidfw/ |
D | AssetManager2.h | 524 inline const ResolvedBag::Entry* begin(const ResolvedBag* bag) { in begin() argument 525 return bag->entries; in begin() 528 inline const ResolvedBag::Entry* end(const ResolvedBag* bag) { in end() argument 529 return bag->entries + bag->entry_count; in end()
|
D | ResourceTypes.h | 1944 void unlockBag(const bag_entry* bag) const;
|
/frameworks/base/libs/androidfw/ |
D | AttributeResolution.cpp | 54 explicit BagAttributeFinder(const ResolvedBag* bag) in BagAttributeFinder() argument 55 : BackTrackingAttributeFinder(bag != nullptr ? bag->entries : nullptr, in BagAttributeFinder() 56 bag != nullptr ? bag->entries + bag->entry_count : nullptr) { in BagAttributeFinder()
|
D | ResourceTypes.cpp | 3689 const bag_entry* bag; in applyStyle() local 3692 const ssize_t N = mTable.getBagLocked(resID, &bag, &bagTypeSpecFlags); in applyStyle() 3710 const bag_entry* end = bag + N; in applyStyle() 3711 while (bag < end) { in applyStyle() 3712 const uint32_t attrRes = bag->map.name.ident; in applyStyle() 3721 bag++; in applyStyle() 3737 bag++; in applyStyle() 3758 bag++; in applyStyle() 3764 attrRes, bag->map.value.dataType, bag->map.value.data, in applyStyle() 3769 curEntry->stringBlock = bag->stringBlock; in applyStyle() [all …]
|
D | AssetManager2.cpp | 977 auto bag = GetBag(resid, found_resids); in GetBag() local 984 return bag; in GetBag() 1359 const ResolvedBag* bag = asset_manager_->GetBag(resid); in ApplyStyle() local 1360 if (bag == nullptr) { in ApplyStyle() 1365 type_spec_flags_ |= bag->type_spec_flags; in ApplyStyle() 1375 const auto bag_iter_end = reverse_bag_iterator(begin(bag)); in ApplyStyle() 1376 for (auto bag_iter = reverse_bag_iterator(end(bag)); bag_iter != bag_iter_end; ++bag_iter) { in ApplyStyle() 1431 entry.type_spec_flags |= bag->type_spec_flags; in ApplyStyle()
|
/frameworks/base/tools/aapt2/process/ |
D | SymbolTable.cpp | 272 const android::ResolvedBag* bag = am.GetBag(id.id); in LookupAttributeInTable() local 273 if (bag == nullptr) { in LookupAttributeInTable() 280 const size_t count = bag->entry_count; in LookupAttributeInTable() 282 if (bag->entries[i].key == android::ResTable_map::ATTR_TYPE) { in LookupAttributeInTable() 283 s->attribute = std::make_shared<Attribute>(bag->entries[i].value.data); in LookupAttributeInTable() 290 const android::ResolvedBag::Entry& map_entry = bag->entries[i]; in LookupAttributeInTable()
|
/frameworks/base/tools/aapt2/ |
D | readme.md | 127 - Support `<bag>` tag and treat as `<style>` regardless of type.
|
D | ResourceParser_test.cpp | 918 <bag name="bag" type="configVarying"> in TEST_F()
|
/frameworks/base/tools/aapt/ |
D | ResourceTable.cpp | 4660 const KeyedVector<String16, Item>& bag = e->getBag(); in modifyForCompat() local 4661 const size_t bagCount = bag.size(); in modifyForCompat() 4663 const uint32_t attrId = getResId(bag.keyAt(bi), &attr16); in modifyForCompat() 4666 AaptUtil::appendValue(attributesToRemove, sdkLevel, bag.keyAt(bi)); in modifyForCompat()
|