Home
last modified time | relevance | path

Searched refs:dest_path (Results 1 – 4 of 4) sorted by relevance

/system/core/sdcard/
Dsdcard.cpp101 static bool sdcardfs_setup(const std::string& source_path, const std::string& dest_path, in sdcardfs_setup() argument
121 if (mount(source_path.c_str(), dest_path.c_str(), use_esdfs ? "esdfs" : "sdcardfs", in sdcardfs_setup()
132 …atic bool sdcardfs_setup_bind_remount(const std::string& source_path, const std::string& dest_path, in sdcardfs_setup_bind_remount() argument
136 if (mount(source_path.c_str(), dest_path.c_str(), nullptr, in sdcardfs_setup_bind_remount()
142 if (mount(source_path.c_str(), dest_path.c_str(), "none", in sdcardfs_setup_bind_remount()
145 if (umount2(dest_path.c_str(), MNT_DETACH)) in sdcardfs_setup_bind_remount()
154 const std::string& source_path, const std::string& dest_path, in sdcardfs_setup_secondary() argument
159 return sdcardfs_setup(source_path, dest_path, fsuid, fsgid, multi_user, userid, gid, mask, in sdcardfs_setup_secondary()
162 return sdcardfs_setup_bind_remount(default_path, dest_path, gid, mask); in sdcardfs_setup_secondary()
/system/apex/apexd/
Dapex_file.cpp404 Result<void> ApexFile::Decompress(const std::string& dest_path) const { in Decompress()
407 LOG(INFO) << "Decompressing" << src_path << " to " << dest_path; in Decompress()
441 open(dest_path.c_str(), O_WRONLY | O_CLOEXEC | O_CREAT | O_EXCL, 0644)); in Decompress()
444 << dest_path.c_str(); in Decompress()
449 [&dest_path] { RemoveFileIfExists(dest_path); }); in Decompress()
454 return Error() << "Could not decompress to file " << dest_path << " " in Decompress()
460 LOG(VERBOSE) << "Decompressed " << src_path << " to " << dest_path; in Decompress()
Dapexd.cpp944 const auto& dest_path = backup_path_fn(*apex_file); in BackupActivePackages() local
945 if (link(apex_file->GetPath().c_str(), dest_path.c_str()) != 0) { in BackupActivePackages()
2185 std::string dest_path = StageDestPath(apex_file); in StagePackages() local
2186 if (access(dest_path.c_str(), F_OK) == 0) { in StagePackages()
2187 LOG(DEBUG) << dest_path << " already exists. Deleting"; in StagePackages()
2188 if (TEMP_FAILURE_RETRY(unlink(dest_path.c_str())) != 0) { in StagePackages()
2189 return ErrnoError() << "Failed to unlink " << dest_path; in StagePackages()
2193 if (link(apex_file.GetPath().c_str(), dest_path.c_str()) != 0) { in StagePackages()
2195 << dest_path; in StagePackages()
2197 staged_files.insert(dest_path); in StagePackages()
[all …]
/system/extras/simpleperf/scripts/test/
Ddo_test.py154 dest_path = testdata_dir / src_path.name
155 if dest_path.exists():
158 shutil.copyfile(src_path, dest_path)
160 shutil.copytree(src_path, dest_path)