/frameworks/base/libs/androidfw/tests/ |
D | AssetManager2_test.cpp | 231 const ResolvedBag* bag = assetmanager.GetBag(basic::R::array::integerArray1); in TEST_F() local 232 ASSERT_NE(nullptr, bag); in TEST_F() 233 ASSERT_EQ(3u, bag->entry_count); in TEST_F() 235 EXPECT_EQ(static_cast<uint8_t>(Res_value::TYPE_INT_DEC), bag->entries[0].value.dataType); in TEST_F() 236 EXPECT_EQ(1u, bag->entries[0].value.data); in TEST_F() 237 EXPECT_EQ(0, bag->entries[0].cookie); in TEST_F() 239 EXPECT_EQ(static_cast<uint8_t>(Res_value::TYPE_INT_DEC), bag->entries[1].value.dataType); in TEST_F() 240 EXPECT_EQ(2u, bag->entries[1].value.data); in TEST_F() 241 EXPECT_EQ(0, bag->entries[1].cookie); in TEST_F() 243 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 | 770 const ResolvedBag* bag = assetmanager->GetBag(static_cast<uint32_t>(resid)); in NativeGetResourceBagValue() local 771 if (bag == nullptr) { in NativeGetResourceBagValue() 775 uint32_t type_spec_flags = bag->type_spec_flags; in NativeGetResourceBagValue() 778 for (const ResolvedBag::Entry& entry : bag) { in NativeGetResourceBagValue() 803 const ResolvedBag* bag = assetmanager->GetBag(static_cast<uint32_t>(resid)); in NativeGetStyleAttributes() local 804 if (bag == nullptr) { in NativeGetStyleAttributes() 808 jintArray array = env->NewIntArray(bag->entry_count); in NativeGetStyleAttributes() 813 for (uint32_t i = 0; i < bag->entry_count; i++) { in NativeGetStyleAttributes() 814 jint attr_resid = bag->entries[i].key; in NativeGetStyleAttributes() 823 const ResolvedBag* bag = assetmanager->GetBag(static_cast<uint32_t>(resid)); in NativeGetResourceStringArray() local [all …]
|
/frameworks/base/libs/androidfw/include/androidfw/ |
D | AssetManager2.h | 486 inline const ResolvedBag::Entry* begin(const ResolvedBag* bag) { in begin() argument 487 return bag->entries; in begin() 490 inline const ResolvedBag::Entry* end(const ResolvedBag* bag) { in end() argument 491 return bag->entries + bag->entry_count; in end()
|
D | ResourceTypes.h | 1854 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 | 3686 const bag_entry* bag; in applyStyle() local 3689 const ssize_t N = mTable.getBagLocked(resID, &bag, &bagTypeSpecFlags); in applyStyle() 3707 const bag_entry* end = bag + N; in applyStyle() 3708 while (bag < end) { in applyStyle() 3709 const uint32_t attrRes = bag->map.name.ident; in applyStyle() 3718 bag++; in applyStyle() 3734 bag++; in applyStyle() 3755 bag++; in applyStyle() 3761 attrRes, bag->map.value.dataType, bag->map.value.data, in applyStyle() 3766 curEntry->stringBlock = bag->stringBlock; in applyStyle() [all …]
|
D | AssetManager2.cpp | 770 auto bag = GetBag(resid, found_resids); in GetBag() local 777 return bag; in GetBag() 1128 const ResolvedBag* bag = asset_manager_->GetBag(resid); in ApplyStyle() local 1129 if (bag == nullptr) { in ApplyStyle() 1134 type_spec_flags_ |= bag->type_spec_flags; in ApplyStyle() 1144 const auto bag_iter_end = reverse_bag_iterator(begin(bag)); in ApplyStyle() 1145 for (auto bag_iter = reverse_bag_iterator(end(bag)); bag_iter != bag_iter_end; ++bag_iter) { in ApplyStyle() 1200 entry.type_spec_flags |= bag->type_spec_flags; in ApplyStyle()
|
/frameworks/base/tools/aapt2/process/ |
D | SymbolTable.cpp | 271 const android::ResolvedBag* bag = am.GetBag(id.id); in LookupAttributeInTable() local 272 if (bag == nullptr) { in LookupAttributeInTable() 279 const size_t count = bag->entry_count; in LookupAttributeInTable() 281 if (bag->entries[i].key == android::ResTable_map::ATTR_TYPE) { in LookupAttributeInTable() 282 s->attribute = std::make_shared<Attribute>(bag->entries[i].value.data); in LookupAttributeInTable() 289 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 | 913 <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()
|