/system/extras/simpleperf/ |
D | cmd_record_test.cpp | 49 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 …]
|
D | cmd_report_sample_test.cpp | 34 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,
|
D | dso_test.cpp | 33 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()
|
D | cmd_kmem_test.cpp | 75 std::unique_ptr<TemporaryFile> tmpfile; in RunKmemRecordCmd() local 80 tmpfile.reset(new TemporaryFile); in RunKmemRecordCmd() 81 out_file = tmpfile->path; in RunKmemRecordCmd()
|
D | cmd_list.cpp | 53 TemporaryFile tmpfile; in IsEventTypeSupported() local 54 FILE* fp = fopen(tmpfile.path, "w"); in IsEventTypeSupported()
|
D | cmd_report_test.cpp | 354 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()
|
D | CallChainJoiner.cpp | 262 std::unique_ptr<TemporaryFile> tmpfile = ScopedTempFiles::CreateTempFile(); in CreateTempFp() local 263 FILE* fp = fdopen(tmpfile->release(), "web+"); in CreateTempFp()
|
D | environment.cpp | 555 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/ |
D | benchmark_device.py | 68 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/ |
D | fastboot.cpp | 547 #define tmpfile win32_tmpfile macro 555 return fileno(tmpfile()); in make_temporary_fd()
|
/system/core/debuggerd/ |
D | debuggerd_test.cpp | 606 FILE* tmp_file = tmpfile(); in seccomp_fork_impl()
|