Home
last modified time | relevance | path

Searched refs:dest_path (Results 1 – 5 of 5) 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.cpp396 Result<void> ApexFile::Decompress(const std::string& dest_path) const { in Decompress()
399 LOG(INFO) << "Decompressing" << src_path << " to " << dest_path; in Decompress()
433 open(dest_path.c_str(), O_WRONLY | O_CLOEXEC | O_CREAT | O_EXCL, 0644)); in Decompress()
436 << dest_path.c_str(); in Decompress()
441 [&dest_path] { RemoveFileIfExists(dest_path); }); in Decompress()
446 return Error() << "Could not decompress to file " << dest_path << " " in Decompress()
452 LOG(VERBOSE) << "Decompressed " << src_path << " to " << dest_path; in Decompress()
Dapexd.cpp1043 const auto& dest_path = backup_path_fn(*apex_file); in BackupActivePackages() local
1044 if (link(apex_file->GetPath().c_str(), dest_path.c_str()) != 0) { in BackupActivePackages()
2339 std::string dest_path = StageDestPath(apex_file); in StagePackages() local
2340 if (access(dest_path.c_str(), F_OK) == 0) { in StagePackages()
2341 LOG(DEBUG) << dest_path << " already exists. Deleting"; in StagePackages()
2342 if (TEMP_FAILURE_RETRY(unlink(dest_path.c_str())) != 0) { in StagePackages()
2343 return ErrnoError() << "Failed to unlink " << dest_path; in StagePackages()
2347 if (link(apex_file.GetPath().c_str(), dest_path.c_str()) != 0) { in StagePackages()
2349 << dest_path; in StagePackages()
2351 staged_files.insert(dest_path); in StagePackages()
[all …]
/system/extras/simpleperf/scripts/test/
Ddo_test.py171 dest_path = testdata_dir / src_path.name
172 if dest_path.exists():
175 shutil.copyfile(src_path, dest_path)
177 shutil.copytree(src_path, dest_path)
/system/security/keystore2/src/
Dlegacy_blob.rs1162 let dest_path = make_filename(dest_uid, dest_alias, prefix); in move_keystore_file_if_exists() localVariable
1163 match Self::with_retry_interrupted(|| fs::rename(&src_path, &dest_path)) { in move_keystore_file_if_exists()