Pixel Thermal Throttling: fix throttling constants.

Test: manual verification on blueline
Bug: 112432890
Change-Id: I23fda6ba2e834f704e3ffa0abbe7d05f79e55476
This commit is contained in:
Tejinder Singh
2018-11-08 16:56:16 -08:00
committed by Jia-yi Chen
parent aec845ed2a
commit 9ee9ba3220

View File

@@ -1208,7 +1208,10 @@ public class StatsCompanionService extends IStatsCompanionService.Stub {
private static final class ThermalEventListener extends IThermalEventListener.Stub {
@Override public void notifyThrottling(boolean isThrottling, Temperature temp) {
StatsLog.write(StatsLog.THERMAL_THROTTLING, temp.getType(),
isThrottling ? 1 : 0, temp.getValue());
isThrottling ?
StatsLog.THERMAL_THROTTLING_STATE_CHANGED__STATE__START :
StatsLog.THERMAL_THROTTLING_STATE_CHANGED__STATE__STOP,
temp.getValue());
}
}
}