From eb214d03281be7b0c67ef6a679bc5d56d7690310 Mon Sep 17 00:00:00 2001 From: Benjamin Schwartz Date: Thu, 11 Feb 2021 10:58:37 -0800 Subject: [PATCH] power/stats: Add more energy consumer types Adding bluetooth, mobile radio, gnss, and wifi types Bug: 176117316 Test: build Change-Id: I6e22c426910c31bd65e2ec7cd569983a0d005007 --- .../android/hardware/power/stats/EnergyConsumerType.aidl | 8 ++++++-- .../android/hardware/power/stats/EnergyConsumerType.aidl | 6 +++++- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/power/stats/aidl/aidl_api/android.hardware.power.stats/current/android/hardware/power/stats/EnergyConsumerType.aidl b/power/stats/aidl/aidl_api/android.hardware.power.stats/current/android/hardware/power/stats/EnergyConsumerType.aidl index 7b05d2f426..ce3e1f59bf 100644 --- a/power/stats/aidl/aidl_api/android.hardware.power.stats/current/android/hardware/power/stats/EnergyConsumerType.aidl +++ b/power/stats/aidl/aidl_api/android.hardware.power.stats/current/android/hardware/power/stats/EnergyConsumerType.aidl @@ -34,6 +34,10 @@ package android.hardware.power.stats; @VintfStability enum EnergyConsumerType { OTHER = 0, - CPU_CLUSTER = 1, - DISPLAY = 2, + BLUETOOTH = 1, + CPU_CLUSTER = 2, + DISPLAY = 3, + GNSS = 4, + MOBILE_RADIO = 5, + WIFI = 6, } diff --git a/power/stats/aidl/android/hardware/power/stats/EnergyConsumerType.aidl b/power/stats/aidl/android/hardware/power/stats/EnergyConsumerType.aidl index 7fd2348d70..d871ced214 100644 --- a/power/stats/aidl/android/hardware/power/stats/EnergyConsumerType.aidl +++ b/power/stats/aidl/android/hardware/power/stats/EnergyConsumerType.aidl @@ -20,6 +20,10 @@ package android.hardware.power.stats; @VintfStability enum EnergyConsumerType { OTHER, + BLUETOOTH, CPU_CLUSTER, DISPLAY, -} \ No newline at end of file + GNSS, + MOBILE_RADIO, + WIFI, +}