Home
last modified time | relevance | path

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

/frameworks/base/libs/androidfw/tests/
DLoadedArsc_test.cpp48 std::unique_ptr<const LoadedArsc> loaded_arsc = LoadedArsc::Load(StringPiece(contents)); in TEST() local
49 ASSERT_THAT(loaded_arsc, NotNull()); in TEST()
52 loaded_arsc->GetPackageById(get_package_id(app::R::string::string_one)); in TEST()
74 std::unique_ptr<const LoadedArsc> loaded_arsc = LoadedArsc::Load(StringPiece(contents)); in TEST() local
75 ASSERT_THAT(loaded_arsc, NotNull()); in TEST()
78 loaded_arsc->GetPackageById(get_package_id(sparse::R::integer::foo_9)); in TEST()
98 std::unique_ptr<const LoadedArsc> loaded_arsc = LoadedArsc::Load(StringPiece(contents)); in TEST() local
99 ASSERT_THAT(loaded_arsc, NotNull()); in TEST()
101 const auto& packages = loaded_arsc->GetPackages(); in TEST()
118 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/
DLoadedArsc.cpp659 std::unique_ptr<LoadedArsc> loaded_arsc(new LoadedArsc()); in Load() local
660 loaded_arsc->system_ = system; in Load()
667 if (!loaded_arsc->LoadTable(chunk, loaded_idmap, load_as_shared_library)) { in Load()
686 return std::move(loaded_arsc); in Load()
DAssetManager2.cpp88 const LoadedArsc* loaded_arsc = apk_assets_[i]->GetLoadedArsc(); in BuildDynamicRefTable() local
90 for (const std::unique_ptr<const LoadedPackage>& package : loaded_arsc->GetPackages()) { in BuildDynamicRefTable()