Home
last modified time | relevance | path

Searched refs:ReadFile (Results 1 – 25 of 305) sorted by relevance

12345678910>>...13

/external/perfetto/src/traced/probes/ftrace/
Dftrace_procfs_integrationtest.cc59 std::string ReadFile(const std::string& name) { in ReadFile() function
61 PERFETTO_CHECK(base::ReadFile(GetFtracePath() + name, &result)); in ReadFile()
66 std::string output = ReadFile("trace"); in GetTraceOutput()
163 EXPECT_EQ(ReadFile("buffer_size_kb"), "16\n"); // (4096 * 4) / 1024 in TEST_F()
165 EXPECT_EQ(ReadFile("buffer_size_kb"), "20\n"); // (4096 * 5) / 1024 in TEST_F()
175 EXPECT_EQ(ReadFile("buffer_size_kb"), "16\n"); in TEST_F()
176 EXPECT_EQ(ReadFile("tracing_on"), "1\n"); in TEST_F()
177 EXPECT_EQ(ReadFile("events/enable"), "X\n"); in TEST_F()
181 EXPECT_EQ(ReadFile("buffer_size_kb"), "4\n"); in TEST_F()
182 EXPECT_EQ(ReadFile("tracing_on"), "0\n"); in TEST_F()
[all …]
/external/chromium-trace/catapult/devil/devil/android/
Dcpu_temperature_test.py106 self.mock_device.ReadFile = mock.Mock(side_effect=self.cooling_down0)
108 self.mock_device.ReadFile.assert_called()
109 self.assertEquals(self.mock_device.ReadFile.call_count, 24)
115 self.mock_device.ReadFile = mock.Mock(side_effect=self.cooling_down1)
117 self.mock_device.ReadFile.assert_called()
118 self.assertEquals(self.mock_device.ReadFile.call_count, 16)
124 self.mock_device.ReadFile = mock.Mock(side_effect=self.constant_temp)
126 self.mock_device.ReadFile.assert_called()
127 self.assertEquals(self.mock_device.ReadFile.call_count, 24)
Dcrash_handler_devicetest.py53 self.device.ReadFile(trigger_file.name, retries=0).strip())
59 return trigger_text == self.device.ReadFile(
/external/google-breakpad/src/common/mac/
Dmacho_reader_unittest.cc755 void ReadFile(MachOFile *file, in ReadFile() function
799 ReadFile(&file, false, CPU_TYPE_ANY, kCPUSubType); in TEST_F()
818 ReadFile(&file, false, kCPUType, kCPUSubType); in TEST_F()
828 ReadFile(&file, false, CPU_TYPE_ANY, 0); in TEST_F()
844 ReadFile(&file, false, CPU_TYPE_ANY, kCPUSubType); in TEST_F()
865 ReadFile(&file, false, CPU_TYPE_POWERPC, CPU_SUBTYPE_POWERPC_ALL); in TEST_F()
882 ReadFile(&file, true, CPU_TYPE_ANY, kCPUSubType); in TEST_F()
905 ReadFile(&file, true, CPU_TYPE_ANY, kCPUSubType); in TEST_F()
928 ReadFile(&file, true, CPU_TYPE_ANY, kCPUSubType); in TEST_F()
951 ReadFile(&file, true, CPU_TYPE_ANY, kCPUSubType); in TEST_F()
[all …]
/external/perfetto/src/traced/probes/common/
Dcpu_freq_info.cc67 ReadFile(cpu_dir_path + "/cpu" + std::to_string(cpu_index) + in CpuFreqInfo()
71 ReadFile(cpu_dir_path + "/cpu" + std::to_string(cpu_index) + in CpuFreqInfo()
114 std::string CpuFreqInfo::ReadFile(std::string path) { in ReadFile() function in perfetto::CpuFreqInfo
116 if (!base::ReadFile(path, &contents)) in ReadFile()
/external/libtextclassifier/native/annotator/
Dannotator_test-include.cc53 std::string model_buffer = ReadFile(GetTestModelPath()); in GetTestModelWithDatetimeRegEx()
183 const std::string test_model = ReadFile(GetTestModelPath()); in TEST_F()
203 const std::string test_model = ReadFile(GetTestModelPath()); in TEST_F()
222 const std::string test_model = ReadFile(GetTestModelPath()); in TEST_F()
255 const std::string test_model = ReadFile(GetTestModelPath()); in TEST_F()
317 const std::string test_model = ReadFile(GetTestModelPath()); in TEST_F()
351 const std::string test_model = ReadFile(GetTestModelPath()); in TEST_F()
421 const std::string test_model = ReadFile(GetTestModelPath()); in TEST_F()
460 const std::string test_model = ReadFile(GetTestModelPath()); in TEST_F()
503 const std::string test_model = ReadFile(GetTestModelPath()); in TEST_F()
[all …]
/external/tensorflow/tensorflow/core/api_def/java_api/
Dapi_def_ReadFile.pbtxt2 graph_op_name: "ReadFile"
4 name: "io.ReadFile"
/external/libchrome/components/policy/core/common/
Dpreg_parser_unittest.cc121 ASSERT_TRUE(preg_parser::ReadFile(test_file, base::ASCIIToUTF16(kRegistryKey), in TEST_F()
152 ASSERT_TRUE(preg_parser::ReadFile( in TEST_F()
159 ASSERT_TRUE(preg_parser::ReadFile(test_file, base::ASCIIToUTF16(kRegistryKey), in TEST_F()
170 ASSERT_TRUE(preg_parser::ReadFile(test_file, base::ASCIIToUTF16(kRegistryKey), in TEST_F()
183 ASSERT_FALSE(preg_parser::ReadFile( in TEST_F()
/external/perfetto/src/traced/probes/system_info/
Dsystem_info_data_source.cc63 std::string proc_cpu_info = ReadFile("/proc/cpuinfo"); in Start()
108 std::string SystemInfoDataSource::ReadFile(std::string path) { in ReadFile() function in perfetto::SystemInfoDataSource
110 if (!base::ReadFile(path, &contents)) in ReadFile()
Dsystem_info_data_source_unittest.cc118 MOCK_METHOD1(ReadFile, std::string(std::string));
139 EXPECT_CALL(*data_source, ReadFile("/proc/cpuinfo")) in TEST_F()
/external/chromium-trace/catapult/systrace/atrace_helper/jni/
Dfile_utils.cc43 ssize_t ReadFile(const char* path, char* buf, size_t length) { in ReadFile() function
65 ssize_t rsize = ReadFile(path, buf, length); in ReadFileTrimmed()
82 return ReadFile(proc_path, buf, length); in ReadProcFile()
/external/chromium-trace/catapult/devil/devil/android/tools/
Ddevice_monitor.py103 mem_info = device.ReadFile('/proc/meminfo')
139 sensor_name = device.ReadFile(f).strip()
140 temp = float(device.ReadFile(f[:-4] + 'temp').strip()) # s/type^/temp
147 uptimes = device.ReadFile('/proc/uptime').split()
/external/angle/third_party/vulkan-deps/spirv-tools/src/tools/
Dio.h37 void ReadFile(FILE* file, std::vector<T>* data) { in ReadFile() function
90 ReadFile(fp, data); in ReadBinaryFile()
112 ReadFile(fp, data); in ReadTextFile()
/external/perfetto/src/protozero/filtering/
Dmessage_filter_benchmark.cc27 perfetto::base::ReadFile(perfetto::base::GetTestDataPath(kTestTrace), in BM_ProtozeroMessageFilter()
33 perfetto::base::ReadFile(kFullTraceFilter, &filter); in BM_ProtozeroMessageFilter()
/external/vboot_reference/futility/
Dcmd_vbutil_firmware.c110 (VbKeyBlockHeader *) ReadFile(keyblock_file, &key_block_size); in Vblock()
129 fv_data = ReadFile(fv_file, &fv_size); in Vblock()
202 blob = ReadFile(infile, &blob_size); in Verify()
209 fv_data = ReadFile(fv_file, &fv_size); in Verify()
/external/chromium-trace/catapult/third_party/pyserial/serial/
Dwin32.py97 ReadFile = _stdcall_libraries['kernel32'].ReadFile variable
98 ReadFile.restype = BOOL
99 ReadFile.argtypes = [HANDLE, LPVOID, DWORD, LPDWORD, LPOVERLAPPED]
/external/python/cpython3/Lib/test/test_asyncio/
Dtest_windows_utils.py31 ov1.ReadFile(h1, 100)
105 ovout.ReadFile(p.stdout.handle, 100)
106 overr.ReadFile(p.stderr.handle, 100)
/external/protobuf/benchmarks/util/
Dgogo_data_scrubber.cc13 std::string ReadFile(const std::string& name) { in ReadFile() function
39 std::string dataset_payload = ReadFile(input_file); in main()
Dproto3_data_stripper.cc13 std::string ReadFile(const std::string& name) { in ReadFile() function
39 std::string dataset_payload = ReadFile(input_file); in main()
/external/vboot_reference/host/lib/
Dhost_key.c115 buffer = ReadFile(filename, &filelen); in PrivateKeyRead()
177 key_data = ReadFile(filename, &key_size); in PublicKeyReadKeyb()
233 key = (VbPublicKey*)ReadFile(filename, &file_size); in PublicKeyRead()
/external/llvm-project/flang/lib/Parser/
Dsource.cpp119 ReadFile(); in Open()
137 ReadFile(); in ReadStandardInput()
141 void SourceFile::ReadFile() { in ReadFile() function in Fortran::parser::SourceFile
/external/chromium-trace/catapult/systrace/systrace/tracing_agents/
Dandroid_cgroup_agent.py85 cgroups = self._device_utils.ReadFile('/proc/cgroups')
94 tasks = self._device_utils.ReadFile(tasks_file).split('\n')
/external/toolchain-utils/compiler_wrapper/
Drusage_flag_test.go91 data, err := ioutil.ReadFile(logFileName)
129 data, err := ioutil.ReadFile(logFileName)
145 data, err = ioutil.ReadFile(logFileName)
/external/perfetto/src/traced/probes/sys_stats/
Dsys_stats_data_source.cc260 size_t rsize = ReadFile(&fd, cur_freq_path); in ReadDevfreqCurFreq()
267 size_t rsize = ReadFile(&meminfo_fd_, "/proc/meminfo"); in ReadMeminfo()
291 size_t rsize = ReadFile(&vmstat_fd_, "/proc/vmstat"); in ReadVmstat()
313 size_t rsize = ReadFile(&stat_fd_, "/proc/stat"); in ReadStat()
390 size_t SysStatsDataSource::ReadFile(base::ScopedFile* fd, const char* path) { in ReadFile() function in perfetto::SysStatsDataSource
/external/perfetto/src/trace_processor/
Dexport_json_unittest.cc44 std::string ReadFile(FILE* input) { in ReadFile() function
113 Json::Value result = ToJsonValue(ReadFile(output)); in TEST_F()
145 Json::Value result = ToJsonValue(ReadFile(output)); in TEST_F()
190 Json::Value result = ToJsonValue(ReadFile(output)); in TEST_F()
222 Json::Value result = ToJsonValue(ReadFile(output)); in TEST_F()
249 Json::Value result = ToJsonValue(ReadFile(output)); in TEST_F()
318 Json::Value result = ToJsonValue(ReadFile(output)); in TEST_F()
369 Json::Value result = ToJsonValue(ReadFile(output)); in TEST_F()
410 Json::Value result = ToJsonValue(ReadFile(output)); in TEST_F()
449 Json::Value result = ToJsonValue(ReadFile(output)); in TEST_F()
[all …]

12345678910>>...13