Searched defs:bag (Results 1 - 7 of 7) sorted by relevance

/frameworks/base/libs/androidfw/tests/
H A DAssetManager2_test.cpp209 const ResolvedBag* bag = assetmanager.GetBag(basic::R::array::integerArray1); local
210 ASSERT_NE(nullptr, bag);
211 ASSERT_EQ(3u, bag->entry_count);
213 EXPECT_EQ(static_cast<uint8_t>(Res_value::TYPE_INT_DEC), bag->entries[0].value.dataType);
214 EXPECT_EQ(1u, bag->entries[0].value.data);
215 EXPECT_EQ(0, bag->entries[0].cookie);
217 EXPECT_EQ(static_cast<uint8_t>(Res_value::TYPE_INT_DEC), bag->entries[1].value.dataType);
218 EXPECT_EQ(2u, bag->entries[1].value.data);
219 EXPECT_EQ(0, bag->entries[1].cookie);
221 EXPECT_EQ(static_cast<uint8_t>(Res_value::TYPE_INT_DEC), bag
236 const ResolvedBag* bag = assetmanager.GetBag(libclient::R::style::Theme); local
[all...]
H A DAssetManager2_bench.cpp173 const ResolvedBag* bag = assets.GetBag(app::R::style::StyleTwo); local
174 const auto bag_end = end(bag);
175 for (auto iter = begin(bag); iter != bag_end; ++iter) {
/frameworks/base/libs/androidfw/include/androidfw/
H A DAssetManager2.h43 // 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
194 // resource was a map/bag type, then kInvalidCookie is returned. If `may_be_bag` is false,
195 // this function logs if the resource was a map/bag type before returning kInvalidCookie.
216 // Retrieves the best matching bag/map resource with ID `resid`.
217 // This method will resolve all parent references for this bag an
369 begin(const ResolvedBag* bag) argument
371 end(const ResolvedBag* bag) argument
[all...]
/frameworks/base/libs/androidfw/
H A DAssetManager2.cpp478 // Not a bag, nothing to do.
501 LOG(ERROR) << base::StringPrintf("Failed to resolve key 0x%08x in bag 0x%08x.", new_key, resid);
526 LOG(ERROR) << base::StringPrintf("Failed to find parent 0x%08x of bag 0x%08x.", parent_resid, resid);
530 // Combine flags from the parent and our own bag.
533 // Create the max possible entries we can make. Once we construct the bag,
548 LOG(ERROR) << base::StringPrintf("Failed to resolve key 0x%08x in bag 0x%08x.", child_key, resid);
580 LOG(ERROR) << base::StringPrintf("Failed to resolve key 0x%08x in bag 0x%08x.", new_key, resid);
691 // Be more conservative with what gets purged. Only if the bag has other possible
707 const ResolvedBag* bag = asset_manager_->GetBag(resid); local
708 if (bag
[all...]
H A DResourceTypes.cpp3336 * This includes the bag caches and filtered types.
3463 const bag_entry* bag; local
3466 const ssize_t N = mTable.getBagLocked(resID, &bag, &bagTypeSpecFlags);
3484 const bag_entry* end = bag + N;
3485 while (bag < end) {
3486 const uint32_t attrRes = bag->map.name.ident;
3495 bag++;
3511 bag++;
3532 bag++;
3538 attrRes, bag
5193 const bag_entry* bag; local
5603 const bag_entry* bag; local
5642 const bag_entry* bag; local
[all...]
/frameworks/base/core/jni/
H A Dandroid_util_AssetManager.cpp1424 const ResTable::bag_entry* bag = startOfBag; local
1425 for (size_t i = 0, j = 0; ((ssize_t)i)<N; i++, bag++) {
1428 value = bag->map.value;
1431 stringBlock = res.resolveReference(&value, bag->stringBlock, NULL);
1476 const ResTable::bag_entry* bag = startOfBag; local
1478 for (size_t i=0; ((ssize_t)i)<N; i++, bag++) {
1479 value = bag->map.value;
1483 ssize_t block = res.resolveReference(&value, bag->stringBlock, NULL);
1542 const ResTable::bag_entry* bag = startOfBag; local
1543 for (size_t i=0; ((ssize_t)i)<N; i++, bag
1585 const ResTable::bag_entry* bag = startOfBag; local
[all...]
/frameworks/base/tools/aapt/
H A DResourceTable.cpp620 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 97 milliseconds