Home
last modified time | relevance | path

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

/system/core/libsparse/
Dappend2simg.cpp58 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/
Dfs_avb_test_util.cpp231 base::FilePath tmp_path = test_dir_.Append("info_output.txt"); in InfoImage() local
233 tmp_path.value().c_str()); in InfoImage()
235 EXPECT_TRUE(base::ReadFileToString(tmp_path, &info_data)); in InfoImage()
249 base::FilePath tmp_path = test_dir_.Append(file_name + "public_key.bin"); in ExtractPublicKeyAvb() local
253 key_path.value().c_str(), tmp_path.value().c_str()); in ExtractPublicKeyAvb()
254 return tmp_path; in ExtractPublicKeyAvb()
258 base::FilePath tmp_path = test_dir_.Append("public_key.bin"); in ExtractPublicKeyAvbBlob() local
262 key_path.value().c_str(), tmp_path.value().c_str()); in ExtractPublicKeyAvbBlob()
264 EXPECT_TRUE(base::ReadFileToString(tmp_path, &key_data)); in ExtractPublicKeyAvbBlob()
/system/core/fs_mgr/libsnapshot/
Dutility.cpp152 std::string tmp_path = path + ".tmp"; in WriteStringToFileAtomic() local
153 if (!android::base::WriteStringToFile(content, tmp_path)) { in WriteStringToFileAtomic()
156 if (rename(tmp_path.c_str(), path.c_str()) == -1) { in WriteStringToFileAtomic()
157 PLOG(ERROR) << "rename failed from " << tmp_path << " to " << path; in WriteStringToFileAtomic()
Dsnapshot_fuzz_utils.cpp303 if (!Mkdir(ret->tmp_path())) { in New()
312 std::string tmp_path() const { in tmp_path() function in android::snapshot::AutoMemBasedDir
323 PCHECK(RmdirRecursive(tmp_path())); in CheckSoftReset()
324 PCHECK(Mkdir(tmp_path())); in CheckSoftReset()
425 auto metadata_dir = fake_root_->tmp_path() + "/snapshot_metadata"; in CheckCreateSnapshotManager()
435 CheckCreateFakeImageManager(fake_root_->tmp_path() + "/images_manager_metadata", in CheckCreateSnapshotManager()
/system/vold/
DKeyUtil.h77 bool retrieveOrGenerateKey(const std::string& key_path, const std::string& tmp_path,
DKeyStorage.h60 bool storeKeyAtomically(const std::string& key_path, const std::string& tmp_path,
DKeyStorage.cpp524 bool storeKeyAtomically(const std::string& key_path, const std::string& tmp_path, in storeKeyAtomically() argument
530 if (pathExists(tmp_path)) { in storeKeyAtomically()
531 LOG(DEBUG) << "Already exists, destroying: " << tmp_path; in storeKeyAtomically()
532 destroyKey(tmp_path); // May be partially created so ignore errors in storeKeyAtomically()
534 if (!storeKey(tmp_path, auth, key)) return false; in storeKeyAtomically()
535 if (rename(tmp_path.c_str(), key_path.c_str()) != 0) { in storeKeyAtomically()
DKeyUtil.cpp393 bool retrieveOrGenerateKey(const std::string& key_path, const std::string& tmp_path, in retrieveOrGenerateKey() argument
406 if (!storeKeyAtomically(key_path, tmp_path, key_authentication, *key)) return false; in retrieveOrGenerateKey()
/system/extras/simpleperf/scripts/
Dutils.py386 tmp_path = os.path.join(binary_cache_path, dso_path_in_record_file[1:])
387 if is_elf_file(tmp_path):
388 return tmp_path