Lines Matching refs:cookie
182 const ResStringPool* AssetManager2::GetStringPoolForCookie(ApkAssetsCookie cookie) const { in GetStringPoolForCookie()
183 if (cookie < 0 || static_cast<size_t>(cookie) >= apk_assets_.size()) { in GetStringPoolForCookie()
186 return apk_assets_[cookie]->GetLoadedArsc()->GetStringPool(); in GetStringPoolForCookie()
201 const DynamicRefTable* AssetManager2::GetDynamicRefTableForCookie(ApkAssetsCookie cookie) const { in GetDynamicRefTableForCookie()
204 if (package_cookie == cookie) { in GetDynamicRefTableForCookie()
297 std::unique_ptr<Asset> AssetManager2::Open(const std::string& filename, ApkAssetsCookie cookie, in Open() argument
300 return OpenNonAsset(new_path, cookie, mode); in Open()
365 ApkAssetsCookie cookie, in OpenNonAsset() argument
367 if (cookie < 0 || static_cast<size_t>(cookie) >= apk_assets_.size()) { in OpenNonAsset()
370 return apk_assets_[cookie]->Open(filename, mode); in OpenNonAsset()
425 ApkAssetsCookie cookie = package_group.cookies_[pi]; in FindEntry() local
476 best_cookie = cookie; in FindEntry()
522 best_cookie = cookie; in FindEntry()
562 last_resolution.cookie = best_cookie; in FindEntry()
579 last_resolution.cookie = kInvalidCookie; in SetResourceResolutionLoggingEnabled()
593 auto cookie = last_resolution.cookie; in GetLastResourceResolution() local
594 if (cookie == kInvalidCookie) { in GetLastResourceResolution()
606 apk_assets_[cookie]->GetLoadedArsc()->GetPackageById(get_package_id(resid)); in GetLastResourceResolution()
650 ApkAssetsCookie cookie = FindEntry(resid, 0u /* density_override */, in GetResourceName() local
653 if (cookie == kInvalidCookie) { in GetResourceName()
666 package_group.cookies_.end(), cookie); in GetResourceName()
681 ApkAssetsCookie cookie = FindEntry(resid, 0u /* density_override */, in GetResourceFlags() local
684 if (cookie != kInvalidCookie) { in GetResourceFlags()
696 ApkAssetsCookie cookie = FindEntry(resid, density_override, false /* stop_at_first_match */, in GetResource() local
698 if (cookie == kInvalidCookie) { in GetResource()
713 return cookie; in GetResource()
725 return cookie; in GetResource()
728 ApkAssetsCookie AssetManager2::ResolveReference(ApkAssetsCookie cookie, Res_value* in_out_value, in ResolveReference() argument
739 cookie = GetResource(in_out_value->data, true /*may_be_bag*/, 0u /*density_override*/, in ResolveReference()
741 if (cookie == kInvalidCookie) { in ResolveReference()
749 return cookie; in ResolveReference()
752 return cookie; in ResolveReference()
787 ApkAssetsCookie cookie = FindEntry(resid, 0u /* density_override */, in GetBag() local
791 if (cookie == kInvalidCookie) { in GetBag()
833 new_entry->cookie = cookie; in GetBag()
891 new_entry->cookie = cookie; in GetBag()
928 new_entry->cookie = cookie; in GetBag()
1105 ApkAssetsCookie cookie; member
1199 entry.cookie = bag_iter->cookie; in ApplyStyle()
1243 return entry.cookie; in GetAttribute()
1252 ApkAssetsCookie Theme::ResolveAttributeReference(ApkAssetsCookie cookie, Res_value* in_out_value, in ResolveAttributeReference() argument
1258 cookie = GetAttribute(in_out_value->data, in_out_value, &new_flags); in ResolveAttributeReference()
1259 if (cookie == kInvalidCookie) { in ResolveAttributeReference()
1267 return asset_manager_->ResolveReference(cookie, in_out_value, in_out_selected_config, in ResolveAttributeReference()
1398 auto value_package_map = src_asset_cookie_id_map.find(entry.cookie); in SetTo()
1415 auto value_dest_cookie = src_to_dest_asset_cookies.find(entry.cookie); in SetTo()
1475 dest_type->entries[e].cookie = data_dest_cookie; in SetTo()
1510 entry.value.dataType, entry.cookie); in Dump()