Home
last modified time | relevance | path

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

12345678910>>...21

/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/
H A DKeyguardViewMediatorTest.java59 import android.testing.TestableLooper;
135 @TestableLooper.RunWithLooper
247 TestableLooper.get(this).processAllMessages(); in onLockdown_showKeyguard_evenIfKeyguardIsNotEnabledExternally()
256 TestableLooper.get(this).processAllMessages(); in onLockdown_showKeyguard_evenIfKeyguardIsNotEnabledExternally()
266 TestableLooper.get(this).processAllMessages(); in doNotHideKeyguard_whenLockdown_onKeyguardNotEnabledExternally()
276 TestableLooper.get(this).processAllMessages(); in doNotHideKeyguard_whenLockdown_onKeyguardNotEnabledExternally()
293 TestableLooper.get(this).processAllMessages(); in testOnStartedWakingUp_whileSleeping_ifWakeAndUnlocking_doesNotShowKeyguard()
296 TestableLooper.get(this).processAllMessages(); in testOnStartedWakingUp_whileSleeping_ifWakeAndUnlocking_doesNotShowKeyguard()
301 TestableLooper.get(this).processAllMessages(); in testOnStartedWakingUp_whileSleeping_ifWakeAndUnlocking_doesNotShowKeyguard()
313 TestableLooper.get(this).processAllMessages(); in testOnStartedWakingUp_whileSleeping_ifNotWakeAndUnlocking_showsKeyguard()
[all …]
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/
H A 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 …]
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/biometrics/
H A DAuthBiometricFingerprintAndFaceViewTest.kt23 import android.testing.TestableLooper
24 import android.testing.TestableLooper.RunWithLooper
78 TestableLooper.get(this).moveTimeForward(1000)
98 TestableLooper.get(this).moveTimeForward(1000)
115 TestableLooper.get(this).moveTimeForward(1000)
132 TestableLooper.get(this).moveTimeForward(1000)
156 TestableLooper.get(this).moveTimeForward(1000)
163 override fun waitForIdleSync() = TestableLooper.get(this).processAllMessages()
H A DAuthBiometricFingerprintViewTest.kt21 import android.testing.TestableLooper
22 import android.testing.TestableLooper.RunWithLooper
81 TestableLooper.get(this).moveTimeForward(1000)
92 TestableLooper.get(this).moveTimeForward(1000)
114 TestableLooper.get(this).moveTimeForward(1000)
125 TestableLooper.get(this).moveTimeForward(1000)
138 TestableLooper.get(this).moveTimeForward(1000)
147 TestableLooper.get(this).moveTimeForward(1000)
158 TestableLooper.get(this).moveTimeForward(1000)
171 TestableLooper.get(this).moveTimeForward(1000)
[all …]
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/external/
H A DTileRequestDialogTest.kt21 import android.testing.TestableLooper
37 @TestableLooper.RunWithLooper
50 TestableLooper.get(this).runWithLooper {
98 TestableLooper.get(this).processAllMessages()
113 TestableLooper.get(this).processAllMessages()
127 TestableLooper.get(this).processAllMessages()
142 TestableLooper.get(this).processAllMessages()
158 TestableLooper.get(this).processAllMessages()
175 TestableLooper.get(this).processAllMessages()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/
H A DNotifBindPipelineTest.java26 import android.testing.TestableLooper;
50 @TestableLooper.RunWithLooper
67 TestableLooper.get(this).getLooper()); in setUp()
86 TestableLooper.get(this).processAllMessages(); in testCallbackCalled()
103 TestableLooper.get(this).processAllMessages(); in testCallbackCancelled()
123 TestableLooper.get(this).processAllMessages(); in testMultipleCallbacks()
128 TestableLooper.get(this).processAllMessages(); in testMultipleCallbacks()
/aosp14/frameworks/base/services/tests/uiservicestests/src/com/android/server/slice/
H A 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()
H A 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()
/aosp14/frameworks/base/services/tests/mockingservicestests/src/com/android/server/pm/
H A DPackageManagerServiceHibernationTests.kt26 import android.testing.TestableLooper
27 import android.testing.TestableLooper.RunWithLooper
75 .thenReturn(Handler(TestableLooper.get(this).looper))
105 TestableLooper.get(this).processAllMessages()
112 TestableLooper.get(this).processAllMessages()
130 TestableLooper.get(this).processAllMessages()
138 TestableLooper.get(this).processAllMessages()
/aosp14/frameworks/base/tests/testables/src/android/testing/
H A DTestableLooper.java43 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
285 private static final Map<Object, TestableLooper> sLoopers = new ArrayMap<>();
291 public static TestableLooper get(Object test) { in get()
302 private final TestableLooper mTestableLooper;
310 mTestableLooper = new TestableLooper(mLooper, false); in LooperFrameworkMethod()
321 public LooperFrameworkMethod(TestableLooper other, FrameworkMethod base) { in LooperFrameworkMethod()
387 mHandlerThread = new HandlerThread(TestableLooper.class.getSimpleName()); in createLooper()
H A 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()
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/
H A 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()
/aosp14/frameworks/base/packages/SystemUI/tests/robolectric/src/com/android/systemui/testutils/shadow/
H A DShadowTestableLooper.java21 import android.testing.TestableLooper;
27 @Implements(TestableLooper.class)
29 @RealObject private TestableLooper mRealTestableLooper;
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/power/
H A 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 …]
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/
H A DQuickQSPanelTest.kt4 import android.testing.TestableLooper
20 @TestableLooper.RunWithLooper
26 private lateinit var testableLooper: TestableLooper
35 testableLooper = TestableLooper.get(this)
/aosp14/frameworks/base/tests/testables/tests/src/android/testing/
H A DTestableLooperTest.java34 import android.testing.TestableLooper.MessageHandler;
35 import android.testing.TestableLooper.RunWithLooper;
47 private TestableLooper mTestableLooper;
51 mTestableLooper = TestableLooper.get(this); in setup()
138 TestableLooper testableLooper = new TestableLooper(Looper.getMainLooper()); in testMainLooper()
173 TestableLooper testableLooper = new TestableLooper(Looper.getMainLooper()); in testCorrectLooperExecution()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/scrim/
H A 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()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/settings/brightness/
H A DBrightnessControllerTest.kt23 import android.testing.TestableLooper
24 import android.testing.TestableLooper.RunWithLooper
55 private lateinit var testableLooper: TestableLooper
62 testableLooper = TestableLooper.get(this)
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
H A DKeyguardStatusBarViewTest.java22 import android.testing.TestableLooper;
37 @TestableLooper.RunWithLooper
45 TestableLooper.get(this).runWithLooper(() -> { in setup()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/customize/
H A DTileAdapterTest.java21 import android.testing.TestableLooper;
22 import android.testing.TestableLooper.RunWithLooper;
51 TestableLooper.get(this).runWithLooper(() -> mTileAdapter = in setup()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tiles/
H A DOneHandedModeTileTest.java26 import android.testing.TestableLooper;
49 @TestableLooper.RunWithLooper(setAsMainLooper = true)
72 private TestableLooper mTestableLooper;
78 mTestableLooper = TestableLooper.get(this); in setUp()
H A DColorCorrectionTileTest.java30 import android.testing.TestableLooper;
55 @TestableLooper.RunWithLooper(setAsMainLooper = true)
74 private TestableLooper mTestableLooper;
83 mTestableLooper = TestableLooper.get(this); in setUp()
H A DCameraToggleTileTest.kt21 import android.testing.TestableLooper
46 @TestableLooper.RunWithLooper(setAsMainLooper = true)
72 private lateinit var testableLooper: TestableLooper
78 testableLooper = TestableLooper.get(this)
H A DDataSaverTileTest.kt21 import android.testing.TestableLooper
46 @TestableLooper.RunWithLooper(setAsMainLooper = true)
62 private lateinit var testableLooper: TestableLooper
68 testableLooper = TestableLooper.get(this)
H A DMicrophoneToggleTileTest.kt21 import android.testing.TestableLooper
46 @TestableLooper.RunWithLooper(setAsMainLooper = true)
72 private lateinit var testableLooper: TestableLooper
79 testableLooper = TestableLooper.get(this)

12345678910>>...21