Home
last modified time | relevance | path

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

/frameworks/base/core/tests/utiltests/src/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 …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiConnectivityManagerTest.java267 ClientModeImpl stateMachine = mock(ClientModeImpl.class); in mockClientModeImpl() local
269 when(stateMachine.isConnected()).thenReturn(false); in mockClientModeImpl()
270 when(stateMachine.isDisconnected()).thenReturn(true); in mockClientModeImpl()
271 when(stateMachine.isSupplicantTransientState()).thenReturn(false); in mockClientModeImpl()
273 return stateMachine; in mockClientModeImpl()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiConnectivityManager.java591 ClientModeImpl stateMachine, in WifiConnectivityManager() argument
598 mStateMachine = stateMachine; in WifiConnectivityManager()