Home
last modified time | relevance | path

Searched refs:target_apk (Results 1 – 8 of 8) sorted by relevance

/frameworks/base/cmds/idmap2/tests/
DPrettyPrintVisitorTests.cpp39 std::unique_ptr<const ApkAssets> target_apk = ApkAssets::Load(target_apk_path); in TEST() local
40 ASSERT_THAT(target_apk, NotNull()); in TEST()
47 Idmap::FromApkAssets(target_apk_path, *target_apk, overlay_apk_path, *overlay_apk, in TEST()
DRawPrintVisitorTests.cpp34 std::unique_ptr<const ApkAssets> target_apk = ApkAssets::Load(target_apk_path); in TEST() local
35 ASSERT_THAT(target_apk, NotNull()); in TEST()
42 Idmap::FromApkAssets(target_apk_path, *target_apk, overlay_apk_path, *overlay_apk, in TEST()
DBinaryStreamVisitorTests.cpp71 std::unique_ptr<const ApkAssets> target_apk = ApkAssets::Load(target_apk_path); in TEST() local
72 ASSERT_THAT(target_apk, NotNull()); in TEST()
79 Idmap::FromApkAssets(target_apk_path, *target_apk, overlay_apk_path, *overlay_apk, in TEST()
DIdmapTests.cpp175 std::unique_ptr<const ApkAssets> target_apk = ApkAssets::Load(target_apk_path.to_string()); in CreateIdmap() local
176 ASSERT_THAT(target_apk, NotNull()); in CreateIdmap()
182 Idmap::FromApkAssets(target_apk_path.to_string(), *target_apk, overlay_apk_path.to_string(), in CreateIdmap()
476 std::unique_ptr<const ApkAssets> target_apk = ApkAssets::Load(target_apk_path); in TEST() local
477 ASSERT_THAT(target_apk, NotNull()); in TEST()
484 Idmap::FromApkAssets(target_apk_path, *target_apk, overlay_apk_path, *overlay_apk, in TEST()
493 std::unique_ptr<const ApkAssets> target_apk = ApkAssets::Load(target_apk_path); in TEST() local
494 ASSERT_THAT(target_apk, NotNull()); in TEST()
500 auto result = Idmap::FromApkAssets(target_apk_path, *target_apk, overlay_apk_path, *overlay_apk, in TEST()
/frameworks/base/cmds/idmap2/idmap2/
DCreate.cpp92 const std::unique_ptr<const ApkAssets> target_apk = ApkAssets::Load(target_apk_path); in Create() local
93 if (!target_apk) { in Create()
102 const auto idmap = Idmap::FromApkAssets(target_apk_path, *target_apk, overlay_apk_path, in Create()
DLookup.cpp199 auto target_apk = ApkAssets::Load(target_path); in Lookup() local
200 if (!target_apk) { in Lookup()
203 apk_assets.push_back(std::move(target_apk)); in Lookup()
/frameworks/base/cmds/idmap2/idmap2d/
DIdmap2Service.cpp130 const std::unique_ptr<const ApkAssets> target_apk = ApkAssets::Load(target_apk_path); in createIdmap() local
131 if (!target_apk) { in createIdmap()
140 const auto idmap = Idmap::FromApkAssets(target_apk_path, *target_apk, overlay_apk_path, in createIdmap()
/frameworks/native/cmds/installd/
DInstalldNativeService.cpp2426 static void run_idmap(const char *target_apk, const char *overlay_apk, int idmap_fd) in run_idmap() argument
2428 execl(kIdMapPath, kIdMapPath, "--fd", target_apk, overlay_apk, in run_idmap()
2433 static void run_verify_idmap(const char *target_apk, const char *overlay_apk, int idmap_fd) in run_verify_idmap() argument
2435 execl(kIdMapPath, kIdMapPath, "--verify", target_apk, overlay_apk, in run_verify_idmap()
2440 static bool delete_stale_idmap(const char* target_apk, const char* overlay_apk, in delete_stale_idmap() argument
2466 run_verify_idmap(target_apk, overlay_apk, idmap_fd); in delete_stale_idmap()
2524 const char* target_apk = targetApkPath.c_str(); in idmap() local
2526 ALOGV("idmap target_apk=%s overlay_apk=%s uid=%d\n", target_apk, overlay_apk, uid); in idmap()
2542 outdated = delete_stale_idmap(target_apk, overlay_apk, idmap_path, uid); in idmap()
2586 run_idmap(target_apk, overlay_apk, idmap_fd); in idmap()