Lines Matching refs:oat_dir

1175 static bool IsOutputDalvikCache(const char* oat_dir) {  in IsOutputDalvikCache()  argument
1180 return oat_dir == nullptr || oat_dir[0] == '!'; in IsOutputDalvikCache()
1197 const char* oat_dir, bool is_secondary_dex, /*out*/ char* out_oat_path) { in create_oat_out_path() argument
1202 if (!IsOutputDalvikCache(oat_dir)) { in create_oat_out_path()
1204 if (!is_secondary_dex && validate_apk_path(oat_dir)) { in create_oat_out_path()
1205 ALOGE("cannot validate apk path with oat_dir '%s'\n", oat_dir); 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()
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()
1552 const std::string& oat_dir, in maybe_open_oat_and_vdex_file() argument
1560 oat_dir.c_str(), in maybe_open_oat_and_vdex_file()
1564 << apk_path << " with oat dir " << oat_dir; in maybe_open_oat_and_vdex_file()
1696 char oat_dir[PKG_PATH_MAX]; in prepare_secondary_dex_oat_dir() local
1697 snprintf(oat_dir, PKG_PATH_MAX, "%s/oat", dex_dir.c_str()); in prepare_secondary_dex_oat_dir()
1699 if (prepare_app_cache_dir(oat_dir, instruction_set, oat_dir_mode, uid, uid) != 0) { in prepare_secondary_dex_oat_dir()
1965 char oat_dir[PKG_PATH_MAX]; in process_secondary_dex_dexopt() local
1968 dex_path, instruction_set, oat_dir, oat_isa_dir, oat_path, error_msg)) { in process_secondary_dex_dexopt()
1972 oat_dir_out->assign(oat_dir); in process_secondary_dex_dexopt()
2089 int dexopt_needed, const char* oat_dir, int dexopt_flags, const char* compiler_filter, in dexopt() argument
2134 oat_dir = oat_dir_str.c_str(); in dexopt()
2168 Dex2oatFileWrapper out_oat_fd = open_oat_out_file(dex_path, oat_dir, is_public, uid, in dexopt()
2190 if (selinux_android_restorecon_pkgdir(oat_dir, se_info, uid, in dexopt()
2192 *error_msg = std::string("Failed to restorecon ").append(oat_dir); in dexopt()
2371 char oat_dir[PKG_PATH_MAX]; in reconcile_secondary_dex_file() local
2377 dex_path,isas[i], oat_dir, oat_isa_dir, oat_path, &error_msg)) { in reconcile_secondary_dex_file()
2402 result = rmdir_if_empty(oat_dir) && result; in reconcile_secondary_dex_file()
2585 bool move_ab(const char* apk_path, const char* instruction_set, const char* oat_dir) { in move_ab() argument
2602 if (validate_apk_path(oat_dir) != 0) { in move_ab()
2603 LOG(ERROR) << "Invalid oat_dir: " << oat_dir; in move_ab()
2608 if (!calculate_oat_file_path(a_path, oat_dir, apk_path, instruction_set)) { in move_ab()
2651 bool delete_odex(const char* apk_path, const char* instruction_set, const char* oat_dir) { in delete_odex() argument
2654 if (!create_oat_out_path(apk_path, instruction_set, oat_dir, in delete_odex()
2704 bool calculate_oat_file_path_default(char path[PKG_PATH_MAX], const char *oat_dir, in calculate_oat_file_path_default() argument
2706 std::string oat_dir_ = oat_dir; in calculate_oat_file_path_default()
2748 std::string oat_dir = apk_path_.substr(0, start + 1) + "oat"; in calculate_odex_file_path_default() local
2749 return calculate_oat_file_path_default(path, oat_dir.c_str(), apk_path, instruction_set); in calculate_odex_file_path_default()