Home
last modified time | relevance | path

Searched refs:old_file (Results 1 – 2 of 2) sorted by relevance

/system/core/adb/client/
Dadb_wifi.cpp71 bool SafeReplaceFile(std::string_view old_file, std::string_view new_file) { in SafeReplaceFile() argument
72 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()
/system/update_engine/payload_generator/
Ddelta_diff_utils.cc259 const FilesystemInterface::File* old_file = &old_files_map.begin()->second; in GetOldFile() local
264 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() local
353 FilterExtentRanges(old_file.extents, old_zero_blocks); in DeltaReadPartition()
361 old_file.deflates, in DeltaReadPartition()