Lines Matching refs:oat_path
914 static std::string replace_file_extension(const std::string& oat_path, const std::string& new_ext) { in replace_file_extension() argument
916 if (EndsWith(oat_path, ".dex")) { in replace_file_extension()
917 std::string new_path = oat_path; in replace_file_extension()
925 size_t odex_pos = oat_path.rfind(".odex"); in replace_file_extension()
927 std::string new_path = oat_path; in replace_file_extension()
939 static std::string create_image_filename(const std::string& oat_path) { in create_image_filename() argument
940 return replace_file_extension(oat_path, ".art"); in create_image_filename()
944 static std::string create_vdex_filename(const std::string& oat_path) { in create_vdex_filename() argument
945 return replace_file_extension(oat_path, ".vdex"); in create_vdex_filename()
1228 char oat_path[PKG_PATH_MAX]; in maybe_open_oat_and_vdex_file() local
1233 oat_path)) { in maybe_open_oat_and_vdex_file()
1238 oat_file_fd->reset(open(oat_path, O_RDONLY)); in maybe_open_oat_and_vdex_file()
1240 PLOG(INFO) << "installd cannot open oat file during dexopt" << oat_path; in maybe_open_oat_and_vdex_file()
1243 std::string vdex_filename = create_vdex_filename(oat_path); in maybe_open_oat_and_vdex_file()
1651 char oat_path[PKG_PATH_MAX]; in process_secondary_dex_dexopt() local
1655 dex_path, instruction_set, oat_dir, oat_isa_dir, oat_path, error_msg)) { in process_secondary_dex_dexopt()
2142 char oat_path[PKG_PATH_MAX]; in reconcile_secondary_dex_file() local
2149 dex_path,isas[i], oat_dir, oat_isa_dir, oat_path, &error_msg)) { in reconcile_secondary_dex_file()
2155 result = unlink_if_exists(oat_path) && result; in reconcile_secondary_dex_file()
2156 result = unlink_if_exists(create_vdex_filename(oat_path)) && result; in reconcile_secondary_dex_file()
2157 result = unlink_if_exists(create_image_filename(oat_path)) && result; in reconcile_secondary_dex_file()
2852 char oat_path[PKG_PATH_MAX]; in get_odex_visibility() local
2854 oat_path)) { in get_odex_visibility()
2858 if (stat(oat_path, &st) == -1) { in get_odex_visibility()
2862 PLOG(ERROR) << "Could not stat " << oat_path; in get_odex_visibility()