Lines Matching refs:out_path
897 char out_path[PKG_PATH_MAX];
926 strcpy(out_path, apk_path);
927 end = strrchr(out_path, '.');
930 if (stat(out_path, &dex_stat) == 0) {
935 if (create_cache_path(out_path, apk_path, instruction_set)) {
969 unlink(out_path);
970 out_fd = open(out_path, O_RDWR | O_CREAT | O_EXCL, 0644);
972 ALOGE("installd cannot open '%s' for output during dexopt\n", out_path);
978 ALOGE("installd cannot chmod '%s' during dexopt\n", out_path);
982 ALOGE("installd cannot chown '%s' during dexopt\n", out_path);
994 size_t out_len = strlen(out_path);
996 strcpy(swap_file_name, out_path);
997 strcpy(swap_file_name + strlen(out_path), ".swap");
1010 ALOGE("installd could not create swap file for path %s during dexopt\n", out_path);
1047 ALOGE("flock(%s) failed: %s\n", out_path, strerror(errno));
1052 run_dexopt(input_fd, out_fd, input_file, out_path);
1055 run_patchoat(input_fd, out_fd, input_file, out_path, pkgname, instruction_set);
1057 run_dex2oat(input_fd, out_fd, input_file, out_path, swap_fd, pkgname,
1076 utime(out_path, &ut);
1088 unlink(out_path);