diff options
| author | 2014-09-14 11:10:22 -0400 | |
|---|---|---|
| committer | 2014-09-14 14:07:23 -0400 | |
| commit | 8d4e6cb06005a2ce994360340a6191f0690db8f4 (patch) | |
| tree | f33ad62f12c43f567d7c5ff514c6b66c2a858bdd /libs/hwui/ProgramCache.cpp | |
| parent | c68f27625bfd18d945ab214983ae05206b6f3bfa (diff) | |
Saver: PowerManager call to set low power mode.
- Add an explicit power manager call to set the low power mode state,
instead of trying manage everything around a single setting.
- When low-power mode is triggered by falling below the configured
threshold, it does not update the setting.
- The "is-enabled" api returns setting || below configured trigger.
- Move the snooze management into the new api call.
- Callers (sysui + settings) updated to use the api instead of the
setting.
- Handles the case where the level does an unpowered leap out of the
low battery level. (Possible if powered in-between while the device
is off)
Bug:17460535
Change-Id: Ic030504c9cad9868a7137abbe837b170da37852b
Diffstat (limited to 'libs/hwui/ProgramCache.cpp')
0 files changed, 0 insertions, 0 deletions