diff options
author | Wilhelm Fitzpatrick <rafial@cyngn.com> | 2015-09-29 16:09:18 -0700 |
---|---|---|
committer | Gerrit Code Review <gerrit@cyanogenmod.org> | 2015-09-29 16:30:43 -0700 |
commit | 0ba38893238d6f3c2a6a920d58b0349504c4493f (patch) | |
tree | 29ebe75c6ff7c5dac90b74aa9deb17625527bd6b /src/java | |
parent | 38e8b11ea70cab7c1ab4d130d4e20457887471e5 (diff) | |
download | vendor_cmsdk-0ba38893238d6f3c2a6a920d58b0349504c4493f.zip vendor_cmsdk-0ba38893238d6f3c2a6a920d58b0349504c4493f.tar.gz vendor_cmsdk-0ba38893238d6f3c2a6a920d58b0349504c4493f.tar.bz2 |
cmdsk: rename thermal constants to reflect actual event semantics
cool, warm, critical reflect the threshold names used in the
lower level code, and warm has directional states depending on
whether the temp is rising or falling.
SAMBAR-266
Change-Id: Ifc0ad415f3d8409b6237d2715534d7e7ff3455f7
Diffstat (limited to 'src/java')
-rw-r--r-- | src/java/cyanogenmod/hardware/ThermalListenerCallback.java | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/java/cyanogenmod/hardware/ThermalListenerCallback.java b/src/java/cyanogenmod/hardware/ThermalListenerCallback.java index d534674..3ef312d 100644 --- a/src/java/cyanogenmod/hardware/ThermalListenerCallback.java +++ b/src/java/cyanogenmod/hardware/ThermalListenerCallback.java @@ -23,19 +23,19 @@ public abstract class ThermalListenerCallback extends IThermalListenerCallback.S public static final class State { public static final int STATE_UNKNOWN = -1; public static final int STATE_COOL = 0; - public static final int STATE_NORMAL = 1; - public static final int STATE_HIGH = 2; - public static final int STATE_EXTREME = 3; + public static final int STATE_WARM_FALLING = 1; + public static final int STATE_WARM_RISING = 2; + public static final int STATE_CRITICAL = 3; public static final String toString(int state) { switch (state) { case STATE_COOL: return "STATE_COOL"; - case STATE_NORMAL: - return "STATE_NORMAL"; - case STATE_HIGH: - return "STATE_HIGH"; - case STATE_EXTREME: - return "STATE_EXTREME"; + case STATE_WARM_FALLING: + return "STATE_WARM_FALLING"; + case STATE_WARM_RISING: + return "STATE_WARM_RISING"; + case STATE_CRITICAL: + return "STATE_CRITICAL"; default: return "STATE_UNKNOWN"; } |