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
This commit is contained in:
Wilhelm Fitzpatrick 2015-09-29 16:09:18 -07:00 committed by Gerrit Code Review
parent 38e8b11ea7
commit 0ba3889323
1 changed files with 9 additions and 9 deletions

View File

@ -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";
}