diff options
author | jackqdyulei <jackqdyulei@google.com> | 2017-03-10 14:09:16 -0800 |
---|---|---|
committer | jackqdyulei <jackqdyulei@google.com> | 2017-03-22 15:55:21 -0700 |
commit | 29c82ab242d50000d22e593c27153751c8c6b44a (patch) | |
tree | ff86f1997e0f0072b9590c3fe8eb9f7947c952ae /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | a9795ca6be9c08479fc2b65643ab7c8eaf3690c3 (diff) |
Hook up data saver to battery saver.
1. Add globalBatterySaverEnabled in PowerSaveState, which stores
the real battery saver mode, not the one for specific service.
2. Add "mRestrictBackgroundChangedInBsm" and
"mRestrictBackgroundBeforeBsm" to restore the mRestrictBackground
if necessary.
3. If user toggles the data saver when battery saver is on, don't
restore the data saver when battery saver is off.
Bug: 34693888
Test: FrameworksServicesTests
Change-Id: Ic50c1cae3fb110a228e59e5d1fd04c164e4b7274
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions