Add ability to retrieve energy metrics for power rails
Added code to interface with Power Stats HAL, in order
to retrieve energy measurements for the available
rails.
Bug: 122584217
Test: Manual
Change-Id: Ia68eddf731e67896edd044cccd855543d986167b
diff --git a/src/android_internal/BUILD.gn b/src/android_internal/BUILD.gn
index 0930238..baf21a6 100644
--- a/src/android_internal/BUILD.gn
+++ b/src/android_internal/BUILD.gn
@@ -20,6 +20,7 @@
]
sources = [
"health_hal.h",
+ "power_stats_hal.h",
]
}
@@ -34,14 +35,16 @@
if (perfetto_build_with_android) {
sources = [
"health_hal.cc",
+ "power_stats_hal.cc",
]
libs = [
"android.hardware.health@2.0",
+ "android.hardware.power.stats@1.0",
"base",
"log",
- "hwbinder",
"hidlbase",
"hidltransport",
+ "hwbinder",
"utils",
]
}