/frameworks/native/cmds/installd/ |
D | otapreopt.cpp | 447 const char* apk_path = parameters_.apk_path; in ShouldSkipPreopt() local 448 CHECK(apk_path != nullptr); in ShouldSkipPreopt() 449 if (StartsWith(apk_path, android_root_)) { in ShouldSkipPreopt() 450 const char* last_slash = strrchr(apk_path, '/'); in ShouldSkipPreopt() 452 std::string path(apk_path, last_slash - apk_path + 1); in ShouldSkipPreopt() 456 LOG(INFO) << "Skipping A/B OTA preopt of already preopted package " << apk_path; in ShouldSkipPreopt() 467 if (access(apk_path, F_OK) != 0) { in ShouldSkipPreopt() 468 LOG(WARNING) << "Skipping A/B OTA preopt of non-existing package " << apk_path; in ShouldSkipPreopt() 479 return dexopt(parameters_.apk_path, in Dexopt() 608 const char *apk_path, in calculate_oat_file_path() argument [all …]
|
D | view_compiler.cpp | 38 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()
|
D | dexopt.h | 105 bool delete_odex(const char* apk_path, const char* instruction_set, const char* output_path); 116 int dexopt(const char *apk_path, uid_t uid, const char *pkgName, const char *instruction_set, 123 const char *apk_path, const char *instruction_set); 125 bool calculate_odex_file_path_default(char path[PKG_PATH_MAX], const char *apk_path, 131 bool move_ab(const char* apk_path, const char* instruction_set, const char* output_path);
|
D | installd_deps.h | 42 const char *apk_path, 52 const char *apk_path,
|
D | installd.cpp | 54 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()
|
D | dexopt.cpp | 1196 static bool create_oat_out_path(const char* apk_path, const char* instruction_set, in create_oat_out_path() argument 1198 if (!validate_dex_path_size(apk_path)) { in create_oat_out_path() 1208 if (!calculate_oat_file_path(out_oat_path, oat_dir, apk_path, instruction_set)) { in create_oat_out_path() 1212 if (!create_cache_path(out_oat_path, apk_path, instruction_set)) { in create_oat_out_path() 1435 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 1459 if (calculate_odex_file_path(in_odex_path, apk_path, instruction_set)) { in open_vdex_files_for_dex2oat() 1462 ALOGE("installd cannot compute input vdex location for '%s'\n", apk_path); in open_vdex_files_for_dex2oat() 1528 Dex2oatFileWrapper open_oat_out_file(const char* apk_path, const char* oat_dir, in open_oat_out_file() argument 1531 if (!create_oat_out_path(apk_path, instruction_set, oat_dir, is_secondary_dex, out_oat_path)) { in open_oat_out_file() 1551 bool maybe_open_oat_and_vdex_file(const std::string& apk_path, in maybe_open_oat_and_vdex_file() argument [all …]
|
D | view_compiler.h | 23 bool view_compiler(const char* apk_path, const char* package_name, const char* out_dex_file,
|
D | otapreopt_parameters.h | 35 const char* apk_path; variable
|
D | otapreopt_parameters.cpp | 165 apk_path = param; in ReadArgumentsV1() 292 apk_path = param; in ReadArgumentsPostV1()
|
D | InstalldNativeService.cpp | 2409 const char* apk_path = apkPath.c_str(); in dexopt() local 2419 int res = android::installd::dexopt(apk_path, uid, pkgname, instruction_set, dexoptNeeded, in dexopt() 2429 const char* apk_path = apkPath.c_str(); in compileLayouts() local 2432 *_aidl_return = android::installd::view_compiler(apk_path, package_name, out_dex_file, uid); in compileLayouts() 2637 const char* apk_path = apkPath.c_str(); in moveAb() local 2641 bool success = move_ab(apk_path, instruction_set, oat_dir); in moveAb() 2652 const char* apk_path = apkPath.c_str(); in deleteOdex() local 2656 bool res = delete_odex(apk_path, instruction_set, oat_dir); in deleteOdex()
|
/frameworks/base/cmds/idmap2/idmap2/ |
D | Scan.cpp | 62 return priority < rhs.priority || (priority == rhs.priority && apk_path < rhs.apk_path); in operator <() 65 std::string apk_path; // NOLINT(misc-non-private-member-variables-in-classes) member 102 std::vector<std::string> PoliciesForPath(const std::string& apk_path) { in PoliciesForPath() argument 116 if (apk_path.compare(0, pair.first.size(), pair.first) == 0) { in PoliciesForPath() 224 LOG(WARNING) << "failed to create idmap for overlay apk path \"" << overlay.apk_path in Scan() 229 if (!Verify(overlay.idmap_path, target_apk_path, overlay.apk_path, *policy_bitmask, in Scan() 232 "--overlay-apk-path", overlay.apk_path, in Scan() 245 LOG(WARNING) << "failed to create idmap for overlay apk path \"" << overlay.apk_path in Scan()
|
/frameworks/base/services/tests/ |
D | runtests.py | 69 apk_path = ( 72 run('adb install -t -r -g "%s"' % apk_path)
|
/frameworks/base/cmds/idmap2/idmap2d/ |
D | Idmap2Service.cpp | 72 Status GetCrc(const std::string& apk_path, uint32_t* out_crc) { in GetCrc() argument 73 const auto zip = ZipFile::Open(apk_path); in GetCrc() 75 return error(StringPrintf("failed to open apk %s", apk_path.c_str())); in GetCrc()
|
/frameworks/base/tools/aapt2/cmd/ |
D | Convert_test.cpp | 109 const std::string apk_path = in TEST_F() local 117 apk_path in TEST_F()
|
D | Optimize.cpp | 376 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()
|
/frameworks/native/cmds/installd/tests/ |
D | installd_service_test.cpp | 54 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()
|
D | installd_cache_test.cpp | 52 const char *apk_path ATTRIBUTE_UNUSED, in calculate_oat_file_path() 58 const char *apk_path ATTRIBUTE_UNUSED, in calculate_odex_file_path()
|
D | installd_otapreopt_test.cpp | 59 ASSERT_STREQ(params.apk_path, args[i++]); in verifyPackageParameters()
|
D | installd_dexopt_test.cpp | 73 bool calculate_oat_file_path(char path[PKG_PATH_MAX], const char *oat_dir, const char *apk_path, in calculate_oat_file_path() argument 75 return calculate_oat_file_path_default(path, oat_dir, apk_path, instruction_set); in calculate_oat_file_path() 78 bool calculate_odex_file_path(char path[PKG_PATH_MAX], const char *apk_path, in calculate_odex_file_path() argument 80 return calculate_odex_file_path_default(path, apk_path, instruction_set); in calculate_odex_file_path()
|
/frameworks/base/tools/aapt2/configuration/ |
D | ConfigurationParser.h | 157 Maybe<std::vector<configuration::OutputArtifact>> Parse(const android::StringPiece& apk_path);
|
D | ConfigurationParser.cpp | 446 const android::StringPiece& apk_path) { in Parse() argument 454 const std::string& apk_name = file::GetFilename(apk_path).to_string(); in Parse()
|