Home
last modified time | relevance | path

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

/hardware/google/pixel/thermal/utils/
Dthermal_predictions_helper.cpp69 PredictorSensorInfo &predictor_sensor_info = predictor_sensors_[linked_sensor.data()]; in registerPredictedSensor() local
71 (predictor_sensor_info.num_out_samples - 1) * predictor_sensor_info.sample_duration; in registerPredictedSensor()
81 const int prediction_index = duration / predictor_sensor_info.sample_duration; in registerPredictedSensor()
82 if (duration % predictor_sensor_info.sample_duration != 0) { in registerPredictedSensor()
85 << predictor_sensor_info.sample_duration << " and hence updated to " in registerPredictedSensor()
86 << prediction_index * predictor_sensor_info.sample_duration; in registerPredictedSensor()
103 PredictorSensorInfo &predictor_sensor_info = predictor_sensors_[sensor_name.data()]; in updateSensor() local
104 if (values.size() != static_cast<size_t>(predictor_sensor_info.num_out_samples)) { in updateSensor()
107 << ", expected: " << predictor_sensor_info.num_out_samples; in updateSensor()
111 predictor_sensor_info.samples[predictor_sensor_info.cur_index].timestamp = boot_clock::now(); in updateSensor()
[all …]
/hardware/google/pixel/thermal/
Dthermal-helper.cpp346 const auto &predictor_sensor_info = sensor_info_map_.at(predict_sensor_name); in ThermalHelperImpl() local
347 if (predictor_sensor_info.virtual_sensor_info == nullptr || in ThermalHelperImpl()
348 predictor_sensor_info.virtual_sensor_info->vt_estimator == nullptr) { in ThermalHelperImpl()
359 predictor_sensor_info.virtual_sensor_info->vt_estimator->GetAllPredictions( in ThermalHelperImpl()
1310 const auto &predictor_sensor_info = sensor_info_map_.at(predict_sensor_name.data()); in getPredictionMaxWindowMs() local
1312 predictor_sensor_info.virtual_sensor_info->vt_estimator->GetMaxPredictWindowMs( in getPredictionMaxWindowMs()
1338 const auto &predictor_sensor_info = sensor_info_map_.at(predict_sensor_name.data()); in readPredictionAfterTimeMs() local
1340 predictor_sensor_info.virtual_sensor_info->vt_estimator->PredictAfterTimeMs( in readPredictionAfterTimeMs()
1381 const auto &predictor_sensor_info = sensor_info_map_.at(predict_sensor_name); in readTemperaturePredictions() local
1383 predictor_sensor_info.virtual_sensor_info->vt_estimator->GetAllPredictions(predictions); in readTemperaturePredictions()