Home
last modified time | relevance | path

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

/aosp12/system/extras/simpleperf/scripts/
H A 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:
396 to_path = os.path.join(dest_dir, from_path)
397 is_java = from_path.endswith('.java')
400 def _annotate_file(self, from_path, to_path, file_period, is_java): argument
409 log_info('annotate file %s' % from_path)
[all …]
H A 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)
/aosp12/system/apex/apexd/
H A 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()
H A 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()
H A Dapexd.cpp1733 auto from_path = StringPrintf("%s/%s/%s", base_dir.c_str(), kApexDataSubDir, in SnapshotDataDirectory() local
1738 return ReplaceFiles(from_path, to_path); in SnapshotDataDirectory()
1750 auto from_path = StringPrintf( in RestoreDataDirectory() local
1755 Result<void> result = ReplaceFiles(from_path, to_path); in RestoreDataDirectory()
1763 result = DeleteDir(from_path); in RestoreDataDirectory()
/aosp12/frameworks/native/cmds/installd/
H A DInstalldNativeService.cpp2636 char from_path[PKG_PATH_MAX]; in linkFile() local
2638 snprintf(from_path, PKG_PATH_MAX, "%s/%s", from_base, relative_path); in linkFile()
2641 if (validate_apk_path_subdirs(from_path)) { in linkFile()
2642 return error(StringPrintf("Invalid from path %s", from_path)); in linkFile()
2649 if (link(from_path, to_path) < 0) { in linkFile()
2650 return error(StringPrintf("Failed to link from %s to %s", from_path, to_path)); in linkFile()