Lines Matching refs:sensor_data
651 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()
984 (*sensor_log_map)[sensor_data.data()] = *reading_value; in readDataByType()
987 *reading_value = std::atof(sensor_data.data()); in readDataByType()