powerstats: add new parameter to provide aoc clock
AoC power stats are reported in ticks that are different frequency
in different SoC.
Bug: 233923713
Test: dumpsys android.hardware.power.stats.IPowerStats/default
Change-Id: I047d7ae163941c2168dcd8a0ea34da73ab4a8477
Signed-off-by: Darren Hsu <darrenhsu@google.com>
diff --git a/powerstats/include/AocTimedStateResidencyDataProvider.h b/powerstats/include/AocTimedStateResidencyDataProvider.h
index 98724b2..8611ae6 100644
--- a/powerstats/include/AocTimedStateResidencyDataProvider.h
+++ b/powerstats/include/AocTimedStateResidencyDataProvider.h
@@ -39,7 +39,8 @@
AocTimedStateResidencyDataProvider(
std::vector<std::pair<std::string, std::string>> ids,
std::vector<std::pair<std::string, std::string>> states,
- const uint64_t timeoutMillis);
+ const uint64_t timeoutMillis,
+ const uint64_t aocClock);
~AocTimedStateResidencyDataProvider() = default;
bool getStateResidencies(