Home
last modified time | relevance | path

Searched refs:ReadFileToString (Results 1 – 25 of 28) sorted by relevance

12

/developtools/hiperf/test/unittest/common/native/
Dhiperf_libreport_test.cpp289 EXPECT_EQ(ReadFileToString(REPORT_OUTPUT_PATH, content), true);
350 EXPECT_EQ(ReadFileToString(REPORT_JSON_OUTPUT_PATH, content), true);
362 EXPECT_EQ(ReadFileToString(REPORT_JSON_OUTPUT_PATH, content), true);
477 EXPECT_EQ(ReadFileToString(REPORT_JSON_OUTPUT_PATH, content), true);
491 EXPECT_EQ(ReadFileToString(REPORT_JSON_OUTPUT_PATH, content), true);
505 EXPECT_EQ(ReadFileToString(REPORT_JSON_OUTPUT_PATH, content), true);
Doption_debug_test.cpp84 std::string log = ReadFileToString(DebugLogger::GetInstance()->logPath_); in LogLevelTest()
Dsubcommand_record_test.cpp1379 … std::string threadName = ReadFileToString(StringPrintf("/proc/%d/comm", recordSample.data_.tid)); in __anon21b1720a0402()
1398 … std::string threadName = ReadFileToString(StringPrintf("/proc/%d/comm", recordSample.data_.tid)); in __anon21b1720a0502()
1417 … std::string threadName = ReadFileToString(StringPrintf("/proc/%d/comm", recordSample.data_.tid)); in __anon21b1720a0602()
1436 … std::string threadName = ReadFileToString(StringPrintf("/proc/%d/comm", recordSample.data_.tid)); in __anon21b1720a0702()
1473 … std::string threadName = ReadFileToString(StringPrintf("/proc/%d/comm", recordSample.data_.tid)); in __anon21b1720a0902()
1492 … std::string threadName = ReadFileToString(StringPrintf("/proc/%d/comm", recordSample.data_.tid)); in __anon21b1720a0a02()
2193 std::string threadName = ReadFileToString(StringPrintf("/proc/%d/comm", tid));
Ddebug_logger_test.cpp82 log = ReadFileToString(DebugLogger::GetInstance()->logPath_); in LogLevelTest()
Dutilities_test.cpp603 HWTEST_F(UtilitiesTest, ReadFileToString, TestSize.Level1)
606 EXPECT_NE(ReadFileToString(strPath).length(), 0u);
Dvirtual_runtime_test.cpp133 std::string modulesMap = ReadFileToString("/proc/modules");
Dperf_events_test.cpp350 std::string threadName = ReadFileToString(StringPrintf("/proc/%d/comm", tid));
/developtools/profiler/hiebpf/include/
Dutilities.h35 std::string ReadFileToString(const std::string &fileName);
/developtools/profiler/hiebpf/src/
Dutilities.cpp24 std::string ReadFileToString(const std::string &fileName) in ReadFileToString() function
Dmaps_info.cpp32 std::string mapContent = ReadFileToString(mapPath); in GetMaps()
/developtools/hiperf/include/
Dutilities.h301 std::string ReadFileToString(const std::string &fileName);
302 bool ReadFileToString(const std::string &fileName, std::string &content, const size_t fileSize = 0);
384 if (IsSameCommand(ReadFileToString(fileName), appPackage)) { in CollectPidsByAppname()
/developtools/profiler/device/plugins/native_daemon/include/
Dutilities.h271 std::string ReadFileToString(const std::string &fileName);
272 bool ReadFileToString(const std::string &fileName, std::string &content, size_t fileSize = 0);
/developtools/packing_tool/packing_tool/frameworks/src/
Dfast_app_packager.cpp330 return ReadFileToString(path); in GetModuleJsonContentFromPath()
340 return ReadFileToString(path / fs::path(Constants::MODULE_JSON)); in GetModuleJsonContentFromPath()
345 std::string FastAppPackager::ReadFileToString(const fs::path &path) in ReadFileToString() function in OHOS::AppPackingTool::FastAppPackager
468 return ReadFileToString(path); in GetPackInfoContentFromPath()
478 return ReadFileToString(path / fs::path(Constants::PACK_INFO)); in GetPackInfoContentFromPath()
/developtools/packing_tool/packing_tool/frameworks/include/
Dfast_app_packager.h66 std::string ReadFileToString(const fs::path &path);
/developtools/hiperf/src/
Dutilities.cpp284 std::string ReadFileToString(const std::string &fileName) in ReadFileToString() function
298 bool ReadFileToString(const std::string &fileName, std::string &fileData, const size_t fileSize) in ReadFileToString() function
388 std::string s = ReadFileToString(path); in ReadIntFromProcFile()
691 if (IsSameCommand(ReadFileToString(fileName), appPackage)) { in GetAppPackagePid()
864 std::string bundleName = ReadFileToString(filePath); in GetProcessName()
Dvirtual_thread.cpp282 std::string mapContent = ReadFileToString(mapPath); in ParseServiceMap()
312 std::string mapContent = ReadFileToString(mapPath); in ParseDevhostMap()
Dsymbols_file.cpp546 …CHECK_TRUE(ReadFileToString(kallsymsPath, kallsym, KSYM_DEFAULT_SIZE) && !kallsym.empty(), false, … in ParseKallsymsLine()
648 std::string oldKptrRestrict = ReadFileToString(KPTR_RESTRICT); in LoadKernelSyms()
743 std::string oldKptrRestrict = ReadFileToString(KPTR_RESTRICT); in LoadKernelSyms()
888 std::string buildIdRaw = ReadFileToString(sysFile); in LoadBuildId()
Dsubcommand_record.cpp803 if (IsSameCommand(ReadFileToString(fileName), appPackage_)) { in GetPidFromAppPackage()
1898 std::string str = ReadFileToString(fileName); in GetCountFromFile()
1923 std::string str = ReadFileToString("/proc/cpuinfo"); in GetCpuDescFromFile()
1977 std::string str = ReadFileToString("/proc/meminfo"); in AddMemTotalFeature()
2028 ReadFileToString("/proc/self/cmdline").c_str() + Command::fullArgument; in AddCommandLineFeature()
Dvirtual_runtime.cpp90 comm = ReadFileToString(StringPrintf("/proc/%d/comm", tid)); in ReadThreadName()
92 comm = ReadFileToString(StringPrintf("/proc/%d/cmdline", tid)); in ReadThreadName()
/developtools/profiler/device/plugins/native_daemon/src/
Dutilities.cpp345 std::string ReadFileToString(const std::string &fileName) in ReadFileToString() function
358 bool ReadFileToString(const std::string &fileName, std::string &fileData, size_t fileSize) in ReadFileToString() function
397 std::string s = ReadFileToString(path); in ReadIntFromProcFile()
Dsymbols_file.cpp472 if (!ReadFileToString("/proc/kallsyms", kallsym, KSYM_DEFAULT_SIZE)) { in ParseKallsymsLine()
545 if (ReadFileToString(KPTR_RESTRICT).front() != '0') { in LoadKernelSyms()
586 std::string notes = ReadFileToString("/sys/kernel/notes"); in LoadSymbols()
664 std::string buildIdRaw = ReadFileToString(sysFile); in LoadBuildId()
Dvirtual_thread.cpp109 std::string comm = ReadFileToString(StringPrintf("/proc/%d/comm", tid)).c_str(); in ReadThreadName()
Dvirtual_runtime.cpp67 std::string comm = ReadFileToString(StringPrintf("/proc/%d/comm", tid)).c_str(); in ReadThreadName()
/developtools/profiler/device/plugins/native_daemon/test/unittest/common/native/
Dutilities_test.cpp578 HWTEST_F(UtilitiesTest, ReadFileToString, TestSize.Level1)
581 EXPECT_NE(ReadFileToString(strPath).length(), 0u);
Ddebug_logger_test.cpp78 log = ReadFileToString(DebugLogger::GetInstance()->logPath_); in LogLevelTest()

12