Home
last modified time | relevance | path

Searched refs:temp_file (Results 1 – 5 of 5) sorted by relevance

/packages/modules/Bluetooth/system/gd/os/linux_generic/
Dfiles_test.cc33 auto temp_file = temp_dir / "file_1.txt"; in TEST() local
35 ASSERT_TRUE(WriteToFile(temp_file.string(), text)); in TEST()
36 EXPECT_TRUE(FileExists(temp_file.string())); in TEST()
43 auto temp_file = temp_dir / "file_1.txt"; in TEST() local
45 ASSERT_TRUE(WriteToFile(temp_file.string(), text)); in TEST()
46 EXPECT_THAT(ReadSmallFile(temp_file.string()), Optional(StrEq(text))); in TEST()
48 ASSERT_TRUE(RenameFile(temp_file.string(), to_file.string())); in TEST()
49 EXPECT_FALSE(std::filesystem::exists(temp_file)); in TEST()
52 ASSERT_FALSE(RenameFile(temp_file.string(), to_file.string())); in TEST()
57 auto temp_file = temp_dir / "file_1.txt"; in TEST() local
[all …]
/packages/modules/adb/client/
Dadb_wifi.cpp136 std::unique_ptr<TemporaryFile> temp_file(new TemporaryFile(adb_get_android_dir_path())); in write_known_host_to_file() local
137 if (temp_file->fd == -1) { in write_known_host_to_file()
138 PLOG(ERROR) << "Failed to open [" << temp_file->path << "] for writing"; in write_known_host_to_file()
142 if (!known_hosts.SerializeToFileDescriptor(temp_file->fd)) { in write_known_host_to_file()
146 temp_file->DoNotRemove(); in write_known_host_to_file()
147 std::string temp_file_name(temp_file->path); in write_known_host_to_file()
148 temp_file.reset(); in write_known_host_to_file()
/packages/modules/adb/
Dtest_device.py794 for temp_file in temp_files:
797 temp_file.base_name)
798 self._verify_remote(temp_file.checksum, remote_path)
885 for temp_file in temp_files:
887 temp_file.base_name)
888 self._verify_remote(temp_file.checksum, remote_path)
894 temp_file.base_name)
895 self._verify_remote(temp_file.checksum, remote_path)
1000 for temp_file in temp_files:
1003 temp_file.base_name)
[all …]
Dsysdeps_win32_test.cpp94 TemporaryFile temp_file; in TEST() local
95 EXPECT_TRUE(temp_file.fd >= 0); in TEST()
96 EXPECT_EQ(0, unix_isatty(temp_file.fd)); in TEST()
98 int temp_file_ro_fd = unix_open(temp_file.path, O_RDONLY); in TEST()
/packages/modules/Virtualization/microdroid_manager/src/
Dioutil.rs78 let temp_file = test_dir.path().join("test.txt~"); in test_wait_for_file() localVariable
84 File::create(&temp_file)?.write_all(b"test")?; in test_wait_for_file()
85 rename(temp_file, test_file) in test_wait_for_file()