From c060bf7892c11cd89dff137702017f88537044c6 Mon Sep 17 00:00:00 2001 From: Suprabh Shukla Date: Wed, 18 Jan 2023 18:25:16 -0800 Subject: [PATCH] Attributing and logging wifi wakeups If Wifi is included in the transports of the network the packet came on, we classify the wakeup as a Wifi wakeup. Currently, only the packets arriving on the wifi interface are marked, so we only do this for Wifi. We can add more subsystems once more interfaces start marking these packets in the lower stack. Test: Manually inspect the output of `dumpsys batterystats --wakeups` and `statsd_testdrive 588` Bug: 265742148 Change-Id: Id444757330bf776befd78116194e05e78a00f3ad --- core/res/res/xml/irq_device_map.xml | 11 +++++---- .../java/android/os/BatteryStatsInternal.java | 2 ++ .../server/am/BatteryStatsService.java | 23 ++++++++++++++++++- .../server/power/stats/CpuWakeupStats.java | 8 +++++++ 4 files changed, 38 insertions(+), 6 deletions(-) diff --git a/core/res/res/xml/irq_device_map.xml b/core/res/res/xml/irq_device_map.xml index 86a44d6a9fe05..4fae8fb776873 100644 --- a/core/res/res/xml/irq_device_map.xml +++ b/core/res/res/xml/irq_device_map.xml @@ -17,14 +17,15 @@ */ --> -