Searched refs:temp_file (Results 1 – 7 of 7) sorted by relevance
/system/core/libziparchive/ |
D | zip_archive_benchmark.cpp | 52 std::unique_ptr<TemporaryFile> temp_file(CreateZip()); in FindEntry_no_match() local 62 OpenArchive(temp_file->path, &handle); in FindEntry_no_match() 70 std::unique_ptr<TemporaryFile> temp_file(CreateZip()); in Iterate_all_files() local 77 OpenArchive(temp_file->path, &handle); in Iterate_all_files()
|
/system/tools/sysprop/tests/ |
D | JavaGenTest.cpp | 364 TemporaryFile temp_file; in TEST() local 367 ASSERT_EQ(write(temp_file.fd, kTestSyspropFile, strlen(kTestSyspropFile)), in TEST() 369 close(temp_file.fd); in TEST() 370 temp_file.fd = -1; in TEST() 375 ASSERT_TRUE(GenerateJavaLibrary(temp_file.path, temp_dir.path, &err)); in TEST()
|
/system/core/libunwindstack/tests/ |
D | MemoryOfflineTest.cpp | 33 ASSERT_TRUE(android::base::WriteFully(temp_file.fd, &offset, sizeof(offset))); in SetUp() 34 ASSERT_TRUE(android::base::WriteFully(temp_file.fd, data.data(), data.size())); in SetUp() 39 ASSERT_TRUE(memory->Init(temp_file.path, 0)); in SetUp() 42 TemporaryFile temp_file; member in unwindstack::MemoryOfflineTest
|
/system/core/adb/ |
D | sysdeps_win32_test.cpp | 94 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()
|
D | test_device.py | 745 for temp_file in temp_files: 748 temp_file.base_name) 749 self._verify_remote(temp_file.checksum, remote_path) 832 paths = map(lambda temp_file: temp_file.full_path, temp_files) 836 for temp_file in temp_files: 838 temp_file.base_name) 839 self._verify_remote(temp_file.checksum, remote_path) 845 temp_file.base_name) 846 self._verify_remote(temp_file.checksum, remote_path) 938 for temp_file in temp_files: [all …]
|
/system/update_engine/common/ |
D | utils_unittest.cc | 100 string temp_file = temp_dir.GetPath().Append("temp-file").value(); in TEST() local 101 EXPECT_TRUE(utils::WriteFile(temp_file.c_str(), "", 0)); in TEST() 103 EXPECT_EQ(0, symlink(temp_file.c_str(), temp_symlink.c_str())); in TEST() 105 EXPECT_FALSE(utils::IsSymlink(temp_file.c_str())); in TEST()
|
/system/update_engine/payload_consumer/ |
D | download_action_unittest.cc | 357 ScopedTempFile temp_file; in TestTerminateEarly() local 360 EXPECT_EQ(0, writer.Open(temp_file.path().c_str(), O_WRONLY | O_CREAT, 0)); in TestTerminateEarly() 396 const off_t resulting_file_size(utils::FileSize(temp_file.path())); in TestTerminateEarly()
|