Searched refs:tmp_path (Results 1 – 11 of 11) sorted by relevance
/system/core/libsparse/ |
D | append2simg.cpp | 58 char* tmp_path; in main() local 70 ret = asprintf(&tmp_path, "%s.append2simg", output_path); in main() 111 tmp_fd = open(tmp_path, O_WRONLY | O_CREAT | O_BINARY, 0664); in main() 128 ret = rename(tmp_path, output_path); in main() 134 free(tmp_path); in main()
|
/system/core/fs_mgr/libfs_avb/tests/ |
D | fs_avb_test_util.cpp | 232 base::FilePath tmp_path = test_dir_.Append("info_output.txt"); in InfoImage() local 234 tmp_path.value().c_str()); in InfoImage() 236 EXPECT_TRUE(base::ReadFileToString(tmp_path, &info_data)); in InfoImage() 250 base::FilePath tmp_path = test_dir_.Append(file_name + "public_key.bin"); in ExtractPublicKeyAvb() local 254 key_path.value().c_str(), tmp_path.value().c_str()); in ExtractPublicKeyAvb() 255 return tmp_path; in ExtractPublicKeyAvb() 259 base::FilePath tmp_path = test_dir_.Append("public_key.bin"); in ExtractPublicKeyAvbBlob() local 263 key_path.value().c_str(), tmp_path.value().c_str()); in ExtractPublicKeyAvbBlob() 265 EXPECT_TRUE(base::ReadFileToString(tmp_path, &key_data)); in ExtractPublicKeyAvbBlob()
|
/system/core/fs_mgr/libsnapshot/ |
D | utility.cpp | 176 const std::string tmp_path = path + ".tmp"; in WriteStringToFileAtomic() local 179 android::base::unique_fd fd(TEMP_FAILURE_RETRY(open(tmp_path.c_str(), flags, 0666))); in WriteStringToFileAtomic() 191 PLOG(ERROR) << "Failed to fsync " << tmp_path; in WriteStringToFileAtomic() 194 if (rename(tmp_path.c_str(), path.c_str()) == -1) { in WriteStringToFileAtomic() 195 PLOG(ERROR) << "rename failed from " << tmp_path << " to " << path; in WriteStringToFileAtomic()
|
D | snapshot.cpp | 782 const std::string tmp_path = file_path + ".tmp"; in DeleteSnapshot() local 783 if (!android::base::RemoveFileIfExists(tmp_path, &error)) { in DeleteSnapshot() 784 LOG(ERROR) << "Failed to remove stale snapshot file " << tmp_path; in DeleteSnapshot()
|
D | snapshot_test.cpp | 682 auto tmp_path = test_device->GetMetadataDir() + "/snapshots/test_partition_b.tmp"; in TEST_F() local 685 unique_fd fd(open(tmp_path.c_str(), O_RDWR | O_CLOEXEC | O_CREAT, 0644)); in TEST_F()
|
/system/vold/ |
D | KeyUtil.h | 59 bool retrieveOrGenerateKey(const std::string& key_path, const std::string& tmp_path,
|
D | KeyStorage.cpp | 578 bool storeKeyAtomically(const std::string& key_path, const std::string& tmp_path, in storeKeyAtomically() argument 584 if (pathExists(tmp_path)) { in storeKeyAtomically() 585 LOG(DEBUG) << "Already exists, destroying: " << tmp_path; in storeKeyAtomically() 586 destroyKey(tmp_path); // May be partially created so ignore errors in storeKeyAtomically() 588 if (!storeKey(tmp_path, auth, key)) return false; in storeKeyAtomically() 590 if (!RenameKeyDir(tmp_path, key_path)) return false; in storeKeyAtomically()
|
D | KeyStorage.h | 55 bool storeKeyAtomically(const std::string& key_path, const std::string& tmp_path,
|
D | KeyUtil.cpp | 288 bool retrieveOrGenerateKey(const std::string& key_path, const std::string& tmp_path, in retrieveOrGenerateKey() argument 301 if (!storeKeyAtomically(key_path, tmp_path, key_authentication, *key)) return false; in retrieveOrGenerateKey()
|
/system/unwinding/libunwindstack/utils/ |
D | OfflineUnwindUtils.cpp | 71 fs::path tmp_path = fs::path(src_path).replace_extension("." + std::to_string(getpid())); in DecompressFiles() local 72 std::ofstream tmp(tmp_path); // Temporary file to avoid races between unit tests. in DecompressFiles() 80 fs::rename(tmp_path, dst_path); in DecompressFiles()
|
/system/update_engine/common/ |
D | utils.cc | 483 const std::string tmp_path = path + ".tmp"; in WriteStringToFileAtomic() local 487 TEMP_FAILURE_RETRY(open(tmp_path.c_str(), flags, 0644))); in WriteStringToFileAtomic() 499 PLOG(ERROR) << "Failed to fsync " << tmp_path; in WriteStringToFileAtomic() 502 if (rename(tmp_path.c_str(), path.c_str()) == -1) { in WriteStringToFileAtomic() 503 PLOG(ERROR) << "rename failed from " << tmp_path << " to " << path; in WriteStringToFileAtomic()
|