/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/a2dpsink/ |
D | A2dpSinkStateMachineTest.java | 58 private A2dpSinkStateMachine mStateMachine; field in A2dpSinkStateMachineTest 73 mStateMachine = in setUp() 75 mStateMachine.start(); in setUp() 78 assertThat(mStateMachine.getDevice()).isEqualTo(mDevice); in setUp() 79 assertThat(mStateMachine.getAudioConfig()).isNull(); in setUp() 80 assertThat(mStateMachine.getState()).isEqualTo(BluetoothProfile.STATE_DISCONNECTED); in setUp() 87 mStateMachine = null; in tearDown() 101 mStateMachine.sendMessage( in sendConnectionEvent() 108 mStateMachine.sendMessage( in sendAudioConfigChangedEvent() 120 mStateMachine.connect(); in testConnectInDisconnected() [all …]
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/csip/ |
D | CsipSetCoordinatorStateMachineTest.java | 62 private CsipSetCoordinatorStateMachineWrapper mStateMachine; field in CsipSetCoordinatorStateMachineTest 87 mStateMachine = in setUp() 97 mStateMachine.start(); in setUp() 105 mStateMachine.doQuit(); in tearDown() 113 Assert.assertEquals(STATE_DISCONNECTED, mStateMachine.getConnectionState()); in testDefaultDisconnectedState() 136 mStateMachine.sendMessage(CsipSetCoordinatorStateMachine.STACK_EVENT, connStCh); in testIncomingPolicyReject() 142 mStateMachine.getCurrentState(), in testIncomingPolicyReject() 157 mStateMachine.sendMessage(CsipSetCoordinatorStateMachine.STACK_EVENT, connStCh); in testIncomingPolicyAccept() 169 mStateMachine.getCurrentState(), in testIncomingPolicyAccept() 178 mStateMachine.sendMessage(CsipSetCoordinatorStateMachine.STACK_EVENT, connCompletedEvent); in testIncomingPolicyAccept() [all …]
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | InterfaceConflictManagerTest.java | 82 @Mock StateMachine mStateMachine; field in InterfaceConflictManagerTest 155 mStateMachine, mWaitingState, mTargetState, in testUserApprovalDisabled() 158 verify(mStateMachine, never()).transitionTo(mWaitingState); in testUserApprovalDisabled() 178 mStateMachine, mWaitingState, mTargetState, in testUserApprovalDisabledForSpecificPackage() 181 verify(mStateMachine, never()).transitionTo(mWaitingState); in testUserApprovalDisabledForSpecificPackage() 196 mStateMachine, mWaitingState, mTargetState, in testBypassDialog() 199 verify(mStateMachine, never()).transitionTo(mWaitingState); in testBypassDialog() 221 mStateMachine, mWaitingState, mTargetState, in testUserApprovalNeededButCommandCanProceed() 223 verify(mStateMachine, never()).transitionTo(mWaitingState); in testUserApprovalNeededButCommandCanProceed() 224 verify(mStateMachine, never()).deferMessage(msg); in testUserApprovalNeededButCommandCanProceed() [all …]
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/avrcpcontroller/ |
D | AvrcpControllerServiceTest.java | 82 @Mock private AvrcpControllerStateMachine mStateMachine; field in AvrcpControllerServiceTest 103 mService.mDeviceStateMap.put(mRemoteDevice, mStateMachine); in setUp() 132 when(mStateMachine.getState()).thenReturn(BluetoothProfile.STATE_DISCONNECTED); in disconnect_whenDisconnected_returnsFalse() 139 when(mStateMachine.getState()).thenReturn(BluetoothProfile.STATE_CONNECTED); in disconnect_whenDisconnected_returnsTrue() 142 verify(mStateMachine).disconnect(); in disconnect_whenDisconnected_returnsTrue() 147 when(mStateMachine.getDevice()).thenReturn(mRemoteDevice); in removeStateMachine() 149 mService.removeStateMachine(mStateMachine); in removeStateMachine() 157 when(mStateMachine.getState()).thenReturn(BluetoothProfile.STATE_CONNECTED); in getConnectedDevices() 182 verify(mStateMachine).requestContents(node); in refreshContents() 189 when(mStateMachine.findNode(parentMediaId)).thenReturn(node); in playItem() [all …]
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/ |
D | AddWifiNetworkActivity.java | 84 private StateMachine mStateMachine; field in AddWifiNetworkActivity 102 mStateMachine = ViewModelProviders.of(this).get(StateMachine.class); in onCreate() 103 mStateMachine.setCallback(mStateMachineCallback); in onCreate() 124 mStateMachine.addState( in onCreate() 131 mStateMachine.addState( in onCreate() 136 mStateMachine.addState( in onCreate() 143 mStateMachine.addState( in onCreate() 150 mStateMachine.addState( in onCreate() 155 mStateMachine.addState( in onCreate() 162 mStateMachine.addState( in onCreate() [all …]
|
D | WifiConnectionActivity.java | 66 private StateMachine mStateMachine; field in WifiConnectionActivity 100 mStateMachine = ViewModelProviders.of(this).get(StateMachine.class); in onCreate() 101 mStateMachine.setCallback(mStateMachineCallback); in onCreate() 112 mStateMachine.addState( in onCreate() 116 mStateMachine.addState( in onCreate() 122 mStateMachine.addState( in onCreate() 126 mStateMachine.addState( in onCreate() 132 mStateMachine.addState( in onCreate() 138 mStateMachine.addState( in onCreate() 142 mStateMachine.addState( in onCreate() [all …]
|
D | EditProxySettingsActivity.java | 75 private StateMachine mStateMachine; field in EditProxySettingsActivity 85 mStateMachine = ViewModelProviders.of(this).get(StateMachine.class); in onCreate() 86 mStateMachine.setCallback(mStateMachineCallback); in onCreate() 125 mStateMachine.addState( in onCreate() 130 mStateMachine.addState( in onCreate() 135 mStateMachine.start(true); in onCreate() 140 mStateMachine.back(); in onBackPressed()
|
D | EditIpSettingsActivity.java | 74 private StateMachine mStateMachine; field in EditIpSettingsActivity 84 mStateMachine = ViewModelProviders.of(this).get(StateMachine.class); in onCreate() 85 mStateMachine.setCallback(mStateMachineCallback); in onCreate() 125 mStateMachine.addState( in onCreate() 130 mStateMachine.addState( in onCreate() 136 mStateMachine.start(true); in onCreate() 143 mStateMachine.back(); in onBackPressed()
|
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/eap/statemachine/ |
D | EapSimAkaMethodStateMachineTest.java | 215 private EapSimAkaMethodStateMachine mStateMachine; field in EapSimAkaMethodStateMachineTest 222 mStateMachine = in setUp() 244 mStateMachine = spy(mStateMachine); in setUp() 253 mStateMachine.buildClientErrorResponse(ID_INT, EAP_TYPE_SIM, errorCode); in testBuildClientErrorResponse() 267 mStateMachine.buildResponseMessage( in testBuildResponseMessage() 293 mStateMachine.generateAndPersistKeys(TAG, mockSha1, mockFips186_2Prf, mkInput); in testGenerateAndPersistKeys() 294 assertArrayEquals(K_ENCR, mStateMachine.mKEncr); in testGenerateAndPersistKeys() 295 assertArrayEquals(K_AUT, mStateMachine.mKAut); in testGenerateAndPersistKeys() 296 assertArrayEquals(MSK, mStateMachine.mMsk); in testGenerateAndPersistKeys() 297 assertArrayEquals(EMSK, mStateMachine.mEmsk); in testGenerateAndPersistKeys() [all …]
|
D | EapAkaPrimeChallengeStateTest.java | 107 mState = mStateMachine.new ChallengeState(); in setUp() 108 mStateMachine.transitionTo(mState); in setUp() 113 mStateMachine.transitionTo(mStateMachine.new CreatedState()); in testTransitionWithEapIdentity() 122 mStateMachine.process(eapMessage); in testTransitionWithEapIdentity() 124 ChallengeState challengeState = (ChallengeState) mStateMachine.getState(); in testTransitionWithEapIdentity() 133 mStateMachine.transitionTo(mStateMachine.new CreatedState()); in testTransitionWithEapAkaPrimeIdentity() 145 EapResponse eapResponse = (EapResponse) mStateMachine.process(eapMessage); in testTransitionWithEapAkaPrimeIdentity() 157 mStateMachine.process(eapMessage); in testTransitionWithEapAkaPrimeIdentity() 159 ChallengeState challengeState = (ChallengeState) mStateMachine.getState(); in testTransitionWithEapAkaPrimeIdentity() 183 EapResponse eapResponse = (EapResponse) mStateMachine.process(eapMessage); in testProcessMissingAtKdf() [all …]
|
D | EapAkaPrimeMethodStateMachineTest.java | 52 assertTrue(mStateMachine.getState() instanceof CreatedState); in testEapAkaPrimeMethodStateMachineStartState() 57 assertEquals(KEY_LEN, mStateMachine.getKEncrLength()); in testKeyLengths() 58 assertEquals(K_AUT_LEN, mStateMachine.getKAutLength()); in testKeyLengths() 59 assertEquals(K_RE_LEN, mStateMachine.getKReLen()); in testKeyLengths() 60 assertEquals(SESSION_KEY_LENGTH, mStateMachine.getMskLength()); in testKeyLengths() 61 assertEquals(SESSION_KEY_LENGTH, mStateMachine.getEmskLength()); in testKeyLengths() 66 System.arraycopy(K_AUT, 0, mStateMachine.mKAut, 0, K_AUT.length); in testIsValidMacUsesHmacSha256() 73 assertTrue(mStateMachine.isValidMac(TAG, eapMessage, eapAkaPrimeTypeData, new byte[0])); in testIsValidMacUsesHmacSha256()
|
D | EapTtlsTunnelStateTest.java | 106 mTunnelState = mStateMachine.new TunnelState(); in setUp() 109 mStateMachine.mTlsSession = mMockTlsSession; in setUp() 111 mStateMachine.transitionTo(mTunnelState); in setUp() 122 EapResult result = mStateMachine.process(eapMessage); in testHandleEapFailureNotification() 123 assertTrue(mStateMachine.getState() instanceof FinalState); in testHandleEapFailureNotification() 126 assertTrue(mStateMachine.getState() instanceof FinalState); in testHandleEapFailureNotification() 140 EapResult result = mStateMachine.process(eapMessage); in testHandleEapSuccessNotification() 144 assertTrue(mStateMachine.getState() instanceof FinalState); in testHandleEapSuccessNotification() 156 EapResult result = mStateMachine.process(eapMessage); in testTunnel_prematureSuccess() 197 assertTrue(mStateMachine.getState() instanceof FinalState); in testTunnel_encryptFailure() [all …]
|
D | EapAkaPrimeStateTest.java | 59 EapMethodState preNotification = (EapMethodState) mStateMachine.getState(); in testProcessNotification() 61 EapResult result = mStateMachine.process(notification); in testProcessNotification() 62 assertEquals(preNotification, mStateMachine.getState()); in testProcessNotification() 73 EapMethodState preProcess = (EapMethodState) mStateMachine.getState(); in testProcessInvalidDecodeResult() 79 EapResult result = mStateMachine.process(eapMessage); in testProcessInvalidDecodeResult() 80 assertEquals(preProcess, mStateMachine.getState()); in testProcessInvalidDecodeResult() 90 EapResult result = mStateMachine.process(new EapMessage(EAP_CODE_FAILURE, ID_INT, null)); in testHandleEapFailure() 92 assertTrue(mStateMachine.getState() instanceof FinalState); in testHandleEapFailure() 97 EapResult result = mStateMachine.process(new EapMessage(EAP_CODE_SUCCESS, ID_INT, null)); in testHandleEapSuccess()
|
D | EapMsChapV2StateTest.java | 61 protected EapMsChapV2MethodStateMachine mStateMachine; field in EapMsChapV2StateTest 69 mStateMachine = in setUp() 76 EapResult result = mStateMachine.process(new EapMessage(EAP_CODE_FAILURE, ID_INT, null)); in testHandleEapFailure() 78 assertTrue(mStateMachine.getState() instanceof FinalState); in testHandleEapFailure() 83 EapResult result = mStateMachine.process(new EapMessage(EAP_CODE_SUCCESS, ID_INT, null)); in testHandleEapSuccess() 92 EapMethodState preNotification = (EapMethodState) mStateMachine.getState(); in testHandleEapNotification() 94 EapResult result = mStateMachine.process(notification); in testHandleEapNotification() 95 assertEquals(preNotification, mStateMachine.getState()); in testHandleEapNotification()
|
D | EapTtlsHandshakeStateTest.java | 71 mHandshakeState = mStateMachine.new HandshakeState(); in setUp() 72 mStateMachine.mTlsSession = mMockTlsSession; in setUp() 73 mStateMachine.transitionTo(mHandshakeState); in setUp() 84 mStateMachine.mTlsSession = null; in testStartHandshake_success() 94 assertTrue(mStateMachine.getState() instanceof HandshakeState); in testStartHandshake_success() 99 mStateMachine.mTlsSession = null; in testStartHandshake_tlsSetUpFailure() 108 mStateMachine.mTlsSession = null; in testStartHandshake_failure() 114 assertTrue(mStateMachine.getState() instanceof FinalState); in testStartHandshake_failure() 153 assertTrue(mStateMachine.getState() instanceof FinalState); in testHandshake_failure() 177 assertTrue(mStateMachine.getState() instanceof HandshakeState); in testHandshake_inboundFragmentation_initialFragment() [all …]
|
D | EapTtlsStateTest.java | 95 EapTtlsMethodStateMachine mStateMachine; field in EapTtlsStateTest 121 mStateMachine = in setUp() 140 EapResult result = mStateMachine.process(new EapMessage(EAP_CODE_FAILURE, ID_INT, null)); in testHandleEapFailureNotification() 142 assertTrue(mStateMachine.getState() instanceof FinalState); in testHandleEapFailureNotification() 147 EapResult result = mStateMachine.process(new EapMessage(EAP_CODE_SUCCESS, ID_INT, null)); in testHandleEapSuccessNotification() 156 EapMethodState preNotification = (EapMethodState) mStateMachine.getState(); in testHandleEapNotification() 158 EapResult result = mStateMachine.process(eapMessage); in testHandleEapNotification() 159 assertEquals(preNotification, mStateMachine.getState()); in testHandleEapNotification() 196 EapResult result = mStateMachine.process(eapMessage); in processMessageAndVerifyEapResponse() 216 assertTrue(mStateMachine.getState() instanceof ErroredAndAwaitingClosureState); in processMessageAndVerifyConnectionClosed() [all …]
|
D | EapTtlsErroredAndAwaitingClosureStateTest.java | 45 mStateMachine.mTlsSession = mMockTlsSession; in setUp() 57 mStateMachine.transitionToErroredAndAwaitingClosureState( in testTransitionToClosureState_closureResponse() 62 assertTrue(mStateMachine.getState() instanceof ErroredAndAwaitingClosureState); in testTransitionToClosureState_closureResponse() 73 mStateMachine.transitionToErroredAndAwaitingClosureState( in testTransitionToClosureState_eapError() 83 mStateMachine.transitionTo( in testClosureState_closureNotifyRequest() 84 mStateMachine in testClosureState_closureNotifyRequest()
|
D | EapMsChapV2ValidateAuthenticatorStateTest.java | 74 mStateMachine.transitionTo( in setUp() 75 mStateMachine.new ValidateAuthenticatorState( in setUp() 95 EapResult result = mStateMachine.process(eapMessage); in testProcessSuccessRequest() 98 assertTrue(mStateMachine.getState() instanceof AwaitingEapSuccessState); in testProcessSuccessRequest() 117 EapResult result = mStateMachine.process(eapMessage); in testProcessInvalidSuccessRequest() 119 assertTrue(mStateMachine.getState() instanceof FinalState); in testProcessInvalidSuccessRequest() 144 EapResult result = mStateMachine.process(eapMessage); in testProcessFailureRequest() 147 assertTrue(mStateMachine.getState() instanceof AwaitingEapFailureState); in testProcessFailureRequest() 160 EapResult result = mStateMachine.process(eapMessage); in testProcessEmptyTypeData() 173 EapResult result = mStateMachine.process(eapMessage); in testProcessInvalidPacket()
|
D | EapMsChapV2AwaitingEapSuccessStateTest.java | 42 mStateMachine.transitionTo( in setUp() 43 mStateMachine.new AwaitingEapSuccessState(MSCHAP_V2_NT_RESPONSE)); in setUp() 49 EapResult result = mStateMachine.process(new EapMessage(EAP_CODE_SUCCESS, ID_INT, null)); in testHandleEapSuccess() 53 assertTrue(mStateMachine.getState() instanceof FinalState); in testHandleEapSuccess()
|
/packages/apps/Camera2/src/com/android/camera/captureintent/ |
D | CaptureIntentModule.java | 75 private final StateMachine mStateMachine; field in CaptureIntentModule 86 mStateMachine = new StateMachineImpl(); in CaptureIntentModule() 101 final State initialState = StateBackground.create(mStateMachine, mResourceConstructed); in CaptureIntentModule() 103 mStateMachine.setInitialState(initialState); in CaptureIntentModule() 123 mStateMachine.processEvent(new EventTapOnShutterButton(mTouchPointInsideShutterButton)); in onShutterButtonClick() 143 mStateMachine.processEvent(new EventTapOnCancelShutterButton()); in init() 152 mStateMachine.processEvent(new EventResume()); in resume() 159 mStateMachine.processEvent(new EventPause()); in pause() 218 mStateMachine.processEvent(new EventClickOnCameraKey()); in onKeyDown() 233 mStateMachine.processEvent(new EventClickOnCameraKey()); in onKeyUp() [all …]
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/setup/ |
D | EasyConnectQRState.java | 49 private final StateMachine mStateMachine; field in EasyConnectQRState 53 mStateMachine = ViewModelProviders.of(mActivity).get(StateMachine.class); in EasyConnectQRState() 67 mStateMachine.back(); in processBackward() 83 private StateMachine mStateMachine; field in EasyConnectQRState.QRCodeFragment 94 mStateMachine = ViewModelProviders.of(getActivity()).get(StateMachine.class); in onCreate() 171 mStateMachine.getListener().onComplete(QRCodeFragment.this, StateMachine.CONNECT); in onEnrolleeSuccess() 179 mStateMachine.getListener().onComplete(QRCodeFragment.this, in onFailure() 198 mStateMachine.getListener().onComplete(QRCodeFragment.this, in onBootstrapUriGenerated()
|
D | AdvancedFlowCompleteState.java | 31 private final StateMachine mStateMachine; field in AdvancedFlowCompleteState 36 mStateMachine = ViewModelProviders.of(mActivity).get(StateMachine.class); in AdvancedFlowCompleteState() 42 mStateMachine.getListener().onComplete(this, StateMachine.EXIT_ADVANCED_FLOW); in processForward() 47 mStateMachine.back(); in processBackward()
|
D | AddStartState.java | 31 private final StateMachine mStateMachine; field in AddStartState 38 mStateMachine = ViewModelProviders.of(mActivity).get(StateMachine.class); in AddStartState() 44 mStateMachine.getListener().onComplete( in processForward() 52 mStateMachine.back(); in processBackward()
|
D | ProxyBypassState.java | 75 private StateMachine mStateMachine; field in ProxyBypassState.ProxyBypassFragment 93 mStateMachine = ViewModelProviders in onCreate() 143 mStateMachine.getListener().onComplete(this, in onGuidedActionEditedAndProceed() 146 mStateMachine.getListener().onComplete(this, StateMachine.IP_SETTINGS); in onGuidedActionEditedAndProceed() 149 mStateMachine.getListener().onComplete(this, in onGuidedActionEditedAndProceed()
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/hfpclient/ |
D | HeadsetClientServiceTest.java | 75 @Mock private HeadsetClientStateMachine mStateMachine; field in HeadsetClientServiceTest 114 mService.getStateMachineMap().put(device, mStateMachine); in testSendBIEVtoStateMachineWhenBatteryChanged() 122 verify(mStateMachine, timeout(STANDARD_WAIT_MILLIS).times(1)) in testSendBIEVtoStateMachineWhenBatteryChanged() 135 mService.getStateMachineMap().put(device, mStateMachine); in testUpdateBatteryLevel() 140 verify(mStateMachine, timeout(STANDARD_WAIT_MILLIS).times(1)) in testUpdateBatteryLevel() 151 mService.getStateMachineMap().put(device, mStateMachine); in testSetCallAudioPolicy() 155 verify(mStateMachine, timeout(STANDARD_WAIT_MILLIS).times(1)) in testSetCallAudioPolicy() 166 mService.getStateMachineMap().put(device, mStateMachine); in testDumpDoesNotCrash()
|