Lines Matching refs:name_status_pair
195 for (auto &name_status_pair : sensor_info_map_) { in ThermalHelperImpl() local
196 sensor_status_map_[name_status_pair.first] = { in ThermalHelperImpl()
205 if (name_status_pair.second.throttling_info != nullptr) { in ThermalHelperImpl()
207 name_status_pair.first, name_status_pair.second.throttling_info, in ThermalHelperImpl()
209 LOG(ERROR) << name_status_pair.first << " failed to register thermal throttling"; in ThermalHelperImpl()
215 maxCoolingRequestCheck(&name_status_pair.second.throttling_info->binded_cdev_info_map); in ThermalHelperImpl()
219 name_status_pair.second.throttling_info->profile_map) { in ThermalHelperImpl()
224 if (name_status_pair.second.virtual_sensor_info != nullptr) { in ThermalHelperImpl()
227 i < name_status_pair.second.virtual_sensor_info->linked_sensors.size(); i++) { in ThermalHelperImpl()
229 name_status_pair.second.virtual_sensor_info->linked_sensors[i], in ThermalHelperImpl()
230 name_status_pair.second.virtual_sensor_info->linked_sensors_type[i])) { in ThermalHelperImpl()
231 LOG(ERROR) << name_status_pair.first << "'s link sensor " in ThermalHelperImpl()
232 << name_status_pair.second.virtual_sensor_info->linked_sensors[i] in ThermalHelperImpl()
240 if (!name_status_pair.second.virtual_sensor_info->backup_sensor.empty()) { in ThermalHelperImpl()
241 if (!isSubSensorValid(name_status_pair.second.virtual_sensor_info->backup_sensor, in ThermalHelperImpl()
243 LOG(ERROR) << name_status_pair.first << "'s backup sensor " in ThermalHelperImpl()
244 << name_status_pair.second.virtual_sensor_info->backup_sensor in ThermalHelperImpl()
252 if (!name_status_pair.second.virtual_sensor_info->trigger_sensors.empty() && in ThermalHelperImpl()
253 name_status_pair.second.is_watch) { in ThermalHelperImpl()
255 i < name_status_pair.second.virtual_sensor_info->trigger_sensors.size(); i++) { in ThermalHelperImpl()
257 name_status_pair.second.virtual_sensor_info->trigger_sensors[i])) { in ThermalHelperImpl()
258 sensor_info_map_[name_status_pair.second.virtual_sensor_info in ThermalHelperImpl()
263 << name_status_pair.first << "'s trigger sensor: " in ThermalHelperImpl()
264 << name_status_pair.second.virtual_sensor_info->trigger_sensors[i] in ThermalHelperImpl()
273 if (name_status_pair.second.predictor_info != nullptr) { in ThermalHelperImpl()
274 std::string predict_sensor_name = name_status_pair.second.predictor_info->sensor; in ThermalHelperImpl()
276 LOG(ERROR) << name_status_pair.first << "'s predictor " << predict_sensor_name in ThermalHelperImpl()
285 LOG(ERROR) << name_status_pair.first << "'s predictor " << predict_sensor_name in ThermalHelperImpl()
291 if (name_status_pair.second.predictor_info->support_pid_compensation) { in ThermalHelperImpl()
294 name_status_pair.second.predictor_info->prediction_weights.size(); in ThermalHelperImpl()
301 LOG(ERROR) << "Failed to get output size of " << name_status_pair.first in ThermalHelperImpl()
309 LOG(ERROR) << "Sensor [" << name_status_pair.first << "]: " in ThermalHelperImpl()
1335 for (auto &name_status_pair : sensor_status_map_) { in thermalWatcherCallbackFunc() local
1340 SensorStatus &sensor_status = name_status_pair.second; in thermalWatcherCallbackFunc()
1341 const SensorInfo &sensor_info = sensor_info_map_.at(name_status_pair.first); in thermalWatcherCallbackFunc()
1350 name_status_pair.first.data()) in thermalWatcherCallbackFunc()
1386 } else if (uevent_sensors.find(name_status_pair.first) != uevent_sensors.end()) { in thermalWatcherCallbackFunc()
1402 LOG(VERBOSE) << "sensor " << name_status_pair.first in thermalWatcherCallbackFunc()
1412 LOG(VERBOSE) << "sensor " << name_status_pair.first in thermalWatcherCallbackFunc()
1418 if (!readTemperature(name_status_pair.first, &temp, &throttling_status, force_no_cache)) { in thermalWatcherCallbackFunc()
1420 << ": error reading temperature for sensor: " << name_status_pair.first; in thermalWatcherCallbackFunc()
1423 if (!readTemperatureThreshold(name_status_pair.first, &threshold)) { in thermalWatcherCallbackFunc()
1425 << name_status_pair.first; in thermalWatcherCallbackFunc()
1453 thermal_throttling_.clearThrottlingData(name_status_pair.first); in thermalWatcherCallbackFunc()
1459 if (!readTemperaturePredictions(name_status_pair.first, &sensor_predictions)) { in thermalWatcherCallbackFunc()
1460 LOG(ERROR) << "Failed to read predictions of " << name_status_pair.first in thermalWatcherCallbackFunc()
1473 name_status_pair.first, sensor_info, sensor_status.severity, in thermalWatcherCallbackFunc()
1479 LOG(VERBOSE) << "Sensor " << name_status_pair.first << ": sleep_ms=" << sleep_ms.count() in thermalWatcherCallbackFunc()