/aosp14/frameworks/base/libs/androidfw/tests/ |
H A D | AssetManager2_test.cpp | 257 ASSERT_TRUE(bag.has_value()); in TEST_F() 259 ASSERT_EQ(3u, (*bag)->entry_count); in TEST_F() 263 EXPECT_EQ(0, (*bag)->entries[0].cookie); in TEST_F() 284 ASSERT_TRUE(bag.has_value()); in TEST_F() 286 ASSERT_GE((*bag)->entry_count, 2u); in TEST_F() 303 ASSERT_TRUE(bag.has_value()); in TEST_F() 304 ASSERT_EQ((*bag)->entry_count, 2u); in TEST_F() 323 ASSERT_TRUE(bag.has_value()); in TEST_F() 324 ASSERT_GE((*bag)->entry_count, 2u); in TEST_F() 404 ASSERT_TRUE(bag.has_value()); in TEST_F() [all …]
|
H A D | AssetManager2_bench.cpp | 142 auto bag = assets.GetBag(app::R::style::StyleTwo); in BM_AssetManagerGetBag() local 143 if (!bag.has_value()) { in BM_AssetManagerGetBag() 147 const auto bag_end = end(*bag); in BM_AssetManagerGetBag() 148 for (auto iter = begin(*bag); iter != bag_end; ++iter) { in BM_AssetManagerGetBag()
|
/aosp14/frameworks/base/core/jni/ |
H A D | android_util_AssetManager.cpp | 686 if (!bag.has_value()) { in NativeGetResourceBagValue() 718 const ResolvedBag* bag = *bag_result; in NativeGetStyleAttributes() local 740 const ResolvedBag* bag = *bag_result; in NativeGetResourceStringArray() local 748 AssetManager2::SelectedValue attr_value(bag, bag->entries[i]); in NativeGetResourceStringArray() 799 const ResolvedBag* bag = *bag_result; in NativeGetResourceStringArrayInfo() local 811 AssetManager2::SelectedValue attr_value(bag, bag->entries[i]); in NativeGetResourceStringArrayInfo() 838 const ResolvedBag* bag = *bag_result; in NativeGetResourceIntArray() local 850 AssetManager2::SelectedValue attr_value(bag, bag->entries[i]); in NativeGetResourceIntArray() 869 if (!bag.has_value()) { in NativeGetResourceArraySize() 889 const ResolvedBag* bag = *bag_result; in NativeGetResourceArray() local [all …]
|
/aosp14/frameworks/base/libs/androidfw/include/androidfw/ |
H A D | AssetManager2.h | 246 SelectedValue(const ResolvedBag* bag, const ResolvedBag::Entry& entry) : in SelectedValue() 248 flags(bag->type_spec_flags), resid(0U), config({}) {}; in SelectedValue() 602 inline const ResolvedBag::Entry* begin(const ResolvedBag* bag) { in begin() argument 603 return bag->entries; in begin() 606 inline const ResolvedBag::Entry* end(const ResolvedBag* bag) { in end() argument 607 return bag->entries + bag->entry_count; in end()
|
H A D | ResourceTypes.h | 2054 void unlockBag(const bag_entry* bag) const;
|
/aosp14/frameworks/base/cmds/idmap2/idmap2/ |
H A D | Lookup.cpp | 130 const android::ResolvedBag* bag = bag_result.value(); in GetValue() local 131 for (size_t i = 0; i < bag->entry_count; ++i) { in GetValue() 132 AssetManager2::SelectedValue entry(bag, bag->entries[i]); in GetValue() 138 if (i != bag->entry_count - 1) { in GetValue()
|
/aosp14/frameworks/base/libs/androidfw/ |
H A D | AttributeResolution.cpp | 56 explicit BagAttributeFinder(const ResolvedBag* bag) in BagAttributeFinder() argument 57 : BackTrackingAttributeFinder(bag != nullptr ? bag->entries : nullptr, in BagAttributeFinder() 58 bag != nullptr ? bag->entries + bag->entry_count : nullptr) { in BagAttributeFinder()
|
H A D | AssetManager2.cpp | 1115 auto bag = GetBag(value.data); in ResolveBag() local 1116 if (bag.has_value()) { in ResolveBag() 1117 value.flags |= (*bag)->type_spec_flags; in ResolveBag() 1119 return bag; in ResolveBag() 1124 const auto bag = GetBag(resid, found_resids); in GetBag() local 1126 return bag; in GetBag() 1535 auto bag = asset_manager_->GetBag(resid); in ApplyStyle() local 1536 if (!bag.has_value()) { in ApplyStyle() 1537 return base::unexpected(bag.error()); in ApplyStyle() 1541 type_spec_flags_ |= (*bag)->type_spec_flags; in ApplyStyle() [all …]
|
H A D | ResourceTypes.cpp | 3845 const bag_entry* bag; in applyStyle() local 3867 while (bag < end) { in applyStyle() 3877 bag++; in applyStyle() 3893 bag++; in applyStyle() 3914 bag++; in applyStyle() 3920 attrRes, bag->map.value.dataType, bag->map.value.data, in applyStyle() 3930 bag++; in applyStyle() 5594 bag++; in stringToValue() 5597 unlockBag(bag); in stringToValue() 6008 bag++; in stringToValue() [all …]
|
/aosp14/frameworks/base/tools/aapt2/process/ |
H A D | SymbolTable.cpp | 275 const ResolvedBag* bag = *bag_result; in LookupAttributeInTable() local 276 const size_t count = bag->entry_count; in LookupAttributeInTable() 278 if (bag->entries[i].key == ResTable_map::ATTR_TYPE) { in LookupAttributeInTable() 279 s->attribute = std::make_shared<Attribute>(bag->entries[i].value.data); in LookupAttributeInTable() 286 const ResolvedBag::Entry& map_entry = bag->entries[i]; in LookupAttributeInTable()
|
/aosp14/frameworks/base/tools/aapt2/ |
H A D | readme.md | 127 - Support `<bag>` tag and treat as `<style>` regardless of type.
|
H A D | ResourceParser_test.cpp | 1017 <bag name="bag" type="configVarying"> in TEST_F()
|
/aosp14/frameworks/base/tools/aapt/ |
H A D | ResourceTable.cpp | 4651 const KeyedVector<String16, Item>& bag = e->getBag(); in modifyForCompat() local 4652 const size_t bagCount = bag.size(); in modifyForCompat() 4654 const uint32_t attrId = getResId(bag.keyAt(bi), &attr16); in modifyForCompat() 4657 AaptUtil::appendValue(attributesToRemove, sdkLevel, bag.keyAt(bi)); in modifyForCompat()
|