powerstats: correct TPU, GPU, several DVFS buckets and frequency unit

Bug: 197152245
Test: dumpsys android.hardware.power.stats.IPowerStats/default
Change-Id: Ie4f260c643e3d19f8080436b3a0197764196ccfc
This commit is contained in:
samou 2021-08-25 10:58:48 +00:00 committed by Sam Ou
parent df5cec3e17
commit 21623c73d0
2 changed files with 79 additions and 194 deletions

View file

@ -97,7 +97,7 @@ std::unordered_map<std::string, std::vector<State>> DevfreqStateResidencyDataPro
int32_t id = 0;
std::vector<State> states;
for (const auto[frequencyHz, totalTimeMs] : timeInState) {
State s = {.id = id++, .name = std::to_string(frequencyHz / 1000) + "KHz"};
State s = {.id = id++, .name = std::to_string(frequencyHz / 1000) + "MHz"};
states.push_back(s);
}