ThermalManagerservice: add legacy Thermal HAL 1.0 polling support

For legacy Thermal HAL 1.0, we cannot get notification but we still can
support the getCurrentTemperatures API.

Bug: 119228310
Test: manually on a device with Thermal HAL 1.0
Test: atest $ANDROID_BUILD_TOP/frameworks/base/services/tests/servicestests/src/com/android/server/power/ThermalManagerServiceTest.java
Change-Id: Ibe1784e4a904393113f8716db4e5af24debcdc8f
2 files changed