Searched refs:to_path (Results 1 – 4 of 4) sorted by relevance
/system/apex/apexd/ |
D | apexd_rollback_utils.h | 66 const std::string& to_path) { in ReplaceFiles() argument 70 fs::remove_all(to_path, error_code); in ReplaceFiles() 72 return Error() << "Failed to delete existing files at " << to_path << " : " in ReplaceFiles() 78 fs::remove_all(to_path, error_code); in ReplaceFiles() 80 LOG(ERROR) << "Failed to clean up files at " << to_path << " : " in ReplaceFiles() 86 int rc = copy_directory_recursive(from_path.c_str(), to_path.c_str()); in ReplaceFiles() 89 << to_path << "]"; in ReplaceFiles()
|
D | apexd.cpp | 1293 auto to_path = in snapshotDataDirectory() local 1296 return ReplaceFiles(from_path, to_path); in snapshotDataDirectory() 1311 auto to_path = StringPrintf("%s/%s/%s", base_dir.c_str(), kApexDataSubDir, in restoreDataDirectory() local 1313 Result<void> result = ReplaceFiles(from_path, to_path); in restoreDataDirectory() 1317 result = RestoreconPath(to_path); in restoreDataDirectory() 1416 auto to_path = kApexSessionsDir; in migrateSessionsDirIfNeeded() local 1418 fs::copy(from_path, to_path, fs::copy_options::recursive, error_code); in migrateSessionsDirIfNeeded()
|
/system/extras/simpleperf/scripts/ |
D | annotate.py | 404 to_path = os.path.join(dest_dir, from_path[1:]) 406 to_path = os.path.join(dest_dir, from_path.replace(':\\', os.sep)) 408 to_path = os.path.join(dest_dir, from_path) 410 self._annotate_file(from_path, to_path, self.file_periods[key], is_java) 413 def _annotate_file(self, from_path, to_path, file_period, is_java): argument 443 dirname = os.path.dirname(to_path) 446 with open(to_path, 'w') as wf:
|
/system/extras/simpleperf/app_api/cpp/ |
D | simpleperf.cpp | 358 const std::string to_path = app_data_dir_ + "/simpleperf"; in FindSimpleperfInTempDir() local 359 if (!RunCmd({"/system/bin/cp", path.c_str(), to_path.c_str()}, nullptr)) { in FindSimpleperfInTempDir() 366 if (!RunCmd({to_path.c_str(), "list", "sw"}, &s)) { in FindSimpleperfInTempDir() 372 return to_path; in FindSimpleperfInTempDir()
|