Lines Matching defs:oat_dir
921 static bool IsOutputDalvikCache(const char* oat_dir) {
926 return oat_dir == nullptr || oat_dir[0] == '!';
930 const char* oat_dir, bool is_secondary_dex, /*out*/ char* out_oat_path) {
940 if (!IsOutputDalvikCache(oat_dir)) {
942 if (!is_secondary_dex && validate_apk_path(oat_dir)) {
943 ALOGE("cannot validate apk path with oat_dir '%s'\n", oat_dir);
946 if (!calculate_oat_file_path(out_oat_path, oat_dir, apk_path, instruction_set)) {
1248 Dex2oatFileWrapper open_oat_out_file(const char* apk_path, const char* oat_dir,
1251 if (!create_oat_out_path(apk_path, instruction_set, oat_dir, is_secondary_dex, out_oat_path)) {
1342 char oat_dir[PKG_PATH_MAX];
1343 snprintf(oat_dir, PKG_PATH_MAX, "%s/oat", dex_dir.c_str());
1344 oat_dir_out->assign(oat_dir);
1491 int dexopt_needed, const char* oat_dir, int dexopt_flags, const char* compiler_filter,
1512 oat_dir = oat_dir_str.c_str();
1536 Dex2oatFileWrapper out_oat_fd = open_oat_out_file(dex_path, oat_dir, is_public, uid,
1556 if (selinux_android_restorecon_pkgdir(oat_dir, se_info, uid,
1558 LOG(ERROR) << "Failed to restorecon " << oat_dir;
1711 char oat_dir[PKG_PATH_MAX];
1715 if (!create_secondary_dex_oat_layout(dex_path, isas[i], oat_dir, oat_isa_dir, oat_path)) {
1736 result = rmdir_if_empty(oat_dir) && result;
1800 bool move_ab(const char* apk_path, const char* instruction_set, const char* oat_dir) {
1821 if (validate_apk_path(oat_dir) != 0) {
1822 LOG(ERROR) << "Invalid oat_dir: " << oat_dir;
1827 if (!calculate_oat_file_path(a_path, oat_dir, apk_path, instruction_set)) {
1870 bool delete_odex(const char* apk_path, const char* instruction_set, const char* oat_dir) {
1873 if (!create_oat_out_path(apk_path, instruction_set, oat_dir,