summaryrefslogtreecommitdiff
path: root/include/powermanager/PowerManager.h
diff options
context:
space:
mode:
author Chris Ye <lzye@google.com> 2020-01-15 10:51:47 -0800
committer Chris Ye <lzye@google.com> 2020-02-19 13:50:06 -0800
commit1a5a8886102e0b5a76c52ed0d91a4e0631fbf243 (patch)
tree9386ed733c286683215113b76a921a8703c3e0f9 /include/powermanager/PowerManager.h
parent31cf0a0d5a9c722e1a86f57963e5e8dd0e1bef76 (diff)
Create native version of Thermal Throttling API.
Create native thermal manager API of thermal mananger service. Export libthermal NDK library. Bug: 137151587 Bug: 136285293 Test: build, atest thermalmanager-test Change-Id: I1ec7c746f7e814c701b306e06fe08c3641c39e88
Diffstat (limited to 'include/powermanager/PowerManager.h')
-rw-r--r--include/powermanager/PowerManager.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/powermanager/PowerManager.h b/include/powermanager/PowerManager.h
index 3268b45716..9bac242a12 100644
--- a/include/powermanager/PowerManager.h
+++ b/include/powermanager/PowerManager.h
@@ -33,6 +33,17 @@ enum {
USER_ACTIVITY_EVENT_LAST = USER_ACTIVITY_EVENT_ACCESSIBILITY, // Last valid event code.
};
+/** Keep in sync with android.os.temprature and hardware/interfaces/thermal/2.0/types.hal */
+enum class ThermalStatus : uint32_t {
+ THERMAL_STATUS_NONE = 0,
+ THERMAL_STATUS_LIGHT = 1,
+ THERMAL_STATUS_MODERATE = 2,
+ THERMAL_STATUS_SEVERE = 3,
+ THERMAL_STATUS_CRITICAL = 4,
+ THERMAL_STATUS_EMERGENCY = 5,
+ THERMAL_STATUS_SHUTDOWN = 6,
+};
+
}; // namespace android
#endif // ANDROID_POWERMANAGER_H