Home
last modified time | relevance | path

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

/frameworks/native/cmds/installd/
Dotapreopt.cpp450 const char* apk_path = parameters_.apk_path; in ShouldSkipPreopt() local
451 CHECK(apk_path != nullptr); in ShouldSkipPreopt()
452 if (StartsWith(apk_path, android_root_)) { in ShouldSkipPreopt()
453 const char* last_slash = strrchr(apk_path, '/'); in ShouldSkipPreopt()
455 std::string path(apk_path, last_slash - apk_path + 1); in ShouldSkipPreopt()
459 LOG(INFO) << "Skipping A/B OTA preopt of already preopted package " << apk_path; in ShouldSkipPreopt()
470 if (access(apk_path, F_OK) != 0) { in ShouldSkipPreopt()
471 LOG(WARNING) << "Skipping A/B OTA preopt of non-existing package " << apk_path; in ShouldSkipPreopt()
482 int res = dexopt(parameters_.apk_path, in Dexopt()
500 LOG(ERROR) << "During preopt of " << parameters_.apk_path << " got result " << res in Dexopt()
[all …]
Dview_compiler.cpp38 bool view_compiler(const char* apk_path, const char* package_name, const char* out_dex_file, in view_compiler() argument
40 CHECK(apk_path != nullptr); in view_compiler()
48 unique_fd infd{open(apk_path, O_RDONLY)}; // NOLINT(android-cloexec-open) in view_compiler()
50 PLOG(ERROR) << "Could not open input file: " << apk_path; in view_compiler()
Ddexopt.h113 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,
131 const char *apk_path, const char *instruction_set);
133 bool calculate_odex_file_path_default(char path[PKG_PATH_MAX], const char *apk_path,
139 bool move_ab(const char* apk_path, const char* instruction_set, const char* output_path);
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.cpp891 static bool create_oat_out_path(const char* apk_path, const char* instruction_set, in create_oat_out_path() argument
893 if (!validate_dex_path_size(apk_path)) { in create_oat_out_path()
903 if (!calculate_oat_file_path(out_oat_path, oat_dir, apk_path, instruction_set)) { in create_oat_out_path()
907 if (!create_cache_path(out_oat_path, apk_path, instruction_set)) { in create_oat_out_path()
1023 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
1046 if (calculate_odex_file_path(in_odex_path, apk_path, instruction_set)) { in open_vdex_files_for_dex2oat()
1049 ALOGE("installd cannot compute input vdex location for '%s'\n", apk_path); in open_vdex_files_for_dex2oat()
1118 UniqueFile open_oat_out_file(const char* apk_path, const char* oat_dir, in open_oat_out_file() argument
1121 if (!create_oat_out_path(apk_path, instruction_set, oat_dir, is_secondary_dex, out_oat_path)) { in open_oat_out_file()
1141 bool maybe_open_oat_and_vdex_file(const std::string& apk_path, in maybe_open_oat_and_vdex_file() argument
[all …]
Dview_compiler.h23 bool view_compiler(const char* apk_path, const char* package_name, const char* out_dex_file,
Dotapreopt_parameters.h35 const char* apk_path; variable
Dotapreopt_parameters.cpp165 apk_path = param; in ReadArgumentsV1()
292 apk_path = param; in ReadArgumentsPostV1()
DInstalldNativeService.cpp2422 const char* apk_path = apkPath.c_str(); in dexopt() local
2432 int res = android::installd::dexopt(apk_path, uid, pkgname, instruction_set, dexoptNeeded, in dexopt()
2442 const char* apk_path = apkPath.c_str(); in compileLayouts() local
2445 *_aidl_return = android::installd::view_compiler(apk_path, package_name, out_dex_file, uid); in compileLayouts()
2650 const char* apk_path = apkPath.c_str(); in moveAb() local
2654 bool success = move_ab(apk_path, instruction_set, oat_dir); in moveAb()
2666 const char* apk_path = apkPath.c_str(); in deleteOdex() local
2670 *_aidl_return = delete_odex(apk_path, instruction_set, oat_dir); in deleteOdex()
/frameworks/base/services/tests/
Druntests.py69 apk_path = (
72 run('adb install -t -r -g "%s"' % apk_path)
/frameworks/base/tools/aapt2/cmd/
DConvert_test.cpp109 const std::string apk_path = in TEST_F() local
117 apk_path in TEST_F()
DOptimize.cpp376 const std::string& apk_path = args[0]; in Action() local
385 options_.apk_artifacts = for_path.value().WithDiagnostics(diag).Parse(apk_path); in Action()
422 std::unique_ptr<LoadedApk> apk = LoadedApk::LoadApkFromPath(apk_path, context.GetDiagnostics()); in Action()
DCompile_test.cpp286 const std::string apk_path = BuildPath( in TEST_F() local
318 ASSERT_TRUE(Link({"-o", apk_path, in TEST_F()
323 std::unique_ptr<LoadedApk> apk = LoadedApk::LoadApkFromPath(apk_path, &diag); in TEST_F()
/frameworks/native/cmds/installd/tests/
Dinstalld_service_test.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()
Dinstalld_cache_test.cpp52 const char *apk_path ATTRIBUTE_UNUSED, in calculate_oat_file_path()
58 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.cpp74 bool calculate_oat_file_path(char path[PKG_PATH_MAX], const char *oat_dir, const char *apk_path, in calculate_oat_file_path() argument
76 return calculate_oat_file_path_default(path, oat_dir, apk_path, instruction_set); in calculate_oat_file_path()
79 bool calculate_odex_file_path(char path[PKG_PATH_MAX], const char *apk_path, in calculate_odex_file_path() argument
81 return calculate_odex_file_path_default(path, apk_path, instruction_set); in calculate_odex_file_path()
/frameworks/base/tools/aapt2/configuration/
DConfigurationParser.h157 Maybe<std::vector<configuration::OutputArtifact>> Parse(const android::StringPiece& apk_path);
DConfigurationParser.cpp446 const android::StringPiece& apk_path) { in Parse() argument
454 const std::string& apk_name = file::GetFilename(apk_path).to_string(); in Parse()