• Home
  • Raw
  • Download

Lines Matching refs:resid

263 ApkAssetsCookie AssetManager2::FindEntry(uint32_t resid, uint16_t density_override,  in FindEntry()  argument
280 if (!is_valid_resid(resid)) { in FindEntry()
281 LOG(ERROR) << base::StringPrintf("Invalid ID 0x%08x.", resid); in FindEntry()
285 const uint32_t package_id = get_package_id(resid); in FindEntry()
286 const uint8_t type_idx = get_type_id(resid) - 1; in FindEntry()
287 const uint16_t entry_id = get_entry_id(resid); in FindEntry()
291 LOG(ERROR) << base::StringPrintf("No package ID %02x found for ID 0x%08x.", package_id, resid); in FindEntry()
336 bool AssetManager2::GetResourceName(uint32_t resid, ResourceName* out_name) { in GetResourceName() argument
342 ApkAssetsCookie cookie = FindEntry(resid, 0u /* density_override */, in GetResourceName()
348 const LoadedPackage* package = apk_assets_[cookie]->GetLoadedArsc()->GetPackageForId(resid); in GetResourceName()
376 bool AssetManager2::GetResourceFlags(uint32_t resid, uint32_t* out_flags) { in GetResourceFlags() argument
379 ApkAssetsCookie cookie = FindEntry(resid, 0u /* density_override */, in GetResourceFlags()
384 ApkAssetsCookie AssetManager2::GetResource(uint32_t resid, bool may_be_bag, in GetResource() argument
394 FindEntry(resid, density_override, false /* stop_at_first_match */, &entry, &config, &flags); in GetResource()
401 LOG(ERROR) << base::StringPrintf("Resource %08x is a complex map type.", resid); in GetResource()
407 out_value->data = resid; in GetResource()
456 const ResolvedBag* AssetManager2::GetBag(uint32_t resid) { in GetBag() argument
459 auto cached_iter = cached_bags_.find(resid); in GetBag()
467 ApkAssetsCookie cookie = FindEntry(resid, 0u /* density_override */, in GetBag()
501 … LOG(ERROR) << base::StringPrintf("Failed to resolve key 0x%08x in bag 0x%08x.", new_key, resid); in GetBag()
515 cached_bags_[resid] = std::move(new_bag); in GetBag()
526 …G(ERROR) << base::StringPrintf("Failed to find parent 0x%08x of bag 0x%08x.", parent_resid, resid); in GetBag()
548 … LOG(ERROR) << base::StringPrintf("Failed to resolve key 0x%08x in bag 0x%08x.", child_key, resid); in GetBag()
580 … LOG(ERROR) << base::StringPrintf("Failed to resolve key 0x%08x in bag 0x%08x.", new_key, resid); in GetBag()
612 cached_bags_[resid] = std::move(final_bag); in GetBag()
668 uint32_t resid = package->FindEntryByName(type16, entry16); in GetResourceId() local
669 if (resid == 0u && kAttr16 == type16) { in GetResourceId()
673 resid = package->FindEntryByName(kAttrPrivate16, entry16); in GetResourceId()
676 if (resid != 0u) { in GetResourceId()
677 return fix_package_id(resid, package_group.dynamic_ref_table.mAssignedPackageId); in GetResourceId()
704 bool Theme::ApplyStyle(uint32_t resid, bool force) { in ApplyStyle() argument
707 const ResolvedBag* bag = asset_manager_->GetBag(resid); in ApplyStyle()
788 ApkAssetsCookie Theme::GetAttribute(uint32_t resid, Res_value* out_value, in GetAttribute() argument
795 if (!is_valid_resid(resid)) { in GetAttribute()
799 const uint32_t package_idx = get_package_id(resid); in GetAttribute()
802 const uint32_t type_idx = get_type_id(resid) - 1; in GetAttribute()
803 const uint32_t entry_idx = get_entry_id(resid); in GetAttribute()
827 resid = entry.value.data; in GetAttribute()
833 resid = entry.value.data; in GetAttribute()
836 if (ref_table == nullptr || ref_table->lookupResourceId(&resid) != NO_ERROR) { in GetAttribute()
837 LOG(ERROR) << base::StringPrintf("Failed to resolve dynamic attribute 0x%08x", resid); in GetAttribute()
871 kMaxIterations, resid); in GetAttribute()