输出:
processMsg: Controller$DefaultState
ApStaDisabledState-->enter()
状态栈中存在2个状态分别为
msg = 1
0 DefaultState state=Controller$DefaultState,parent=null
1 ApStaDisabledState state=Controller$ApStaDisabledState,parent=Controller$DefaultState
=============================================
processMsg: Controller$ApStaDisabledState
processMsg: Controller$DefaultState
invokeExitMethods: Controller$ApStaDisabledState
ApStaDisabledState-->exit()
StaEnabledState -->enter()
状态栈中存在2个状态分别为
msg = 2
0 DefaultState state=Controller$DefaultState,parent=null
1 StaEnabledState state=Controller$StaEnabledState,parent=Controller$DefaultState
=============================================
processMsg: Controller$StaEnabledState
DeviceActiveState -->enter()
状态栈中存在3个状态分别为
msg = 3
0 DefaultState state=Controller$DefaultState,parent=null
1 StaEnabledState state=Controller$StaEnabledState,parent=Controller$DefaultState
2 DeviceActiveState state=Controller$DeviceActiveState,parent=Controller$StaEnabledState
=============================================
processMsg: Controller$DeviceActiveState
processMsg: Controller$StaEnabledState
invokeExitMethods: Controller$DeviceActiveState
DeviceActiveState -->exit()
DeviceInactiveState -->enter()
状态栈中存在3个状态分别为
msg = 4
0 DefaultState state=Controller$DefaultState,parent=null
1 StaEnabledState state=Controller$StaEnabledState,parent=Controller$DefaultState
2 DeviceInactiveState state=Controller$DeviceInactiveState,parent=Controller$StaEnabledState
=============================================
processMsg: Controller$DeviceInactiveState
ScanOnlyLockHeldState -->enter()
状态栈中存在4个状态分别为
msg = 5
0 DefaultState state=Controller$DefaultState,parent=null
1 StaEnabledState state=Controller$StaEnabledState,parent=Controller$DefaultState
2 DeviceInactiveState state=Controller$DeviceInactiveState,parent=Controller$StaEnabledState
3 ScanOnlyLockHeldState state=Controller$ScanOnlyLockHeldState,parent=Controller$DeviceInactiveState
=============================================
processMsg: Controller$ScanOnlyLockHeldState
processMsg: Controller$DeviceInactiveState
invokeExitMethods: Controller$ScanOnlyLockHeldState
ScanOnlyLockHeldState -->exit()
FullLockHeldState -->enter()
状态栈中存在4个状态分别为
msg = 6
0 DefaultState state=Controller$DefaultState,parent=null
1 StaEnabledState state=Controller$StaEnabledState,parent=Controller$DefaultState
2 DeviceInactiveState state=Controller$DeviceInactiveState,parent=Controller$StaEnabledState
3 FullLockHeldState state=Controller$FullLockHeldState,parent=Controller$DeviceInactiveState
=============================================
processMsg: Controller$FullLockHeldState
processMsg: Controller$DeviceInactiveState
invokeExitMethods: Controller$FullLockHeldState
FullLockHeldState -->exit()
FullHighPerfLockHeldState -->enter()
状态栈中存在4个状态分别为
msg = 7
0 DefaultState state=Controller$DefaultState,parent=null
1 StaEnabledState state=Controller$StaEnabledState,parent=Controller$DefaultState
2 DeviceInactiveState state=Controller$DeviceInactiveState,parent=Controller$StaEnabledState
3 FullHighPerfLockHeldState state=Controller$FullHighPerfLockHeldState,parent=Controller$DeviceInactiveState
=============================================
processMsg: Controller$FullHighPerfLockHeldState
processMsg: Controller$DeviceInactiveState
invokeExitMethods: Controller$FullHighPerfLockHeldState
FullHighPerfLockHeldState -->exit()
NoLockHeldState -->enter()
状态栈中存在4个状态分别为
msg = 8
0 DefaultState state=Controller$DefaultState,parent=null
1 StaEnabledState state=Controller$StaEnabledState,parent=Controller$DefaultState
2 DeviceInactiveState state=Controller$DeviceInactiveState,parent=Controller$StaEnabledState
3 NoLockHeldState state=Controller$NoLockHeldState,parent=Controller$DeviceInactiveState
=============================================
processMsg: Controller$NoLockHeldState
processMsg: Controller$DeviceInactiveState
processMsg: Controller$StaEnabledState
processMsg: Controller$DefaultState
invokeExitMethods: Controller$NoLockHeldState
NoLockHeldState -->exit()
invokeExitMethods: Controller$DeviceInactiveState
DeviceInactiveState -->exit()
invokeExitMethods: Controller$StaEnabledState
StaEnabledState -->exit()
StaDisabledWithScanState -->enter()
状态栈中存在2个状态分别为
msg = 9
0 DefaultState state=Controller$DefaultState,parent=null
1 StaDisabled