Searched refs:tmp_path (Results 1 – 4 of 4) sorted by relevance
/aosp14/frameworks/base/cmds/idmap2/tests/ |
H A D | FileUtilsTests.cpp | 29 constexpr const char* tmp_path = "/data/local/tmp/test@idmap"; in TEST() local 33 ASSERT_TRUE(UidHasWriteAccessToPath(AID_ROOT, tmp_path)); in TEST() 37 ASSERT_TRUE(UidHasWriteAccessToPath(AID_SYSTEM, tmp_path)); in TEST() 42 ASSERT_TRUE(UidHasWriteAccessToPath(AID_SOME_APP, tmp_path)); in TEST()
|
/aosp14/system/core/libsparse/ |
H A 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()
|
/aosp14/system/core/fs_mgr/libfs_avb/tests/ |
H A 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()
|
/aosp14/system/core/fs_mgr/libsnapshot/ |
H A 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()
|