Home
last modified time | relevance | path

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

/system/apex/apexd/
Dapexd_rollback_utils.h61 inline android::base::Result<void> ReplaceFiles(const std::string& from_path, in ReplaceFiles() argument
82 int rc = CopyDirectoryRecursive(from_path.c_str(), to_path.c_str()); in ReplaceFiles()
84 return android::base::Error() << "Failed to copy from [" << from_path in ReplaceFiles()
Dapexd_utils.h334 auto from_path = it->path(); in MoveDir() local
340 auto to_path = to / from_path.filename(); in MoveDir()
341 fs::copy(from_path, to_path, fs::copy_options::recursive, ec); in MoveDir()
343 return android::base::Error() << "Failed to copy " << from_path << " to " in MoveDir()
346 fs::remove_all(from_path, ec); in MoveDir()
349 << "Failed to delete " << from_path << " : " << ec.message(); in MoveDir()
Dapexd.cpp1718 auto from_path = StringPrintf("%s/%s/%s", base_dir.c_str(), kApexDataSubDir, in SnapshotDataDirectory() local
1723 return ReplaceFiles(from_path, to_path); in SnapshotDataDirectory()
1735 auto from_path = StringPrintf( in RestoreDataDirectory() local
1740 Result<void> result = ReplaceFiles(from_path, to_path); in RestoreDataDirectory()
1748 result = DeleteDir(from_path); in RestoreDataDirectory()
/system/extras/simpleperf/scripts/
Dannotate.py387 from_path = key
388 if not os.path.isfile(from_path):
389 log_warning("can't find source file for path %s" % from_path)
391 if from_path.startswith('/'):
392 to_path = os.path.join(dest_dir, from_path[1:])
393 elif is_windows() and ':\\' in from_path:
394 to_path = os.path.join(dest_dir, from_path.replace(':\\', os.sep))
396 to_path = os.path.join(dest_dir, from_path)
397 is_java = from_path.endswith('.java')
398 self._annotate_file(from_path, to_path, self.file_periods[key], is_java)
[all …]
Dbinary_cache_builder.py122 def _copy_to_binary_cache(self, from_path, expected_build_id, target_file): argument
127 if not self._need_to_copy(from_path, target_file, expected_build_id):
133 log_info('copy to binary_cache: %s to %s' % (from_path, target_file))
134 shutil.copy(from_path, target_file)