diff options
Diffstat (limited to 'tests/JobScheduler/src/android/jobscheduler/cts/JobThrottlingTest.java')
-rw-r--r-- | tests/JobScheduler/src/android/jobscheduler/cts/JobThrottlingTest.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/JobScheduler/src/android/jobscheduler/cts/JobThrottlingTest.java b/tests/JobScheduler/src/android/jobscheduler/cts/JobThrottlingTest.java index 816385bd043..85715be6bbf 100644 --- a/tests/JobScheduler/src/android/jobscheduler/cts/JobThrottlingTest.java +++ b/tests/JobScheduler/src/android/jobscheduler/cts/JobThrottlingTest.java @@ -193,6 +193,10 @@ public class JobThrottlingTest { // TODO(b/159176758): make sure that initial power supply is on. BatteryUtils.runDumpsysBatterySetPluggedIn(true); } + + // Kill as many things in the background as possible so we avoid LMK interfering with the + // test. + mUiDevice.executeShellCommand("am kill-all"); } @Test |