Home
last modified time | relevance | path

Searched refs:StateMachine (Results 1 – 25 of 73) sorted by relevance

123

/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/setup/
DWifiSetupActivity.java38 import com.android.tv.settings.connectivity.util.StateMachine;
53 private final StateMachine.Callback mStateMachineCallback = new StateMachine.Callback() {
67 private StateMachine mStateMachine;
96 mStateMachine = ViewModelProviders.of(this).get(StateMachine.class); in onCreate()
163 StateMachine.ADD_START, in onCreate()
167 StateMachine.SELECT_WIFI, in onCreate()
173 StateMachine.PASSWORD, in onCreate()
177 StateMachine.CONNECT, in onCreate()
183 StateMachine.ADD_PAGE_BASED_ON_NETWORK_CHOICE, in onCreate()
189 StateMachine.OTHER_NETWORK, in onCreate()
[all …]
DAdvancedWifiOptionsFlow.java28 import com.android.tv.settings.connectivity.util.StateMachine;
74 StateMachine stateMachine = ViewModelProviders.of(activity).get(StateMachine.class); in createFlow()
123 StateMachine.ENTER_ADVANCED_FLOW, in createFlow()
133 StateMachine.EXIT_ADVANCED_FLOW, in createFlow()
141 StateMachine.ADVANCED_FLOW_COMPLETE, in createFlow()
146 StateMachine.CONTINUE, in createFlow()
153 StateMachine.IP_SETTINGS, in createFlow()
158 StateMachine.ADVANCED_FLOW_COMPLETE, in createFlow()
163 StateMachine.PROXY_HOSTNAME, in createFlow()
170 StateMachine.CONTINUE, in createFlow()
[all …]
DConnectState.java40 import com.android.tv.settings.connectivity.util.StateMachine;
79 StateMachine stateMachine = ViewModelProviders.of(mActivity).get(StateMachine.class); in processBackward()
101 StateMachine mStateMachine;
135 .of(getActivity()).get(StateMachine.class); in onCreate()
191 notifyListener(StateMachine.RESULT_SUCCESS); in inferConnectionStatus()
198 notifyListener(StateMachine.RESULT_BAD_AUTH); in inferConnectionStatus()
202 notifyListener(StateMachine.RESULT_UNKNOWN_ERROR); in inferConnectionStatus()
205 notifyListener(StateMachine.RESULT_REJECTED_BY_AP); in inferConnectionStatus()
268 fragment.notifyListener(StateMachine.RESULT_SUCCESS); in handleMessage()
271 fragment.notifyListener(StateMachine.RESULT_TIMEOUT); in handleMessage()
DOptionsOrConnectState.java24 import com.android.tv.settings.connectivity.util.StateMachine;
40 StateMachine stateMachine = ViewModelProviders.of(mActivity).get(StateMachine.class); in processForward()
44 stateMachine.getListener().onComplete(StateMachine.ENTER_ADVANCED_FLOW); in processForward()
46 stateMachine.getListener().onComplete(StateMachine.CONNECT); in processForward()
53 StateMachine stateMachine = ViewModelProviders.of(mActivity).get(StateMachine.class); in processBackward()
DConnectFailedState.java30 import com.android.tv.settings.connectivity.util.StateMachine;
56 StateMachine stateMachine = ViewModelProviders.of(mActivity).get(StateMachine.class); in processBackward()
71 private StateMachine mStateMachine;
86 .get(StateMachine.class); in onCreate()
110 .onComplete(StateMachine.TRY_AGAIN); in onGuidedActionClicked()
113 .onComplete(StateMachine.SELECT_WIFI); in onGuidedActionClicked()
DConnectTimeOutState.java30 import com.android.tv.settings.connectivity.util.StateMachine;
62 StateMachine stateMachine = ViewModelProviders.of(mActivity).get(StateMachine.class); in processBackward()
77 private StateMachine mStateMachine;
92 .get(StateMachine.class); in onCreate()
116 .onComplete(StateMachine.TRY_AGAIN); in onGuidedActionClicked()
119 .onComplete(StateMachine.SELECT_WIFI); in onGuidedActionClicked()
DAddPageBasedOnNetworkState.java29 import com.android.tv.settings.connectivity.util.StateMachine;
36 private final StateMachine mStateMachine;
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()
DProxyBypassState.java33 import com.android.tv.settings.connectivity.util.StateMachine;
75 private StateMachine mStateMachine;
95 .get(StateMachine.class); 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.java33 import com.android.tv.settings.connectivity.util.StateMachine;
77 private StateMachine mStateMachine;
97 .get(StateMachine.class); 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()
DAddStartState.java28 import com.android.tv.settings.connectivity.util.StateMachine;
36 private final StateMachine mStateMachine;
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()
DSuccessState.java30 import com.android.tv.settings.connectivity.util.StateMachine;
55 StateMachine stateMachine = ViewModelProviders.of(mActivity).get(StateMachine.class); in processBackward()
89 StateMachine stateMachine = ViewModelProviders in onCreate()
91 .get(StateMachine.class); in onCreate()
DConnectRejectedByApState.java30 import com.android.tv.settings.connectivity.util.StateMachine;
74 private StateMachine mStateMachine;
103 .get(StateMachine.class); in onCreate()
111 .onComplete(StateMachine.TRY_AGAIN); in onGuidedActionClicked()
117 .onComplete(StateMachine.SELECT_WIFI); in onGuidedActionClicked()
DConnectAuthFailureState.java31 import com.android.tv.settings.connectivity.util.StateMachine;
77 private StateMachine mStateMachine;
107 .get(StateMachine.class); in onCreate()
115 .onComplete(StateMachine.TRY_AGAIN); in onGuidedActionClicked()
121 .onComplete(StateMachine.SELECT_WIFI); in onGuidedActionClicked()
DAdvancedOptionsState.java30 import com.android.tv.settings.connectivity.util.StateMachine;
72 private StateMachine mStateMachine;
91 .get(StateMachine.class); 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.java40 import com.android.tv.settings.connectivity.util.StateMachine;
61 private StateMachine mStateMachine;
62 private final StateMachine.Callback mStateMachineCallback = new StateMachine.Callback() {
74 mStateMachine = ViewModelProviders.of(this).get(StateMachine.class); in onCreate()
102 StateMachine.CONTINUE, in onCreate()
109 StateMachine.OPTIONS_OR_CONNECT, in onCreate()
114 StateMachine.PASSWORD, in onCreate()
121 StateMachine.OPTIONS_OR_CONNECT, in onCreate()
128 StateMachine.CONNECT, in onCreate()
135 StateMachine.RESULT_REJECTED_BY_AP, in onCreate()
[all …]
DWifiConnectionActivity.java44 import com.android.tv.settings.connectivity.util.StateMachine;
79 private StateMachine mStateMachine;
92 private final StateMachine.Callback mStateMachineCallback = new StateMachine.Callback() {
104 mStateMachine = ViewModelProviders.of(this).get(StateMachine.class); in onCreate()
121 StateMachine.ADD_START, in onCreate()
125 StateMachine.SELECT_WIFI, in onCreate()
131 StateMachine.PASSWORD, in onCreate()
135 StateMachine.CONNECT, in onCreate()
141 StateMachine.OPTIONS_OR_CONNECT, in onCreate()
147 StateMachine.CONNECT, in onCreate()
[all …]
DSaveState.java30 import com.android.tv.settings.connectivity.util.StateMachine;
59 StateMachine stateMachine = ViewModelProviders.of(mActivity).get(StateMachine.class); in processBackward()
96 StateMachine sm = ViewModelProviders in onSuccess()
97 .of(activity).get(StateMachine.class); in onSuccess()
98 sm.getListener().onComplete(StateMachine.RESULT_SUCCESS); in onSuccess()
106 StateMachine sm = ViewModelProviders in onFailure()
107 .of(activity).get(StateMachine.class); in onFailure()
108 sm.getListener().onComplete(StateMachine.RESULT_FAILURE); in onFailure()
DEnterAdvancedFlowOrRetryState.java25 import com.android.tv.settings.connectivity.util.StateMachine;
41 StateMachine stateMachine = ViewModelProviders.of(mActivity).get(StateMachine.class); in processForward()
45 stateMachine.getListener().onComplete(StateMachine.ENTER_ADVANCED_FLOW); in processForward()
47 stateMachine.getListener().onComplete(StateMachine.CONTINUE); in processForward()
54 StateMachine stateMachine = ViewModelProviders.of(mActivity).get(StateMachine.class); in processBackward()
DFinishState.java24 import com.android.tv.settings.connectivity.util.StateMachine;
39 StateMachine stateMachine = ViewModelProviders.of(mActivity).get(StateMachine.class); in processForward()
40 stateMachine.getListener().onComplete(StateMachine.CONTINUE); in processForward()
46 StateMachine stateMachine = ViewModelProviders.of(mActivity).get(StateMachine.class); in processBackward()
DSaveFailedState.java31 import com.android.tv.settings.connectivity.util.StateMachine;
57 StateMachine sm = ViewModelProviders.of(mActivity).get(StateMachine.class); in processBackward()
70 private StateMachine mStateMachine;
85 .get(StateMachine.class); in onCreate()
101 mStateMachine.getListener().onComplete(StateMachine.FAIL); in onGuidedActionClicked()
DEditIpSettingsActivity.java32 import com.android.tv.settings.connectivity.util.StateMachine;
53 private StateMachine mStateMachine;
54 private final StateMachine.Callback mStateMachineCallback = result -> {
63 mStateMachine = ViewModelProviders.of(this).get(StateMachine.class); in onCreate()
86 StateMachine.RESULT_SUCCESS, in onCreate()
91 StateMachine.RESULT_FAILURE, in onCreate()
DEditProxySettingsActivity.java32 import com.android.tv.settings.connectivity.util.StateMachine;
54 private StateMachine mStateMachine;
55 private final StateMachine.Callback mStateMachineCallback = result -> {
64 mStateMachine = ViewModelProviders.of(this).get(StateMachine.class); in onCreate()
86 StateMachine.RESULT_SUCCESS, in onCreate()
91 StateMachine.RESULT_FAILURE, in onCreate()
DSaveSuccessState.java31 import com.android.tv.settings.connectivity.util.StateMachine;
54 StateMachine stateMachine = ViewModelProviders.of(mActivity).get(StateMachine.class); in processBackward()
88 StateMachine stateMachine = ViewModelProviders in onCreate()
90 .get(StateMachine.class); in onCreate()
/packages/apps/TvSettings/Settings/tests/robotests/src/com/android/tv/settings/connectivity/setup/
DAddStartStateTest.java28 import com.android.tv.settings.connectivity.util.StateMachine;
53 StateMachine stateMachine = ViewModelProviders.of(mActivity).get(StateMachine.class); in setUp()
66 verify(mStateCompleteListener).onComplete(StateMachine.PASSWORD); in testForward_WEP_NeedPassword()
75 verify(mStateCompleteListener).onComplete(StateMachine.PASSWORD); in testForward_WPA_NeedPassword()
84 verify(mStateCompleteListener).onComplete(StateMachine.PASSWORD); in testForward_EAP_NeedPassword()
95 verify(mStateCompleteListener).onComplete(StateMachine.CONNECT); in testForward_AlreadyHasPassword()
103 verify(mStateCompleteListener).onComplete(StateMachine.CONNECT); in testForward_DoNotNeedPassword()
DAddPageBasedOnNetworkStateTest.java35 import com.android.tv.settings.connectivity.util.StateMachine;
63 StateMachine stateMachine = ViewModelProviders.of(mActivity).get(StateMachine.class); in setUp()
76 verify(mStateCompleteListener).onComplete(StateMachine.OTHER_NETWORK); in testForward_otherNetwork()
120 verify(mStateCompleteListener).onComplete(StateMachine.KNOWN_NETWORK); in testForward_networkSaved()
135 verify(mStateCompleteListener).onComplete(StateMachine.ADD_START); in testForward_networkNotSaved()

123