SyncSM03: implement state transition logic
Implement performTransitions which does state transitions. 1. Determine the common ancestor state of current/destination states 2. Invoke state exit list from current state to common ancestor state. 3. Invoke state enter list from common ancestor state to destState by going through mEnterStateStack. The state transition is always defined so that the target can never be changed mid-way of a state transition. In other words, calling transitionTo in State enter and exit is not allowed. Test: atest SyncStateMachineTest Change-Id: I51e8c5440a8b9ac25715c3d030717421f68c15b3
Loading
Please register or sign in to comment