Home
last modified time | relevance | path

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

12345678910>>...21

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/
DKeyguardViewMediatorTest.java45 import android.testing.TestableLooper;
99 @TestableLooper.RunWithLooper
177 @TestableLooper.RunWithLooper(setAsMainLooper = true)
182 TestableLooper.get(this).processAllMessages(); in testOnStartedWakingUp_whileSleeping_ifWakeAndUnlocking_doesNotShowKeyguard()
185 TestableLooper.get(this).processAllMessages(); in testOnStartedWakingUp_whileSleeping_ifWakeAndUnlocking_doesNotShowKeyguard()
190 TestableLooper.get(this).processAllMessages(); in testOnStartedWakingUp_whileSleeping_ifWakeAndUnlocking_doesNotShowKeyguard()
197 @TestableLooper.RunWithLooper(setAsMainLooper = true)
202 TestableLooper.get(this).processAllMessages(); in testOnStartedWakingUp_whileSleeping_ifNotWakeAndUnlocking_showsKeyguard()
205 TestableLooper.get(this).processAllMessages(); in testOnStartedWakingUp_whileSleeping_ifNotWakeAndUnlocking_showsKeyguard()
210 TestableLooper.get(this).processAllMessages(); in testOnStartedWakingUp_whileSleeping_ifNotWakeAndUnlocking_showsKeyguard()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ims/
DImsTestBase.java24 import android.testing.TestableLooper;
43 protected List<TestableLooper> mTestableLoopers = new ArrayList<>();
44 protected TestableLooper mTestableLooper;
54 mTestableLooper = TestableLooper.get(ImsTestBase.this); in setUp()
60 for (TestableLooper looper : mTestableLoopers) { in tearDown()
63 TestableLooper.remove(ImsTestBase.this); in tearDown()
86 public void monitorTestableLooper(TestableLooper looper) { in monitorTestableLooper()
96 public void unmonitorTestableLooper(TestableLooper looper) { in unmonitorTestableLooper()
110 for (TestableLooper looper : mTestableLoopers) looper.processAllMessages(); in processAllMessages()
121 for (TestableLooper looper : mTestableLoopers) { in areAllTestableLoopersIdle()
/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 …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/external/
DTileRequestDialogTest.kt21 import android.testing.TestableLooper
37 @TestableLooper.RunWithLooper
50 TestableLooper.get(this).runWithLooper { in setUp()
98 TestableLooper.get(this).processAllMessages() in setTileData_hasCorrectLabel()
113 TestableLooper.get(this).processAllMessages() in setTileData_hasIcon()
127 TestableLooper.get(this).processAllMessages() in setTileData_nullIcon_hasIcon()
142 TestableLooper.get(this).processAllMessages() in setTileData_hasNoStateDescription()
158 TestableLooper.get(this).processAllMessages() in setTileData_tileNotClickable()
175 TestableLooper.get(this).processAllMessages() in setTileData_tileHasCorrectContentDescription()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/biometrics/
DAuthBiometricFingerprintAndFaceViewTest.kt22 import android.testing.TestableLooper
23 import android.testing.TestableLooper.RunWithLooper
72 TestableLooper.get(this).moveTimeForward(1000) in fingerprintSuccessDoesNotRequireExplicitConfirmation()
92 TestableLooper.get(this).moveTimeForward(1000) in faceSuccessRequiresExplicitConfirmation()
109 TestableLooper.get(this).moveTimeForward(1000) in ignoresFaceErrors()
115 override fun waitForIdleSync() = TestableLooper.get(this).processAllMessages()
DAuthBiometricFingerprintViewTest.kt21 import android.testing.TestableLooper
22 import android.testing.TestableLooper.RunWithLooper
79 TestableLooper.get(this).moveTimeForward(1000) in testOnAuthenticationSucceeded_noConfirmationRequired_sendsActionAuthenticated()
90 TestableLooper.get(this).moveTimeForward(1000) in testOnAuthenticationSucceeded_confirmationRequired_updatesDialogContents()
112 TestableLooper.get(this).moveTimeForward(1000) in testPositiveButton_sendsActionAuthenticated()
123 TestableLooper.get(this).moveTimeForward(1000) in testNegativeButton_beforeAuthentication_sendsActionButtonNegative()
136 TestableLooper.get(this).moveTimeForward(1000) in testCancelButton_whenPendingConfirmation_sendsActionUserCanceled()
145 TestableLooper.get(this).moveTimeForward(1000) in testTryAgainButton_sendsActionTryAgain()
156 TestableLooper.get(this).moveTimeForward(1000) in testOnErrorSendsActionError()
169 TestableLooper.get(this).moveTimeForward(1000) in testOnErrorShowsMessage()
[all …]
/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/tests/testables/src/android/testing/
DTestableLooper.java42 public class TestableLooper { class
74 public TestableLooper(Looper l) throws Exception { in TestableLooper() method in TestableLooper
78 private TestableLooper(TestLooperManager wrapper, Looper l) { in TestableLooper() method in TestableLooper
83 private TestableLooper(Looper looper, boolean b) { in TestableLooper() method in TestableLooper
259 private static final Map<Object, TestableLooper> sLoopers = new ArrayMap<>();
265 public static TestableLooper get(Object test) { in get()
276 private final TestableLooper mTestableLooper;
284 mTestableLooper = new TestableLooper(mLooper, false); in LooperFrameworkMethod()
295 public LooperFrameworkMethod(TestableLooper other, FrameworkMethod base) { in LooperFrameworkMethod()
361 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/services/tests/mockingservicestests/src/com/android/server/pm/
DPackageManagerServiceHibernationTests.kt26 import android.testing.TestableLooper
27 import android.testing.TestableLooper.RunWithLooper
75 .thenReturn(Handler(TestableLooper.get(this).looper)) in setup()
105 TestableLooper.get(this).processAllMessages() in testExitForceStopExitsHibernation()
112 TestableLooper.get(this).processAllMessages() in testExitForceStopExitsHibernation()
130 TestableLooper.get(this).processAllMessages() in testExitForceStop_nonExistingAppHibernationManager_doesNotThrowException()
138 TestableLooper.get(this).processAllMessages() in testExitForceStop_nonExistingAppHibernationManager_doesNotThrowException()
/frameworks/base/services/tests/servicestests/src/com/android/server/
DDockObserverTest.java26 import android.testing.TestableLooper;
41 @TestableLooper.RunWithLooper
57 TestableLooper.get(this).processAllMessages(); in updateExtconDockState()
99 TestableLooper.get(this).processAllMessages(); in testDockIntentBroadcast_onlyAfterBootReady()
151 TestableLooper.get(this).processAllMessages(); in testDockIntentBroadcast_deviceNotProvisioned()
157 TestableLooper.get(this).processAllMessages(); in testDockIntentBroadcast_deviceNotProvisioned()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/
DQuickQSPanelTest.kt4 import android.testing.TestableLooper
20 @TestableLooper.RunWithLooper
26 private lateinit var testableLooper: TestableLooper
35 testableLooper = TestableLooper.get(this) in setup()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/power/
DPowerUITest.java41 import android.testing.TestableLooper;
42 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/tests/testables/tests/src/android/testing/
DTestableLooperTest.java40 import android.testing.TestableLooper.MessageHandler;
41 import android.testing.TestableLooper.RunWithLooper;
48 private TestableLooper mTestableLooper;
52 mTestableLooper = TestableLooper.get(this); in setup()
139 TestableLooper testableLooper = new TestableLooper(Looper.getMainLooper()); in testMainLooper()
174 TestableLooper testableLooper = new TestableLooper(Looper.getMainLooper()); in testCorrectLooperExecution()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
DKeyguardStatusBarViewTest.java22 import android.testing.TestableLooper;
37 @TestableLooper.RunWithLooper
45 TestableLooper.get(this).runWithLooper(() -> { in setup()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tiles/
DOneHandedModeTileTest.java26 import android.testing.TestableLooper;
48 @TestableLooper.RunWithLooper(setAsMainLooper = true)
69 private TestableLooper mTestableLooper;
75 mTestableLooper = TestableLooper.get(this); in setUp()
DNfcTileTest.java28 import android.testing.TestableLooper;
50 @TestableLooper.RunWithLooper(setAsMainLooper = true)
74 private TestableLooper mTestableLooper;
80 mTestableLooper = TestableLooper.get(this); in setUp()
DDataSaverTileTest.kt21 import android.testing.TestableLooper
46 @TestableLooper.RunWithLooper(setAsMainLooper = true)
62 private lateinit var testableLooper: TestableLooper
68 testableLooper = TestableLooper.get(this) in setUp()
DMicrophoneToggleTileTest.kt21 import android.testing.TestableLooper
47 @TestableLooper.RunWithLooper(setAsMainLooper = true)
71 private lateinit var testableLooper: TestableLooper
78 testableLooper = TestableLooper.get(this) in setUp()
DColorCorrectionTileTest.java30 import android.testing.TestableLooper;
55 @TestableLooper.RunWithLooper(setAsMainLooper = true)
74 private TestableLooper mTestableLooper;
83 mTestableLooper = TestableLooper.get(this); in setUp()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/scrim/
DScrimViewTest.java26 import android.testing.TestableLooper;
27 import android.testing.TestableLooper.RunWithLooper;
59 TestableLooper.get(this).processAllMessages(); in testAttachDetach()
61 TestableLooper.get(this).processAllMessages(); in testAttachDetach()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/customize/
DTileAdapterTest.java21 import android.testing.TestableLooper;
22 import android.testing.TestableLooper.RunWithLooper;
51 TestableLooper.get(this).runWithLooper(() -> mTileAdapter = in setup()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/wrapper/
DNotificationCustomViewWrapperTest.java20 import android.testing.TestableLooper;
21 import android.testing.TestableLooper.RunWithLooper;
50 TestableLooper.get(this)); in setUp()

12345678910>>...21