commit | a233bba91e64b6441d363a6485aff58d72f815ef | [log] [tgz] |
---|---|---|
author | Lucas Silva <lusilva@google.com> | Mon Nov 14 22:53:07 2022 -0500 |
committer | Lucas Silva <lusilva@google.com> | Mon Nov 14 22:53:07 2022 -0500 |
tree | 00d2d7389e9756c662b582d9c8798bf4e7b6201d | |
parent | 2d7fb7b2b5456cd575d31b577a3a2641bec76235 [diff] |
Update dream battery drain monitoring to exclude when charging is being artificially limited. We may limit charging when battery is overheating, or due to dock defend or other battery defend mechanisms. In these cases, the battery is expected to drain while dreaming since charging is limited. Therefore, do not exit dreams in this case. Test: atest PowerManagerServiceTest Fixes: 258027228 Change-Id: I10ce0c848892b42267d819d07a284d17a97899d1