commit | 3911b8dee50d17f974df6d1b171e3dd4f287b34e | [log] [tgz] |
---|---|---|
author | Wei Wang <wvw@google.com> | Tue Oct 30 15:56:20 2018 -0700 |
committer | Wei Wang <wvw@google.com> | Tue Oct 30 15:56:20 2018 -0700 |
tree | 09cebf90ae3b59d8178854a429ad2d6eaa4c4e58 | |
parent | 01065acda7d0b58498e1cbd4cc8ec0c23740e087 [diff] [blame] |
ThermalService: Report temperature for ThermalHAL 2.0 Test: Build and manually tested on ThermalHAL 2.0 device Change-Id: I3ea786660c35ec7b6469e20ec2ccf8df906336f5
diff --git a/services/thermalservice/libthermalcallback/ThermalChangedCallback.cpp b/services/thermalservice/libthermalcallback/ThermalChangedCallback.cpp index 0efd732..bb48387 100644 --- a/services/thermalservice/libthermalcallback/ThermalChangedCallback.cpp +++ b/services/thermalservice/libthermalcallback/ThermalChangedCallback.cpp
@@ -68,6 +68,8 @@ static_cast<size_t>(ThrottlingSeverity::SEVERE)) ? true : false; + value = temperature.value == UNKNOWN_TEMPERATURE ? NAN : + temperature.value; android::os::Temperature thermal_svc_temp(value, type); mThermalService->notifyThrottling(isThrottling, thermal_svc_temp); } else {