Searched refs:dispatchLifecycleEvent (Results 1 – 7 of 7) sorted by relevance
121 inOrder.verify(mMockScreen1).dispatchLifecycleEvent(Event.ON_CREATE); in push_stackWasEmpty_addsToStack_callsProperLifecycleMethods()123 inOrder.verify(mMockScreen1).dispatchLifecycleEvent(Event.ON_START); in push_stackWasEmpty_addsToStack_callsProperLifecycleMethods()124 inOrder.verify(mMockScreen1).dispatchLifecycleEvent(Event.ON_RESUME); in push_stackWasEmpty_addsToStack_callsProperLifecycleMethods()136 inOrder.verify(mMockScreen1).dispatchLifecycleEvent(Event.ON_CREATE); in push_stackWasEmpty_screenManagerNotStarted_addsToStack_callsOnCreate()150 inOrder.verify(mMockScreen1).dispatchLifecycleEvent(Event.ON_CREATE); in push_stackHadScreen_addsToStack_callsProperLifecycleMethods()152 inOrder.verify(mMockScreen1).dispatchLifecycleEvent(Event.ON_START); in push_stackHadScreen_addsToStack_callsProperLifecycleMethods()153 inOrder.verify(mMockScreen1).dispatchLifecycleEvent(Event.ON_RESUME); in push_stackHadScreen_addsToStack_callsProperLifecycleMethods()155 inOrder.verify(mMockScreen2).dispatchLifecycleEvent(Event.ON_CREATE); in push_stackHadScreen_addsToStack_callsProperLifecycleMethods()157 inOrder.verify(mMockScreen2).dispatchLifecycleEvent(Event.ON_START); in push_stackHadScreen_addsToStack_callsProperLifecycleMethods()159 inOrder.verify(mMockScreen1).dispatchLifecycleEvent(Event.ON_PAUSE); in push_stackHadScreen_addsToStack_callsProperLifecycleMethods()[all …]
100 mScreen.dispatchLifecycleEvent(Event.ON_CREATE); in onCreate_expectedLifecycleChange()106 mScreen.dispatchLifecycleEvent(Event.ON_START); in onStart_expectedLifecycleChange()112 mScreen.dispatchLifecycleEvent(Event.ON_RESUME); in onResume_expectedLifecycleChange()118 mScreen.dispatchLifecycleEvent(Event.ON_PAUSE); in onPause_expectedLifecycleChange()124 mScreen.dispatchLifecycleEvent(Event.ON_STOP); in onStop_expectedLifecycleChange()130 mScreen.dispatchLifecycleEvent(Event.ON_DESTROY); in onDestroy_expectedLifecycleChange()136 mScreen.dispatchLifecycleEvent(Event.ON_DESTROY); in alreadyDestroyed_willNotDispatchMoreEvents()141 mScreen.dispatchLifecycleEvent(Event.ON_CREATE); in alreadyDestroyed_willNotDispatchMoreEvents()142 mScreen.dispatchLifecycleEvent(Event.ON_START); in alreadyDestroyed_willNotDispatchMoreEvents()143 mScreen.dispatchLifecycleEvent(Event.ON_RESUME); in alreadyDestroyed_willNotDispatchMoreEvents()[all …]
39 public void dispatchLifecycleEvent(@NonNull Event event) { in dispatchLifecycleEvent() method in TestScreen42 mScreenForMocking.dispatchLifecycleEvent(event); in dispatchLifecycleEvent()43 super.dispatchLifecycleEvent(event); in dispatchLifecycleEvent()
399 verify(mMockScreen1, never()).dispatchLifecycleEvent(Event.ON_DESTROY); in getOnBackPressedDispatcher_noListeners_popsAScreen()400 verify(mMockScreen2).dispatchLifecycleEvent(Event.ON_DESTROY); in getOnBackPressedDispatcher_noListeners_popsAScreen()417 verify(mMockScreen1, never()).dispatchLifecycleEvent(Event.ON_DESTROY); in getOnBackPressedDispatcher_withListenerThatIsStarted_callsListenerAndDoesNotPop()418 verify(mMockScreen2, never()).dispatchLifecycleEvent(Event.ON_DESTROY); in getOnBackPressedDispatcher_withListenerThatIsStarted_callsListenerAndDoesNotPop()435 verify(mMockScreen1, never()).dispatchLifecycleEvent(Event.ON_DESTROY); in getOnBackPressedDispatcher_withAListenerThatIsNotStarted_popsAScreen()436 verify(mMockScreen2).dispatchLifecycleEvent(Event.ON_DESTROY); in getOnBackPressedDispatcher_withAListenerThatIsNotStarted_popsAScreen()453 verify(mMockScreen2).dispatchLifecycleEvent(Event.ON_DESTROY); in getOnBackPressedDispatcher_callsDefaultListenerWheneverTheAddedOneIsNotSTARTED()
137 void dispatchLifecycleEvent(Event event) { in dispatchLifecycleEvent() method in ScreenController138 mScreen.dispatchLifecycleEvent(event); in dispatchLifecycleEvent()148 dispatchLifecycleEvent(Event.ON_CREATE); in onCreate()154 dispatchLifecycleEvent(Event.ON_START); in onStart()160 dispatchLifecycleEvent(Event.ON_RESUME); in onResume()165 dispatchLifecycleEvent(Event.ON_PAUSE); in onPause()170 dispatchLifecycleEvent(Event.ON_STOP); in onStop()175 dispatchLifecycleEvent(Event.ON_DESTROY); in onDestroy()
260 screen.dispatchLifecycleEvent(Event.ON_DESTROY); in remove()344 screen.dispatchLifecycleEvent(Event.ON_RESUME); in pushInternal()361 newTop.dispatchLifecycleEvent(Event.ON_START); in popInternal()380 newTop.dispatchLifecycleEvent(Event.ON_RESUME); in popInternal()388 screen.dispatchLifecycleEvent(Event.ON_CREATE); in pushAndStart()398 screen.dispatchLifecycleEvent(Event.ON_START); in pushAndStart()406 screen.dispatchLifecycleEvent(Event.ON_PAUSE); in stop()410 screen.dispatchLifecycleEvent(Event.ON_STOP); in stop()414 screen.dispatchLifecycleEvent(Event.ON_DESTROY); in stop()431 screen.dispatchLifecycleEvent(Event.ON_RESUME); in moveToTop()[all …]
319 public void dispatchLifecycleEvent(@NonNull Event event) { in dispatchLifecycleEvent() method in Screen