Loading apct-tests/perftests/multiuser/src/android/multiuser/BenchmarkRunner.java +2 −2 Original line number Diff line number Diff line Loading @@ -80,7 +80,7 @@ public class BenchmarkRunner { private void prepareForNextRun() { SystemClock.sleep(COOL_OFF_PERIOD_MS); ShellHelper.runShellCommand("am wait-for-broadcast-idle"); ShellHelper.runShellCommand("am wait-for-broadcast-idle --flush-broadcast-loopers"); mStartTimeNs = System.nanoTime(); mPausedDurationNs = 0; } Loading @@ -102,7 +102,7 @@ public class BenchmarkRunner { * to avoid unnecessary waiting. */ public void resumeTiming() { ShellHelper.runShellCommand("am wait-for-broadcast-idle"); ShellHelper.runShellCommand("am wait-for-broadcast-idle --flush-broadcast-loopers"); resumeTimer(); } Loading apct-tests/perftests/multiuser/src/android/multiuser/UserLifecycleTests.java +2 −1 Original line number Diff line number Diff line Loading @@ -1541,7 +1541,8 @@ public class UserLifecycleTests { private void waitForBroadcastIdle() { try { ShellHelper.runShellCommandWithTimeout("am wait-for-broadcast-idle", TIMEOUT_IN_SECOND); ShellHelper.runShellCommandWithTimeout( "am wait-for-broadcast-idle --flush-broadcast-loopers", TIMEOUT_IN_SECOND); } catch (TimeoutException e) { Log.e(TAG, "Ending waitForBroadcastIdle because it is taking too long", e); } Loading Loading
apct-tests/perftests/multiuser/src/android/multiuser/BenchmarkRunner.java +2 −2 Original line number Diff line number Diff line Loading @@ -80,7 +80,7 @@ public class BenchmarkRunner { private void prepareForNextRun() { SystemClock.sleep(COOL_OFF_PERIOD_MS); ShellHelper.runShellCommand("am wait-for-broadcast-idle"); ShellHelper.runShellCommand("am wait-for-broadcast-idle --flush-broadcast-loopers"); mStartTimeNs = System.nanoTime(); mPausedDurationNs = 0; } Loading @@ -102,7 +102,7 @@ public class BenchmarkRunner { * to avoid unnecessary waiting. */ public void resumeTiming() { ShellHelper.runShellCommand("am wait-for-broadcast-idle"); ShellHelper.runShellCommand("am wait-for-broadcast-idle --flush-broadcast-loopers"); resumeTimer(); } Loading
apct-tests/perftests/multiuser/src/android/multiuser/UserLifecycleTests.java +2 −1 Original line number Diff line number Diff line Loading @@ -1541,7 +1541,8 @@ public class UserLifecycleTests { private void waitForBroadcastIdle() { try { ShellHelper.runShellCommandWithTimeout("am wait-for-broadcast-idle", TIMEOUT_IN_SECOND); ShellHelper.runShellCommandWithTimeout( "am wait-for-broadcast-idle --flush-broadcast-loopers", TIMEOUT_IN_SECOND); } catch (TimeoutException e) { Log.e(TAG, "Ending waitForBroadcastIdle because it is taking too long", e); } Loading