summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorMakoto Onuki <omakoto@google.com>2018-05-10 13:41:39 -0700
committerMakoto Onuki <omakoto@google.com>2018-05-11 13:24:50 -0700
commitbd7a62538901e256148186006f60bd4dfa35469a (patch)
treead48880b21128750f3afc18c864900f4c80e3e84 /tools/aapt2/java/JavaClassGenerator_test.cpp
parent15aa546a37eb54793f1c80111aa1046e3180afcf (diff)
Rework battery saver synchronization logic
- Stop using individual lock instances and use use the power manager lock. - Make sure not to access external components with the lock held, *except for settings provider*, which is already touched by the power manager and the battery service (I'm planning to re-organize things for Q: b/79580230) Fixes: 79486713 Test: atest /android/pi-dev/frameworks/base/services/tests/servicestests/src/com/android/server/power/batterysaver/Battery*Test.java /android/pi-dev/frameworks/base/services/tests/servicestests/src/com/android/server/power/*Test.java Test: Manual test with ./development/scripts/battery_simulator.py with toggling battery saver on and off and then watch adb logcat -b all | grep -P '(battery_saving_stats|battery_saver_mode)' Change-Id: I8ecdfefe978de348ee979d765c82e3d8f0280082
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions