Lines Matching refs:oat_dir
1090 static bool IsOutputDalvikCache(const char* oat_dir) { in IsOutputDalvikCache() argument
1095 return oat_dir == nullptr || oat_dir[0] == '!'; in IsOutputDalvikCache()
1112 const char* oat_dir, bool is_secondary_dex, /*out*/ char* out_oat_path) { in create_oat_out_path() argument
1117 if (!IsOutputDalvikCache(oat_dir)) { in create_oat_out_path()
1119 if (!is_secondary_dex && validate_apk_path(oat_dir)) { in create_oat_out_path()
1120 ALOGE("cannot validate apk path with oat_dir '%s'\n", oat_dir); in create_oat_out_path()
1123 if (!calculate_oat_file_path(out_oat_path, oat_dir, apk_path, instruction_set)) { in create_oat_out_path()
1448 Dex2oatFileWrapper open_oat_out_file(const char* apk_path, const char* oat_dir, in open_oat_out_file() argument
1451 if (!create_oat_out_path(apk_path, instruction_set, oat_dir, is_secondary_dex, out_oat_path)) { in open_oat_out_file()
1472 const std::string& oat_dir, in maybe_open_oat_and_vdex_file() argument
1480 oat_dir.c_str(), in maybe_open_oat_and_vdex_file()
1484 << apk_path << " with oat dir " << oat_dir; in maybe_open_oat_and_vdex_file()
1616 char oat_dir[PKG_PATH_MAX]; in prepare_secondary_dex_oat_dir() local
1617 snprintf(oat_dir, PKG_PATH_MAX, "%s/oat", dex_dir.c_str()); in prepare_secondary_dex_oat_dir()
1619 if (prepare_app_cache_dir(oat_dir, instruction_set, oat_dir_mode, uid, uid) != 0) { in prepare_secondary_dex_oat_dir()
1885 char oat_dir[PKG_PATH_MAX]; in process_secondary_dex_dexopt() local
1888 dex_path, instruction_set, oat_dir, oat_isa_dir, oat_path, error_msg)) { in process_secondary_dex_dexopt()
1892 oat_dir_out->assign(oat_dir); in process_secondary_dex_dexopt()
2009 int dexopt_needed, const char* oat_dir, int dexopt_flags, const char* compiler_filter, in dexopt() argument
2053 oat_dir = oat_dir_str.c_str(); in dexopt()
2087 Dex2oatFileWrapper out_oat_fd = open_oat_out_file(dex_path, oat_dir, is_public, uid, in dexopt()
2109 if (selinux_android_restorecon_pkgdir(oat_dir, se_info, uid, in dexopt()
2111 *error_msg = std::string("Failed to restorecon ").append(oat_dir); in dexopt()
2283 char oat_dir[PKG_PATH_MAX]; in reconcile_secondary_dex_file() local
2289 dex_path,isas[i], oat_dir, oat_isa_dir, oat_path, &error_msg)) { in reconcile_secondary_dex_file()
2314 result = rmdir_if_empty(oat_dir) && result; in reconcile_secondary_dex_file()
2497 bool move_ab(const char* apk_path, const char* instruction_set, const char* oat_dir) { in move_ab() argument
2514 if (validate_apk_path(oat_dir) != 0) { in move_ab()
2515 LOG(ERROR) << "Invalid oat_dir: " << oat_dir; in move_ab()
2520 if (!calculate_oat_file_path(a_path, oat_dir, apk_path, instruction_set)) { in move_ab()
2563 bool delete_odex(const char* apk_path, const char* instruction_set, const char* oat_dir) { in delete_odex() argument
2566 if (!create_oat_out_path(apk_path, instruction_set, oat_dir, in delete_odex()
2616 bool calculate_oat_file_path_default(char path[PKG_PATH_MAX], const char *oat_dir, in calculate_oat_file_path_default() argument
2618 std::string oat_dir_ = oat_dir; in calculate_oat_file_path_default()
2660 std::string oat_dir = apk_path_.substr(0, start + 1) + "oat"; in calculate_odex_file_path_default() local
2661 return calculate_oat_file_path_default(path, oat_dir.c_str(), apk_path, instruction_set); in calculate_odex_file_path_default()