Home
last modified time | relevance | path

Searched refs:apk_path (Results 1 – 21 of 21) sorted by relevance

/frameworks/base/tools/aapt2/cmd/
DDump_test.cpp48 auto apk_path = file::BuildPath( in TEST_F() local
50 auto loaded_apk = LoadedApk::LoadApkFromPath(apk_path, &noop_diag); in TEST_F()
63 auto apk_path = file::BuildPath({android::base::GetExecutableDirectory(), "integration-tests", in TEST_F() local
65 auto loaded_apk = LoadedApk::LoadApkFromPath(apk_path, &noop_diag); in TEST_F()
79 auto apk_path = file::BuildPath( in TEST_F() local
81 auto loaded_apk = LoadedApk::LoadApkFromPath(apk_path, &noop_diag); in TEST_F()
95 auto apk_path = file::BuildPath( in TEST_F() local
97 auto loaded_apk = LoadedApk::LoadApkFromPath(apk_path, &noop_diag); in TEST_F()
112 auto apk_path = file::BuildPath({android::base::GetExecutableDirectory(), "integration-tests", in TEST_F() local
114 auto loaded_apk = LoadedApk::LoadApkFromPath(apk_path, &noop_diag); in TEST_F()
DApkInfo_test.cpp49 auto apk_path = file::BuildPath( in TEST_F() local
54 command.Execute({"-o", out_info_path, apk_path}, &std::cerr); in TEST_F()
63 auto apk_path = file::BuildPath( in TEST_F() local
69 "AndroidManifest.xml", "--include-xml", "res/oy.xml", apk_path}, in TEST_F()
DConvert_test.cpp115 const std::string apk_path = in TEST_F() local
123 apk_path in TEST_F()
DOptimize.cpp356 const std::string& apk_path = args[0]; in Action() local
365 options_.apk_artifacts = for_path.value().WithDiagnostics(diag).Parse(apk_path); in Action()
404 std::unique_ptr<LoadedApk> apk = LoadedApk::LoadApkFromPath(apk_path, context.GetDiagnostics()); in Action()
DCompile_test.cpp296 const std::string apk_path = in TEST_F() local
327 ASSERT_TRUE(Link({"-o", apk_path, in TEST_F()
332 std::unique_ptr<LoadedApk> apk = LoadedApk::LoadApkFromPath(apk_path, &diag); in TEST_F()
/frameworks/native/cmds/installd/
Dotapreopt.cpp437 maybe_open_reference_profile(parameters_.pkgName, parameters_.apk_path, in IsAotCompilation()
480 const char* apk_path = parameters_.apk_path; in ShouldSkipPreopt() local
481 CHECK(apk_path != nullptr); in ShouldSkipPreopt()
482 if (StartsWith(apk_path, android_root_) || !IsAotCompilation()) { in ShouldSkipPreopt()
483 const char* last_slash = strrchr(apk_path, '/'); in ShouldSkipPreopt()
485 std::string path(apk_path, last_slash - apk_path + 1); in ShouldSkipPreopt()
489 LOG(INFO) << "Skipping A/B OTA preopt of already preopted package " << apk_path; in ShouldSkipPreopt()
500 if (access(apk_path, F_OK) != 0) { in ShouldSkipPreopt()
501 PLOG(WARNING) << "Skipping A/B OTA preopt of non-existing package " << apk_path; in ShouldSkipPreopt()
519 int res = dexopt(parameters_.apk_path, in Dexopt()
[all …]
Ddexopt.h111 int64_t delete_odex(const char* apk_path, const char* instruction_set, const char* output_path);
124 int dexopt(const char *apk_path, uid_t uid, const char *pkgName, const char *instruction_set,
136 const char *apk_path, const char *instruction_set);
138 bool calculate_odex_file_path_default(char path[PKG_PATH_MAX], const char *apk_path,
144 bool move_ab(const char* apk_path, const char* instruction_set, const char* output_path);
158 int get_odex_visibility(const char* apk_path, const char* instruction_set, const char* oat_dir);
Dinstalld_deps.h42 const char *apk_path,
52 const char *apk_path,
Dinstalld.cpp54 bool calculate_oat_file_path(char path[PKG_PATH_MAX], const char *oat_dir, const char *apk_path, in calculate_oat_file_path() argument
56 return calculate_oat_file_path_default(path, oat_dir, apk_path, instruction_set); in calculate_oat_file_path()
59 bool calculate_odex_file_path(char path[PKG_PATH_MAX], const char *apk_path, in calculate_odex_file_path() argument
61 return calculate_odex_file_path_default(path, apk_path, instruction_set); in calculate_odex_file_path()
Ddexopt.cpp998 static bool create_oat_out_path(const char* apk_path, const char* instruction_set, in create_oat_out_path() argument
1000 if (!validate_dex_path_size(apk_path)) { in create_oat_out_path()
1010 if (!calculate_oat_file_path(out_oat_path, oat_dir, apk_path, instruction_set)) { in create_oat_out_path()
1014 if (!create_cache_path(out_oat_path, apk_path, instruction_set)) { in create_oat_out_path()
1121 bool open_vdex_files_for_dex2oat(const char* apk_path, const char* out_oat_path, int dexopt_needed, in open_vdex_files_for_dex2oat() argument
1152 if (calculate_odex_file_path(in_odex_path, apk_path, instruction_set)) { in open_vdex_files_for_dex2oat()
1155 ALOGE("installd cannot compute input vdex location for '%s'\n", apk_path); in open_vdex_files_for_dex2oat()
1202 RestorableFile open_oat_out_file(const char* apk_path, const char* oat_dir, bool is_public, int uid, in open_oat_out_file() argument
1205 if (!create_oat_out_path(apk_path, instruction_set, oat_dir, is_secondary_dex, out_oat_path)) { in open_oat_out_file()
1222 bool maybe_open_oat_and_vdex_file(const std::string& apk_path, in maybe_open_oat_and_vdex_file() argument
[all …]
Dotapreopt_parameters.h35 const char* apk_path; variable
Dotapreopt_parameters.cpp165 apk_path = param; in ReadArgumentsV1()
292 apk_path = param; in ReadArgumentsPostV1()
DInstalldNativeService.cpp3293 const char* apk_path = apkPath.c_str(); in dexopt() local
3304 int res = android::installd::dexopt(apk_path, uid, pkgname, instruction_set, dexoptNeeded, in dexopt()
3582 const char* apk_path = apkPath.c_str(); in moveAb() local
3586 bool success = move_ab(apk_path, instruction_set, oat_dir); in moveAb()
3601 const char* apk_path = apkPath.c_str(); in deleteOdex() local
3605 *_aidl_return = delete_odex(apk_path, instruction_set, oat_dir); in deleteOdex()
3963 const char* apk_path = apkPath.c_str(); in getOdexVisibility() local
3967 *_aidl_return = get_odex_visibility(apk_path, instruction_set, oat_dir); in getOdexVisibility()
/frameworks/native/cmds/installd/tests/fuzzers/
DInstalldServiceFuzzer.cpp28 bool calculate_oat_file_path(char path[PKG_PATH_MAX], const char* oat_dir, const char* apk_path, in calculate_oat_file_path() argument
30 return calculate_oat_file_path_default(path, oat_dir, apk_path, instruction_set); in calculate_oat_file_path()
33 bool calculate_odex_file_path(char path[PKG_PATH_MAX], const char* apk_path, in calculate_odex_file_path() argument
35 return calculate_odex_file_path_default(path, apk_path, instruction_set); in calculate_odex_file_path()
/frameworks/base/services/tests/
Druntests.py69 apk_path = (
72 run('adb install -t -r -g "%s"' % apk_path)
/frameworks/native/cmds/installd/tests/
Dinstalld_cache_test.cpp53 const char *apk_path ATTRIBUTE_UNUSED, in calculate_oat_file_path()
59 const char *apk_path ATTRIBUTE_UNUSED, in calculate_odex_file_path()
Dinstalld_otapreopt_test.cpp59 ASSERT_STREQ(params.apk_path, args[i++]); in verifyPackageParameters()
Dinstalld_dexopt_test.cpp62 bool calculate_oat_file_path(char path[PKG_PATH_MAX], const char *oat_dir, const char *apk_path, in calculate_oat_file_path() argument
64 return calculate_oat_file_path_default(path, oat_dir, apk_path, instruction_set); in calculate_oat_file_path()
67 bool calculate_odex_file_path(char path[PKG_PATH_MAX], const char *apk_path, in calculate_odex_file_path() argument
69 return calculate_odex_file_path_default(path, apk_path, instruction_set); in calculate_odex_file_path()
Dinstalld_service_test.cpp105 bool calculate_oat_file_path(char path[PKG_PATH_MAX], const char *oat_dir, const char *apk_path, in calculate_oat_file_path() argument
107 return calculate_oat_file_path_default(path, oat_dir, apk_path, instruction_set); in calculate_oat_file_path()
110 bool calculate_odex_file_path(char path[PKG_PATH_MAX], const char *apk_path, in calculate_odex_file_path() argument
112 return calculate_odex_file_path_default(path, apk_path, instruction_set); in calculate_odex_file_path()
/frameworks/base/tools/aapt2/configuration/
DConfigurationParser.h153 std::optional<std::vector<configuration::OutputArtifact>> Parse(android::StringPiece apk_path);
DConfigurationParser.cpp442 android::StringPiece apk_path) { in Parse() argument
450 const std::string apk_name(file::GetFilename(apk_path)); in Parse()