Loading packages/SystemUI/tests/utils/src/com/android/systemui/SysuiTestCase.java +7 −3 Original line number Diff line number Diff line Loading @@ -271,11 +271,15 @@ public abstract class SysuiTestCase { } protected void waitForIdleSync() { if (isRobolectricTest()) { mRealInstrumentation.waitForIdleSync(); } else { if (mHandler == null) { mHandler = new Handler(Looper.getMainLooper()); } waitForIdleSync(mHandler); } } protected void waitForUiOffloadThread() { Future<?> future = Dependency.get(UiOffloadThread.class).execute(() -> { }); Loading Loading
packages/SystemUI/tests/utils/src/com/android/systemui/SysuiTestCase.java +7 −3 Original line number Diff line number Diff line Loading @@ -271,11 +271,15 @@ public abstract class SysuiTestCase { } protected void waitForIdleSync() { if (isRobolectricTest()) { mRealInstrumentation.waitForIdleSync(); } else { if (mHandler == null) { mHandler = new Handler(Looper.getMainLooper()); } waitForIdleSync(mHandler); } } protected void waitForUiOffloadThread() { Future<?> future = Dependency.get(UiOffloadThread.class).execute(() -> { }); Loading