Searched refs:loaded_apk (Results 1 – 2 of 2) 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 | 120 std::unique_ptr<ApkAssets> loaded_apk(new ApkAssets(unmanaged_handle, path)); in LoadImpl() local 125 result = ::FindEntry(loaded_apk->zip_handle_.get(), entry_name, &entry); in LoadImpl() 128 loaded_apk->loaded_arsc_ = LoadedArsc::CreateEmpty(); in LoadImpl() 129 return std::move(loaded_apk); in LoadImpl() 137 loaded_apk->resources_asset_ = loaded_apk->Open(kResourcesArsc, Asset::AccessMode::ACCESS_BUFFER); in LoadImpl() 138 if (loaded_apk->resources_asset_ == nullptr) { in LoadImpl() 144 loaded_apk->idmap_asset_ = std::move(idmap_asset); in LoadImpl() 147 reinterpret_cast<const char*>(loaded_apk->resources_asset_->getBuffer(true /*wordAligned*/)), in LoadImpl() 148 loaded_apk->resources_asset_->getLength()); in LoadImpl() 149 loaded_apk->loaded_arsc_ = in LoadImpl() [all …]
|