Searched defs:bag (Results 1 - 8 of 8) sorted by relevance
/frameworks/base/libs/androidfw/tests/ |
H A D | AssetManager2_bench.cpp | 142 const ResolvedBag* bag = assets.GetBag(app::R::style::StyleTwo); local 143 const auto bag_end = end(bag); 144 for (auto iter = begin(bag); iter != bag_end; ++iter) {
|
H A D | AssetManager2_test.cpp | 217 const ResolvedBag* bag = assetmanager.GetBag(basic::R::array::integerArray1); local 218 ASSERT_NE(nullptr, bag); 219 ASSERT_EQ(3u, bag->entry_count); 221 EXPECT_EQ(static_cast<uint8_t>(Res_value::TYPE_INT_DEC), bag->entries[0].value.dataType); 222 EXPECT_EQ(1u, bag->entries[0].value.data); 223 EXPECT_EQ(0, bag->entries[0].cookie); 225 EXPECT_EQ(static_cast<uint8_t>(Res_value::TYPE_INT_DEC), bag->entries[1].value.dataType); 226 EXPECT_EQ(2u, bag->entries[1].value.data); 227 EXPECT_EQ(0, bag->entries[1].cookie); 229 EXPECT_EQ(static_cast<uint8_t>(Res_value::TYPE_INT_DEC), bag 244 const ResolvedBag* bag = assetmanager.GetBag(fix_package_id(lib_one::R::style::Theme, 0x03)); local 263 const ResolvedBag* bag = assetmanager.GetBag(libclient::R::style::Theme); local [all...] |
/frameworks/base/libs/androidfw/ |
H A D | AttributeResolution.cpp | 54 BagAttributeFinder(const ResolvedBag* bag) argument 55 : BackTrackingAttributeFinder(bag != nullptr ? bag->entries : nullptr, 56 bag != nullptr ? bag->entries + bag->entry_count : nullptr) { 89 // Retrieve the default style bag, if requested. 249 // Retrieve the default style bag, if requested. 260 // Retrieve the style class bag, if requested.
|
H A D | AssetManager2.cpp | 43 // a ResTable_map_entry and processed as a bag/map. 595 // Not a bag, nothing to do. 623 LOG(ERROR) << base::StringPrintf("Failed to resolve key 0x%08x in bag 0x%08x.", new_key, 656 LOG(ERROR) << base::StringPrintf("Failed to find parent 0x%08x of bag 0x%08x.", parent_resid, 661 // Create the max possible entries we can make. Once we construct the bag, 676 LOG(ERROR) << base::StringPrintf("Failed to resolve key 0x%08x in bag 0x%08x.", child_key, 716 LOG(ERROR) << base::StringPrintf("Failed to resolve key 0x%08x in bag 0x%08x.", new_key, 751 // Combine flags from the parent and our own bag. 861 // Be more conservative with what gets purged. Only if the bag has other possible 907 const ResolvedBag* bag local [all...] |
H A D | ResourceTypes.cpp | 3543 * This includes the bag caches and filtered types. 3671 const bag_entry* bag; local 3674 const ssize_t N = mTable.getBagLocked(resID, &bag, &bagTypeSpecFlags); 3692 const bag_entry* end = bag + N; 3693 while (bag < end) { 3694 const uint32_t attrRes = bag->map.name.ident; 3703 bag++; 3719 bag++; 3740 bag++; 3746 attrRes, bag 5406 const bag_entry* bag; local 5816 const bag_entry* bag; local 5855 const bag_entry* bag; local [all...] |
/frameworks/base/libs/androidfw/include/androidfw/ |
H A D | AssetManager2.h | 43 // Holds a bag that has been merged with its parent, if one exists. 45 // A single key-value entry in a bag. 59 // Denotes the configuration axis that this bag varies with. 61 // the bag should be reloaded. 64 // The number of entries in this bag. Access them by indexing into `entries`. 67 // The array of entries for this bag. An empty array is a neat trick to force alignment 200 // resource was a map/bag type, then kInvalidCookie is returned. If `may_be_bag` is false, 201 // this function logs if the resource was a map/bag type before returning kInvalidCookie. 222 // Retrieves the best matching bag/map resource with ID `resid`. 223 // This method will resolve all parent references for this bag an 407 begin(const ResolvedBag* bag) argument 411 end(const ResolvedBag* bag) argument [all...] |
/frameworks/base/core/jni/ |
H A D | android_util_AssetManager.cpp | 613 const ResolvedBag* bag = assetmanager->GetBag(static_cast<uint32_t>(resid)); local 614 if (bag == nullptr) { 618 uint32_t type_spec_flags = bag->type_spec_flags; 621 for (const ResolvedBag::Entry& entry : bag) { 646 const ResolvedBag* bag = assetmanager->GetBag(static_cast<uint32_t>(resid)); local 647 if (bag == nullptr) { 651 jintArray array = env->NewIntArray(bag->entry_count); 656 for (uint32_t i = 0; i < bag->entry_count; i++) { 657 jint attr_resid = bag->entries[i].key; 666 const ResolvedBag* bag local 722 const ResolvedBag* bag = assetmanager->GetBag(static_cast<uint32_t>(resid)); local 764 const ResolvedBag* bag = assetmanager->GetBag(static_cast<uint32_t>(resid)); local 802 const ResolvedBag* bag = assetmanager->GetBag(static_cast<uint32_t>(resid)); local 812 const ResolvedBag* bag = assetmanager->GetBag(static_cast<uint32_t>(resid)); local [all...] |
/frameworks/base/tools/aapt/ |
H A D | ResourceTable.cpp | 620 printf("Adding resource bag entry l=%c%c c=%c%c orien=%d d=%d " 621 " pid=%s, bag=%s, id=%s: %s\n", 822 const String16 bag16("bag"); 1445 "A 'type' attribute is required for <bag>\n"); 1538 // Figure out the parent of this bag... 1792 // Every resource table always has one first entry, the bag attributes. 1974 printf("Adding bag left: file=%s, line=%d, type=%s\n", 2585 // First generate all bag attributes and assign indices. 3531 sourcePos.error("Resource entry %s is already defined as a bag.", 3535 sourcePos.error("Resource entry %s is already defined as a bag 4663 const KeyedVector<String16, Item>& bag = e->getBag(); local [all...] |
Completed in 1224 milliseconds