Home
last modified time | relevance | path

Searched refs:TestableLooper (Results 1 – 23 of 23) sorted by relevance

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DBluetoothControllerImplTest.java29 import android.testing.TestableLooper;
30 import android.testing.TestableLooper.RunWithLooper;
55 private TestableLooper mTestableLooper;
62 mTestableLooper = TestableLooper.get(this); in setup()
105 TestableLooper mainLooper = new TestableLooper(Looper.getMainLooper()); in testAsyncBondState()
126 TestableLooper mainLooper = new TestableLooper(Looper.getMainLooper()); in testAsyncConnectionState()
DLocationControllerImplTest.java25 import android.testing.TestableLooper;
26 import android.testing.TestableLooper.RunWithLooper;
45 TestableLooper.get(this).getLooper())); in setup()
66 TestableLooper.get(this).processAllMessages(); in testRemoveSelfActive_DoesNotCrash()
80 TestableLooper.get(this).processAllMessages(); in testRemoveSelfSettings_DoesNotCrash()
DKeyButtonViewTest.java26 import android.testing.TestableLooper;
27 import android.testing.TestableLooper.RunWithLooper;
53 TestableLooper.get(this).runWithLooper(() -> in setup()
DZenModeControllerImplTest.java25 import android.testing.TestableLooper.RunWithLooper;
/frameworks/base/tests/testables/src/android/testing/
DTestableLooper.java40 public class TestableLooper { class
52 public TestableLooper(Looper l) throws Exception { in TestableLooper() method in TestableLooper
56 private TestableLooper(TestLooperManager wrapper, Looper l) throws Exception { in TestableLooper() method in TestableLooper
61 private TestableLooper(Looper looper, boolean b) throws Exception { in TestableLooper() method in TestableLooper
207 private static final Map<Object, TestableLooper> sLoopers = new ArrayMap<>();
209 public static TestableLooper get(Object test) { in get()
216 private final TestableLooper mTestableLooper;
224 mTestableLooper = new TestableLooper(mLooper, false); in LooperFrameworkMethod()
232 public LooperFrameworkMethod(TestableLooper other, FrameworkMethod base) { in LooperFrameworkMethod()
296 mHandlerThread = new HandlerThread(TestableLooper.class.getSimpleName()); in createLooper()
DBaseFragmentTest.java74 TestableLooper.get(this)); in setupFragment()
75 TestableLooper.get(this).runWithLooper(() -> { in setupFragment()
95 TestableLooper.get(this).runWithLooper(() -> mFragments.dispatchDestroy()); in tearDown()
168 TestableLooper.get(this).processAllMessages(); in attachFragmentToWindow()
173 TestableLooper.get(this).processAllMessages(); in detachFragmentToWindow()
183 TestableLooper.get(this).processAllMessages(); in processAllMessages()
DAndroidTestingRunner.java21 import android.testing.TestableLooper.LooperFrameworkMethod;
22 import android.testing.TestableLooper.RunWithLooper;
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
DNotificationMenuRowTest.java21 import android.testing.TestableLooper;
22 import android.testing.TestableLooper.RunWithLooper;
47 TestableLooper.get(this).processAllMessages(); in testAttachDetach()
49 TestableLooper.get(this).processAllMessages(); in testAttachDetach()
/frameworks/base/tests/testables/tests/src/android/testing/
DTestableLooperTest.java34 import android.testing.TestableLooper.MessageHandler;
35 import android.testing.TestableLooper.RunWithLooper;
41 private TestableLooper mTestableLooper;
45 mTestableLooper = TestableLooper.get(this); in setup()
132 TestableLooper testableLooper = new TestableLooper(Looper.getMainLooper()); in testMainLooper()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/customize/
DTileQueryHelperTest.java29 import android.testing.TestableLooper;
30 import android.testing.TestableLooper.RunWithLooper;
43 private TestableLooper mBGLooper;
48 mBGLooper = TestableLooper.get(this); in setup()
DTileAdapterTest.java23 import android.testing.TestableLooper;
24 import android.testing.TestableLooper.RunWithLooper;
44 TestableLooper.get(this).runWithLooper(() -> mTileAdapter = new TileAdapter(mContext)); in setup()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/
DQSPanelTest.java24 import android.testing.TestableLooper;
25 import android.testing.TestableLooper.RunWithLooper;
51 TestableLooper.get(this).runWithLooper(() -> { in setup()
DQSFooterTest.java25 import android.testing.TestableLooper;
26 import android.testing.TestableLooper.RunWithLooper;
56 TestableLooper.get(this).runWithLooper(() -> { in setup()
DQSDetailTest.java30 import android.testing.TestableLooper;
31 import android.testing.TestableLooper.RunWithLooper;
57 private TestableLooper mTestableLooper;
61 mTestableLooper = TestableLooper.get(this); in setup()
DQSFragmentTest.java40 import android.testing.TestableLooper;
41 import android.testing.TestableLooper.RunWithLooper;
76 TestableLooper.get(this).getLooper()); in addLeakCheckDependencies()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/external/
DTileServicesTest.java32 import android.testing.TestableLooper;
33 import android.testing.TestableLooper.RunWithLooper;
55 TestableLooper.get(this).setAsMainLooper(); in setUp()
65 TestableLooper.get(this).processAllMessages(); in tearDown()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tileimpl/
DQSTileImplTest.java35 import android.testing.TestableLooper;
36 import android.testing.TestableLooper.RunWithLooper;
56 private TestableLooper mTestableLooper;
64 mTestableLooper = TestableLooper.get(this); in setup()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
DStatusBarTest.java54 import android.testing.TestableLooper;
55 import android.testing.TestableLooper.MessageHandler;
56 import android.testing.TestableLooper.RunWithLooper;
138 TestableLooper.get(this).setMessageHandler(new MessageHandler() { in setup()
347 TestableLooper.get(this).processAllMessages(); in testPanelOpenForPeek()
366 TestableLooper.get(this).processAllMessages(); in testPanelOpenAndClear()
385 TestableLooper.get(this).processAllMessages(); in testPanelOpenAndNoClear()
DStatusBarIconControllerTest.java23 import android.testing.TestableLooper.RunWithLooper;
DNavigationBarFragmentTest.java36 import android.testing.TestableLooper.RunWithLooper;
DCollapsedStatusBarFragmentTest.java34 import android.testing.TestableLooper.RunWithLooper;
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/plugins/
DPluginManagerTest.java33 import android.testing.TestableLooper;
34 import android.testing.TestableLooper.RunWithLooper;
69 TestableLooper.get(this).getLooper()); in setup()
/frameworks/base/services/tests/notification/src/com/android/server/notification/
DNotificationManagerServiceTest.java60 import android.testing.TestableLooper;
61 import android.testing.TestableLooper.RunWithLooper;
91 private TestableLooper mTestableLooper;
145 mTestableLooper = TestableLooper.get(this); in setUp()