Home
last modified time | relevance | path

Searched refs:stateMachine (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/services/tests/wmtests/src/com/android/server/wm/utils/
DStateMachineTest.java83 LoggingHandlerTransferInExit(int state, StringBuffer sb, StateMachine stateMachine, in LoggingHandlerTransferInExit() argument
86 mStateMachine = stateMachine; in LoggingHandlerTransferInExit()
109 StateMachine stateMachine = new StateMachine(); in testStateMachineInitialState() local
110 assertEquals(0, stateMachine.getState()); in testStateMachineInitialState()
112 stateMachine = new StateMachine(0x23); in testStateMachineInitialState()
113 assertEquals(0x23, stateMachine.getState()); in testStateMachineInitialState()
120 StateMachine stateMachine = new StateMachine(); in testStateMachineTransitToChild() local
121 stateMachine.addStateHandler(0x1, new LoggingHandler(0x1, log)); in testStateMachineTransitToChild()
122 stateMachine.addStateHandler(0x12, new LoggingHandler(0x12, log)); in testStateMachineTransitToChild()
123 stateMachine.addStateHandler(0x123, new LoggingHandler(0x123, log)); in testStateMachineTransitToChild()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ims/
DImsEnablementTracker.java781 ImsEnablementTrackerStateMachine stateMachine = mStateMachines.get(slotId); in subIdChangedToInvalid() local
782 if (stateMachine != null) { in subIdChangedToInvalid()
783 stateMachine.sendMessage(COMMAND_INVALID_SUBID_MSG, slotId); in subIdChangedToInvalid()
797 ImsEnablementTrackerStateMachine stateMachine = mStateMachines.get(slotId); in enableIms() local
798 if (stateMachine != null) { in enableIms()
799 stateMachine.sendMessage(COMMAND_ENABLE_MSG, slotId, subId); in enableIms()
813 ImsEnablementTrackerStateMachine stateMachine = mStateMachines.get(slotId); in disableIms() local
814 if (stateMachine != null) { in disableIms()
815 stateMachine.sendMessage(COMMAND_DISABLE_MSG, slotId, subId); in disableIms()
830 ImsEnablementTrackerStateMachine stateMachine = mStateMachines.get(slotId); in resetIms() local
[all …]
/frameworks/libs/modules-utils/javatests/com/android/internal/util/
DStateMachineTest.java107 StateMachine stateMachine = new StateMachineToStringTest("TestStateMachine"); in testToStringSucceedsEvenIfMachineHasNoStates() local
108 assertTrue(stateMachine.toString().contains("TestStateMachine")); in testToStringSucceedsEvenIfMachineHasNoStates()
113 StateMachine stateMachine = new StateMachineToStringTest("TestStateMachine"); in testToStringSucceedsEvenIfStateHasNoName() local
115 stateMachine.addState(exampleState); in testToStringSucceedsEvenIfStateHasNoName()
116 stateMachine.setInitialState(exampleState); in testToStringSucceedsEvenIfStateHasNoName()
117 stateMachine.start(); in testToStringSucceedsEvenIfStateHasNoName()
118 assertTrue(stateMachine.toString().contains("TestStateMachine")); in testToStringSucceedsEvenIfStateHasNoName()
119 assertTrue(stateMachine.toString().contains("null")); in testToStringSucceedsEvenIfStateHasNoName()
124 StateMachine stateMachine = new StateMachineToStringTest("TestStateMachine"); in testToStringIncludesMachineAndStateNames() local
126 stateMachine.addState(exampleState); in testToStringIncludesMachineAndStateNames()
[all …]