Cpufreq data is sorted in ascending order, but power stats
are sorted in descending order. Reverse sorting to maintain
consistency with other power stats.
Bug: 317429309
Test: vts-tradefed run vts -m VtsHalPowerStatsTargetTest
Change-Id: I29a58c02add846eb66a8d6eb247336111363c335
Signed-off-by: Darren Hsu <darrenhsu@google.com>
This is a new data provider to get state residency from fvp_stats,
which is similar with DVFS data provider. But the difference is that
CPU frequency table is read from cpufreq sysfs and not predefined in
the config.
Bug: 272642210
Bug: 267638537
Test: dumpsys android.hardware.power.stats.IPowerStats/default
Change-Id: I22451b55dee5dfb0a1b36497533c2063984d5483
Signed-off-by: Darren Hsu <darrenhsu@google.com>