Home
last modified time | relevance | path

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

/frameworks/base/libs/androidfw/tests/
DLoadedArsc_test.cpp50 std::unique_ptr<const LoadedArsc> loaded_arsc = LoadedArsc::Load(StringPiece(contents)); in TEST() local
51 ASSERT_THAT(loaded_arsc, NotNull()); in TEST()
54 loaded_arsc->GetPackageById(get_package_id(app::R::string::string_one)); in TEST()
76 std::unique_ptr<const LoadedArsc> loaded_arsc = LoadedArsc::Load(StringPiece(contents)); in TEST() local
77 ASSERT_THAT(loaded_arsc, NotNull()); in TEST()
80 loaded_arsc->GetPackageById(get_package_id(sparse::R::integer::foo_9)); in TEST()
100 std::unique_ptr<const LoadedArsc> loaded_arsc = LoadedArsc::Load(StringPiece(contents)); in TEST() local
101 ASSERT_THAT(loaded_arsc, NotNull()); in TEST()
103 const auto& packages = loaded_arsc->GetPackages(); in TEST()
120 std::unique_ptr<const LoadedArsc> loaded_arsc = LoadedArsc::Load(StringPiece(contents)); in TEST() local
[all …]
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()
57 const LoadedArsc* loaded_arsc = loaded_apk->GetLoadedArsc(); in TEST() local
58 ASSERT_THAT(loaded_arsc, NotNull()); in TEST()
59 ASSERT_THAT(loaded_arsc->GetPackageById(0x7fu), NotNull()); in TEST()
68 const LoadedArsc* loaded_arsc = loaded_apk->GetLoadedArsc(); in TEST() local
69 ASSERT_THAT(loaded_arsc, NotNull()); in TEST()
70 ASSERT_THAT(loaded_arsc->GetPackages(), SizeIs(1u)); in TEST()
71 EXPECT_FALSE(loaded_arsc->GetPackages()[0]->IsDynamic()); in TEST()
[all …]
/frameworks/base/libs/androidfw/fuzz/resourcefile_fuzzer/
Dresourcefile_fuzzer.cpp35 std::unique_ptr<const LoadedArsc> loaded_arsc = in LLVMFuzzerTestOneInput() local
/frameworks/base/libs/androidfw/
DLoadedArsc.cpp766 std::unique_ptr<LoadedArsc> loaded_arsc(new LoadedArsc()); in Load() local
767 loaded_arsc->system_ = system; in Load()
774 if (!loaded_arsc->LoadTable(chunk, loaded_idmap, load_as_shared_library)) { in Load()
793 return std::move(loaded_arsc); in Load()
DAssetManager2.cpp96 const LoadedArsc* loaded_arsc = apk_assets_[i]->GetLoadedArsc(); in BuildDynamicRefTable() local
98 for (const std::unique_ptr<const LoadedPackage>& package : loaded_arsc->GetPackages()) { in BuildDynamicRefTable()
/frameworks/base/cmds/idmap2/libidmap2/
DIdmap.cpp113 const LoadedPackage* GetPackageAtIndex0(const LoadedArsc& loaded_arsc) { in GetPackageAtIndex0() argument
114 const std::vector<std::unique_ptr<const LoadedPackage>>& packages = loaded_arsc.GetPackages(); in GetPackageAtIndex0()
119 return loaded_arsc.GetPackageById(id); in GetPackageAtIndex0()