Merge "Pixel Thermal Throttling: fix throttling constants." into pi-dev

am: 3ebd957c25

Change-Id: Icf02af585e14047754c2e212dd0f24066eb027cb
This commit is contained in:
Tejinder Singh
2018-11-09 13:06:33 -08:00
committed by android-build-merger

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());
}
}
}