Lines Matching refs:resid

560     uint32_t resid, uint16_t density_override, bool stop_at_first_match,  in FindEntry()  argument
566 last_resolution_.resid = resid; in FindEntry()
581 if (UNLIKELY(!is_valid_resid(resid))) { in FindEntry()
582 LOG(ERROR) << base::StringPrintf("Invalid ID 0x%08x.", resid); in FindEntry()
586 const uint32_t package_id = get_package_id(resid); in FindEntry()
587 const uint8_t type_idx = get_type_id(resid) - 1; in FindEntry()
588 const uint16_t entry_idx = get_entry_id(resid); in FindEntry()
592 package_id, resid); in FindEntry()
605 auto overlay_entry = id_map.overlay_res_maps_.Lookup(resid); in FindEntry()
805 last_resolution_.resid = 0; in ResetResourceResolution()
830 const uint32_t resid = last_resolution_.resid; in GetLastResourceResolution() local
831 const auto package = apk_assets_[cookie]->GetLoadedArsc()->GetPackageById(get_package_id(resid)); in GetLastResourceResolution()
844 "\tFor config - %s", resid, resource_name_string.c_str(), in GetLastResourceResolution()
872 uint32_t resid) const { in GetResourceName()
873 auto result = FindEntry(resid, 0u /* density_override */, true /* stop_at_first_match */, in GetResourceName()
885 uint32_t resid) const { in GetResourceTypeSpecFlags()
886 auto result = FindEntry(resid, 0u /* density_override */, false /* stop_at_first_match */, in GetResourceTypeSpecFlags()
895 uint32_t resid, bool may_be_bag, uint16_t density_override) const { in GetResource() argument
896 auto result = FindEntry(resid, density_override, false /* stop_at_first_match */, in GetResource()
905 LOG(ERROR) << base::StringPrintf("Resource %08x is a complex map type.", resid); in GetResource()
910 return SelectedValue(Res_value::TYPE_REFERENCE, resid, result->cookie, result->type_flags, in GetResource()
911 resid, result->config); in GetResource()
919 resid, result->config); in GetResource()
946 value.resid = resolve_resid; in ResolveReference()
974 const std::vector<uint32_t> AssetManager2::GetBagResIdStack(uint32_t resid) const { in GetBagResIdStack()
975 auto cached_iter = cached_bag_resid_stacks_.find(resid); in GetBagResIdStack()
981 GetBag(resid, found_resids); in GetBagResIdStack()
982 cached_bag_resid_stacks_.emplace(resid, found_resids); in GetBagResIdStack()
999 base::expected<const ResolvedBag*, NullOrIOError> AssetManager2::GetBag(uint32_t resid) const { in GetBag()
1001 const auto bag = GetBag(resid, found_resids); in GetBag()
1002 cached_bag_resid_stacks_.emplace(resid, found_resids); in GetBag()
1007 uint32_t resid, std::vector<uint32_t>& child_resids) const { in GetBag() argument
1008 if (auto cached_iter = cached_bags_.find(resid); cached_iter != cached_bags_.end()) { in GetBag()
1012 auto entry = FindEntry(resid, 0u /* density_override */, false /* stop_at_first_match */, in GetBag()
1030 child_resids.push_back(resid); in GetBag()
1053 resid); in GetBag()
1062 new_entry->style = resid; in GetBag()
1085 cached_bags_[resid] = std::move(new_bag); in GetBag()
1097 resid); in GetBag()
1122 resid); in GetBag()
1135 new_entry->style = resid; in GetBag()
1169 resid); in GetBag()
1178 new_entry->style = resid; in GetBag()
1215 cached_bags_[resid] = std::move(new_bag); in GetBag()
1272 base::expected<uint32_t, NullOrIOError> resid = package->FindEntryByName(type16, entry16); in GetResourceId() local
1273 if (UNLIKELY(IsIOError(resid))) { in GetResourceId()
1274 return base::unexpected(resid.error()); in GetResourceId()
1277 if (!resid.has_value() && kAttr16 == type16) { in GetResourceId()
1281 resid = package->FindEntryByName(kAttrPrivate16, entry16); in GetResourceId()
1284 if (resid.has_value()) { in GetResourceId()
1285 return fix_package_id(*resid, package_group.dynamic_ref_table->mAssignedPackageId); in GetResourceId()
1374 base::expected<std::monostate, NullOrIOError> Theme::ApplyStyle(uint32_t resid, bool force) { in ApplyStyle() argument
1377 auto bag = asset_manager_->GetBag(resid); in ApplyStyle()
1432 std::optional<AssetManager2::SelectedValue> Theme::GetAttribute(uint32_t resid) const { in GetAttribute()
1437 auto entry_it = std::lower_bound(entries_.begin(), entries_.end(), resid, in GetAttribute()
1439 if (entry_it == entries_.end() || entry_it->attr_res_id != resid) { in GetAttribute()
1445 resid = entry_it->value.data; in GetAttribute()