Home
last modified time | relevance | path

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

12345678910>>...12

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/
DSysuiLifecycleTest.java35 import android.testing.TestableLooper;
36 import android.testing.TestableLooper.RunWithLooper;
68 TestableLooper.get(this).processAllMessages(); in tearDown()
79 TestableLooper.get(this).processAllMessages(); in testAttach()
93 TestableLooper.get(this).processAllMessages(); in testDetach()
96 TestableLooper.get(this).processAllMessages(); in testDetach()
118 TestableLooper.get(this).processAllMessages(); in testStateAfterAttach()
129 TestableLooper.get(this).processAllMessages(); in testStateAfterDetach()
131 TestableLooper.get(this).processAllMessages(); in testStateAfterDetach()
142 TestableLooper.get(this).processAllMessages(); in testStateAfterReattach()
[all …]
DLifecycleFragmentTest.java31 import android.testing.TestableLooper;
32 import android.testing.TestableLooper.RunWithLooper;
58 TestableLooper.get(this).processAllMessages(); in testCreateLifecycle()
70 TestableLooper.get(this).processAllMessages(); in testResumeLifecycle()
82 TestableLooper.get(this).processAllMessages(); in testStartLifecycle()
94 TestableLooper.get(this).processAllMessages(); in testStopLifecycle()
96 TestableLooper.get(this).processAllMessages(); in testStopLifecycle()
108 TestableLooper.get(this).processAllMessages(); in testPauseLifecycle()
110 TestableLooper.get(this).processAllMessages(); in testPauseLifecycle()
122 TestableLooper.get(this).processAllMessages(); in testDestroyLifecycle()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/
DQSSecurityFooterTest.java34 import android.testing.TestableLooper;
35 import android.testing.TestableLooper.RunWithLooper;
82 TestableLooper.get(this).getLooper()); in setUp()
102 TestableLooper.get(this).processAllMessages(); in testUnmanaged()
112 TestableLooper.get(this).processAllMessages(); in testManagedNoOwnerName()
128 TestableLooper.get(this).processAllMessages(); in testManagedOwnerName()
149 TestableLooper.get(this).processAllMessages(); in testManagedDemoMode()
159 TestableLooper.get(this).processAllMessages(); in testNetworkLoggingEnabled()
171 TestableLooper.get(this).processAllMessages(); in testNetworkLoggingEnabled()
184 TestableLooper.get(this).processAllMessages(); in testManagedCACertsInstalled()
[all …]
/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/tests/testables/src/android/testing/
DTestableLooper.java41 public class TestableLooper { class
57 public TestableLooper(Looper l) throws Exception { in TestableLooper() method in TestableLooper
61 private TestableLooper(TestLooperManager wrapper, Looper l) { in TestableLooper() method in TestableLooper
66 private TestableLooper(Looper looper, boolean b) { in TestableLooper() method in TestableLooper
215 private static final Map<Object, TestableLooper> sLoopers = new ArrayMap<>();
221 public static TestableLooper get(Object test) { in get()
232 private final TestableLooper mTestableLooper;
240 mTestableLooper = new TestableLooper(mLooper, false); in LooperFrameworkMethod()
251 public LooperFrameworkMethod(TestableLooper other, FrameworkMethod base) { in LooperFrameworkMethod()
317 mHandlerThread = new HandlerThread(TestableLooper.class.getSimpleName()); in createLooper()
DBaseFragmentTest.java77 TestableLooper.get(this)); in setupFragment()
78 TestableLooper.get(this).runWithLooper(() -> { in setupFragment()
102 TestableLooper.get(this).runWithLooper(() -> mFragments.dispatchDestroy()); in tearDown()
175 TestableLooper.get(this).processAllMessages(); in attachFragmentToWindow()
180 TestableLooper.get(this).processAllMessages(); in detachFragmentToWindow()
190 TestableLooper.get(this).processAllMessages(); in processAllMessages()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/
DNotifBindPipelineTest.java24 import android.testing.TestableLooper;
48 @TestableLooper.RunWithLooper
65 TestableLooper.get(this).getLooper()); in setUp()
84 TestableLooper.get(this).processAllMessages(); in testCallbackCalled()
101 TestableLooper.get(this).processAllMessages(); in testCallbackCancelled()
121 TestableLooper.get(this).processAllMessages(); in testMultipleCallbacks()
126 TestableLooper.get(this).processAllMessages(); in testMultipleCallbacks()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/slice/
DSlicePermissionManagerTest.java27 import android.testing.TestableLooper;
28 import android.testing.TestableLooper.RunWithLooper;
59 TestableLooper.get(this).getLooper(), sliceDir); in testGrant()
80 TestableLooper.get(this).getLooper(), sliceDir); in testBackup()
90 TestableLooper.get(this).processAllMessages(); in testBackup()
99 TestableLooper.get(this).getLooper()); in testBackup()
124 TestableLooper.get(this).getLooper(), sliceDir); in testInvalid()
DPinnedSliceStateTest.java33 import android.testing.TestableLooper;
34 import android.testing.TestableLooper.RunWithLooper;
79 new Handler(TestableLooper.get(this).getLooper())); in setUp()
107 TestableLooper.get(this).processAllMessages(); in testSendPinnedOnPin()
111 TestableLooper.get(this).processAllMessages(); in testSendPinnedOnPin()
174 TestableLooper.get(this).processAllMessages(); in testPinFailed()
178 TestableLooper.get(this).processAllMessages(); in testPinFailed()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
DNotificationListenerTest.java34 import android.testing.TestableLooper;
49 @TestableLooper.RunWithLooper
68 new Handler(TestableLooper.get(this).getLooper())); in setUp()
78 TestableLooper.get(this).processAllMessages(); in testNotificationAddCallsAddNotification()
85 TestableLooper.get(this).processAllMessages(); in testNotificationRemovalCallsRemoveNotification()
92 TestableLooper.get(this).processAllMessages(); in testRankingUpdateCallsNotificationRankingUpdate()
DScrimViewTest.java25 import android.testing.TestableLooper;
26 import android.testing.TestableLooper.RunWithLooper;
59 TestableLooper.get(this).processAllMessages(); in testAttachDetach()
61 TestableLooper.get(this).processAllMessages(); in testAttachDetach()
DStatusBarStateControllerImplTest.kt20 import android.testing.TestableLooper
31 @TestableLooper.RunWithLooper
45 TestableLooper.get(this).runWithLooper { in testChangeState_logged()
DNonPhoneDependencyTest.java23 import android.testing.TestableLooper;
54 @TestableLooper.RunWithLooper(setAsMainLooper = true)
71 new Handler(TestableLooper.get(this).getLooper())); in setUp()
99 TestableLooper.get(this).processAllMessages(); in testNotificationManagementCodeHasNoDependencyOnStatusBarWindowManager()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/carrier/
DQSCarrierTest.java23 import android.testing.TestableLooper;
36 @TestableLooper.RunWithLooper
41 private TestableLooper mTestableLooper;
45 mTestableLooper = TestableLooper.get(this); in setUp()
DQSCarrierGroupControllerTest.java30 import android.testing.TestableLooper;
51 @TestableLooper.RunWithLooper
68 private TestableLooper mTestableLooper;
74 mTestableLooper = TestableLooper.get(this); in setup()
75 Handler handler = new FakeHandler(TestableLooper.get(this).getLooper()); in setup()
100 mActivityStarter, handler, TestableLooper.get(this).getLooper(), in setup()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tiles/
DBatterySaverTileTest.kt21 import android.testing.TestableLooper
22 import android.testing.TestableLooper.RunWithLooper
51 private lateinit var testableLooper: TestableLooper
57 testableLooper = TestableLooper.get(this) in setUp()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/pip/phone/
DPipTouchStateTest.java31 import android.testing.TestableLooper;
32 import android.testing.TestableLooper.RunWithLooper;
96 TestableLooper.get(this).processAllMessages(); in testDoubleTapTimeout_timeoutCallbackCalled()
134 TestableLooper.get(this).processAllMessages(); in testHoverExitTimeout_timeoutCallbackCalled()
141 TestableLooper.get(this).processAllMessages(); in testHoverExitTimeout_timeoutCallbackNotCalled()
153 TestableLooper.get(this).processAllMessages(); in testHoverExitTimeout_timeoutCallbackNotCalled_ifButtonPress()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/power/
DPowerUITest.java42 import android.testing.TestableLooper;
43 import android.testing.TestableLooper.RunWithLooper;
127 TestableLooper.get(this).processAllMessages(); in testSkinWarning_throttlingCritical()
140 TestableLooper.get(this).processAllMessages(); in testSkinWarning_throttlingEmergency()
153 TestableLooper.get(this).processAllMessages(); in testUsbAlarm_throttlingCritical()
165 TestableLooper.get(this).processAllMessages(); in testUsbAlarm_throttlingEmergency()
177 TestableLooper.get(this).processAllMessages(); in testSettingOverrideConfig_enableSkinTemperatureWarning()
190 TestableLooper.get(this).processAllMessages(); in testSettingOverrideConfig_enableUsbTemperatureAlarm()
203 TestableLooper.get(this).processAllMessages(); in testSettingOverrideConfig_disableSkinTemperatureWarning()
216 TestableLooper.get(this).processAllMessages(); in testSettingOverrideConfig_disableUsbTemperatureAlarm()
[all …]
/frameworks/base/packages/CarSystemUI/tests/src/com/android/systemui/car/voicerecognition/
DConnectedDeviceVoiceRecognitionNotifierTest.java31 import android.testing.TestableLooper;
42 @TestableLooper.RunWithLooper
53 TestableLooper testableLooper = TestableLooper.get(this); in setUp()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/customize/
DTileAdapterTest.java22 import android.testing.TestableLooper;
23 import android.testing.TestableLooper.RunWithLooper;
46 TestableLooper.get(this).runWithLooper(() -> mTileAdapter = in setup()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/wrapper/
DNotificationViewWrapperTest.java23 import android.testing.TestableLooper;
24 import android.testing.TestableLooper.RunWithLooper;
55 TestableLooper.get(this)); in setup()
DNotificationCustomViewWrapperTest.java20 import android.testing.TestableLooper;
21 import android.testing.TestableLooper.RunWithLooper;
50 TestableLooper.get(this)); in setUp()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DHeadsUpManagerTest.java27 import android.testing.TestableLooper;
40 @TestableLooper.RunWithLooper
81 TestableLooper.get(this).processMessages(2); in testShowNotification_autoDismissesWithAccessibilityTimeout()
DLocationControllerImplTest.java27 import android.testing.TestableLooper;
28 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/
DExpandHelperTest.java26 import android.testing.TestableLooper;
27 import android.testing.TestableLooper.RunWithLooper;
59 TestableLooper.get(this)); in setUp()

12345678910>>...12