Home
last modified time | relevance | path

Searched refs:testableLooper (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/broadcast/
DUserBroadcastDispatcherTest.kt69 private lateinit var testableLooper: TestableLooper in capture() variable in com.android.systemui.broadcast.UserBroadcastDispatcherTest
79 testableLooper = TestableLooper.get(this) in capture()
80 handler = Handler(testableLooper.looper) in capture()
84 mockContext, USER_ID, testableLooper.looper, mock(Executor::class.java), logger) { in capture()
97 testableLooper.processAllMessages() in testSingleReceiverRegistered()
110 testableLooper.processAllMessages() in testSingleReceiverRegistered_logging()
121 testableLooper.processAllMessages() in testSingleReceiverUnregistered()
124 testableLooper.processAllMessages() in testSingleReceiverUnregistered()
137 testableLooper.processAllMessages() in testSingleReceiverUnregistered_logger()
140 testableLooper.processAllMessages() in testSingleReceiverUnregistered_logger()
[all …]
DBroadcastDispatcherTest.kt89 private lateinit var testableLooper: TestableLooper in capture() variable in com.android.systemui.broadcast.BroadcastDispatcherTest
95 testableLooper = TestableLooper.get(this) in capture()
100 testableLooper.looper, in capture()
119 testableLooper.processAllMessages() in testAddingReceiverToCorrectUBR()
137 testableLooper.processAllMessages() in testAddingReceiverToCorrectUBR_executor()
158 testableLooper.processAllMessages() in testRemovingReceiversRemovesFromAllUBR()
173 testableLooper.processAllMessages() in testRemoveReceiverFromUser()
185 testableLooper.processAllMessages() in testRegisterCurrentAsActualUser()
190 testableLooper.processAllMessages() in testRegisterCurrentAsActualUser()
/frameworks/base/tests/testables/tests/src/android/testing/
DTestableLooperTest.java135 TestableLooper testableLooper = new TestableLooper(Looper.getMainLooper()); in testMainLooper() local
138 testableLooper.setMessageHandler(m -> { in testMainLooper()
143 testableLooper.processAllMessages(); in testMainLooper()
148 testableLooper.destroy(); in testMainLooper()
170 TestableLooper testableLooper = new TestableLooper(Looper.getMainLooper()); in testCorrectLooperExecution() local
173 testableLooper.processAllMessages(); in testCorrectLooperExecution()
177 testableLooper.destroy(); in testCorrectLooperExecution()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tiles/
DBatterySaverTileTest.kt51 private lateinit var testableLooper: TestableLooper variable in com.android.systemui.qs.tiles.BatterySaverTileTest
57 testableLooper = TestableLooper.get(this) in setUp()
58 mDependency.injectTestDependency(Dependency.BG_LOOPER, testableLooper.looper) in setUp()
74 testableLooper.processAllMessages() in testSettingChangesUser()
/frameworks/base/packages/CarSystemUI/tests/src/com/android/systemui/car/voicerecognition/
DConnectedDeviceVoiceRecognitionNotifierTest.java53 TestableLooper testableLooper = TestableLooper.get(this); in setUp() local
54 mTestHandler = spy(new Handler(testableLooper.getLooper())); in setUp()
/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/
DCarrierTextControllerTest.java165 TestableLooper testableLooper = new TestableLooper(thread.getLooper()); in testKeyguardUpdateMonitorCalledInMainThread() local
166 Handler h = new Handler(testableLooper.getLooper()); in testKeyguardUpdateMonitorCalledInMainThread()
171 testableLooper.processAllMessages(); in testKeyguardUpdateMonitorCalledInMainThread()