Home
last modified time | relevance | path

Searched refs:getCurrentState (Results 1 – 25 of 53) sorted by relevance

123

/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hfp/
DHeadsetStateMachineTest.java152 Assert.assertThat(mHeadsetStateMachine.getCurrentState(), in testDefaultDisconnectedState()
164 Assert.assertThat(mHeadsetStateMachine.getCurrentState(), in testSetupConnectedState()
180 Assert.assertThat(mHeadsetStateMachine.getCurrentState(), in testStateTransition_DisconnectedToConnecting_Connect()
198 Assert.assertThat(mHeadsetStateMachine.getCurrentState(), in testStateTransition_DisconnectedToConnecting_StackConnected()
216 Assert.assertThat(mHeadsetStateMachine.getCurrentState(), in testStateTransition_DisconnectedToConnecting_StackConnecting()
235 Assert.assertThat(mHeadsetStateMachine.getCurrentState(), in testStateTransition_ConnectingToDisconnected_StackDisconnected()
251 Assert.assertThat(mHeadsetStateMachine.getCurrentState(), in testStateTransition_ConnectingToDisconnected_StackDisconnected()
270 Assert.assertThat(mHeadsetStateMachine.getCurrentState(), in testStateTransition_ConnectingToDisconnected_Timeout()
288 Assert.assertThat(mHeadsetStateMachine.getCurrentState(), in testStateTransition_ConnectingToConnected_StackSlcConnected()
299 Assert.assertThat(mHeadsetStateMachine.getCurrentState(), in testStateTransition_ConnectingToConnected_StackSlcConnected()
[all …]
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/
DIkeSessionStateMachineTest.java1510 assertNull(mIkeSessionStateMachine.getCurrentState()); in setupAndVerifyDnsResolutionForIkeSession()
1642 mIkeSessionStateMachine.getCurrentState() in testCreateIkeLocalIkeInitReceivesCookie()
1663 mIkeSessionStateMachine.getCurrentState() in testCreateIkeLocalIkeInitRcvRespAfterRcvCookie()
1837 mIkeSessionStateMachine.getCurrentState() in disableTestCreateIkeLocalIkeInit()
1932 mIkeSessionStateMachine.getCurrentState() instanceof IkeSessionStateMachine.Idle); in setupIdleStateMachine()
2009 mIkeSessionStateMachine.getCurrentState() in testCreateAdditionalChild()
2054 mIkeSessionStateMachine.getCurrentState() in testCreateAdditionalChild()
2080 mIkeSessionStateMachine.getCurrentState() instanceof IkeSessionStateMachine.Idle); in testCreateAdditionalChild()
2097 mIkeSessionStateMachine.getCurrentState() in testTriggerDeleteChildLocal()
2116 mIkeSessionStateMachine.getCurrentState() instanceof IkeSessionStateMachine.Idle); in testHandleDeleteChildBeforeCreation()
[all …]
DChildSessionStateMachineTest.java455 mChildSessionStateMachine.getCurrentState() in verifyInitCreateChildResp()
486 mChildSessionStateMachine.getCurrentState() in verifyInitCreateChildResp()
655 assertNull(mChildSessionStateMachine.getCurrentState()); in verifyHandleFatalErrorAndQuit()
705 mChildSessionStateMachine.getCurrentState() in testCreateChildHandlesTemporaryFailure()
781 mChildSessionStateMachine.getCurrentState() in setupIdleStateMachine()
840 mChildSessionStateMachine.getCurrentState() in testDeleteChildLocal()
850 assertNull(mChildSessionStateMachine.getCurrentState()); in testDeleteChildLocal()
871 assertNull(mChildSessionStateMachine.getCurrentState()); in testDeleteChildLocalExecuteCbAfterKillSession()
889 assertNull(mChildSessionStateMachine.getCurrentState()); in testDeleteChildLocalHandlesInvalidResp()
899 assertNull(mChildSessionStateMachine.getCurrentState()); in testDeleteChildLocalInInitial()
[all …]
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/le_audio/
DLeAudioStateMachineTest.java131 assertThat(mLeAudioStateMachine.getCurrentState()) in testIncomingPriorityReject()
157 assertThat(mLeAudioStateMachine.getCurrentState()) in testIncomingPriorityAccept()
173 assertThat(mLeAudioStateMachine.getCurrentState()) in testIncomingPriorityAccept()
200 assertThat(mLeAudioStateMachine.getCurrentState()) in testOutgoingTimeout()
212 assertThat(mLeAudioStateMachine.getCurrentState()) in testOutgoingTimeout()
243 assertThat(mLeAudioStateMachine.getCurrentState()) in testIncomingTimeout()
255 assertThat(mLeAudioStateMachine.getCurrentState()) in testIncomingTimeout()
/packages/apps/Camera2/src/com/android/camera/ui/
DModeListView.java145 ModeListState getCurrentState() { in getCurrentState() method in ModeListView.CurrentStateManager
1040 mCurrentStateManager.getCurrentState().onScroll(e1, e2, distanceX, distanceY);
1047 mCurrentStateManager.getCurrentState().onSingleTapUp(ev);
1055 mCurrentStateManager.getCurrentState().onFling(e1, e2, velocityX, velocityY);
1062 mCurrentStateManager.getCurrentState().onDown(ev);
1076 mCurrentStateManager.getCurrentState().onItemSelected(selectedItem); in onItemSelected()
1184 if (mCurrentStateManager.getCurrentState() == null) { in init()
1303 if (!mCurrentStateManager.getCurrentState().shouldHandleTouchEvent(ev)) { in onTouchEvent()
1311 mCurrentStateManager.getCurrentState().onTouchEvent(ev); in onTouchEvent()
1353 if (mCurrentStateManager.getCurrentState().getCurrentAnimationEffects() != null) { in onLayout()
[all …]
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hearingaid/
DHearingAidStateMachineTest.java134 Assert.assertThat(mHearingAidStateMachine.getCurrentState(), in testIncomingPriorityReject()
160 Assert.assertThat(mHearingAidStateMachine.getCurrentState(), in testIncomingPriorityAccept()
176 Assert.assertThat(mHearingAidStateMachine.getCurrentState(), in testIncomingPriorityAccept()
204 Assert.assertThat(mHearingAidStateMachine.getCurrentState(), in testOutgoingTimeout()
216 Assert.assertThat(mHearingAidStateMachine.getCurrentState(), in testOutgoingTimeout()
249 Assert.assertThat(mHearingAidStateMachine.getCurrentState(), in testIncomingTimeout()
261 Assert.assertThat(mHearingAidStateMachine.getCurrentState(), in testIncomingTimeout()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/pbap/
DPbapStateMachineTest.java101 Assert.assertThat(mPbapStateMachine.getCurrentState(), in testInitialState()
114 Assert.assertThat(mPbapStateMachine.getCurrentState(), in testStateTransition_WaitingForAuthToFinished()
127 Assert.assertThat(mPbapStateMachine.getCurrentState(), in testStateTransition_WaitingForAuthToConnected()
140 Assert.assertThat(mPbapStateMachine.getCurrentState(), in testStateTransition_ConnectedToFinished()
147 Assert.assertThat(mPbapStateMachine.getCurrentState(), in testStateTransition_ConnectedToFinished()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/a2dp/
DA2dpStateMachineTest.java155 Assert.assertThat(mA2dpStateMachine.getCurrentState(), in testIncomingPriorityReject()
181 Assert.assertThat(mA2dpStateMachine.getCurrentState(), in testIncomingPriorityAccept()
204 Assert.assertThat(mA2dpStateMachine.getCurrentState(), in testIncomingPriorityAccept()
228 Assert.assertThat(mA2dpStateMachine.getCurrentState(), in testOutgoingTimeout()
240 Assert.assertThat(mA2dpStateMachine.getCurrentState(), in testOutgoingTimeout()
268 Assert.assertThat(mA2dpStateMachine.getCurrentState(), in testIncomingTimeout()
280 Assert.assertThat(mA2dpStateMachine.getCurrentState(), in testIncomingTimeout()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/slice/
DWifiScanWorkerTest.java68 assertThat(mWifiScanWorker.getLifecycle().getCurrentState()) in onConstructor_shouldBeInCreatedState()
76 assertThat(mWifiScanWorker.getLifecycle().getCurrentState()) in onSlicePinned_shouldBeInResumedState()
84 assertThat(mWifiScanWorker.getLifecycle().getCurrentState()) in onSliceUnpinned_shouldBeInCreatedState()
92 assertThat(mWifiScanWorker.getLifecycle().getCurrentState()) in close_shouldBeInDestroyedState()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/util/
DStateMachine.java169 State currentState = getCurrentState(); in start()
194 public State getCurrentState() { in getCurrentState() method in StateMachine
234 State currentState = getCurrentState(); in updateState()
251 getCurrentState().getClass() + "Invalid transition " + event); in updateState()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DClientModeImplTest.java325 private IState getCurrentState() throws in getCurrentState() method in ClientModeImplTest
703 assertEquals("DisconnectedState", getCurrentState().getName()); in initializeCmi()
830 assertEquals("L2ConnectingState", mCmi.getCurrentState().getName()); in validateSuccessfulConnectSequence()
968 assertEquals("L3ProvisioningState", getCurrentState().getName()); in connect()
1040 assertEquals("L3ConnectedState", getCurrentState().getName()); in connect()
1073 assertEquals("L3ProvisioningState", getCurrentState().getName()); in setupEapSimConnection()
1093 assertEquals("L2ConnectingState", getCurrentState().getName()); in roamRaceWithConnect()
1102 assertEquals("L2ConnectingState", getCurrentState().getName()); in roamRaceWithConnect()
1113 assertEquals("L3ProvisioningState", getCurrentState().getName()); in roamRaceWithConnect()
1129 assertEquals("L3ProvisioningState", getCurrentState().getName()); in testResetSimWhenNonConnectedSimRemoved()
[all …]
/packages/apps/Settings/tests/unit/src/com/android/settings/network/telephony/
DNetworkProviderWorkerTest.java87 assertThat(mMockNetworkProviderWorker.getLifecycle().getCurrentState()) in onConstructor_shouldBeInCreatedState()
96 assertThat(mMockNetworkProviderWorker.getLifecycle().getCurrentState()) in onSlicePinned_shouldBeInResumedState()
106 assertThat(mMockNetworkProviderWorker.getLifecycle().getCurrentState()) in onSliceUnpinned_shouldBeInCreatedState()
115 assertThat(mMockNetworkProviderWorker.getLifecycle().getCurrentState()) in close_shouldBeInDestroyedState()
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DBluetoothRouteManagerTest.java98 assertEquals(BluetoothRouteManager.AUDIO_OFF_STATE_NAME, sm.getCurrentState().getName()); in testConnectHfpRetryWhileNotConnected()
118 sm.getCurrentState().getName()); in testAmbiguousActiveDevice()
134 sm.getCurrentState().getName()); in testAudioOnDeviceWithScoOffActiveDevice()
158 sm.getCurrentState().getName()); in testConnectHfpRetryWhileConnectedToAnotherDevice()
/packages/apps/Settings/tests/unit/src/com/android/settings/network/
DProxySubscriptionManagerTest.java66 doReturn(Lifecycle.State.CREATED).when(mLifecycle_ON_PAUSE).getCurrentState(); in setUp()
67 doReturn(Lifecycle.State.STARTED).when(mLifecycle_ON_RESUME).getCurrentState(); in setUp()
68 doReturn(Lifecycle.State.DESTROYED).when(mLifecycle_ON_DESTROY).getCurrentState(); in setUp()
/packages/apps/Bluetooth/src/com/android/bluetooth/statemachine/
DStateMachine.java1149 private final IState getCurrentState() { in getCurrentState() method in StateMachine.SmHandler
1391 public final IState getCurrentState() { in getCurrentState() method in StateMachine
1395 return smh.getCurrentState(); in getCurrentState()
1562 smh.mLogRecords.add(this, smh.getCurrentMessage(), string, smh.getCurrentState(), in addLogRec()
2078 pw.println("curState=" + getCurrentState().getName()); in dump()
2087 state = mSmHandler.getCurrentState().getName().toString(); in toString()
/packages/apps/Bluetooth/src/com/android/bluetooth/mapclient/
DMceStateMachine.java246 IState currentState = this.getCurrentState(); in getState()
278 if (this.getCurrentState() == mConnected) { in sendMapMessage()
330 if (this.getCurrentState() == mConnected) { in getMessage()
341 if (this.getCurrentState() == mConnected) { in getUnreadMessages()
349 if (this.getCurrentState() == mConnected && mMasClient != null) { in getSupportedFeatures()
361 if (this.getCurrentState() == mConnected) { in setMessageStatus()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hfpclient/
DHeadsetClientStateMachineTest.java151 Assert.assertThat(mHeadsetClientStateMachine.getCurrentState(), in testIncomingPriorityReject()
180 Assert.assertThat(mHeadsetClientStateMachine.getCurrentState(), in testIncomingPriorityAccept()
197 Assert.assertThat(mHeadsetClientStateMachine.getCurrentState(), in testIncomingPriorityAccept()
226 Assert.assertThat(mHeadsetClientStateMachine.getCurrentState(), in testIncomingTimeout()
239 Assert.assertThat(mHeadsetClientStateMachine.getCurrentState(), in testIncomingTimeout()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DActiveModeWarden.java1149 IState state = mWifiController.getCurrentState(); in getCurrentMode()
1167 IState state = mWifiController.getCurrentState(); in isInEmergencyMode()
1651 if (getCurrentState() == mDisabledState && scanInProgress) { in handleEmergencyScanStateChange()
1655 } else if (getCurrentState() == mEnabledState && !scanInProgress) { in handleEmergencyScanStateChange()
1660 if (getCurrentState() == mDisabledState) { in handleEmergencyScanStateChange()
1662 } else if (getCurrentState() == mEnabledState) { in handleEmergencyScanStateChange()
/packages/apps/Camera2/src/com/android/camera/captureintent/stateful/
DStateMachine.java32 public State getCurrentState(); in getCurrentState() method
DStateMachineImpl.java78 public State getCurrentState() { in getCurrentState() method in StateMachineImpl
/packages/apps/Bluetooth/src/com/android/bluetooth/pbapclient/
DPbapClientStateMachine.java373 IState currentState = getCurrentState(); in getConnectionState()
425 if (getCurrentState() instanceof Disconnected) { in getDevice()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/avrcpcontroller/
DAvrcpControllerStateMachineTest.java198 Assert.assertThat(mAvrcpStateMachine.getCurrentState(), in setUpConnectedState()
207 Assert.assertThat(mAvrcpStateMachine.getCurrentState(), in setUpConnectedState()
374 Assert.assertThat(mAvrcpStateMachine.getCurrentState(), in testDisconnectInternal()
403 Assert.assertThat(mAvrcpStateMachine.getCurrentState(), in testControlOnly()
432 Assert.assertThat(mAvrcpStateMachine.getCurrentState(), in testBrowsingOnly()
/packages/modules/Wifi/service/java/com/android/server/wifi/util/
DStateMachineObituary.java61 final IState curState = stateMachine.getCurrentState(); in StateMachineObituary()
/packages/apps/Bluetooth/src/com/android/bluetooth/le_audio/
DLeAudioStateMachine.java495 String currentState = getCurrentState().getName(); in getConnectionState()
516 return getCurrentState() == mConnected; in isConnected()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/
DShadowCarWifiManager.java138 public static int getCurrentState() { in getCurrentState() method in ShadowCarWifiManager

123