Home
last modified time | relevance | path

Searched refs:thermal_name (Results 1 – 2 of 2) sorted by relevance

/hardware/google/pixel/thermal/utils/
Dthermal_files.cpp32 std::string ThermalFiles::getThermalFilePath(std::string_view thermal_name) const { in getThermalFilePath()
33 auto sensor_itr = thermal_name_to_path_map_.find(thermal_name.data()); in getThermalFilePath()
40 bool ThermalFiles::addThermalFile(std::string_view thermal_name, std::string_view path) { in addThermalFile() argument
41 return thermal_name_to_path_map_.emplace(thermal_name, path).second; in addThermalFile()
44 bool ThermalFiles::readThermalFile(std::string_view thermal_name, std::string *data) const { in readThermalFile() argument
46 std::string file_path = getThermalFilePath(std::string_view(thermal_name)); in readThermalFile()
49 PLOG(WARNING) << "Failed to find " << thermal_name << "'s path"; in readThermalFile()
54 PLOG(WARNING) << "Failed to read sensor: " << thermal_name; in readThermalFile()
Dthermal_files.h35 std::string getThermalFilePath(std::string_view thermal_name) const;
37 bool addThermalFile(std::string_view thermal_name, std::string_view path);
41 bool readThermalFile(std::string_view thermal_name, std::string *data) const;
42 bool writeCdevFile(std::string_view thermal_name, std::string_view data);