summaryrefslogtreecommitdiff
path: root/health/include/pixelhealth/BatteryDefender.h
AgeCommit message (Collapse)Author
2021-07-29Create one-shot clear for Dwell-DefendStephane Lee
Test: Ensure there are no sepolicy errors Bug: 192640087 Change-Id: I72b20929f7d096afa85278ecb0b94113129d5348
2021-07-22BatteryDefender: Reduce the frequency of persist writes on battery defenderStephane Lee
Test: atest HealthTestCases Bug: 189959288 Change-Id: Ib5704b8ce42bc5e45067c6df2d3c9165f188d8de
2021-04-30BatteryDefender: Default wireless path to UNSUPPORTED and allow runtimeStephane Lee
setting of unsupported wireless paths. Bug: 165954398 Test: atest HealthTestCases Change-Id: I0e62a1c332e6496240ac49c068d91391b98b6d00
2020-12-21BatteryDefender: Disable continuous error log for wireless filesStephane Lee
Test: atest HealthTestCases Bug: 171434500 Change-Id: I72aea9e8add5947bf74e98ac3fb5dfe333c1d6d6
2020-12-18BatteryDefender: Use "present" instead of "online" for wireless adaptersStephane Lee
This adapts to the kernel change that changes the semantics of the wireless nodes. Test: atest HealthTestCases Bug: 171434500 Change-Id: Ie3dd79d9608b7a47b5ad3fc4b73b57433b71aa70
2020-12-17BatteryDefender: Add trigger SOC to Google HAL controlStephane Lee
Test: atest HealthTestCases Bug: 173080734 Change-Id: I8f9c30e73f0535509f67d0f9a4e0054e30056031
2020-12-14Allow the dwell defend battery defender to consume ctrl propertiesStephane Lee
Test: Ensure that the battery defender overrides its configuration based on the new properties. Run 'atest HealthTestCases' Bug: 173080734 Change-Id: I7fa8cba413bbbe9b8a74e5b12c3e9687e9373b11
2020-10-26BatteryDefender: Set thresholds for all devices to 70/80Stephane Lee
Bug: 171436767 Test: 'atest HealthTestCases' Change-Id: Ieffaa391d491a2e395586e6215f3d6e8fdd5b92c
2020-10-21Override 'online' status for kernel defenderStephane Lee
Bug: 171344280 Test: 'atest HealthTestCases' Change-Id: I2aae813163a319f1b0d4ac9fb143f586803e2618
2020-10-15Override the 'online' status for AC/USB for battery defenderStephane Lee
Conditions: - The USB is connected - The Battery Defender is active Bug: 170787442 Test: 'atest HealthTestCases' Change-Id: I3e72a6a4be71df27c2b7965533810f8981c36e37
2020-10-15Engage battery defender after 4 days for all devicesStephane Lee
Test: 'atest HealthTestCases' Bug: 170230464 Change-Id: I0a85e387a69b604216f18d1f522ed70f441f05a4
2020-10-15Enable Battery Defender on user buildsStephane Lee
Test: Ensure that 'atest HealthTestCases' runs successfully Bug: 170449757 Change-Id: Ie126fcf3d97c53c09e27341e2a51a6adb48af555
2020-02-20Make battery defender more robust.Stephane Lee
If a charge level write fails, allow additional attempts to be made next time update() is called Bug: 110994628 Test: Ensure that charge levels are written during retail mode. Change-Id: I9cf9391063f49ae1b8ad8b7f145f7935a0a3f4e8
2020-02-18Enable the battery defender in debuggable-mode onlyStephane Lee
Battery defender aims to extend the life of the battery when a device is plugged in for too long (2 weeks). Test: Set BatteryDefender.h constructor thresholds to 1 minute. Ensure that the SOC charge thresholds change to 60/70 when connected to power for 1 minute. Test: Run atest HealthTestCases for supported devices Bug: 110994628 Change-Id: Idfd83981dad9a971676588fda6ee4efac01cbc0d