Home
last modified time | relevance | path

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

1234

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
DNotificationListenerTest.java33 import android.testing.TestableLooper;
48 @TestableLooper.RunWithLooper
84 TestableLooper.get(this).processAllMessages(); in testNotificationAddCallsAddNotification()
91 TestableLooper.get(this).processAllMessages(); in testPostNotificationRemovesKeyKeptForRemoteInput()
99 TestableLooper.get(this).processAllMessages(); in testNotificationUpdateCallsUpdateNotification()
106 TestableLooper.get(this).processAllMessages(); in testNotificationRemovalCallsRemoveNotification()
113 TestableLooper.get(this).processAllMessages(); in testRankingUpdateCallsNotificationRankingUpdate()
DAppOpsListenerTest.java28 import android.testing.TestableLooper;
41 @TestableLooper.RunWithLooper
84 TestableLooper.get(this).processAllMessages(); in testInformEntryMgrOnAppOpsChange()
94 TestableLooper.get(this).processAllMessages(); in testInformFscOnAppOpsChange()
DNotificationMenuRowTest.java27 import android.testing.TestableLooper;
28 import android.testing.TestableLooper.RunWithLooper;
56 TestableLooper.get(this).processAllMessages(); in testAttachDetach()
58 TestableLooper.get(this).processAllMessages(); in testAttachDetach()
DScrimViewTest.java33 import android.testing.TestableLooper;
34 import android.testing.TestableLooper.RunWithLooper;
65 TestableLooper.get(this).processAllMessages(); in testAttachDetach()
67 TestableLooper.get(this).processAllMessages(); in testAttachDetach()
DNotificationLoggerTest.java35 import android.testing.TestableLooper;
55 @TestableLooper.RunWithLooper(setAsMainLooper = true)
115 TestableLooper.get(this).processAllMessages(); in testOnChildLocationsChangedReportsVisibilityChanged()
125 TestableLooper.get(this).processAllMessages(); in testOnChildLocationsChangedReportsVisibilityChanged()
137 TestableLooper.get(this).processAllMessages(); in testStoppingNotificationLoggingReportsCurrentNotifications()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/
DQSSecurityFooterTest.java32 import android.testing.TestableLooper;
33 import android.testing.TestableLooper.RunWithLooper;
98 TestableLooper.get(this).processAllMessages(); in testUnmanaged()
108 TestableLooper.get(this).processAllMessages(); in testManagedNoOwnerName()
124 TestableLooper.get(this).processAllMessages(); in testManagedOwnerName()
145 TestableLooper.get(this).processAllMessages(); in testManagedDemoMode()
155 TestableLooper.get(this).processAllMessages(); in testNetworkLoggingEnabled()
167 TestableLooper.get(this).processAllMessages(); in testNetworkLoggingEnabled()
180 TestableLooper.get(this).processAllMessages(); in testManagedCACertsInstalled()
192 TestableLooper.get(this).processAllMessages(); in testManagedOneVpnEnabled()
[all …]
DQSDetailTest.java28 import android.testing.TestableLooper;
29 import android.testing.TestableLooper.RunWithLooper;
55 private TestableLooper mTestableLooper;
59 mTestableLooper = TestableLooper.get(this); in setup()
DQSPanelTest.java24 import android.testing.TestableLooper;
25 import android.testing.TestableLooper.RunWithLooper;
50 TestableLooper.get(this).runWithLooper(() -> { in setup()
DQSFooterImplTest.java25 import android.testing.TestableLooper;
26 import android.testing.TestableLooper.RunWithLooper;
57 TestableLooper.get(this).runWithLooper( in setup()
/frameworks/base/tests/testables/src/android/testing/
DTestableLooper.java40 public class TestableLooper { class
50 public TestableLooper(Looper l) throws Exception { in TestableLooper() method in TestableLooper
54 private TestableLooper(TestLooperManager wrapper, Looper l) { in TestableLooper() method in TestableLooper
59 private TestableLooper(Looper looper, boolean b) { in TestableLooper() method in TestableLooper
208 private static final Map<Object, TestableLooper> sLoopers = new ArrayMap<>();
214 public static TestableLooper get(Object test) { in get()
221 private final TestableLooper mTestableLooper;
229 mTestableLooper = new TestableLooper(mLooper, false); in LooperFrameworkMethod()
237 public LooperFrameworkMethod(TestableLooper other, FrameworkMethod base) { in LooperFrameworkMethod()
303 mHandlerThread = new HandlerThread(TestableLooper.class.getSimpleName()); in createLooper()
DBaseFragmentTest.java74 TestableLooper.get(this)); in setupFragment()
75 TestableLooper.get(this).runWithLooper(() -> { in setupFragment()
99 TestableLooper.get(this).runWithLooper(() -> mFragments.dispatchDestroy()); in tearDown()
172 TestableLooper.get(this).processAllMessages(); in attachFragmentToWindow()
177 TestableLooper.get(this).processAllMessages(); in detachFragmentToWindow()
187 TestableLooper.get(this).processAllMessages(); in processAllMessages()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DBluetoothControllerImplTest.java30 import android.testing.TestableLooper;
31 import android.testing.TestableLooper.RunWithLooper;
57 private TestableLooper mTestableLooper;
64 mTestableLooper = TestableLooper.get(this); in setup()
109 TestableLooper mainLooper = new TestableLooper(Looper.getMainLooper()); in testAsyncBondState()
130 TestableLooper mainLooper = new TestableLooper(Looper.getMainLooper()); in testAsyncConnectionState()
153 TestableLooper mainLooper = new TestableLooper(Looper.getMainLooper()); in testNullAsync_DoesNotCrash()
DLocationControllerImplTest.java25 import android.testing.TestableLooper;
26 import android.testing.TestableLooper.RunWithLooper;
47 TestableLooper.get(this).getLooper())); in setup()
68 TestableLooper.get(this).processAllMessages(); in testRemoveSelfActive_DoesNotCrash()
82 TestableLooper.get(this).processAllMessages(); in testRemoveSelfSettings_DoesNotCrash()
DIconLoggerImplTest.java37 import android.testing.TestableLooper;
38 import android.testing.TestableLooper.MessageHandler;
39 import android.testing.TestableLooper.RunWithLooper;
57 private TestableLooper mTestableLooper;
64 mTestableLooper = TestableLooper.get(this); in setup()
DKeyButtonViewTest.java26 import android.testing.TestableLooper;
27 import android.testing.TestableLooper.RunWithLooper;
53 TestableLooper.get(this).runWithLooper(() -> in setup()
/frameworks/base/tests/testables/tests/src/android/testing/
DTestableLooperTest.java36 import android.testing.TestableLooper.MessageHandler;
37 import android.testing.TestableLooper.RunWithLooper;
44 private TestableLooper mTestableLooper;
48 mTestableLooper = TestableLooper.get(this); in setup()
135 TestableLooper testableLooper = new TestableLooper(Looper.getMainLooper()); in testMainLooper()
170 TestableLooper testableLooper = new TestableLooper(Looper.getMainLooper()); in testCorrectLooperExecution()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/slice/
DSlicePermissionManagerTest.java27 import android.testing.TestableLooper;
28 import android.testing.TestableLooper.RunWithLooper;
54 TestableLooper.get(this).getLooper(), sliceDir); in testGrant()
71 TestableLooper.get(this).getLooper(), sliceDir); in testBackup()
81 TestableLooper.get(this).processAllMessages(); in testBackup()
90 TestableLooper.get(this).getLooper()); in testBackup()
DPinnedSliceStateTest.java31 import android.testing.TestableLooper;
32 import android.testing.TestableLooper.RunWithLooper;
74 … when(mSliceService.getHandler()).thenReturn(new Handler(TestableLooper.get(this).getLooper())); in setup()
102 TestableLooper.get(this).processAllMessages(); in testSendPinnedOnPin()
106 TestableLooper.get(this).processAllMessages(); in testSendPinnedOnPin()
/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/
DKeyguardUpdateMonitorTest.java23 import android.testing.TestableLooper;
24 import android.testing.TestableLooper.RunWithLooper;
47 private TestableLooper mTestableLooper;
51 mTestableLooper = TestableLooper.get(this); in setup()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/customize/
DTileQueryHelperTest.java28 import android.testing.TestableLooper;
29 import android.testing.TestableLooper.RunWithLooper;
50 private TestableLooper mBGLooper;
57 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/car/
DCarQsFragmentTest.java23 import android.testing.TestableLooper;
24 import android.testing.TestableLooper.RunWithLooper;
63 TestableLooper.get(this).getLooper()); in initDependencies()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
DAutoTileManagerTest.java25 import android.testing.TestableLooper;
26 import android.testing.TestableLooper.RunWithLooper;
54 Handler.createAsync(TestableLooper.get(this).getLooper())); in setUp()
DKeyguardPresentationTest.java21 import android.testing.TestableLooper;
34 @TestableLooper.RunWithLooper(setAsMainLooper = true)
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/leak/
DGarbageMonitorTest.java29 import android.testing.TestableLooper;
30 import android.testing.TestableLooper.RunWithLooper;
54 TestableLooper.get(this).getLooper(), in setup()

1234