Searched refs:loaded_apk (Results 1 – 3 of 3) sorted by relevance
/frameworks/base/libs/androidfw/tests/ |
D | ApkAssets_test.cpp | 38 std::unique_ptr<const ApkAssets> loaded_apk = in TEST() local 40 ASSERT_THAT(loaded_apk, NotNull()); in TEST() 42 const LoadedArsc* loaded_arsc = loaded_apk->GetLoadedArsc(); in TEST() 45 ASSERT_THAT(loaded_apk->Open("res/layout/main.xml"), NotNull()); in TEST() 53 std::unique_ptr<const ApkAssets> loaded_apk = in TEST() local 55 ASSERT_THAT(loaded_apk, NotNull()); in TEST() 57 const LoadedArsc* loaded_arsc = loaded_apk->GetLoadedArsc(); in TEST() 60 ASSERT_THAT(loaded_apk->Open("res/layout/main.xml"), NotNull()); in TEST() 64 std::unique_ptr<const ApkAssets> loaded_apk = in TEST() local 66 ASSERT_THAT(loaded_apk, NotNull()); in TEST() [all …]
|
/frameworks/base/libs/androidfw/ |
D | ApkAssets.cpp | 128 std::unique_ptr<ApkAssets> loaded_apk(new ApkAssets(unmanaged_handle, path, last_mod_time)); in LoadImpl() local 132 result = ::FindEntry(loaded_apk->zip_handle_.get(), kResourcesArsc, &entry); in LoadImpl() 135 loaded_apk->loaded_arsc_ = LoadedArsc::CreateEmpty(); in LoadImpl() 136 return std::move(loaded_apk); in LoadImpl() 144 loaded_apk->resources_asset_ = loaded_apk->Open(kResourcesArsc, Asset::AccessMode::ACCESS_BUFFER); in LoadImpl() 145 if (loaded_apk->resources_asset_ == nullptr) { in LoadImpl() 151 loaded_apk->idmap_asset_ = std::move(idmap_asset); in LoadImpl() 154 reinterpret_cast<const char*>(loaded_apk->resources_asset_->getBuffer(true /*wordAligned*/)), in LoadImpl() 155 loaded_apk->resources_asset_->getLength()); in LoadImpl() 156 loaded_apk->loaded_arsc_ = in LoadImpl() [all …]
|
/frameworks/base/tools/aapt2/cmd/ |
D | Dump.h | 72 auto loaded_apk = LoadedApk::LoadApkFromPath(apk, diag_); in Action() local 73 if (!loaded_apk) { in Action() 78 error |= Dump(loaded_apk.get()); in Action()
|