Home
last modified time | relevance | path

Searched refs:tmpfile (Results 1 – 11 of 11) sorted by relevance

/system/extras/simpleperf/
Dcmd_record_test.cpp49 std::unique_ptr<TemporaryFile> tmpfile; in RunRecordCmd() local
54 tmpfile.reset(new TemporaryFile); in RunRecordCmd()
55 out_file = tmpfile->path; in RunRecordCmd()
95 TemporaryFile tmpfile; in TEST() local
96 ASSERT_TRUE(RunRecordCmd({"-c", "100000"}, tmpfile.path)); in TEST()
97 CheckEventType(tmpfile.path, "cpu-cycles", 100000u, 0); in TEST()
106 TemporaryFile tmpfile; in TEST() local
107 ASSERT_TRUE(RunRecordCmd({"-f", "99"}, tmpfile.path)); in TEST()
108 CheckEventType(tmpfile.path, "cpu-cycles", 0, 99u); in TEST()
109 ASSERT_TRUE(RunRecordCmd({"-e", "cpu-clock", "-f", "99"}, tmpfile.path)); in TEST()
[all …]
Dcmd_report_sample_test.cpp34 TemporaryFile tmpfile; in TEST() local
36 {"-i", GetTestData(PERF_DATA_WITH_SYMBOLS), "-o", tmpfile.path})); in TEST()
40 TemporaryFile tmpfile; in TEST() local
42 "-o", tmpfile.path, "--show-callchain"})); in TEST()
47 TemporaryFile tmpfile; local
49 std::vector<std::string> args = {"-i", GetTestData(test_data_file), "-o", tmpfile.path,
53 ASSERT_TRUE(ReportSampleCmd()->Run({"--dump-protobuf-report", tmpfile.path,
Ddso_test.cpp33 TemporaryFile tmpfile(tmpdir.path); in TEST() local
36 ASSERT_TRUE(android::base::WriteStringToFile(data, tmpfile.path)); in TEST()
39 "%s=%s\n", build_id.ToString().c_str(), android::base::Basename(tmpfile.path).c_str()); in TEST()
45 ASSERT_EQ(finder.FindDebugFile("elf", false, build_id), std::string(tmpfile.path)); in TEST()
Dcmd_kmem_test.cpp75 std::unique_ptr<TemporaryFile> tmpfile; in RunKmemRecordCmd() local
80 tmpfile.reset(new TemporaryFile); in RunKmemRecordCmd()
81 out_file = tmpfile->path; in RunKmemRecordCmd()
Dcmd_list.cpp53 TemporaryFile tmpfile; in IsEventTypeSupported() local
54 FILE* fp = fopen(tmpfile.path, "w"); in IsEventTypeSupported()
Dcmd_report_test.cpp354 TemporaryFile tmpfile; in TEST_F() local
355 ASSERT_TRUE(ReportCmd()->Run({"-i", GetTestData(PERF_DATA), "-o", tmpfile.path})); in TEST_F()
535 TemporaryFile tmpfile; in TEST_F() local
537 "--duration", "2", "-o", tmpfile.path, "-g"})); in TEST_F()
538 ReportRaw(tmpfile.path, {"-g"}); in TEST_F()
DCallChainJoiner.cpp262 std::unique_ptr<TemporaryFile> tmpfile = ScopedTempFiles::CreateTempFile(); in CreateTempFp() local
263 FILE* fp = fdopen(tmpfile->release(), "web+"); in CreateTempFp()
Denvironment.cpp555 std::unique_ptr<TemporaryFile> tmpfile = ScopedTempFiles::CreateTempFile(); in PrepareVdsoFile() local
556 if (!android::base::WriteStringToFd(s, tmpfile->fd)) { in PrepareVdsoFile()
559 Dso::SetVdsoFile(tmpfile->path, sizeof(size_t) == sizeof(uint64_t)); in PrepareVdsoFile()
/system/core/adb/
Dbenchmark_device.py68 with tempfile.TemporaryFile() as tmpfile:
69 tmpfile.truncate(size_mb * 1024 * 1024)
72 tmpfile.seek(0)
74 subprocess.check_call(cmd, stdin=tmpfile)
/system/core/fastboot/
Dfastboot.cpp547 #define tmpfile win32_tmpfile macro
555 return fileno(tmpfile()); in make_temporary_fd()
/system/core/debuggerd/
Ddebuggerd_test.cpp606 FILE* tmp_file = tmpfile(); in seccomp_fork_impl()