Home
last modified time | relevance | path

Searched refs:loaded_apk (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/libs/androidfw/tests/
DApkAssets_test.cpp38 auto loaded_apk = ApkAssets::Load(GetTestDataPath() + "/basic/basic.apk"); in TEST() local
39 ASSERT_THAT(loaded_apk, NotNull()); in TEST()
41 const LoadedArsc* loaded_arsc = loaded_apk->GetLoadedArsc(); in TEST()
44 ASSERT_THAT(loaded_apk->GetAssetsProvider()->Open("res/layout/main.xml"), NotNull()); in TEST()
52 auto loaded_apk = ApkAssets::LoadFromFd(std::move(fd), path); in TEST() local
53 ASSERT_THAT(loaded_apk, NotNull()); in TEST()
55 const LoadedArsc* loaded_arsc = loaded_apk->GetLoadedArsc(); in TEST()
58 ASSERT_THAT(loaded_apk->GetAssetsProvider()->Open("res/layout/main.xml"), NotNull()); in TEST()
62 auto loaded_apk = ApkAssets::Load(GetTestDataPath() + "/appaslib/appaslib.apk"); in TEST() local
63 ASSERT_THAT(loaded_apk, NotNull()); in TEST()
[all …]
/frameworks/base/tools/aapt2/cmd/
DDump_test.cpp35 void DumpBadgingToString(LoadedApk* loaded_apk, std::string* output, bool include_meta_data = false, in DumpBadgingToString() argument
43 ASSERT_EQ(command.Dump(loaded_apk), 0); in DumpBadgingToString()
50 auto loaded_apk = LoadedApk::LoadApkFromPath(apk_path, &noop_diag); in TEST_F() local
53 DumpBadgingToString(loaded_apk.get(), &output); in TEST_F()
65 auto loaded_apk = LoadedApk::LoadApkFromPath(apk_path, &noop_diag); in TEST_F() local
68 DumpBadgingToString(loaded_apk.get(), &output); in TEST_F()
81 auto loaded_apk = LoadedApk::LoadApkFromPath(apk_path, &noop_diag); in TEST_F() local
84 DumpBadgingToString(loaded_apk.get(), &output, /* include_meta_data= */ true); in TEST_F()
97 auto loaded_apk = LoadedApk::LoadApkFromPath(apk_path, &noop_diag); in TEST_F() local
100 DumpBadgingToString(loaded_apk.get(), &output, /* include_meta_data= */ false, in TEST_F()
[all …]
DDump.h76 auto loaded_apk = LoadedApk::LoadApkFromPath(apk, diag_); in Action() local
77 if (!loaded_apk) { in Action()
82 error |= Dump(loaded_apk.get()); in Action()