Home
last modified time | relevance | path

Searched refs:WriteToFile (Results 1 – 25 of 48) sorted by relevance

12

/external/perfetto/src/traced/probes/ftrace/
Dftrace_controller_unittest.cc126 ON_CALL(*this, WriteToFile(_, _)).WillByDefault(Return(true)); in MockFtraceProcfs()
129 ON_CALL(*this, WriteToFile("/root/tracing_on", _)) in MockFtraceProcfs()
151 MOCK_METHOD2(WriteToFile,
262 EXPECT_CALL(*controller->procfs(), WriteToFile(kFooEnablePath, "1")); in TEST()
263 EXPECT_CALL(*controller->procfs(), WriteToFile("/root/buffer_size_kb", _)); in TEST()
273 EXPECT_CALL(*controller->procfs(), WriteToFile("/root/tracing_on", "1")); in TEST()
280 EXPECT_CALL(*controller->procfs(), WriteToFile("/root/buffer_size_kb", "4")); in TEST()
286 EXPECT_CALL(*controller->procfs(), WriteToFile(kFooEnablePath, "0")); in TEST()
287 EXPECT_CALL(*controller->procfs(), WriteToFile("/root/tracing_on", "0")); in TEST()
288 EXPECT_CALL(*controller->procfs(), WriteToFile("/root/events/enable", "0")); in TEST()
[all …]
Dftrace_config_muxer_unittest.cc53 ON_CALL(*this, WriteToFile(_, _)).WillByDefault(Return(true)); in MockFtraceProcfs()
58 MOCK_METHOD2(WriteToFile,
227 EXPECT_CALL(ftrace, WriteToFile("/root/buffer_size_kb", _)); in TEST_F()
228 EXPECT_CALL(ftrace, WriteToFile("/root/trace_clock", "boot")); in TEST_F()
229 EXPECT_CALL(ftrace, WriteToFile("/root/tracing_on", "1")); in TEST_F()
231 WriteToFile("/root/events/power/cpu_frequency/enable", "1")); in TEST_F()
310 EXPECT_CALL(ftrace, WriteToFile("/root/buffer_size_kb", _)); in TEST_F()
311 EXPECT_CALL(ftrace, WriteToFile("/root/trace_clock", "boot")); in TEST_F()
312 EXPECT_CALL(ftrace, WriteToFile("/root/tracing_on", "1")); in TEST_F()
314 WriteToFile("/root/events/sched/sched_switch/enable", "1")); in TEST_F()
[all …]
Ddiscover_vendor_tracepoints_unittest.cc50 ON_CALL(*this, WriteToFile(_, _)).WillByDefault(Return(true)); in MockFtraceProcfs()
55 MOCK_METHOD2(WriteToFile,
73 EXPECT_CALL(ftrace, WriteToFile("/root/events/enable", "0")) in TEST()
83 EXPECT_CALL(ftrace, WriteToFile("/root/events/enable", "0")) in TEST()
Dftrace_procfs.cc118 if (WriteToFile(path, "1")) in EnableEvent()
128 bool ret = WriteToFile(path, "0"); in DisableEvent()
142 return WriteToFile(path, "0"); in DisableAllEvents()
175 return WriteToFile(path, trigger); in CreateEventTrigger()
182 return WriteToFile(path, "!" + trigger); in RemoveEventTrigger()
321 return WriteToFile(path, str); in WriteTraceMarker()
337 return WriteToFile(path, "1"); in EnableTracing()
344 return WriteToFile(path, "0"); in DisableTracing()
361 return WriteToFile(path, clock_name); in SetClock()
416 return WriteToFile(path, std::string(buf)); in WriteNumberToFile()
[all …]
Dftrace_controller.cc88 bool WriteToFile(const char* path, const char* str) { in WriteToFile() function
125 res &= WriteToFile((prefix + "tracing_on").c_str(), "0"); in HardResetFtraceState()
126 res &= WriteToFile((prefix + "buffer_size_kb").c_str(), "4"); in HardResetFtraceState()
129 WriteToFile((prefix + "events/enable").c_str(), "0"); in HardResetFtraceState()
/external/rust/crates/quiche/deps/boringssl/src/tool/
Dgenerate_ed25519.cc37 static bool WriteToFile(const std::string &path, const uint8_t *in, in WriteToFile() function
63 return WriteToFile(args_map["-out-public"], public_key, sizeof(public_key)) && in GenerateEd25519Key()
64 WriteToFile(args_map["-out-private"], private_key, in GenerateEd25519Key()
/external/rust/crates/libfuzzer-sys/libfuzzer/
DFuzzerIO.cpp63 void WriteToFile(const Unit &U, const std::string &Path) { in WriteToFile() function
64 WriteToFile(U.data(), U.size(), Path); in WriteToFile()
67 void WriteToFile(const std::string &Data, const std::string &Path) { in WriteToFile() function
68 WriteToFile(reinterpret_cast<const uint8_t *>(Data.c_str()), Data.size(), in WriteToFile()
72 void WriteToFile(const uint8_t *Data, size_t Size, const std::string &Path) { in WriteToFile() function
DFuzzerIO.h27 void WriteToFile(const uint8_t *Data, size_t Size, const std::string &Path);
29 void WriteToFile(const std::string &Data, const std::string &Path);
30 void WriteToFile(const Unit &U, const std::string &Path);
DFuzzerFork.cpp152 WriteToFile(Seeds, Job->SeedListPath); in CreateNewJob()
221 WriteToFile(U, NewPath); in RunOneMergeJob()
337 WriteToFile(Unit({1}), Env.StopFile()); in FuzzWithFork()
/external/boringssl/src/tool/
Dgenerate_ech.cc122 if (!WriteToFile( in GenerateECH()
125 !WriteToFile(args_map["-out-ech-config"], in GenerateECH()
127 !WriteToFile(args_map["-out-private-key"], in GenerateECH()
Dgenerate_ed25519.cc48 return WriteToFile(args_map["-out-public"], public_key) && in GenerateEd25519Key()
49 WriteToFile(args_map["-out-private"], private_key); in GenerateEd25519Key()
Dfile.cc56 bool WriteToFile(const std::string &path, bssl::Span<const uint8_t> in) { in WriteToFile() function
/external/compiler-rt/lib/stats/
Dstats.cc40 WriteToFile(fd, chars, sizeof(uptr)); in WriteLE()
55 WriteToFile(stats_fd, &sizeof_uptr, 1); in OpenStatsFile()
67 WriteToFile(stats_fd, mod->full_name(), in WriteModuleReport()
/external/armnn/tests/NetworkExecutionUtils/
DNetworkExecutionUtils.cpp108 WriteToFile(values); in operator ()()
124 WriteToFile(dequantizedValues); in operator ()()
139 WriteToFile(values); in operator ()()
154 void TensorPrinter::WriteToFile(const std::vector<T>& values) in WriteToFile() function in TensorPrinter
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_coverage_libcdep.cc552 WriteToFile(cov_fd, &header, sizeof(header)); in CovWritePacked()
553 WriteToFile(cov_fd, module, module_name_length); in CovWritePacked()
554 WriteToFile(cov_fd, blob, blob_size); in CovWritePacked()
577 WriteToFile(cov_fd, block.data(), header_size_with_module + payload_size); in CovWritePacked()
626 WriteToFile(fd, out.data(), out.length()); in DumpTrace()
634 WriteToFile(fd, out.data(), out.length()); in DumpTrace()
644 if (WriteToFile(fd, event_bytes, bytes_to_write, &actually_written) && in DumpTrace()
692 WriteToFile(fd, out.data(), out.length()); in DumpCallerCalleePairs()
727 WriteToFile(fd, bitset.data() + r.beg, r.end - r.beg); in DumpCounters()
754 WriteToFile(fd, out.data() + r.beg, r.end - r.beg); in DumpAsBitSet()
[all …]
/external/libbrillo/brillo/
Dfile_utils.h103 BRILLO_EXPORT bool WriteToFile(const base::FilePath& path,
108 return WriteToFile(path, reinterpret_cast<const char*>(blob.data()), in WriteBlobToFile()
/external/lzma/CPP/7zip/Common/
DInOutTempBuffer.cpp41 bool CInOutTempBuffer::WriteToFile(const void *data, UInt32 size) in WriteToFile() function in CInOutTempBuffer
75 return WriteToFile(data, size); in Write()
DInOutTempBuffer.h21 bool WriteToFile(const void *data, UInt32 size);
/external/compiler-rt/lib/dfsan/
Ddfsan.cc335 WriteToFile(fd, buf, internal_strlen(buf)); in dfsan_dump_labels()
337 WriteToFile(fd, __dfsan_label_info[l].desc, in dfsan_dump_labels()
340 WriteToFile(fd, "\n", 1); in dfsan_dump_labels()
/external/skia/tools/
Dreformat-json.py47 gm_json.WriteToFile(gm_json.LoadFromFile(filename), filename)
/external/perfetto/tools/compact_reencode/
Dmain.cc47 void WriteToFile(const std::string& out, const char* path) { in WriteToFile() function
201 WriteToFile(raw_out, out_path); in Main()
/external/chromium-trace/catapult/common/py_vulcanize/py_vulcanize/
Dgenerate.py182 def WriteToFile(self, output_file): member in ExtraScript
298 extra_script.WriteToFile(output_file)
/external/compiler-rt/lib/sanitizer_common/tests/
Dsanitizer_libc_test.cc98 EXPECT_TRUE(WriteToFile(fd, str1, len1, &bytes_written)); in TEST()
100 EXPECT_TRUE(WriteToFile(fd, str2, len2, &bytes_written)); in TEST()
/external/boringssl/src/util/testresult/
Dtestresult.go78 func (t *Results) WriteToFile(name string) error { func
/external/webrtc/modules/audio_processing/aec_dump/
Daec_dump_unittest.cc58 TEST(AecDumper, WriteToFile) { in TEST() argument

12