Lines Matching refs:temp
106 static_cast<int>(sensor_status.thermal_cached.temp)); in dumpTraces()
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()
414 sensor_status.override_status.emul_temp.reset(new EmulTemp{temp, -1}); in emulTemp()
444 const auto temp = sensor_info.hot_thresholds[severity] / sensor_info.multiplier; in emulSeverity() local
448 sensor_status.override_status.emul_temp.reset(new EmulTemp{temp, severity}); in emulSeverity()
507 float temp = NAN; in readTemperature() local
511 if (!readThermalSensor(sensor_name, &temp, force_no_cache, &sensor_log_map)) { in readTemperature()
518 if (std::isnan(temp)) { in readTemperature()
526 out->value = temp * sensor_info.multiplier; in readTemperature()
575 std::string temp; in readTemperatureThreshold() local
683 Temperature temp = { in clearAllThrottling() local
691 cb_(temp); in clearAllThrottling()
903 Temperature temp; in fillCurrentTemperatures() local
913 if (readTemperature(name_info_pair.first, &temp, nullptr, false)) { in fillCurrentTemperatures()
914 ret.emplace_back(std::move(temp)); in fillCurrentTemperatures()
929 TemperatureThreshold temp; in fillTemperatureThresholds() local
936 if (readTemperatureThreshold(name_info_pair.first, &temp)) { in fillTemperatureThresholds()
937 ret.emplace_back(std::move(temp)); in fillTemperatureThresholds()
1185 bool ThermalHelperImpl::readThermalSensor(std::string_view sensor_name, float *temp, in readThermalSensor() argument
1203 *temp = sensor_status.override_status.emul_temp->temp; in readThermalSensor()
1204 (*sensor_log_map)[sensor_name.data()] = *temp; in readThermalSensor()
1216 !isnan(sensor_status.thermal_cached.temp)) { in readThermalSensor()
1217 *temp = sensor_status.thermal_cached.temp; in readThermalSensor()
1218 (*sensor_log_map)[sensor_name.data()] = *temp; in readThermalSensor()
1219 ATRACE_INT((sensor_name.data() + std::string("-cached")).c_str(), static_cast<int>(*temp)); in readThermalSensor()
1230 *temp = std::stof(::android::base::Trim(file_reading)); in readThermalSensor()
1259 *temp = vt_estimator_out[0]; in readThermalSensor()
1301 *temp = (temp_val + sensor_info.virtual_sensor_info->offset); in readThermalSensor()
1305 if (!isnan(sensor_info.step_ratio) && !isnan(sensor_status.thermal_cached.temp) && in readThermalSensor()
1307 *temp = (sensor_info.step_ratio * *temp + in readThermalSensor()
1308 (1 - sensor_info.step_ratio) * sensor_status.thermal_cached.temp); in readThermalSensor()
1311 (*sensor_log_map)[sensor_name.data()] = *temp; in readThermalSensor()
1312 ATRACE_INT(sensor_name.data(), static_cast<int>(*temp)); in readThermalSensor()
1316 sensor_status.thermal_cached.temp = *temp; in readThermalSensor()
1319 auto real_temp = (*temp) * sensor_info.multiplier; in readThermalSensor()
1338 Temperature temp; in thermalWatcherCallbackFunc() local
1418 if (!readTemperature(name_status_pair.first, &temp, &throttling_status, force_no_cache)) { in thermalWatcherCallbackFunc()
1438 if (temp.throttlingStatus != sensor_status.severity) { in thermalWatcherCallbackFunc()
1439 temps.push_back(temp); in thermalWatcherCallbackFunc()
1440 sensor_status.severity = temp.throttlingStatus; in thermalWatcherCallbackFunc()
1467 temp, sensor_info, sensor_status.severity, time_elapsed_ms, in thermalWatcherCallbackFunc()