thermal: support frequency based zone parsing
Support ScalingAvailableFrequenciesPath parsing
- Return fail when ScalingAvailableFrequenciesPath cannot read
- Return fail when the frequencies is not strictly monotonically increasing
Support LimitInfoFrequency and CdevCeilingFrequency parsing
- Return fail when one of these fields is configured but we didn't get
ScalingAvailableFrequencies from cooling device
- Return fail when both frequency based and cdev level based are configured.
Bug: 330780045
Test: b/330780045#comment10, flash the pbuild and dumpsys android.hardware.thermal.IThermal/default, check the cdevceiling and hardlimit number
Change-Id: Ic868d2f197ca25dfa98c8ea8ef58dafd8a9f0be4
Signed-off-by: Peter (YM) <peterym@google.com>
1 file changed