Searched refs:old_file (Results 1 – 2 of 2) sorted by relevance
71 bool SafeReplaceFile(std::string_view old_file, std::string_view new_file) { in SafeReplaceFile() argument72 std::string to_be_deleted(old_file); in SafeReplaceFile()76 if (adb_rename(old_file.data(), to_be_deleted.c_str()) != 0) { in SafeReplaceFile()79 PLOG(INFO) << "Failed to rename " << old_file; in SafeReplaceFile()83 if (adb_rename(new_file.data(), old_file.data()) != 0) { in SafeReplaceFile()84 PLOG(ERROR) << "Unable to rename file (" << new_file << " => " << old_file << ")"; in SafeReplaceFile()87 adb_rename(to_be_deleted.c_str(), old_file.data()); in SafeReplaceFile()
259 const FilesystemInterface::File* old_file = &old_files_map.begin()->second; in GetOldFile() local264 old_file = &pair.second; in GetOldFile()267 LOG(INFO) << "Using " << old_file->name << " as source for " << new_file_name; in GetOldFile()268 return *old_file; in GetOldFile()350 FilesystemInterface::File old_file = in DeltaReadPartition() local353 FilterExtentRanges(old_file.extents, old_zero_blocks); in DeltaReadPartition()361 old_file.deflates, in DeltaReadPartition()