Home
last modified time | relevance | path

Searched refs:loaded_arsc (Results 1 – 8 of 8) sorted by relevance

/frameworks/base/libs/androidfw/tests/
DApkAssets_test.cpp42 const LoadedArsc* loaded_arsc = loaded_apk->GetLoadedArsc(); in TEST() local
43 ASSERT_THAT(loaded_arsc, NotNull()); in TEST()
44 ASSERT_THAT(loaded_arsc->GetPackageById(0x7fu), NotNull()); in TEST()
56 const LoadedArsc* loaded_arsc = loaded_apk->GetLoadedArsc(); in TEST() local
57 ASSERT_THAT(loaded_arsc, NotNull()); in TEST()
58 ASSERT_THAT(loaded_arsc->GetPackageById(0x7fu), NotNull()); in TEST()
67 const LoadedArsc* loaded_arsc = loaded_apk->GetLoadedArsc(); in TEST() local
68 ASSERT_THAT(loaded_arsc, NotNull()); in TEST()
69 ASSERT_THAT(loaded_arsc->GetPackages(), SizeIs(1u)); in TEST()
70 EXPECT_FALSE(loaded_arsc->GetPackages()[0]->IsDynamic()); in TEST()
[all …]
DLoadedArsc_test.cpp53 auto loaded_arsc = LoadedArsc::Load(reinterpret_cast<const void*>(contents.data()), in TEST() local
55 ASSERT_THAT(loaded_arsc, NotNull()); in TEST()
58 loaded_arsc->GetPackageById(get_package_id(app::R::string::string_one)); in TEST()
79 std::unique_ptr<const LoadedArsc> loaded_arsc = LoadedArsc::Load(contents.data(), in TEST() local
81 ASSERT_THAT(loaded_arsc, NotNull()); in TEST()
84 loaded_arsc->GetPackageById(get_package_id(sparse::R::integer::foo_9)); in TEST()
103 std::unique_ptr<const LoadedArsc> loaded_arsc = LoadedArsc::Load(contents.data(), in TEST() local
105 ASSERT_THAT(loaded_arsc, NotNull()); in TEST()
108 loaded_arsc->GetPackageById(get_package_id(sparse::R::string::only_v26)); in TEST()
135 std::unique_ptr<const LoadedArsc> loaded_arsc = LoadedArsc::Load(contents.data(), in TEST() local
[all …]
/frameworks/base/libs/androidfw/
DApkAssets.cpp30 std::unique_ptr<LoadedArsc> loaded_arsc, in ApkAssets() argument
36 loaded_arsc_(std::move(loaded_arsc)), in ApkAssets()
135 std::unique_ptr<LoadedArsc> loaded_arsc; in LoadImpl() local
143 loaded_arsc = LoadedArsc::Load(data, length, loaded_idmap.get(), property_flags); in LoadImpl()
145 loaded_arsc = LoadedArsc::CreateEmpty(); in LoadImpl()
148 if (loaded_arsc == nullptr) { in LoadImpl()
154 std::move(loaded_arsc), std::move(assets), in LoadImpl()
DLoadedArsc.cpp830 std::unique_ptr<LoadedArsc> loaded_arsc(new LoadedArsc()); in Load() local
837 if (!loaded_arsc->LoadTable(chunk, loaded_idmap, property_flags)) { in Load()
855 return loaded_arsc; in Load()
DAssetManager2.cpp172 const LoadedArsc* loaded_arsc = apk_assets->GetLoadedArsc(); in BuildDynamicRefTable() local
173 for (const std::unique_ptr<const LoadedPackage>& package : loaded_arsc->GetPackages()) { in BuildDynamicRefTable()
333 const LoadedArsc* loaded_arsc = apk_assets->GetLoadedArsc(); in GetOverlayablesToString() local
334 if (loaded_arsc == nullptr) { in GetOverlayablesToString()
338 const auto& loaded_packages = loaded_arsc->GetPackages(); in GetOverlayablesToString()
/frameworks/base/libs/androidfw/fuzz/resourcefile_fuzzer/
Dresourcefile_fuzzer.cpp34 std::unique_ptr<const LoadedArsc> loaded_arsc = LoadedArsc::Load(data, size); in LLVMFuzzerTestOneInput() local
/frameworks/base/cmds/idmap2/libidmap2/
DResourceContainer.cpp49 const LoadedPackage* GetPackageAtIndex0(const LoadedArsc* loaded_arsc) { in GetPackageAtIndex0() argument
50 const std::vector<std::unique_ptr<const LoadedPackage>>& packages = loaded_arsc->GetPackages(); in GetPackageAtIndex0()
54 return loaded_arsc->GetPackageById(packages[0]->GetPackageId()); in GetPackageAtIndex0()
/frameworks/base/libs/androidfw/include/androidfw/
DApkAssets.h110 std::unique_ptr<LoadedArsc> loaded_arsc,