From 0ba38893238d6f3c2a6a920d58b0349504c4493f Mon Sep 17 00:00:00 2001 From: Wilhelm Fitzpatrick Date: Tue, 29 Sep 2015 16:09:18 -0700 Subject: [PATCH] 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 --- .../hardware/ThermalListenerCallback.java | 18 +++++++++--------- 1 file 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"; }