Searched refs:loaded_arsc (Results 1 – 8 of 8) sorted by relevance
/frameworks/base/libs/androidfw/tests/ |
D | ApkAssets_test.cpp | 41 const LoadedArsc* loaded_arsc = loaded_apk->GetLoadedArsc(); in TEST() local 42 ASSERT_THAT(loaded_arsc, NotNull()); in TEST() 43 ASSERT_THAT(loaded_arsc->GetPackageById(0x7fu), NotNull()); in TEST() 55 const LoadedArsc* loaded_arsc = loaded_apk->GetLoadedArsc(); in TEST() local 56 ASSERT_THAT(loaded_arsc, NotNull()); in TEST() 57 ASSERT_THAT(loaded_arsc->GetPackageById(0x7fu), NotNull()); in TEST() 65 const LoadedArsc* loaded_arsc = loaded_apk->GetLoadedArsc(); in TEST() local 66 ASSERT_THAT(loaded_arsc, NotNull()); in TEST() 67 ASSERT_THAT(loaded_arsc->GetPackages(), SizeIs(1u)); in TEST() 68 EXPECT_FALSE(loaded_arsc->GetPackages()[0]->IsDynamic()); in TEST() [all …]
|
D | LoadedArsc_test.cpp | 53 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() 83 const auto& packages = loaded_arsc->GetPackages(); in TEST() 100 std::unique_ptr<const LoadedArsc> loaded_arsc = LoadedArsc::Load(contents.data(), in TEST() local 102 ASSERT_THAT(loaded_arsc, NotNull()); in TEST() 104 const auto& packages = loaded_arsc->GetPackages(); in TEST() 126 std::unique_ptr<const LoadedArsc> loaded_arsc = LoadedArsc::Load(contents.data(), in TEST() local [all …]
|
/frameworks/base/libs/androidfw/ |
D | ApkAssets.cpp | 31 std::unique_ptr<LoadedArsc> loaded_arsc, in ApkAssets() argument 35 loaded_arsc_(std::move(loaded_arsc)), in ApkAssets() 131 std::unique_ptr<LoadedArsc> loaded_arsc; in LoadImpl() local 139 loaded_arsc = LoadedArsc::Load(data, length, loaded_idmap.get(), property_flags); in LoadImpl() 141 loaded_arsc = LoadedArsc::Load(loaded_idmap.get()); in LoadImpl() 143 loaded_arsc = LoadedArsc::CreateEmpty(); in LoadImpl() 146 if (loaded_arsc == nullptr) { in LoadImpl() 152 std::move(loaded_arsc), std::move(assets), property_flags, in LoadImpl()
|
D | LoadedArsc.cpp | 895 std::unique_ptr<LoadedArsc> loaded_arsc(new LoadedArsc()); in Load() local 902 if (!loaded_arsc->LoadTable(chunk, loaded_idmap, property_flags)) { in Load() 920 return loaded_arsc; in Load() 927 std::unique_ptr<LoadedArsc> loaded_arsc(new LoadedArsc()); in Load() local 928 loaded_arsc->LoadStringPool(loaded_idmap); in Load() 929 return loaded_arsc; in Load()
|
D | AssetManager2.cpp | 197 const LoadedArsc* loaded_arsc = apk_assets->GetLoadedArsc(); in BuildDynamicRefTable() local 198 for (const std::unique_ptr<const LoadedPackage>& package : loaded_arsc->GetPackages()) { in BuildDynamicRefTable() 376 const LoadedArsc* loaded_arsc = assets->GetLoadedArsc(); in GetOverlayablesToString() local 377 if (loaded_arsc == nullptr) { in GetOverlayablesToString() 381 const auto& loaded_packages = loaded_arsc->GetPackages(); in GetOverlayablesToString()
|
/frameworks/base/libs/androidfw/fuzz/resourcefile_fuzzer/ |
D | resourcefile_fuzzer.cpp | 34 std::unique_ptr<const LoadedArsc> loaded_arsc = LoadedArsc::Load(data, size); in LLVMFuzzerTestOneInput() local
|
/frameworks/base/cmds/idmap2/libidmap2/ |
D | ResourceContainer.cpp | 49 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/ |
D | ApkAssets.h | 117 std::unique_ptr<LoadedArsc> loaded_arsc, std::unique_ptr<AssetsProvider> assets,
|