Lines Matching refs:path_
2269 ds.path_ = ds.GetPath(ds.CalledByApi() ? "-zip.tmp" : ".zip"); in PrepareToWriteToFile()
2270 MYLOGD("Creating initial .zip file (%s)\n", ds.path_.c_str()); in PrepareToWriteToFile()
2271 create_parent_dirs(ds.path_.c_str()); in PrepareToWriteToFile()
2272 ds.zip_file.reset(fopen(ds.path_.c_str(), "wb")); in PrepareToWriteToFile()
2274 MYLOGE("fopen(%s, 'wb'): %s\n", ds.path_.c_str(), strerror(errno)); in PrepareToWriteToFile()
2297 std::string final_path = ds.path_; in FinalizeFile()
2300 android::os::CopyFileToFile(ds.path_, final_path); in FinalizeFile()
2653 dprintf(control_socket_fd_, "BEGIN:%s\n", path_.c_str()); in RunInternal()
2670 if (chown(path_.c_str(), AID_SHELL, AID_SHELL)) { in RunInternal()
2671 MYLOGE("Unable to change ownership of zip file %s: %s\n", path_.c_str(), in RunInternal()
2871 android::os::UnlinkAndLogOnError(path_); in CleanupTmpFiles()
2910 bool copy_succeeded = android::os::CopyFileToFd(path_, options_->bugreport_fd.get()); in CopyBugreportIfUserConsented()
2912 android::os::UnlinkAndLogOnError(path_); in CopyBugreportIfUserConsented()
3029 path_(path) { in Progress()
3030 if (!path_.empty()) { in Progress()
3036 MYLOGD("Loading stats from %s\n", path_.c_str()); in Load()
3038 if (!android::base::ReadFileToString(path_, &content)) { in Load()
3039 MYLOGI("Could not read stats from %s; using max of %d\n", path_.c_str(), max_); in Load()
3043 MYLOGE("No stats (empty file) on %s; using max of %d\n", path_.c_str(), max_); in Load()
3049 MYLOGE("Invalid stats on file %s: not enough lines (%d). Using max of %d\n", path_.c_str(), in Load()
3058 MYLOGE("Invalid stats line on file %s: %s\n", path_.c_str(), lines[0].c_str()); in Load()
3073 path_.c_str()); in Save()
3074 if (path_.empty()) { in Save()
3079 if (!android::base::WriteStringToFile(content, path_)) { in Save()
3080 MYLOGE("Could not save stats on %s\n", path_.c_str()); in Save()
3116 dprintf(fd, "%spath: %s\n", pr, path_.c_str()); in Dump()