Home
last modified time | relevance | path

Searched refs:mStateMachine (Results 1 – 25 of 57) sorted by relevance

123

/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/setup/
DWifiSetupActivity.java67 private StateMachine mStateMachine; field in WifiSetupActivity
96 mStateMachine = ViewModelProviders.of(this).get(StateMachine.class); in onCreate()
97 mStateMachine.setCallback(mStateMachineCallback); in onCreate()
116 if (mStateMachine.getCurrentState() == mSelectWifiState in onCreate()
153 mStateMachine.setStartState(mSelectWifiState); in onCreate()
161 mStateMachine.addState( in onCreate()
165 mStateMachine.addState( in onCreate()
171 mStateMachine.addState( in onCreate()
175 mStateMachine.addState( in onCreate()
181 mStateMachine.addState( in onCreate()
[all …]
DAddPageBasedOnNetworkState.java36 private final StateMachine mStateMachine; field in AddPageBasedOnNetworkState
44 mStateMachine = ViewModelProviders.of(mActivity).get(StateMachine.class); in AddPageBasedOnNetworkState()
53 mStateMachine.getListener().onComplete(StateMachine.OTHER_NETWORK); in processForward()
71 mStateMachine.getListener().onComplete(StateMachine.KNOWN_NETWORK); in processForward()
73 mStateMachine.getListener().onComplete(StateMachine.ADD_START); in processForward()
84 mStateMachine.back(); in processBackward()
DAddStartState.java36 private final StateMachine mStateMachine; field in AddStartState
43 mStateMachine = ViewModelProviders.of(mActivity).get(StateMachine.class); in AddStartState()
55 mStateMachine.getListener().onComplete(StateMachine.PASSWORD); in processForward()
57 mStateMachine.getListener().onComplete(StateMachine.CONNECT); in processForward()
63 mStateMachine.back(); in processBackward()
DAdvancedFlowCompleteState.java31 private final StateMachine mStateMachine; field in AdvancedFlowCompleteState
36 mStateMachine = ViewModelProviders.of(mActivity).get(StateMachine.class); in AdvancedFlowCompleteState()
42 mStateMachine.getListener().onComplete(StateMachine.EXIT_ADVANCED_FLOW); in processForward()
47 mStateMachine.back(); in processBackward()
DProxyBypassState.java75 private StateMachine mStateMachine; field in ProxyBypassState.ProxyBypassFragment
93 mStateMachine = ViewModelProviders in onCreate()
141 mStateMachine.getListener().onComplete(StateMachine.ADVANCED_FLOW_COMPLETE); in onGuidedActionEditedAndProceed()
143 mStateMachine.getListener().onComplete(StateMachine.IP_SETTINGS); in onGuidedActionEditedAndProceed()
146 mStateMachine.getListener().onComplete(StateMachine.PROXY_SETTINGS_INVALID); in onGuidedActionEditedAndProceed()
DProxySettingsState.java77 private StateMachine mStateMachine; field in ProxySettingsState.ProxySettingsFragment
95 mStateMachine = ViewModelProviders in onCreate()
143 mStateMachine.getListener().onComplete(StateMachine.ADVANCED_FLOW_COMPLETE); in onGuidedActionClicked()
145 mStateMachine.getListener().onComplete(StateMachine.IP_SETTINGS); in onGuidedActionClicked()
148 mStateMachine.getListener().onComplete(StateMachine.PROXY_HOSTNAME); in onGuidedActionClicked()
DSummaryConnectedWifiState.java75 private StateMachine mStateMachine; field in SummaryConnectedWifiState.SummaryConnectWifiFragment
108 mStateMachine = ViewModelProviders in onCreate()
118 mStateMachine.finish(Activity.RESULT_OK); in onGuidedActionClicked()
120 mStateMachine.getListener().onComplete(StateMachine.SELECT_WIFI); in onGuidedActionClicked()
DConnectFailedState.java71 private StateMachine mStateMachine; field in ConnectFailedState.ConnectFailedFragment
84 mStateMachine = ViewModelProviders in onCreate()
109 mStateMachine.getListener() in onGuidedActionClicked()
112 mStateMachine.getListener() in onGuidedActionClicked()
DConnectAuthFailureState.java77 private StateMachine mStateMachine; field in ConnectAuthFailureState.ConnectAuthFailureFragment
105 mStateMachine = ViewModelProviders in onCreate()
114 mStateMachine.getListener() in onGuidedActionClicked()
120 mStateMachine.getListener() in onGuidedActionClicked()
DAdvancedOptionsState.java72 private StateMachine mStateMachine; field in AdvancedOptionsState.AdvancedOptionsFragment
89 mStateMachine = ViewModelProviders in onCreate()
113 mStateMachine.getListener().onComplete(StateMachine.ADVANCED_FLOW_COMPLETE); in onGuidedActionClicked()
115 mStateMachine.getListener().onComplete(StateMachine.CONTINUE); in onGuidedActionClicked()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/
DAddWifiNetworkActivity.java61 private StateMachine mStateMachine; field in AddWifiNetworkActivity
74 mStateMachine = ViewModelProviders.of(this).get(StateMachine.class); in onCreate()
75 mStateMachine.setCallback(mStateMachineCallback); in onCreate()
100 mStateMachine.addState( in onCreate()
107 mStateMachine.addState( in onCreate()
112 mStateMachine.addState( in onCreate()
119 mStateMachine.addState( in onCreate()
126 mStateMachine.addState( in onCreate()
133 mStateMachine.addState( in onCreate()
137 mStateMachine.addState( in onCreate()
[all …]
DWifiConnectionActivity.java79 private StateMachine mStateMachine; field in WifiConnectionActivity
104 mStateMachine = ViewModelProviders.of(this).get(StateMachine.class); in onCreate()
105 mStateMachine.setCallback(mStateMachineCallback); in onCreate()
119 mStateMachine.addState( in onCreate()
123 mStateMachine.addState( in onCreate()
129 mStateMachine.addState( in onCreate()
133 mStateMachine.addState( in onCreate()
139 mStateMachine.addState( in onCreate()
145 mStateMachine.addState( in onCreate()
151 mStateMachine.addState( in onCreate()
[all …]
DEditProxySettingsActivity.java54 private StateMachine mStateMachine; field in EditProxySettingsActivity
64 mStateMachine = ViewModelProviders.of(this).get(StateMachine.class); in onCreate()
65 mStateMachine.setCallback(mStateMachineCallback); in onCreate()
84 mStateMachine.addState( in onCreate()
89 mStateMachine.addState( in onCreate()
94 mStateMachine.start(true); in onCreate()
104 mStateMachine.back(); in onBackPressed()
DEditIpSettingsActivity.java53 private StateMachine mStateMachine; field in EditIpSettingsActivity
63 mStateMachine = ViewModelProviders.of(this).get(StateMachine.class); in onCreate()
64 mStateMachine.setCallback(mStateMachineCallback); in onCreate()
84 mStateMachine.addState( in onCreate()
89 mStateMachine.addState( in onCreate()
95 mStateMachine.start(true); in onCreate()
107 mStateMachine.back(); in onBackPressed()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/eap/statemachine/
DEapSimAkaMethodStateMachineTest.java139 private EapSimAkaMethodStateMachine mStateMachine; field in EapSimAkaMethodStateMachineTest
146 mStateMachine = in setUp()
166 mStateMachine = spy(mStateMachine); in setUp()
174 mStateMachine.buildClientErrorResponse(ID_INT, EAP_TYPE_SIM, errorCode); in testBuildClientErrorResponse()
188 mStateMachine.buildResponseMessage( in testBuildResponseMessage()
214 mStateMachine.generateAndPersistKeys(TAG, mockSha1, mockFips186_2Prf, mkInput); in testGenerateAndPersistKeys()
215 assertArrayEquals(K_ENCR, mStateMachine.mKEncr); in testGenerateAndPersistKeys()
216 assertArrayEquals(K_AUT, mStateMachine.mKAut); in testGenerateAndPersistKeys()
217 assertArrayEquals(MSK, mStateMachine.mMsk); in testGenerateAndPersistKeys()
218 assertArrayEquals(EMSK, mStateMachine.mEmsk); in testGenerateAndPersistKeys()
[all …]
DEapAkaPrimeChallengeStateTest.java106 mState = mStateMachine.new ChallengeState(); in setUp()
107 mStateMachine.transitionTo(mState); in setUp()
112 mStateMachine.transitionTo(mStateMachine.new CreatedState()); in testTransitionWithEapIdentity()
121 mStateMachine.process(eapMessage); in testTransitionWithEapIdentity()
123 ChallengeState challengeState = (ChallengeState) mStateMachine.getState(); in testTransitionWithEapIdentity()
132 mStateMachine.transitionTo(mStateMachine.new CreatedState()); in testTransitionWithEapAkaPrimeIdentity()
144 EapResponse eapResponse = (EapResponse) mStateMachine.process(eapMessage); in testTransitionWithEapAkaPrimeIdentity()
156 mStateMachine.process(eapMessage); in testTransitionWithEapAkaPrimeIdentity()
158 ChallengeState challengeState = (ChallengeState) mStateMachine.getState(); in testTransitionWithEapAkaPrimeIdentity()
182 EapResponse eapResponse = (EapResponse) mStateMachine.process(eapMessage); in testProcessMissingAtKdf()
[all …]
DEapAkaPrimeMethodStateMachineTest.java51 assertTrue(mStateMachine.getState() instanceof CreatedState); in testEapAkaPrimeMethodStateMachineStartState()
56 assertEquals(KEY_LEN, mStateMachine.getKEncrLength()); in testKeyLengths()
57 assertEquals(K_AUT_LEN, mStateMachine.getKAutLength()); in testKeyLengths()
58 assertEquals(K_RE_LEN, mStateMachine.getKReLen()); in testKeyLengths()
59 assertEquals(SESSION_KEY_LENGTH, mStateMachine.getMskLength()); in testKeyLengths()
60 assertEquals(SESSION_KEY_LENGTH, mStateMachine.getEmskLength()); in testKeyLengths()
65 System.arraycopy(K_AUT, 0, mStateMachine.mKAut, 0, K_AUT.length); in testIsValidMacUsesHmacSha256()
72 assertTrue(mStateMachine.isValidMac(TAG, eapMessage, eapAkaPrimeTypeData, new byte[0])); in testIsValidMacUsesHmacSha256()
DEapAkaPrimeStateTest.java58 EapMethodState preNotification = (EapMethodState) mStateMachine.getState(); in testProcessNotification()
60 EapResult result = mStateMachine.process(notification); in testProcessNotification()
61 assertEquals(preNotification, mStateMachine.getState()); in testProcessNotification()
72 EapMethodState preProcess = (EapMethodState) mStateMachine.getState(); in testProcessInvalidDecodeResult()
78 EapResult result = mStateMachine.process(eapMessage); in testProcessInvalidDecodeResult()
79 assertEquals(preProcess, mStateMachine.getState()); in testProcessInvalidDecodeResult()
89 EapResult result = mStateMachine.process(new EapMessage(EAP_CODE_FAILURE, ID_INT, null)); in testHandleEapFailure()
91 assertTrue(mStateMachine.getState() instanceof FinalState); in testHandleEapFailure()
96 EapResult result = mStateMachine.process(new EapMessage(EAP_CODE_SUCCESS, ID_INT, null)); in testHandleEapSuccess()
DEapTtlsStateTest.java63 EapTtlsMethodStateMachine mStateMachine; field in EapTtlsStateTest
75 mStateMachine = in setUp()
86 EapResult result = mStateMachine.process(new EapMessage(EAP_CODE_FAILURE, ID_INT, null)); in testHandleEapFailureNotification()
88 assertTrue(mStateMachine.getState() instanceof FinalState); in testHandleEapFailureNotification()
93 EapResult result = mStateMachine.process(new EapMessage(EAP_CODE_SUCCESS, ID_INT, null)); in testHandleEapSuccessNotification()
102 EapMethodState preNotification = (EapMethodState) mStateMachine.getState(); in testHandleEapNotification()
104 EapResult result = mStateMachine.process(eapMessage); in testHandleEapNotification()
105 assertEquals(preNotification, mStateMachine.getState()); in testHandleEapNotification()
DEapMsChapV2StateTest.java61 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()
DEapMsChapV2ValidateAuthenticatorStateTest.java73 mStateMachine.transitionTo( in setUp()
74 mStateMachine.new ValidateAuthenticatorState( in setUp()
94 EapResult result = mStateMachine.process(eapMessage); in testProcessSuccessRequest()
97 assertTrue(mStateMachine.getState() instanceof AwaitingEapSuccessState); in testProcessSuccessRequest()
116 EapResult result = mStateMachine.process(eapMessage); in testProcessInvalidSuccessRequest()
118 assertTrue(mStateMachine.getState() instanceof FinalState); in testProcessInvalidSuccessRequest()
143 EapResult result = mStateMachine.process(eapMessage); in testProcessFailureRequest()
146 assertTrue(mStateMachine.getState() instanceof AwaitingEapFailureState); in testProcessFailureRequest()
159 EapResult result = mStateMachine.process(eapMessage); in testProcessEmptyTypeData()
172 EapResult result = mStateMachine.process(eapMessage); in testProcessInvalidPacket()
DEapAkaPrimeIdentityStateTest.java55 mStateMachine.transitionTo(mStateMachine.new IdentityState()); in setUp()
69 EapResponse eapResponse = (EapResponse) mStateMachine.process(eapMessage); in testProcessIdentityRequest()
88 mStateMachine.process(eapMessage); in testProcessTransitionToChallengeState()
90 assertTrue(mStateMachine.getState() instanceof ChallengeState); in testProcessTransitionToChallengeState()
DEapMsChapV2AwaitingEapSuccessStateTest.java41 mStateMachine.transitionTo( in setUp()
42 mStateMachine.new AwaitingEapSuccessState(MSCHAP_V2_NT_RESPONSE)); in setUp()
48 EapResult result = mStateMachine.process(new EapMessage(EAP_CODE_SUCCESS, ID_INT, null)); in testHandleEapSuccess()
52 assertTrue(mStateMachine.getState() instanceof FinalState); in testHandleEapSuccess()
DEapMsChapV2ChallengeStateTest.java58 mStateMachine.transitionTo(mStateMachine.new ChallengeState()); in setUp()
82 EapResult result = mStateMachine.process(eapMessage); in testProcessChallenge()
85 assertTrue(mStateMachine.getState() instanceof ValidateAuthenticatorState); in testProcessChallenge()
101 EapResult result = mStateMachine.process(eapMessage); in testIncorrectTypeData()
/packages/apps/Camera2/src/com/android/camera/captureintent/
DCaptureIntentModule.java75 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 …]

123