Lines Matching defs:path
36 int32_t ThermalTest::WriteFile(std::string path, std::string buf)
38 FILE *fp = fopen(path.c_str(), "w+");
44 THERMAL_HILOGD(COMP_SVC, "Failed to fwrite %{public}s, num=%{public}zu", path.c_str(), num);
52 int32_t ThermalTest::ReadFile(std::string path, std::string& buf)
54 std::ifstream input(path);
94 bool ThermalTest::IsMock(const std::string& path)
97 int32_t ret = stat(path.c_str(), &pathStat);
107 DIR* dir = opendir(path.c_str());
130 std::string ThermalTest::GetNodeValue(const std::string& path)
133 int32_t ret = ThermalTest::ReadFile(path, value);
138 int32_t ThermalTest::SetNodeValue(int32_t value, const std::string& path)
141 int32_t ret = ThermalTest::WriteFile(path, sValue);
146 int32_t ThermalTest::SetNodeString(std::string str, const std::string& path)
148 int32_t ret = ThermalTest::WriteFile(path, str);