Home
last modified time | relevance | path

Searched refs:to_path (Results 1 – 5 of 5) sorted by relevance

/system/apex/apexd/
Dapexd_rollback_utils.h62 const std::string& to_path) { in ReplaceFiles() argument
66 fs::remove_all(to_path, error_code); in ReplaceFiles()
69 << to_path << " : " << error_code.message(); in ReplaceFiles()
74 fs::remove_all(to_path, error_code); in ReplaceFiles()
76 LOG(ERROR) << "Failed to clean up files at " << to_path << " : " in ReplaceFiles()
82 int rc = CopyDirectoryRecursive(from_path.c_str(), to_path.c_str()); in ReplaceFiles()
85 << "] to [" << to_path << "]"; in ReplaceFiles()
Dapexd_utils.h340 auto to_path = to / from_path.filename(); in MoveDir() local
341 fs::copy(from_path, to_path, fs::copy_options::recursive, ec); in MoveDir()
344 << to_path << " : " << ec.message(); in MoveDir()
Dapexd.cpp1720 auto to_path = in SnapshotDataDirectory() local
1723 return ReplaceFiles(from_path, to_path); in SnapshotDataDirectory()
1738 auto to_path = StringPrintf("%s/%s/%s", base_dir.c_str(), kApexDataSubDir, in RestoreDataDirectory() local
1740 Result<void> result = ReplaceFiles(from_path, to_path); in RestoreDataDirectory()
1744 result = RestoreconPath(to_path); in RestoreDataDirectory()
/system/extras/simpleperf/scripts/
Dannotate.py392 to_path = os.path.join(dest_dir, from_path[1:])
394 to_path = os.path.join(dest_dir, from_path.replace(':\\', os.sep))
396 to_path = os.path.join(dest_dir, from_path)
398 self._annotate_file(from_path, to_path, self.file_periods[key], is_java)
400 def _annotate_file(self, from_path, to_path, file_period, is_java): argument
430 dirname = os.path.dirname(to_path)
433 with open(to_path, 'w') as wf:
/system/extras/simpleperf/app_api/cpp/
Dsimpleperf.cpp358 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()