summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorKweku Adams <kwekua@google.com>2019-05-15 11:23:19 -0700
committerKweku Adams <kwekua@google.com>2019-05-15 11:23:19 -0700
commit5bcc89f165286bad2995c19e9a22e8376a837faf (patch)
tree490023e3f44ba3ee0a23c5869d2fee7f2061f0d7 /tools/aapt2/java/JavaClassGenerator.cpp
parentb3196e53d7bb17745526ab3c6821a57784d2bf7c (diff)
Fix BatterySaverStateMachineTest.
1. Disable actually posting a notification so that the test doesn't deal with a SecurityException. 2. Verify that the notification is only posted when expected. 3. Put the state change from PENDING_STICKY_ON to OFF at the beginning of the block. setStickyActive() calls putGlobalSetting(), which ends up calling setSettingsLocked() which then goes back to updateStateLocked(). Since this is all in the same thread, the test was seeing the state machine post the notification twice. Putting the state change at the beginning prevents the "second" notification. Bug: 132620259 Test: atest com.android.server.power.batterysaver.BatterySaverStateMachineTest Test: atest CtsBatterySavingTestCases Change-Id: I1ceecc150bc57a37002d7de4ece09b503ec583c8
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions