Searched refs:to_path (Results 1 – 6 of 6) sorted by relevance
/system/apex/apexd/ |
D | apexd_rollback_utils.h | 62 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()
|
D | apexd_utils.h | 282 auto to_path = to / from_path.filename(); in MoveDir() local 283 fs::copy(from_path, to_path, fs::copy_options::recursive, ec); in MoveDir() 286 << to_path << " : " << ec.message(); in MoveDir()
|
D | apexd.cpp | 1913 auto to_path = in SnapshotDataDirectory() local 1916 return ReplaceFiles(from_path, to_path); in SnapshotDataDirectory() 1931 auto to_path = StringPrintf("%s/%s/%s", base_dir.c_str(), kApexDataSubDir, in RestoreDataDirectory() local 1933 Result<void> result = ReplaceFiles(from_path, to_path); in RestoreDataDirectory() 1937 result = RestoreconPath(to_path); in RestoreDataDirectory()
|
/system/extras/simpleperf/scripts/ |
D | binary_cache_builder.py | 225 to_path = self.binary_cache.get_path_in_cache(device_path, expected_build_id) 226 if not self.need_to_copy(from_path, to_path, expected_build_id): 229 to_dir = to_path.parent 232 logging.info('copy to binary_cache: %s to %s', from_path, to_path) 233 shutil.copy(from_path, to_path) 235 def need_to_copy(self, from_path: Path, to_path: Path, expected_build_id: str): 236 if not to_path.is_file() or self.read_build_id(to_path) != expected_build_id: 238 return self.get_file_stripped_level(from_path) < self.get_file_stripped_level(to_path)
|
D | annotate.py | 394 to_path = os.path.join(dest_dir, from_path[1:]) 396 to_path = os.path.join(dest_dir, from_path.replace(':\\', os.sep)) 398 to_path = os.path.join(dest_dir, from_path) 400 self._annotate_file(from_path, to_path, self.file_periods[key], is_java) 402 def _annotate_file(self, from_path, to_path, file_period, is_java): argument 432 dirname = os.path.dirname(to_path) 435 with open(to_path, 'w') as wf:
|
/system/extras/simpleperf/app_api/cpp/ |
D | simpleperf.cpp | 359 const std::string to_path = app_data_dir_ + "/simpleperf"; in FindSimpleperfInTempDir() local 360 if (!RunCmd({"/system/bin/cp", path.c_str(), to_path.c_str()}, nullptr)) { in FindSimpleperfInTempDir() 367 if (!RunCmd({to_path.c_str(), "list", "sw"}, &s)) { in FindSimpleperfInTempDir() 373 return to_path; in FindSimpleperfInTempDir()
|