Home
last modified time | relevance | path

Searched refs:apk_assets (Results 1 – 11 of 11) sorted by relevance

/frameworks/base/core/jni/
Dandroid_content_res_ApkAssets.cpp86 static void DeleteGuardedApkAssets(Guarded<std::unique_ptr<const ApkAssets>>& apk_assets) { in DeleteGuardedApkAssets() argument
87 delete &apk_assets; in DeleteGuardedApkAssets()
212 std::unique_ptr<ApkAssets> apk_assets; in NativeLoad() local
218 apk_assets = ApkAssets::Load(std::move(assets), property_flags); in NativeLoad()
222 apk_assets = ApkAssets::LoadOverlay(path.c_str(), property_flags); in NativeLoad()
225 apk_assets = ApkAssets::LoadTable(AssetsProvider::CreateAssetFromFile(path.c_str()), in NativeLoad()
232 apk_assets = ApkAssets::Load(std::move(assets), property_flags); in NativeLoad()
241 if (apk_assets == nullptr) { in NativeLoad()
246 return CreateGuardedApkAssets(std::move(apk_assets)); in NativeLoad()
272 std::unique_ptr<const ApkAssets> apk_assets; in NativeLoadFromFd() local
[all …]
Dandroid_util_AssetManager.cpp298 std::vector<const ApkAssets*> apk_assets; in NativeSetApkAssets() local
299 apk_assets.reserve(apk_assets_len); in NativeSetApkAssets()
314 apk_assets.push_back(scoped_assets->get()); in NativeSetApkAssets()
318 assetmanager->SetApkAssets(apk_assets, invalidate_caches); in NativeSetApkAssets()
720 const ApkAssets* apk_assets = assetmanager->GetApkAssets()[attr_value.cookie]; in NativeGetResourceStringArray() local
721 const ResStringPool* pool = apk_assets->GetLoadedArsc()->GetStringPool(); in NativeGetResourceStringArray()
/frameworks/base/cmds/idmap2/idmap2/
DLookup.cpp177 std::vector<std::unique_ptr<const ApkAssets>> apk_assets; in Lookup() local
195 apk_assets.push_back(std::move(target_apk)); in Lookup()
217 apk_assets.push_back(std::move(overlay_apk)); in Lookup()
222 std::transform(apk_assets.cbegin(), apk_assets.cend(), std::back_inserter(raw_pointer_apk_assets), in Lookup()
/frameworks/base/libs/androidfw/tests/
DIdmap_test.cpp223 auto apk_assets = ApkAssets::LoadOverlay(temp_file.path); in TEST_F() local
224 ASSERT_NE(nullptr, apk_assets); in TEST_F()
225 ASSERT_TRUE(apk_assets->IsUpToDate()); in TEST_F()
228 ASSERT_FALSE(apk_assets->IsUpToDate()); in TEST_F()
234 ASSERT_FALSE(apk_assets->IsUpToDate()); in TEST_F()
DBenchmarkHelpers.cpp56 std::vector<std::unique_ptr<const ApkAssets>> apk_assets; in GetResourceBenchmark() local
65 apk_assets.push_back(std::move(apk)); in GetResourceBenchmark()
DAttributeResolution_test.cpp70 auto apk_assets = ApkAssets::Load(GetTestDataPath() + "/styles/styles.apk", PROPERTY_DYNAMIC); in TEST() local
71 ASSERT_NE(nullptr, apk_assets); in TEST()
72 assetmanager.SetApkAssets({apk_assets.get()}); in TEST()
DAssetManager2_test.cpp212 auto apk_assets = assetmanager.GetApkAssets(); in TEST_F() local
213 ASSERT_EQ(3, apk_assets.size()); in TEST_F()
214 ASSERT_EQ(overlayable_assets_.get(), apk_assets[0]); in TEST_F()
215 ASSERT_EQ(overlay_assets_.get(), apk_assets[1]); in TEST_F()
216 ASSERT_EQ(lib_one_assets_.get(), apk_assets[2]); in TEST_F()
/frameworks/base/libs/androidfw/
DAssetManager2.cpp106 bool AssetManager2::SetApkAssets(std::vector<const ApkAssets*> apk_assets, bool invalidate_caches) { in SetApkAssets() argument
107 apk_assets_ = std::move(apk_assets); in SetApkAssets()
141 for (const ApkAssets* apk_assets : sorted_apk_assets) { in BuildDynamicRefTable() local
143 if (auto loaded_idmap = apk_assets->GetLoadedIdmap(); loaded_idmap != nullptr) { in BuildDynamicRefTable()
168 apk_assets_cookies[apk_assets]}); in BuildDynamicRefTable()
172 const LoadedArsc* loaded_arsc = apk_assets->GetLoadedArsc(); in BuildDynamicRefTable()
202 package_group->cookies_.push_back(apk_assets_cookies[apk_assets]); in BuildDynamicRefTable()
211 if (auto apk_assets_path = apk_assets->GetPath()) { in BuildDynamicRefTable()
243 for (const auto& apk_assets : apk_assets_) { in DumpToLog() local
244 base::StringAppendF(&list, "%s,", apk_assets->GetDebugName().c_str()); in DumpToLog()
[all …]
/frameworks/base/cmds/idmap2/libidmap2/
DResourceContainer.cpp263 std::unique_ptr<ApkAssets> apk_assets; member
272 if ((state.apk_assets = ApkAssets::Load(std::move(zip))) == nullptr) { in Initialize()
276 if ((state.arsc = state.apk_assets->GetLoadedArsc()) == nullptr) { in Initialize()
285 if (!state.am->SetApkAssets({state.apk_assets.get()})) { in Initialize()
/frameworks/base/tools/aapt2/process/
DSymbolTable.cpp226 std::vector<const ApkAssets*> apk_assets; in AddAssetPath() local
228 apk_assets.push_back(apk_asset.get()); in AddAssetPath()
231 asset_manager_.SetApkAssets(apk_assets); in AddAssetPath()
/frameworks/base/libs/androidfw/include/androidfw/
DAssetManager2.h105 bool SetApkAssets(std::vector<const ApkAssets*> apk_assets, bool invalidate_caches = true);