diff options
| author | 2022-08-17 19:02:12 +0000 | |
|---|---|---|
| committer | 2022-08-17 19:35:20 +0000 | |
| commit | ff5ee8b3b58b6b33ef736f6dde04138b1aa38340 (patch) | |
| tree | 0244e57ebdca4f453659974868223a249bb2aa6b /libs/androidfw/StringPool.cpp | |
| parent | a9a51466530564bbfd6834826412ee5c66073760 (diff) | |
Adjust remaining supply as needed.
1. Update the remaining supply when TARE loads (from being turned on or
the device booting up) in case the battery level changed
significantly since the last time it was on.
2. Don't let the remaining supply go negative since that would
negatively impact allowing free actions.
Bug: 242605499
Bug: 242769323
Test: atest --rerun-until-failure 100 CtsAlarmManagerTestCases:BasicApiTests
Change-Id: I2659c5823baab45dc3f40cbbe85078a03c5ce5fe
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions