/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/hfp/ |
D | HeadsetStateMachineTest.java | 169 Assert.assertThat(mHeadsetStateMachine.getCurrentState(), in testDefaultDisconnectedState() 181 Assert.assertThat(mHeadsetStateMachine.getCurrentState(), in testSetupConnectedState() 197 Assert.assertThat(mHeadsetStateMachine.getCurrentState(), in testStateTransition_DisconnectedToConnecting_Connect() 215 Assert.assertThat(mHeadsetStateMachine.getCurrentState(), in testStateTransition_DisconnectedToConnecting_StackConnected() 233 Assert.assertThat(mHeadsetStateMachine.getCurrentState(), in testStateTransition_DisconnectedToConnecting_StackConnecting() 252 Assert.assertThat(mHeadsetStateMachine.getCurrentState(), in testStateTransition_ConnectingToDisconnected_StackDisconnected() 268 Assert.assertThat(mHeadsetStateMachine.getCurrentState(), in testStateTransition_ConnectingToDisconnected_StackDisconnected() 287 Assert.assertThat(mHeadsetStateMachine.getCurrentState(), in testStateTransition_ConnectingToDisconnected_Timeout() 305 Assert.assertThat(mHeadsetStateMachine.getCurrentState(), in testStateTransition_ConnectingToConnected_StackSlcConnected() 316 Assert.assertThat(mHeadsetStateMachine.getCurrentState(), in testStateTransition_ConnectingToConnected_StackSlcConnected() [all …]
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/bas/ |
D | BatteryStateMachineTest.java | 145 Assert.assertThat(mBatteryStateMachine.getCurrentState(), in testOkToConnectFails() 161 Assert.assertThat(mBatteryStateMachine.getCurrentState(), in testFailToConnectGatt() 179 Assert.assertThat(mBatteryStateMachine.getCurrentState(), in testSuccessfullyConnected() 191 Assert.assertThat(mBatteryStateMachine.getCurrentState(), in testSuccessfullyConnected() 205 assertThat(mBatteryStateMachine.getCurrentState()) in testConnectedStateChanges() 218 assertThat(mBatteryStateMachine.getCurrentState()) in testConnectedStateChanges() 238 assertThat(mBatteryStateMachine.getCurrentState()) in testConnectedStateChanges() 248 assertThat(mBatteryStateMachine.getCurrentState()) in testConnectedStateChanges() 257 assertThat(mBatteryStateMachine.getCurrentState()) in testConnectedStateChanges() 274 Assert.assertThat(mBatteryStateMachine.getCurrentState(), in testConnectGattTimeout() [all …]
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | InterfaceConflictManagerTest.java | 159 assertEquals("State changed incorrect", mSm.A, mSm.getCurrentState()); in testUserApprovalDisabled() 176 assertEquals("State changed incorrect", mSm.A, mSm.getCurrentState()); in testUserApprovalDisabledForSpecificPackage() 194 assertEquals("State changed incorrect", mSm.A, mSm.getCurrentState()); in testUserApprovalNeededButCommandCanProceed() 203 assertEquals("State changed incorrect", mSm.A, mSm.getCurrentState()); in testUserApprovalNeededButCommandCanProceed() 224 assertEquals("State not in waiting", mSm.B, mSm.getCurrentState()); in testUserApproved() 231 assertEquals("State not back in primary", mSm.A, mSm.getCurrentState()); in testUserApproved() 240 assertEquals("State should stay in primary", mSm.A, mSm.getCurrentState()); in testUserApproved() 261 assertEquals("State not in waiting", mSm.B, mSm.getCurrentState()); in testUserRejected() 268 assertEquals("State not back in primary", mSm.A, mSm.getCurrentState()); in testUserRejected() 277 assertEquals("State should stay in primary", mSm.A, mSm.getCurrentState()); in testUserRejected()
|
D | ClientModeImplTest.java | 355 private IState getCurrentState() throws in getCurrentState() method in ClientModeImplTest 789 assertEquals("DisconnectedState", getCurrentState().getName()); in initializeCmi() 946 assertEquals("L2ConnectingState", mCmi.getCurrentState().getName()); in validateSuccessfulConnectSequence() 1124 assertEquals("L3ProvisioningState", getCurrentState().getName()); in connect() 1197 assertEquals("L3ConnectedState", getCurrentState().getName()); in connect() 1230 assertEquals("L3ProvisioningState", getCurrentState().getName()); in setupEapSimConnection() 1250 assertEquals("L2ConnectingState", getCurrentState().getName()); in roamRaceWithConnect() 1259 assertEquals("L2ConnectingState", getCurrentState().getName()); in roamRaceWithConnect() 1270 assertEquals("L3ProvisioningState", getCurrentState().getName()); in roamRaceWithConnect() 1322 assertEquals("L3ProvisioningState", getCurrentState().getName()); in testResetSimWhenNonConnectedSimRemoved() [all …]
|
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/ |
D | ChildSessionStateMachineTest.java | 466 mChildSessionStateMachine.getCurrentState() in verifyInitCreateChildResp() 497 mChildSessionStateMachine.getCurrentState() in verifyInitCreateChildResp() 666 assertNull(mChildSessionStateMachine.getCurrentState()); in verifyHandleFatalErrorAndQuit() 716 mChildSessionStateMachine.getCurrentState() in testCreateChildHandlesTemporaryFailure() 792 mChildSessionStateMachine.getCurrentState() in setupIdleStateMachine() 868 mChildSessionStateMachine.getCurrentState() in testDeleteChildLocal() 878 assertNull(mChildSessionStateMachine.getCurrentState()); in testDeleteChildLocal() 899 assertNull(mChildSessionStateMachine.getCurrentState()); in testDeleteChildLocalExecuteCbAfterKillSession() 917 assertNull(mChildSessionStateMachine.getCurrentState()); in testDeleteChildLocalHandlesInvalidResp() 927 assertNull(mChildSessionStateMachine.getCurrentState()); in testDeleteChildLocalInInitial() [all …]
|
D | IkeSessionStateMachineTest.java | 1622 assertNull(mIkeSessionStateMachine.getCurrentState()); in setupAndVerifyDnsResolutionForIkeSession() 1771 mIkeSessionStateMachine.getCurrentState() in testCreateIkeLocalIkeInitReceivesCookie() 1792 mIkeSessionStateMachine.getCurrentState() in testCreateIkeLocalIkeInitRcvRespAfterRcvCookie() 1982 mIkeSessionStateMachine.getCurrentState() in disableTestCreateIkeLocalIkeInit() 2070 mIkeSessionStateMachine.getCurrentState() instanceof IkeSessionStateMachine.Idle); in setupIdleStateMachine() 2248 mIkeSessionStateMachine.getCurrentState() in testCreateAdditionalChild() 2280 mIkeSessionStateMachine.getCurrentState() in testCreateAdditionalChild() 2306 mIkeSessionStateMachine.getCurrentState() instanceof IkeSessionStateMachine.Idle); in testCreateAdditionalChild() 2323 mIkeSessionStateMachine.getCurrentState() in testTriggerDeleteChildLocal() 2342 mIkeSessionStateMachine.getCurrentState() instanceof IkeSessionStateMachine.Idle); in testHandleDeleteChildBeforeCreation() [all …]
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/vc/ |
D | VolumeControlStateMachineTest.java | 134 Assert.assertThat(mVolumeControlStateMachine.getCurrentState(), in testIncomingPolicyReject() 161 Assert.assertThat(mVolumeControlStateMachine.getCurrentState(), in testIncomingPolicyAccept() 178 Assert.assertThat(mVolumeControlStateMachine.getCurrentState(), in testIncomingPolicyAccept() 205 Assert.assertThat(mVolumeControlStateMachine.getCurrentState(), in testOutgoingTimeout() 216 Assert.assertThat(mVolumeControlStateMachine.getCurrentState(), in testOutgoingTimeout() 249 Assert.assertThat(mVolumeControlStateMachine.getCurrentState(), in testIncomingTimeout() 260 Assert.assertThat(mVolumeControlStateMachine.getCurrentState(), in testIncomingTimeout() 274 Assert.assertThat(mVolumeControlStateMachine.getCurrentState(), in testStatesChangesWithMessages() 279 Assert.assertThat(mVolumeControlStateMachine.getCurrentState(), in testStatesChangesWithMessages() 392 Assert.assertThat(mVolumeControlStateMachine.getCurrentState(), in sendMessageAndVerifyTransition()
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/hap/ |
D | HapClientStateMachineTest.java | 137 Assert.assertThat(mHapClientStateMachine.getCurrentState(), in testIncomingPolicyReject() 164 Assert.assertThat(mHapClientStateMachine.getCurrentState(), in testIncomingPolicyAccept() 181 Assert.assertThat(mHapClientStateMachine.getCurrentState(), in testIncomingPolicyAccept() 208 Assert.assertThat(mHapClientStateMachine.getCurrentState(), in testOutgoingTimeout() 219 Assert.assertThat(mHapClientStateMachine.getCurrentState(), in testOutgoingTimeout() 252 Assert.assertThat(mHapClientStateMachine.getCurrentState(), in testIncomingTimeout() 263 Assert.assertThat(mHapClientStateMachine.getCurrentState(), in testIncomingTimeout() 275 Assert.assertThat(mHapClientStateMachine.getCurrentState(), in testStatesChangesWithMessages() 379 Assert.assertThat(mHapClientStateMachine.getCurrentState(), IsInstanceOf.instanceOf(type)); in sendMessageAndVerifyTransition()
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/le_audio/ |
D | LeAudioStateMachineTest.java | 131 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/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/hearingaid/ |
D | HearingAidStateMachineTest.java | 128 Assert.assertThat(mHearingAidStateMachine.getCurrentState(), in testIncomingPriorityReject() 154 Assert.assertThat(mHearingAidStateMachine.getCurrentState(), in testIncomingPriorityAccept() 170 Assert.assertThat(mHearingAidStateMachine.getCurrentState(), in testIncomingPriorityAccept() 198 Assert.assertThat(mHearingAidStateMachine.getCurrentState(), in testOutgoingTimeout() 210 Assert.assertThat(mHearingAidStateMachine.getCurrentState(), in testOutgoingTimeout() 243 Assert.assertThat(mHearingAidStateMachine.getCurrentState(), in testIncomingTimeout() 255 Assert.assertThat(mHearingAidStateMachine.getCurrentState(), in testIncomingTimeout()
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/qc/ |
D | WifiBaseWorkerTestCase.java | 46 assertThat(mWorker.getLifecycle().getCurrentState()).isEqualTo(Lifecycle.State.CREATED); in onCreate_lifecycleCreated() 53 assertThat(mWorker.getLifecycle().getCurrentState()).isEqualTo(Lifecycle.State.RESUMED); in onSubscribe_lifecycleResumed() 61 assertThat(mWorker.getLifecycle().getCurrentState()).isEqualTo(Lifecycle.State.CREATED); in onUnsubscribe_lifecycleCreated() 69 assertThat(mWorker.getLifecycle().getCurrentState()).isEqualTo(Lifecycle.State.DESTROYED); in onClose_lifecycleDestroyed()
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/pbap/ |
D | PbapStateMachineTest.java | 101 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/Camera2/src/com/android/camera/ui/ |
D | ModeListView.java | 145 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/Settings/tests/robotests/src/com/android/settings/wifi/slice/ |
D | WifiScanWorkerTest.java | 68 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/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/a2dp/ |
D | A2dpStateMachineTest.java | 177 Assert.assertThat(mA2dpStateMachine.getCurrentState(), in testIncomingPriorityReject() 203 Assert.assertThat(mA2dpStateMachine.getCurrentState(), in testIncomingPriorityAccept() 226 Assert.assertThat(mA2dpStateMachine.getCurrentState(), in testIncomingPriorityAccept() 250 Assert.assertThat(mA2dpStateMachine.getCurrentState(), in testOutgoingTimeout() 262 Assert.assertThat(mA2dpStateMachine.getCurrentState(), in testOutgoingTimeout() 290 Assert.assertThat(mA2dpStateMachine.getCurrentState(), in testIncomingTimeout() 302 Assert.assertThat(mA2dpStateMachine.getCurrentState(), in testIncomingTimeout()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/util/ |
D | StateMachine.java | 169 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/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/hfpclient/ |
D | HeadsetClientStateMachineTest.java | 201 Assert.assertThat(mHeadsetClientStateMachine.getCurrentState(), in testIncomingPriorityReject() 230 Assert.assertThat(mHeadsetClientStateMachine.getCurrentState(), in testIncomingPriorityAccept() 251 Assert.assertThat(mHeadsetClientStateMachine.getCurrentState(), in testIncomingPriorityAccept() 281 Assert.assertThat(mHeadsetClientStateMachine.getCurrentState(), in testIncomingTimeout() 294 Assert.assertThat(mHeadsetClientStateMachine.getCurrentState(), in testIncomingTimeout() 465 Assert.assertThat(mHeadsetClientStateMachine.getCurrentState(), in setUpServiceLevelConnection() 1188 Assert.assertThat(mHeadsetClientStateMachine.getCurrentState(), in testProcessStackEvent_ConnectionStateChanged_Connected_onConnectingState() 1200 Assert.assertThat(mHeadsetClientStateMachine.getCurrentState(), in testProcessStackEvent_ConnectionStateChanged_Connecting_onConnectingState() 1225 Assert.assertThat(mHeadsetClientStateMachine.getCurrentState(), in testProcessStackEvent_CmdResultWithEmptyQueuedActions_onConnectingState() 1240 Assert.assertThat(mHeadsetClientStateMachine.getCurrentState(), in testProcessStackEvent_Unknown_onConnectingState() [all …]
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/csip/ |
D | CsipSetCoordinatorStateMachineTest.java | 141 Assert.assertThat(mStateMachine.getCurrentState(), in testIncomingPolicyReject() 167 Assert.assertThat(mStateMachine.getCurrentState(), in testIncomingPolicyAccept() 184 Assert.assertThat(mStateMachine.getCurrentState(), in testIncomingPolicyAccept() 208 Assert.assertThat(mStateMachine.getCurrentState(), in testOutgoingTimeout() 219 Assert.assertThat(mStateMachine.getCurrentState(), in testOutgoingTimeout() 248 Assert.assertThat(mStateMachine.getCurrentState(), in testIncomingTimeout() 259 Assert.assertThat(mStateMachine.getCurrentState(), in testIncomingTimeout() 670 Assert.assertThat(mStateMachine.getCurrentState(), IsInstanceOf.instanceOf(type)); in sendMessageAndVerifyTransition()
|
/packages/apps/Settings/tests/unit/src/com/android/settings/network/telephony/ |
D | NetworkProviderWorkerTest.java | 87 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/apps/Launcher3/tests/src/com/android/launcher3/ui/ |
D | WorkProfileTest.java | 144 && manager.getCurrentState() == WorkProfileManager.STATE_ENABLED in toggleWorks() 157 return manager.getCurrentState() == WorkProfileManager.STATE_DISABLED; in toggleWorks() 172 return manager.getCurrentState() == WorkProfileManager.STATE_ENABLED; in toggleWorks()
|
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/ |
D | BluetoothRouteManagerTest.java | 104 assertEquals(BluetoothRouteManager.AUDIO_OFF_STATE_NAME, sm.getCurrentState().getName()); in testConnectBtRetryWhileNotConnected() 128 sm.getCurrentState().getName()); in testAmbiguousActiveDevice() 144 sm.getCurrentState().getName()); in testAudioOnDeviceWithScoOffActiveDevice() 169 sm.getCurrentState().getName()); in testConnectBtRetryWhileConnectedToAnotherDevice()
|
/packages/apps/Settings/tests/unit/src/com/android/settings/network/ |
D | ProxySubscriptionManagerTest.java | 66 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/modules/Bluetooth/android/app/src/com/android/bluetooth/mapclient/ |
D | MceStateMachine.java | 249 IState currentState = this.getCurrentState(); in getState() 281 if (this.getCurrentState() == mConnected) { in sendMapMessage() 333 if (this.getCurrentState() == mConnected) { in getMessage() 344 if (this.getCurrentState() == mConnected) { in getUnreadMessages() 352 if (this.getCurrentState() == mConnected && mMasClient != null) { in getSupportedFeatures() 364 if (this.getCurrentState() == mConnected) { in setMessageStatus()
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/bass_client/ |
D | BassClientStateMachineTest.java | 189 Assert.assertThat(mBassClientStateMachine.getCurrentState(), in testOkToConnectFails() 206 Assert.assertThat(mBassClientStateMachine.getCurrentState(), in testFailToConnectGatt() 226 Assert.assertThat(mBassClientStateMachine.getCurrentState(), in testSuccessfullyConnected() 239 Assert.assertThat(mBassClientStateMachine.getCurrentState(), in testSuccessfullyConnected() 258 Assert.assertThat(mBassClientStateMachine.getCurrentState(), in testConnectGattTimeout() 268 Assert.assertThat(mBassClientStateMachine.getCurrentState(), in testConnectGattTimeout() 277 assertThat(mBassClientStateMachine.getCurrentState()) in testStatesChangesWithMessages() 1501 assertThat(mBassClientStateMachine.getCurrentState()) in initToDisconnectedState() 1547 Assert.assertThat(mBassClientStateMachine.getCurrentState(), IsInstanceOf.instanceOf(type)); in sendMessageAndVerifyTransition()
|
/packages/apps/Camera2/src/com/android/camera/captureintent/stateful/ |
D | StateMachine.java | 32 public State getCurrentState(); in getCurrentState() method
|