summaryrefslogtreecommitdiff
path: root/thermal/thermal-helper.h
diff options
context:
space:
mode:
Diffstat (limited to 'thermal/thermal-helper.h')
-rw-r--r--thermal/thermal-helper.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/thermal/thermal-helper.h b/thermal/thermal-helper.h
index fd226bb..c864931 100644
--- a/thermal/thermal-helper.h
+++ b/thermal/thermal-helper.h
@@ -39,7 +39,6 @@
#include <fnmatch.h>
#include <android/hardware/thermal/1.0/IThermal.h>
-#include "utils/battery_threshold.h"
#include "utils/cooling_devices.h"
#include "utils/sensors.h"
@@ -54,7 +53,13 @@ using ::android::hardware::thermal::V1_0::CpuUsage;
using ::android::hardware::thermal::V1_0::Temperature;
using ::android::hardware::thermal::V1_0::TemperatureType;
-constexpr float kMultiplier = .001;
+struct SensorInfo {
+ TemperatureType type;
+ bool is_override;
+ float throttling;
+ float shutdown;
+ float multiplier;
+};
struct ThrottlingThresholds {
ThrottlingThresholds() : cpu(NAN), gpu(NAN), ss(NAN), battery(NAN) {}
@@ -71,7 +76,6 @@ class ThermalHelper {
bool fillTemperatures(hidl_vec<Temperature>* temperatures);
bool fillCpuUsages(hidl_vec<CpuUsage>* cpu_usages);
- bool fillBatteryThresholdDebugInfo(std::ostringstream& dump_buf);
// Dissallow copy and assign.
ThermalHelper(const ThermalHelper&) = delete;
@@ -115,6 +119,9 @@ class ThermalHelper {
// we might end up calling it before having it initialized.
static std::string getSkinSensorType();
+ // Update setting not in thermal config
+ void updateOverideThresholds();
+
Sensors thermal_sensors_;
CoolingDevices cooling_devices_;
std::unordered_map<std::string, int>
@@ -123,7 +130,6 @@ class ThermalHelper {
ThrottlingThresholds vr_thresholds_;
ThrottlingThresholds shutdown_thresholds_;
const bool is_initialized_;
- const BatteryThresholdLUT low_temp_threshold_adjuster_;
};
} // namespace implementation