Lines Matching refs:oat_dir
1360 const char* oat_dir, /*out*/ char* out_path) { in create_oat_out_path() argument
1370 if (oat_dir != NULL && oat_dir[0] != '!') { in create_oat_out_path()
1371 if (validate_apk_path(oat_dir)) { in create_oat_out_path()
1372 ALOGE("invalid oat_dir '%s'\n", oat_dir); in create_oat_out_path()
1375 if (!calculate_oat_file_path(out_path, oat_dir, apk_path, instruction_set)) { in create_oat_out_path()
1392 int dexopt_needed, const char* oat_dir, int dexopt_flags, const char* compiler_filter, in dexopt() argument
1426 if (!create_oat_out_path(apk_path, instruction_set, oat_dir, out_path)) { in dexopt()
1845 int create_oat_dir(const char* oat_dir, const char* instruction_set) in create_oat_dir() argument
1849 if (validate_apk_path(oat_dir)) { in create_oat_dir()
1850 ALOGE("invalid apk path '%s' (bad prefix)\n", oat_dir); in create_oat_dir()
1853 if (fs_prepare_dir(oat_dir, S_IRWXU | S_IRWXG | S_IXOTH, AID_SYSTEM, AID_INSTALL)) { in create_oat_dir()
1856 if (selinux_android_restorecon(oat_dir, 0)) { in create_oat_dir()
1857 ALOGE("cannot restorecon dir '%s': %s\n", oat_dir, strerror(errno)); in create_oat_dir()
1860 snprintf(oat_instr_dir, PKG_PATH_MAX, "%s/%s", oat_dir, instruction_set); in create_oat_dir()
1929 int move_ab(const char* apk_path, const char* instruction_set, const char* oat_dir) { in move_ab() argument
1930 if (apk_path == nullptr || instruction_set == nullptr || oat_dir == nullptr) { in move_ab()
1938 if (validate_apk_path(oat_dir) != 0) { in move_ab()
1939 LOG(ERROR) << "invalid oat_dir " << oat_dir; in move_ab()
1944 if (!calculate_oat_file_path(a_path, oat_dir, apk_path, instruction_set)) { in move_ab()