Home
last modified time | relevance | path

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

123456789

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/
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 …]
DSysuiLifecycleTest.java33 import android.testing.TestableLooper;
34 import android.testing.TestableLooper.RunWithLooper;
60 TestableLooper.get(this).processAllMessages(); in testAttach()
67 TestableLooper.get(this).processAllMessages(); in testAttach()
78 TestableLooper.get(this).processAllMessages(); in testDetach()
81 TestableLooper.get(this).processAllMessages(); in testDetach()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/
DQSSecurityFooterTest.java31 import android.testing.TestableLooper;
32 import android.testing.TestableLooper.RunWithLooper;
79 TestableLooper.get(this).getLooper()); in setUp()
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()
[all …]
DQSDetailTest.java27 import android.testing.TestableLooper;
28 import android.testing.TestableLooper.RunWithLooper;
56 private TestableLooper mTestableLooper;
60 mTestableLooper = TestableLooper.get(this); in setup()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DBluetoothControllerImplTest.java32 import android.testing.TestableLooper;
33 import android.testing.TestableLooper.RunWithLooper;
61 private TestableLooper mTestableLooper;
68 mTestableLooper = TestableLooper.get(this); in setup()
114 TestableLooper mainLooper = new TestableLooper(Looper.getMainLooper()); in testAsyncBondState()
135 TestableLooper mainLooper = new TestableLooper(Looper.getMainLooper()); in testAsyncConnectionState()
158 TestableLooper mainLooper = new TestableLooper(Looper.getMainLooper()); in testNullAsync_DoesNotCrash()
222 TestableLooper mainLooper = new TestableLooper(Looper.getMainLooper()); in testOnACLConnectionStateChange_updatesBluetoothStateOnConnection()
DLocationControllerImplTest.java24 import android.testing.TestableLooper;
25 import android.testing.TestableLooper.RunWithLooper;
47 TestableLooper.get(this).getLooper())); in setup()
69 TestableLooper.get(this).processAllMessages(); in testRemoveSelfActive_DoesNotCrash()
84 TestableLooper.get(this).processAllMessages(); in testRemoveSelfSettings_DoesNotCrash()
DHotspotControllerImplTest.java32 import android.testing.TestableLooper;
50 @TestableLooper.RunWithLooper
62 private TestableLooper mLooper;
67 mLooper = TestableLooper.get(this); in setUp()
DHeadsUpManagerTest.java27 import android.testing.TestableLooper;
40 @TestableLooper.RunWithLooper
81 TestableLooper.get(this).processMessages(2); in testShowNotification_autoDismissesWithAccessibilityTimeout()
/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()
248 public LooperFrameworkMethod(TestableLooper other, FrameworkMethod base) { in LooperFrameworkMethod()
314 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/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/packages/SystemUI/tests/src/com/android/systemui/statusbar/
DNotificationListenerTest.java33 import android.testing.TestableLooper;
51 @TestableLooper.RunWithLooper
75 new Handler(TestableLooper.get(this).getLooper())); in setUp()
88 TestableLooper.get(this).processAllMessages(); in testNotificationAddCallsAddNotification()
96 TestableLooper.get(this).processAllMessages(); in testNotificationUpdateCallsUpdateNotification()
103 TestableLooper.get(this).processAllMessages(); in testNotificationRemovalCallsRemoveNotification()
110 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()
DNonPhoneDependencyTest.java23 import android.testing.TestableLooper;
55 @TestableLooper.RunWithLooper
72 new Handler(TestableLooper.get(this).getLooper())); in setUp()
102 TestableLooper.get(this).processAllMessages(); in testNotificationManagementCodeHasNoDependencyOnStatusBarWindowManager()
/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.java32 import android.testing.TestableLooper;
33 import android.testing.TestableLooper.RunWithLooper;
78 new Handler(TestableLooper.get(this).getLooper())); in setUp()
106 TestableLooper.get(this).processAllMessages(); in testSendPinnedOnPin()
110 TestableLooper.get(this).processAllMessages(); in testSendPinnedOnPin()
173 TestableLooper.get(this).processAllMessages(); in testPinFailed()
177 TestableLooper.get(this).processAllMessages(); in testPinFailed()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/power/
DPowerUITest.java39 import android.testing.TestableLooper;
40 import android.testing.TestableLooper.RunWithLooper;
106 TestableLooper.get(this).processAllMessages(); in testSkinWarning_throttlingCritical()
119 TestableLooper.get(this).processAllMessages(); in testSkinWarning_throttlingEmergency()
132 TestableLooper.get(this).processAllMessages(); in testUsbAlarm_throttlingCritical()
144 TestableLooper.get(this).processAllMessages(); in testUsbAlarm_throttlingEmergency()
156 TestableLooper.get(this).processAllMessages(); in testSettingOverrideConfig_enableSkinTemperatureWarning()
169 TestableLooper.get(this).processAllMessages(); in testSettingOverrideConfig_enableUsbTemperatureAlarm()
182 TestableLooper.get(this).processAllMessages(); in testSettingOverrideConfig_disableSkinTemperatureWarning()
195 TestableLooper.get(this).processAllMessages(); in testSettingOverrideConfig_disableUsbTemperatureAlarm()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/
DKeyguardPresentationTest.java21 import android.testing.TestableLooper;
35 @TestableLooper.RunWithLooper
39 com.android.systemui.util.Assert.sMainLooper = TestableLooper.get(this).getLooper(); in testInflation_doesntCrash()
DKeyguardStatusViewTest.java23 import android.testing.TestableLooper;
24 import android.testing.TestableLooper.RunWithLooper;
53 Assert.sMainLooper = TestableLooper.get(this).getLooper(); 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;
45 TestableLooper.get(this).runWithLooper(() -> mTileAdapter = new TileAdapter(mContext)); in setup()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/classifier/
DFalsingManagerProxyTest.java27 import android.testing.TestableLooper;
45 @TestableLooper.RunWithLooper
53 private TestableLooper mTestableLooper;
58 mTestableLooper = TestableLooper.get(this); in setup()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/wakelock/
DKeepAwakeAnimationListenerTest.java26 import android.testing.TestableLooper;
40 @TestableLooper.RunWithLooper
48 Assert.sMainLooper = TestableLooper.get(this).getLooper(); in setup()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/
DExpandHelperTest.java26 import android.testing.TestableLooper;
27 import android.testing.TestableLooper.RunWithLooper;
51 Assert.sMainLooper = TestableLooper.get(this).getLooper(); 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;
51 Assert.sMainLooper = TestableLooper.get(this).getLooper(); in setup()
DNotificationCustomViewWrapperTest.java20 import android.testing.TestableLooper;
21 import android.testing.TestableLooper.RunWithLooper;
46 com.android.systemui.util.Assert.sMainLooper = TestableLooper.get(this).getLooper(); in setUp()

123456789