Home
last modified time | relevance | path

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

/aosp12/frameworks/layoutlib/rename_font/
H A Dbuild_font_single.py76 dest_path = argv[-1]
81 convert_font(input_path, dest_path)
83 shutil.copy(input_path, dest_path)
86 def convert_font(input_path, dest_path): argument
90 ttx_path = dest_path[:-1] + 'x'
103 ttx_args = ['-q', '-o', dest_path, ttx_path]
108 shutil.copy(input_path, dest_path)
114 shutil.copy(input_path, dest_path)
/aosp12/system/core/sdcard/
H A 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()
/aosp12/system/apex/apexd/
H A 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()
H A Dapexd.cpp978 const auto& dest_path = backup_path_fn(*apex_file); in BackupActivePackages() local
979 if (link(apex_file->GetPath().c_str(), dest_path.c_str()) != 0) { in BackupActivePackages()
2199 std::string dest_path = StageDestPath(apex_file); in StagePackages() local
2200 if (access(dest_path.c_str(), F_OK) == 0) { in StagePackages()
2201 LOG(DEBUG) << dest_path << " already exists. Deleting"; in StagePackages()
2202 if (TEMP_FAILURE_RETRY(unlink(dest_path.c_str())) != 0) { in StagePackages()
2203 return ErrnoError() << "Failed to unlink " << dest_path; in StagePackages()
2207 if (link(apex_file.GetPath().c_str(), dest_path.c_str()) != 0) { in StagePackages()
2209 << dest_path; in StagePackages()
2211 staged_files.insert(dest_path); in StagePackages()
[all …]
/aosp12/bootable/recovery/updater/
H A Dinstall.cpp116 std::string dest_path = args[1]; in PackageExtractFileFn() local
127 if (std::string block_device_name = state->updater->FindBlockDeviceName(dest_path); in PackageExtractFileFn()
129 dest_path = block_device_name; in PackageExtractFileFn()
133 open(dest_path.c_str(), O_WRONLY | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR))); in PackageExtractFileFn()
135 PLOG(ERROR) << name << ": can't open " << dest_path << " for write"; in PackageExtractFileFn()
143 << entry.uncompressed_length << " bytes) to \"" << dest_path in PackageExtractFileFn()
148 PLOG(ERROR) << "fsync of \"" << dest_path << "\" failed"; in PackageExtractFileFn()
153 PLOG(ERROR) << "close of \"" << dest_path << "\" failed"; in PackageExtractFileFn()
/aosp12/frameworks/base/services/incremental/
H A DMetadata.proto8 string dest_path = 3;
H A DIncrementalService.cpp1523 if (permanentBindPoints.back().second.dest_path().empty() || in adoptMountedInstances()
1530 << permanentBindPoints.back().second.dest_path() << "'"; in adoptMountedInstances()
1572 return bind.second == bindRecord.dest_path() && in adoptMountedInstances()
1716 if (bindPoints.back().second.dest_path().empty() || in mountExistingImage()
/aosp12/system/extras/simpleperf/scripts/test/
H A 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)
/aosp12/frameworks/base/media/jni/
H A Dandroid_mtp_MtpDevice.cpp710 android_mtp_MtpDevice_import_file(JNIEnv *env, jobject thiz, jint object_id, jstring dest_path) in android_mtp_MtpDevice_import_file() argument
714 const char *destPathStr = env->GetStringUTFChars(dest_path, NULL); in android_mtp_MtpDevice_import_file()
720 env->ReleaseStringUTFChars(dest_path, destPathStr); in android_mtp_MtpDevice_import_file()