diff options
author | Makoto Onuki <omakoto@google.com> | 2017-11-14 15:03:21 -0800 |
---|---|---|
committer | Makoto Onuki <omakoto@google.com> | 2017-11-15 08:34:57 -0800 |
commit | 66a7812bc90b5be7702fe5743d257fddcdb48201 (patch) | |
tree | 59ab3934d4838444ce24d89786a2060578699a8a /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | fde6ea8d29da5f9c6b321df64c8f0722d1173586 (diff) |
Refactor battery saver logic + add "per device" setting
- Extract the battery saver mode transition logic to BatterySaverController.
This now also supports running different code when screen turns on and off.
- BatterySaverPolicy now takes a "per-device configuration" from config.xml,
which can be overwritten via a global setting. We'll use this to set up
max CPU frequencies.
- The actual part to write max CPU frequencies is not finished yet.
Test: atest BatterySaverPolicyTest
Bug: 68769804
Change-Id: Ife38c2cd94ac9902911b005dbbca8b0d0a62e6d7
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions