Searched refs:from_path (Results 1 – 4 of 4) sorted by relevance
/system/apex/apexd/ |
D | apexd_rollback_utils.h | 65 inline Result<void> ReplaceFiles(const std::string& from_path, in ReplaceFiles() argument 86 int rc = copy_directory_recursive(from_path.c_str(), to_path.c_str()); in ReplaceFiles() 88 return Error() << "Failed to copy from [" << from_path << "] to [" in ReplaceFiles()
|
D | apexd.cpp | 1291 auto from_path = StringPrintf("%s/%s/%s", base_dir.c_str(), kApexDataSubDir, in snapshotDataDirectory() local 1296 return ReplaceFiles(from_path, to_path); in snapshotDataDirectory() 1308 auto from_path = StringPrintf( in restoreDataDirectory() local 1313 Result<void> result = ReplaceFiles(from_path, to_path); in restoreDataDirectory() 1321 result = DeleteDir(from_path); in restoreDataDirectory() 1406 auto from_path = std::string(kApexDataDir) + "/sessions"; in migrateSessionsDirIfNeeded() local 1407 auto exists = PathExists(from_path); in migrateSessionsDirIfNeeded() 1409 return Error() << "Failed to access " << from_path << ": " in migrateSessionsDirIfNeeded() 1413 LOG(DEBUG) << from_path << " does not exist. Nothing to migrate."; in migrateSessionsDirIfNeeded() 1418 fs::copy(from_path, to_path, fs::copy_options::recursive, error_code); in migrateSessionsDirIfNeeded() [all …]
|
/system/extras/simpleperf/scripts/ |
D | annotate.py | 399 from_path = key 400 if not os.path.isfile(from_path): 401 log_warning("can't find source file for path %s" % from_path) 403 if from_path.startswith('/'): 404 to_path = os.path.join(dest_dir, from_path[1:]) 405 elif is_windows() and ':\\' in from_path: 406 to_path = os.path.join(dest_dir, from_path.replace(':\\', os.sep)) 408 to_path = os.path.join(dest_dir, from_path) 409 is_java = from_path.endswith('.java') 410 self._annotate_file(from_path, to_path, self.file_periods[key], is_java) [all …]
|
D | binary_cache_builder.py | 117 def _copy_to_binary_cache(self, from_path, expected_build_id, target_file): argument 122 if not self._need_to_copy(from_path, target_file, expected_build_id): 128 log_info('copy to binary_cache: %s to %s' % (from_path, target_file)) 129 shutil.copy(from_path, target_file)
|