From 72b0286c5a82dbde2ab437bbc6ae3cab78d64eb1 Mon Sep 17 00:00:00 2001 From: Suprabh Shukla Date: Wed, 3 May 2023 12:26:26 -0700 Subject: [PATCH 1/2] Add wakeup interrupt mappings Test: Manually inspect the output of: `dumpsys batterystats --wakeups` Bug: 271922941 Change-Id: I2087d405fa71721267b600afb2fb38bf0e79cef9 --- .../base/core/res/res/xml/irq_device_map.xml | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 bluejay/overlay/frameworks/base/core/res/res/xml/irq_device_map.xml diff --git a/bluejay/overlay/frameworks/base/core/res/res/xml/irq_device_map.xml b/bluejay/overlay/frameworks/base/core/res/res/xml/irq_device_map.xml new file mode 100644 index 0000000..6686c1b --- /dev/null +++ b/bluejay/overlay/frameworks/base/core/res/res/xml/irq_device_map.xml @@ -0,0 +1,36 @@ + + + + + Alarm + + + Wifi + + + Cellular_data + + + Sound_trigger + + + Sensor + + + From 7209a892070dabc09111c7a246171edcc1d75484 Mon Sep 17 00:00:00 2001 From: sashwinbalaji Date: Thu, 30 Mar 2023 11:12:13 +0800 Subject: [PATCH 2/2] thermal: Update config for stats Bug: 259903201 Test: local build and verify stats Change-Id: Id856d8f3a8c7ee74d2913072dab7dec52946af53 --- thermal_info_config_bluejay.json | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/thermal_info_config_bluejay.json b/thermal_info_config_bluejay.json index e3cd3c2..6d90a20 100644 --- a/thermal_info_config_bluejay.json +++ b/thermal_info_config_bluejay.json @@ -1189,5 +1189,25 @@ "PowerSampleDelay":7000, "PowerSampleCount":1 } - ] + ], + "Stats": { + "Sensors": { + "RecordWithDefaultThreshold": ["VIRTUAL-SKIN"], + "RecordWithThreshold": [ + { + "Name": "VIRTUAL-SKIN", + "Thresholds": [31, 33, 35, 37, 39, 41, 43, 45, 47, 49, 51] + }, + { + "Name": "VIRTUAL-USB-THROTTLING", + "Thresholds": [2.0] + } + ] + }, + "CoolingDevices": { + "RecordVotePerSensor": { + "DefaultThresholdEnableAll": true + } + } + } } \ No newline at end of file