Home
last modified time | relevance | path

Searched refs:tmp_file (Results 1 – 7 of 7) sorted by relevance

/system/core/libziparchive/
Dzip_archive_test.cc379 TemporaryFile tmp_file; in TEST() local
380 ASSERT_NE(-1, tmp_file.fd); in TEST()
381 ASSERT_TRUE(android::base::WriteFully(tmp_file.fd, kEmptyEntriesZip, sizeof(kEmptyEntriesZip))); in TEST()
384 ASSERT_EQ(0, OpenArchiveFd(tmp_file.fd, "EmptyEntriesTest", &handle)); in TEST()
405 TemporaryFile tmp_file; in TEST() local
406 ASSERT_NE(-1, tmp_file.fd); in TEST()
407 ASSERT_TRUE(android::base::WriteFully(tmp_file.fd, reinterpret_cast<const uint8_t*>(kAbZip), in TEST()
410 ASSERT_EQ(0, OpenArchiveFd(tmp_file.fd, "EntryLargerThan32KTest", &handle)); in TEST()
449 TemporaryFile tmp_file; in TEST() local
450 ASSERT_NE(-1, tmp_file.fd); in TEST()
[all …]
/system/extras/simpleperf/
Dgtest_main.cpp49 TemporaryFile tmp_file; in ExtractTestDataFromElfSection() local
50 if (!android::base::WriteStringToFile(content, tmp_file.path)) { in ExtractTestDataFromElfSection()
51 PLOG(ERROR) << "failed to write file " << tmp_file.path; in ExtractTestDataFromElfSection()
54 ArchiveHelper ahelper(tmp_file.fd, tmp_file.path); in ExtractTestDataFromElfSection()
56 LOG(ERROR) << "failed to open archive " << tmp_file.path; in ExtractTestDataFromElfSection()
Dcmd_report_test.cpp48 "--symfs", GetTestDataDir(), "-o", tmp_file.path}; in ReportRaw()
51 ASSERT_TRUE(android::base::ReadFileToString(tmp_file.path, &content)); in ReportRaw()
65 TemporaryFile tmp_file; member in ReportCommandTest
272 TemporaryFile tmp_file; in TEST_F() local
273 ASSERT_TRUE(RecordCmd()->Run({"-g", "-o", tmp_file.path, "sleep", SLEEP_SEC})); in TEST_F()
274 ReportRaw(tmp_file.path, {"-g"}); in TEST_F()
/system/core/metricsd/uploader/
Dupload_service_test.cc263 std::string tmp_file = dir_.path().Append("tmpfile").value(); in TEST_F() local
265 std::string first_guid = SystemProfileCache::GetPersistentGUID(tmp_file); in TEST_F()
266 std::string second_guid = SystemProfileCache::GetPersistentGUID(tmp_file); in TEST_F()
271 base::DeleteFile(base::FilePath(tmp_file), false); in TEST_F()
273 first_guid = SystemProfileCache::GetPersistentGUID(tmp_file); in TEST_F()
274 base::DeleteFile(base::FilePath(tmp_file), false); in TEST_F()
275 second_guid = SystemProfileCache::GetPersistentGUID(tmp_file); in TEST_F()
/system/core/debuggerd/test/
Ddump_memory_test.cpp111 char tmp_file[256]; in SetUp() local
113 memcpy(tmp_file, data_template, sizeof(data_template)); in SetUp()
114 int tombstone_fd = mkstemp(tmp_file); in SetUp()
117 memcpy(tmp_file, tmp_template, sizeof(tmp_template)); in SetUp()
118 tombstone_fd = mkstemp(tmp_file); in SetUp()
123 if (unlink(tmp_file) == -1) { in SetUp()
Dtombstone_test.cpp54 char tmp_file[256]; in SetUp() local
56 memcpy(tmp_file, data_template, sizeof(data_template)); in SetUp()
57 int tombstone_fd = mkstemp(tmp_file); in SetUp()
60 memcpy(tmp_file, tmp_template, sizeof(tmp_template)); in SetUp()
61 tombstone_fd = mkstemp(tmp_file); in SetUp()
66 if (unlink(tmp_file) == -1) { in SetUp()
/system/core/adb/
Dtest_device.py775 with tempfile.NamedTemporaryFile() as tmp_file:
776 tmp_file.write('\0' * 1024 * 1024)
777 tmp_file.flush()
779 self.device.push(local=tmp_file.name, remote='/system/')