Home
last modified time | relevance | path

Searched refs:stateMachine (Results 1 – 4 of 4) 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/base/packages/Tethering/tests/unit/src/com/android/networkstack/tethering/
DTetheringTest.java1756 final Tethering.TetherMasterSM stateMachine = (Tethering.TetherMasterSM) in testUpstreamNetworkChanged() local
1760 stateMachine.chooseUpstreamType(true); in testUpstreamNetworkChanged()
1768 final Tethering.TetherMasterSM stateMachine = (Tethering.TetherMasterSM) in testUpstreamCapabilitiesChanged() local
1772 stateMachine.chooseUpstreamType(true); in testUpstreamCapabilitiesChanged()
1774 stateMachine.handleUpstreamNetworkMonitorCallback(EVENT_ON_CAPABILITIES, upstreamState); in testUpstreamCapabilitiesChanged()
1784 stateMachine.handleUpstreamNetworkMonitorCallback(EVENT_ON_CAPABILITIES, upstreamState2); in testUpstreamCapabilitiesChanged()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiConnectivityManagerTest.java338 ClientModeImpl stateMachine = mock(ClientModeImpl.class); in mockClientModeImpl() local
340 when(stateMachine.isConnected()).thenReturn(false); in mockClientModeImpl()
341 when(stateMachine.isDisconnected()).thenReturn(true); in mockClientModeImpl()
342 when(stateMachine.isSupplicantTransientState()).thenReturn(false); in mockClientModeImpl()
344 return stateMachine; in mockClientModeImpl()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiConnectivityManager.java760 ClientModeImpl stateMachine, in WifiConnectivityManager() argument
768 mStateMachine = stateMachine; in WifiConnectivityManager()