summaryrefslogtreecommitdiff
path: root/core/java/android
diff options
context:
space:
mode:
authorTej Singh <singhtejinder@google.com>2018-02-16 00:15:09 -0800
committerTej Singh <singhtejinder@google.com>2018-02-26 20:55:26 -0800
commit4029831e36ef1e4a017bf55e1ec8f8b64849c5a3 (patch)
tree7a04bb9122801b432513744c93f9ee87a21079f8 /core/java/android
parentb9cacbea949e59fe4611dfbf2387d11938275e5b (diff)
Atom: TemperatureReported
Makes the temperature reported atom pulled, and adds CPU, GPU, and SKIN temperatures. Pulls information from the thermal hal. Test: CTS test on cl in this topic Change-Id: I0a8e2d1135bdd77e1cc510f24ff5214ce9e14ead
Diffstat (limited to 'core/java/android')
-rw-r--r--core/java/android/os/HardwarePropertiesManager.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/java/android/os/HardwarePropertiesManager.java b/core/java/android/os/HardwarePropertiesManager.java
index eae7d7014bb1..3d072c5c4f5e 100644
--- a/core/java/android/os/HardwarePropertiesManager.java
+++ b/core/java/android/os/HardwarePropertiesManager.java
@@ -63,6 +63,8 @@ public class HardwarePropertiesManager {
/**
* Device temperature types.
*/
+ // These constants are also defined in android/os/enums.proto.
+ // Any change to the types here or in the thermal hal should be made in the proto as well.
/** Temperature of CPUs in Celsius. */
public static final int DEVICE_TEMPERATURE_CPU = Constants.TemperatureType.CPU;