Home
last modified time | relevance | path

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

/hardware/google/pixel/thermal/
Dthermal-helper.cpp651 bool ThermalHelperImpl::isSubSensorValid(std::string_view sensor_data, in isSubSensorValid() argument
655 if (!sensor_info_map_.count(sensor_data.data())) { in isSubSensorValid()
656 LOG(ERROR) << "Cannot find " << sensor_data.data() << " from sensor info map"; in isSubSensorValid()
661 if (!GetPowerStatusMap().count(sensor_data.data())) { in isSubSensorValid()
662 LOG(ERROR) << "Cannot find " << sensor_data.data() << " from power status map"; in isSubSensorValid()
967 bool ThermalHelperImpl::readDataByType(std::string_view sensor_data, float *reading_value, in readDataByType() argument
972 if (!readThermalSensor(sensor_data.data(), reading_value, force_no_cache, in readDataByType()
974 LOG(ERROR) << "Failed to get " << sensor_data.data() << " data"; in readDataByType()
979 *reading_value = GetPowerStatusMap().at(sensor_data.data()).last_updated_avg_power; in readDataByType()
981 LOG(INFO) << "Power data " << sensor_data.data() << " is under collecting"; in readDataByType()
[all …]
Dthermal-helper.h201 bool isSubSensorValid(std::string_view sensor_data, const SensorFusionType sensor_fusion_type);
216 bool readDataByType(std::string_view sensor_data, float *reading_value,