From 308bf47837c683eb98fad334857205646f7acbab Mon Sep 17 00:00:00 2001 From: Shuibing Dai Date: Tue, 2 May 2023 13:42:51 -0700 Subject: [PATCH 1/4] Remove overlay item: country code update during setup wizard The country code updating from scan results generic case can cover setup wizard case. Bug: 279625751 Test: manually verified generic case Change-Id: I5cd7763dd7aea9117018daf029fa5536dd1c2ef8 --- rro_overlays/WifiOverlay/res/values/config.xml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/rro_overlays/WifiOverlay/res/values/config.xml b/rro_overlays/WifiOverlay/res/values/config.xml index fe8976a..94f377b 100644 --- a/rro_overlays/WifiOverlay/res/values/config.xml +++ b/rro_overlays/WifiOverlay/res/values/config.xml @@ -158,11 +158,6 @@ is when the system is in the suspended mode --> true - - true - true From 22572e15bd7f0aa3a481a35744b868c7a2fdca9f Mon Sep 17 00:00:00 2001 From: Suprabh Shukla Date: Tue, 2 May 2023 16:53:03 -0700 Subject: [PATCH 2/4] Add wakeup interrupt mapping Test: Manually inspect the output of: `dumpsys batterystats --wakeups` Bug: 271922941 Change-Id: I8a1fa820f9f4208880e5ac13180f9d347581182b --- .../frameworks/base/core/res/res/xml/irq_device_map.xml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/felix/overlay/frameworks/base/core/res/res/xml/irq_device_map.xml b/felix/overlay/frameworks/base/core/res/res/xml/irq_device_map.xml index beb5166..f36ea00 100644 --- a/felix/overlay/frameworks/base/core/res/res/xml/irq_device_map.xml +++ b/felix/overlay/frameworks/base/core/res/res/xml/irq_device_map.xml @@ -23,5 +23,11 @@ Wifi + + Cellular_data + + + Sensor + From 73382cc3f22f498f73674bc9ba8b089b5cdf9d30 Mon Sep 17 00:00:00 2001 From: sashwinbalaji Date: Thu, 30 Mar 2023 10:50:16 +0800 Subject: [PATCH 3/4] thermal: Update config for stats Bug: 259903201 Test: local build and verify stats Change-Id: I14fcc2fbddb13d5e2050ae7b5f51e7f3de9ce71f --- thermal_info_config_felix.json | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/thermal_info_config_felix.json b/thermal_info_config_felix.json index 3920569..45fcea5 100644 --- a/thermal_info_config_felix.json +++ b/thermal_info_config_felix.json @@ -977,5 +977,25 @@ "PowerSampleDelay":60000, "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 + } + } + } } From 2c7791a42728ffce5474fa8b7c60b9685ae74013 Mon Sep 17 00:00:00 2001 From: Darren Hsu Date: Thu, 4 May 2023 11:12:25 +0800 Subject: [PATCH 4/4] powerstats: update NFC sysfs path Bug: 280560362 Test: pts-tradefed run singleCommand pts -m PtsPowerTestCases Change-Id: I727627a343c9c52e67f252a0ce6362667f411efd Signed-off-by: Darren Hsu --- powerstats/felix/service.cpp | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/powerstats/felix/service.cpp b/powerstats/felix/service.cpp index 2ccabb0..2de3797 100644 --- a/powerstats/felix/service.cpp +++ b/powerstats/felix/service.cpp @@ -28,6 +28,7 @@ #include #include #include +#include using aidl::android::hardware::power::stats::DevfreqStateResidencyDataProvider; using aidl::android::hardware::power::stats::DisplayStateResidencyDataProvider; @@ -140,6 +141,18 @@ void addGPU(std::shared_ptr p) { stateCoeffs)); } +std::string getNfcPath() { + struct stat buffer; + int size = 128; + char path[size]; + for (int i = 0; i < 10; i++) { + std::snprintf(path, size, + "/sys/devices/platform/10970000.hsi2c/i2c-%d/i2c-st21nfc/power_stats", i); + if (!stat(path, &buffer)) break; + } + return std::string(path); +} + int main() { LOG(INFO) << "Pixel PowerStats HAL AIDL Service is starting."; @@ -160,7 +173,7 @@ int main() { addWifi(p); addTPU(p); addUfs(p); - addNFC(p, "/sys/devices/platform/10970000.hsi2c/i2c-4/i2c-st21nfc/power_stats"); + addNFC(p, getNfcPath()); addUwb(p); addPowerDomains(p); addDevfreq(p);