Home | History | Annotate | Download | only in installd

Lines Matching full:oat_dir

1138 static bool IsOutputDalvikCache(const char* oat_dir) {
1143 return oat_dir == nullptr || oat_dir[0] == '!';
1160 const char* oat_dir, bool is_secondary_dex, /*out*/ char* out_oat_path) {
1165 if (!IsOutputDalvikCache(oat_dir)) {
1167 if (!is_secondary_dex && validate_apk_path(oat_dir)) {
1168 ALOGE("cannot validate apk path with oat_dir '%s'\n", oat_dir);
1171 if (!calculate_oat_file_path(out_oat_path, oat_dir, apk_path, instruction_set)) {
1498 Dex2oatFileWrapper open_oat_out_file(const char* apk_path, const char* oat_dir,
1501 if (!create_oat_out_path(apk_path, instruction_set, oat_dir, is_secondary_dex, out_oat_path)) {
1522 const std::string& oat_dir,
1530 oat_dir.c_str(),
1534 << apk_path << " with oat dir " << oat_dir;
1654 char oat_dir[PKG_PATH_MAX];
1655 snprintf(oat_dir, PKG_PATH_MAX, "%s/oat", dex_dir.c_str());
1657 if (prepare_app_cache_dir(oat_dir, instruction_set, oat_dir_mode, uid, uid) != 0) {
1837 char oat_dir[PKG_PATH_MAX];
1840 dex_path, instruction_set, oat_dir, oat_isa_dir, oat_path, error_msg)) {
1844 oat_dir_out->assign(oat_dir);
1952 int dexopt_needed, const char* oat_dir, int dexopt_flags, const char* compiler_filter,
1990 oat_dir = oat_dir_str.c_str();
2017 Dex2oatFileWrapper out_oat_fd = open_oat_out_file(dex_path, oat_dir, is_public, uid,
2039 if (selinux_android_restorecon_pkgdir(oat_dir, se_info, uid,
2041 *error_msg = std::string("Failed to restorecon ").append(oat_dir);
2210 char oat_dir[PKG_PATH_MAX];
2216 dex_path,isas[i], oat_dir, oat_isa_dir, oat_path, &error_msg)) {
2241 result = rmdir_if_empty(oat_dir) && result;
2424 bool move_ab(const char* apk_path, const char* instruction_set, const char* oat_dir) {
2445 if (validate_apk_path(oat_dir) != 0) {
2446 LOG(ERROR) << "Invalid oat_dir: " << oat_dir;
2451 if (!calculate_oat_file_path(a_path, oat_dir, apk_path, instruction_set)) {
2494 bool delete_odex(const char* apk_path, const char* instruction_set, const char* oat_dir) {
2497 if (!create_oat_out_path(apk_path, instruction_set, oat_dir,
2547 bool calculate_oat_file_path_default(char path[PKG_PATH_MAX], const char *oat_dir,
2549 std::string oat_dir_ = oat_dir;
2591 std::string oat_dir = apk_path_.substr(0, start + 1) + "oat";
2592 return calculate_oat_file_path_default(path, oat_dir.c_str(), apk_path, instruction_set);