Searched refs:testableLooper (Results 1 – 6 of 6) sorted by relevance
69 private lateinit var testableLooper: TestableLooper in capture() variable in com.android.systemui.broadcast.UserBroadcastDispatcherTest79 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 …]
89 private lateinit var testableLooper: TestableLooper in capture() variable in com.android.systemui.broadcast.BroadcastDispatcherTest95 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()
135 TestableLooper testableLooper = new TestableLooper(Looper.getMainLooper()); in testMainLooper() local138 testableLooper.setMessageHandler(m -> { in testMainLooper()143 testableLooper.processAllMessages(); in testMainLooper()148 testableLooper.destroy(); in testMainLooper()170 TestableLooper testableLooper = new TestableLooper(Looper.getMainLooper()); in testCorrectLooperExecution() local173 testableLooper.processAllMessages(); in testCorrectLooperExecution()177 testableLooper.destroy(); in testCorrectLooperExecution()
51 private lateinit var testableLooper: TestableLooper variable in com.android.systemui.qs.tiles.BatterySaverTileTest57 testableLooper = TestableLooper.get(this) in setUp()58 mDependency.injectTestDependency(Dependency.BG_LOOPER, testableLooper.looper) in setUp()74 testableLooper.processAllMessages() in testSettingChangesUser()
53 TestableLooper testableLooper = TestableLooper.get(this); in setUp() local54 mTestHandler = spy(new Handler(testableLooper.getLooper())); in setUp()
165 TestableLooper testableLooper = new TestableLooper(thread.getLooper()); in testKeyguardUpdateMonitorCalledInMainThread() local166 Handler h = new Handler(testableLooper.getLooper()); in testKeyguardUpdateMonitorCalledInMainThread()171 testableLooper.processAllMessages(); in testKeyguardUpdateMonitorCalledInMainThread()