Loading packages/SystemUI/tests/src/com/android/systemui/qs/QSFragmentTest.java +2 −0 Original line number Diff line number Diff line Loading @@ -32,6 +32,7 @@ import android.testing.AndroidTestingRunner; import com.android.systemui.SysuiBaseFragmentTest; import com.android.systemui.statusbar.phone.StatusBarIconController; import com.android.systemui.statusbar.policy.Clock; import com.android.systemui.statusbar.policy.UserSwitcherController; import android.testing.LayoutInflaterBuilder; import android.testing.TestableLooper; Loading Loading @@ -64,6 +65,7 @@ public class QSFragmentTest extends SysuiBaseFragmentTest { FrameLayout.class) .replace("TextClock", View.class) .replace(CarrierText.class, View.class) .replace(Clock.class, View.class) .build()); mDependency.injectTestDependency(Dependency.BG_LOOPER, Loading tests/testables/src/android/testing/BaseFragmentTest.java +2 −2 Original line number Diff line number Diff line Loading @@ -161,12 +161,12 @@ public abstract class BaseFragmentTest { protected void attachFragmentToWindow() { ViewUtils.attachView(mView); TestableLooper.get(this).processMessages(1); TestableLooper.get(this).processAllMessages(); } protected void detachFragmentToWindow() { ViewUtils.detachView(mView); TestableLooper.get(this).processMessages(1); TestableLooper.get(this).processAllMessages(); } protected void destroyFragments() { Loading Loading
packages/SystemUI/tests/src/com/android/systemui/qs/QSFragmentTest.java +2 −0 Original line number Diff line number Diff line Loading @@ -32,6 +32,7 @@ import android.testing.AndroidTestingRunner; import com.android.systemui.SysuiBaseFragmentTest; import com.android.systemui.statusbar.phone.StatusBarIconController; import com.android.systemui.statusbar.policy.Clock; import com.android.systemui.statusbar.policy.UserSwitcherController; import android.testing.LayoutInflaterBuilder; import android.testing.TestableLooper; Loading Loading @@ -64,6 +65,7 @@ public class QSFragmentTest extends SysuiBaseFragmentTest { FrameLayout.class) .replace("TextClock", View.class) .replace(CarrierText.class, View.class) .replace(Clock.class, View.class) .build()); mDependency.injectTestDependency(Dependency.BG_LOOPER, Loading
tests/testables/src/android/testing/BaseFragmentTest.java +2 −2 Original line number Diff line number Diff line Loading @@ -161,12 +161,12 @@ public abstract class BaseFragmentTest { protected void attachFragmentToWindow() { ViewUtils.attachView(mView); TestableLooper.get(this).processMessages(1); TestableLooper.get(this).processAllMessages(); } protected void detachFragmentToWindow() { ViewUtils.detachView(mView); TestableLooper.get(this).processMessages(1); TestableLooper.get(this).processAllMessages(); } protected void destroyFragments() { Loading