Searched refs:ApkAssets (Results 1 – 11 of 11) sorted by relevance
/frameworks/base/libs/androidfw/tests/ |
D | ApkAssets_test.cpp | 30 std::unique_ptr<const ApkAssets> loaded_apk = in TEST() 31 ApkAssets::Load(GetTestDataPath() + "/basic/basic.apk"); in TEST() 40 std::unique_ptr<const ApkAssets> loaded_apk = in TEST() 41 ApkAssets::Load(GetTestDataPath() + "/appaslib/appaslib.apk"); in TEST() 48 loaded_apk = ApkAssets::LoadAsSharedLibrary(GetTestDataPath() + "/appaslib/appaslib.apk"); in TEST() 58 std::unique_ptr<const ApkAssets> loaded_apk = in TEST() 59 ApkAssets::Load(GetTestDataPath() + "/basic/basic.apk"); in TEST() 74 std::unique_ptr<const ApkAssets> loaded_apk = in TEST() 75 ApkAssets::Load(GetTestDataPath() + "/basic/basic.apk"); in TEST()
|
D | AssetManager2_bench.cpp | 42 std::unique_ptr<const ApkAssets> apk = ApkAssets::Load(path); in BM_AssetManagerLoadAssets() 65 std::unique_ptr<const ApkAssets> apk = ApkAssets::Load(path); in BM_AssetManagerLoadFrameworkAssets() 88 std::vector<std::unique_ptr<const ApkAssets>> apk_assets; in GetResourceBenchmark() 89 std::vector<const ApkAssets*> apk_assets_ptrs; in GetResourceBenchmark() 91 std::unique_ptr<const ApkAssets> apk = ApkAssets::Load(path); in GetResourceBenchmark() 163 std::unique_ptr<const ApkAssets> apk = ApkAssets::Load(GetTestDataPath() + "/styles/styles.apk"); in BM_AssetManagerGetBag() 211 std::unique_ptr<const ApkAssets> apk = ApkAssets::Load(kFrameworkPath); in BM_AssetManagerGetResourceLocales()
|
D | AssetManager2_test.cpp | 44 basic_assets_ = ApkAssets::Load(GetTestDataPath() + "/basic/basic.apk"); in SetUp() 47 basic_de_fr_assets_ = ApkAssets::Load(GetTestDataPath() + "/basic/basic_de_fr.apk"); in SetUp() 50 style_assets_ = ApkAssets::Load(GetTestDataPath() + "/styles/styles.apk"); in SetUp() 53 lib_one_assets_ = ApkAssets::Load(GetTestDataPath() + "/lib_one/lib_one.apk"); in SetUp() 56 lib_two_assets_ = ApkAssets::Load(GetTestDataPath() + "/lib_two/lib_two.apk"); in SetUp() 59 libclient_assets_ = ApkAssets::Load(GetTestDataPath() + "/libclient/libclient.apk"); in SetUp() 62 appaslib_assets_ = ApkAssets::Load(GetTestDataPath() + "/appaslib/appaslib.apk"); in SetUp() 65 system_assets_ = ApkAssets::Load(GetTestDataPath() + "/system/system.apk", true /*system*/); in SetUp() 70 std::unique_ptr<const ApkAssets> basic_assets_; 71 std::unique_ptr<const ApkAssets> basic_de_fr_assets_; [all …]
|
D | Theme_bench.cpp | 31 std::unique_ptr<const ApkAssets> apk = ApkAssets::Load(kFrameworkPath); in BM_ThemeApplyStyleFramework() 65 std::unique_ptr<const ApkAssets> apk = ApkAssets::Load(kFrameworkPath); in BM_ThemeGetAttribute()
|
D | Theme_test.cpp | 36 style_assets_ = ApkAssets::Load(GetTestDataPath() + "/styles/styles.apk"); in SetUp() 39 libclient_assets_ = ApkAssets::Load(GetTestDataPath() + "/libclient/libclient.apk"); in SetUp() 42 lib_one_assets_ = ApkAssets::Load(GetTestDataPath() + "/lib_one/lib_one.apk"); in SetUp() 45 lib_two_assets_ = ApkAssets::Load(GetTestDataPath() + "/lib_two/lib_two.apk"); in SetUp() 50 std::unique_ptr<const ApkAssets> style_assets_; 51 std::unique_ptr<const ApkAssets> libclient_assets_; 52 std::unique_ptr<const ApkAssets> lib_one_assets_; 53 std::unique_ptr<const ApkAssets> lib_two_assets_;
|
/frameworks/base/libs/androidfw/ |
D | ApkAssets.cpp | 33 std::unique_ptr<const ApkAssets> ApkAssets::Load(const std::string& path, bool system) { in Load() 34 return ApkAssets::LoadImpl(path, system, false /*load_as_shared_library*/); in Load() 37 std::unique_ptr<const ApkAssets> ApkAssets::LoadAsSharedLibrary(const std::string& path, in LoadAsSharedLibrary() 39 return ApkAssets::LoadImpl(path, system, true /*load_as_shared_library*/); in LoadAsSharedLibrary() 42 std::unique_ptr<const ApkAssets> ApkAssets::LoadImpl(const std::string& path, bool system, in LoadImpl() 53 std::unique_ptr<ApkAssets> loaded_apk(new ApkAssets()); in LoadImpl() 86 std::unique_ptr<Asset> ApkAssets::Open(const std::string& path, Asset::AccessMode mode) const { in Open() 130 bool ApkAssets::ForEachFile(const std::string& root_path, in ForEachFile()
|
D | Android.bp | 27 "ApkAssets.cpp",
|
D | AssetManager2.cpp | 40 bool AssetManager2::SetApkAssets(const std::vector<const ApkAssets*>& apk_assets, in SetApkAssets() 58 const ApkAssets* apk_asset = apk_assets_[i]; in BuildDynamicRefTable() 211 const ApkAssets* apk_assets = *iter; in OpenDir()
|
/frameworks/base/libs/androidfw/include/androidfw/ |
D | ApkAssets.h | 33 class ApkAssets { 35 static std::unique_ptr<const ApkAssets> Load(const std::string& path, bool system = false); 36 static std::unique_ptr<const ApkAssets> LoadAsSharedLibrary(const std::string& path, 50 DISALLOW_COPY_AND_ASSIGN(ApkAssets); 52 static std::unique_ptr<const ApkAssets> LoadImpl(const std::string& path, bool system, 55 ApkAssets() = default;
|
D | AssetManager2.h | 98 bool SetApkAssets(const std::vector<const ApkAssets*>& apk_assets, bool invalidate_caches = true); 100 inline const std::vector<const ApkAssets*> GetApkAssets() const { return apk_assets_; } in GetApkAssets() 262 std::vector<const ApkAssets*> apk_assets_;
|
D | Asset.h | 155 friend class ApkAssets; variable
|