Lines Matching refs:target_sensor

377 void ThermalHelperImpl::checkUpdateSensorForEmul(std::string_view target_sensor,  in checkUpdateSensorForEmul()  argument
386 if (std::find(linked_sensors.begin(), linked_sensors.end(), target_sensor) == in checkUpdateSensorForEmul()
399 bool ThermalHelperImpl::emulTemp(std::string_view target_sensor, const float temp, in emulTemp() argument
401 LOG(INFO) << "Set " << target_sensor.data() << " emul_temp: " << temp in emulTemp()
407 if (!sensor_status_map_.count(target_sensor.data())) { in emulTemp()
408 LOG(ERROR) << "Cannot find target emul sensor: " << target_sensor.data(); in emulTemp()
412 auto &sensor_status = sensor_status_map_.at(target_sensor.data()); in emulTemp()
418 checkUpdateSensorForEmul(target_sensor.data(), max_throttling); in emulTemp()
424 bool ThermalHelperImpl::emulSeverity(std::string_view target_sensor, const int severity, in emulSeverity() argument
426 LOG(INFO) << "Set " << target_sensor.data() << " emul_severity: " << severity in emulSeverity()
431 if (!sensor_status_map_.count(target_sensor.data()) || in emulSeverity()
432 !sensor_info_map_.count(target_sensor.data())) { in emulSeverity()
433 LOG(ERROR) << "Cannot find target emul sensor: " << target_sensor.data(); in emulSeverity()
436 const auto &sensor_info = sensor_info_map_.at(target_sensor.data()); in emulSeverity()
446 auto &sensor_status = sensor_status_map_.at(target_sensor.data()); in emulSeverity()
452 checkUpdateSensorForEmul(target_sensor.data(), max_throttling); in emulSeverity()
458 bool ThermalHelperImpl::emulClear(std::string_view target_sensor) { in emulClear() argument
459 LOG(INFO) << "Clear " << target_sensor.data() << " emulation settings"; in emulClear()
462 if (target_sensor == "all") { in emulClear()
468 } else if (sensor_status_map_.count(target_sensor.data())) { in emulClear()
469 auto &sensor_status = sensor_status_map_.at(target_sensor.data()); in emulClear()
472 checkUpdateSensorForEmul(target_sensor.data(), false); in emulClear()
474 LOG(ERROR) << "Cannot find target emul sensor: " << target_sensor.data(); in emulClear()