Commit Graph

5 Commits

Author SHA1 Message Date
Miguel de Dios
ff1557a9eb Allow thermalHAL on Wahoo to look up thermistors by name.
Instead of hardcoding thermal zone numbers, make thermalHAL look up
thermistors by name. This is a backport of the way thermalHAL keeps
track of thermal zones in b1c1.

Bug: 75972023
Test: VtsHalThermalV1_0TargetTest passes
Test: VtsHalThermalV1_1TargetTest passes
Test: manual - flash device and check logcat for thermalHAL output.
Change-Id: I24194ea6dd0372b52f525ac288108ee9da30258a
2018-03-28 20:40:40 +00:00
Miguel de Dios
be2ed11266 Expose USB-C thermistor in ThermalHAL for Wahoo.
Expose USB-C to calls to getTemperatures() in ThermalHAL for wahoo.

Bug: 67749183
Test: VtsHalThermalV1_0TargetTest pass
Change-Id: Ic45dea1c990e0c71a6ac621145b93cb0f7aa9519
(cherry picked from commit 51872d4950)
2018-03-19 20:48:37 +00:00
Todd Poynor
3ae03f7e09 thermal: add private methods for thermal-engine use
Add private HAL implementation methods for use in interacting with
the thermal-engine daemon:

* getSkinSensorType returns the "type" (name) of the skin sensor
  for walleye vs. taimen
* notifyThrottling pushes throttling start/stop events to the HAL
  for forwarding to IThermalCallback in the generic framework.

Bug: 30982366
Test: manual on walleye (with artifically low threshold)
Change-Id: I082c100df22880bfd53c2cb5c78b0be47c58894e
2017-09-20 18:05:25 +00:00
Todd Poynor
de912858f8 thermal: update to Thermal HAL v1.1
Updates for IThermal V1.1, add IThermalCallback registration method.

Bug: 30982366
Test: VtsHalThermalV1_1Target on walleye
Change-Id: I71d2a14c669c66bf69608735c68350141bf647e9
2017-09-20 18:04:32 +00:00
Wei Wang
a81f5612fe THERMAL HAL API 1.0 impl for Wahoo
Thermal HAL 1.0 implementation for wahoo

Bug: 36458508
Test: VtsHalThermalV1_0TargetTest pass
Test: Check thermalHAL log
Signed-off-by: Wei Wang <wvw@google.com>
Change-Id: I88831aec5c388269cb78f8cbd966ecae55f1cff2
2017-07-19 12:44:17 -07:00