/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/setup/ |
D | AdvancedWifiOptionsFlow.java | 28 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 …]
|
D | WifiSetupActivity.java | 43 import com.android.tv.settings.connectivity.util.StateMachine; 58 private final StateMachine.Callback mStateMachineCallback = new StateMachine.Callback() { 72 private StateMachine mStateMachine; 110 mStateMachine = ViewModelProviders.of(this).get(StateMachine.class); in onCreate() 174 StateMachine.ADD_START, in onCreate() 178 StateMachine.SELECT_WIFI, in onCreate() 184 StateMachine.PASSWORD, in onCreate() 188 StateMachine.CONNECT, in onCreate() 194 StateMachine.ADD_PAGE_BASED_ON_NETWORK_CHOICE, in onCreate() 200 StateMachine.OTHER_NETWORK, in onCreate() [all …]
|
D | OptionsOrConnectState.java | 24 import com.android.tv.settings.connectivity.util.StateMachine; 40 StateMachine stateMachine = ViewModelProviders.of(mActivity).get(StateMachine.class); in processForward() 45 stateMachine.getListener().onComplete(StateMachine.RESTART); in processForward() 48 stateMachine.getListener().onComplete(StateMachine.ENTER_ADVANCED_FLOW); in processForward() 51 stateMachine.getListener().onComplete(StateMachine.CONNECT); in processForward() 58 StateMachine stateMachine = ViewModelProviders.of(mActivity).get(StateMachine.class); in processBackward()
|
D | ProxySettingsState.java | 36 import com.android.tv.settings.connectivity.util.StateMachine; 54 StateMachine stateMachine = ViewModelProviders in processForward() 56 .get(StateMachine.class); in processForward() 57 stateMachine.getListener().onComplete(StateMachine.ADVANCED_FLOW_COMPLETE); in processForward() 96 private StateMachine mStateMachine; 116 .get(StateMachine.class); in onCreate() 165 mStateMachine.getListener().onComplete(StateMachine.ADVANCED_FLOW_COMPLETE); in onGuidedActionClicked() 167 mStateMachine.getListener().onComplete(StateMachine.IP_SETTINGS); in onGuidedActionClicked() 170 mStateMachine.getListener().onComplete(StateMachine.PROXY_HOSTNAME); in onGuidedActionClicked()
|
D | AdvancedOptionsState.java | 32 import com.android.tv.settings.connectivity.util.StateMachine; 50 StateMachine stateMachine = ViewModelProviders in processForward() 52 .get(StateMachine.class); in processForward() 53 stateMachine.getListener().onComplete(StateMachine.ADVANCED_FLOW_COMPLETE); in processForward() 90 private StateMachine mStateMachine; 109 .get(StateMachine.class); in onCreate() 131 mStateMachine.getListener().onComplete(StateMachine.ADVANCED_FLOW_COMPLETE); in onGuidedActionClicked() 133 mStateMachine.getListener().onComplete(StateMachine.CONTINUE); in onGuidedActionClicked()
|
D | ConnectState.java | 49 import com.android.tv.settings.connectivity.util.StateMachine; 76 StateMachine stateMachine = ViewModelProviders.of(mActivity).get(StateMachine.class); in processBackward() 98 StateMachine mStateMachine; 138 .of(getActivity()).get(StateMachine.class); in onCreate() 225 notifyListener(StateMachine.RESULT_SUCCESS); in inferConnectionStatus() 228 notifyListener(StateMachine.RESULT_CAPTIVE_PORTAL); in inferConnectionStatus() 244 notifyListener(StateMachine.RESULT_UNKNOWN_ERROR); in inferConnectionStatus() 250 notifyListener(StateMachine.RESULT_FAILURE); in inferConnectionStatus() 335 fragment.notifyListener(StateMachine.RESULT_SUCCESS); in handleMessage() 342 fragment.notifyListener(StateMachine.RESULT_FAILURE); in handleMessage()
|
D | IpSettingsState.java | 37 import com.android.tv.settings.connectivity.util.StateMachine; 55 StateMachine stateMachine = ViewModelProviders in processForward() 57 .get(StateMachine.class); in processForward() 58 stateMachine.getListener().onComplete(StateMachine.ADVANCED_FLOW_COMPLETE); in processForward() 97 private StateMachine mStateMachine; 117 .get(StateMachine.class); in onCreate() 165 mStateMachine.getListener().onComplete(StateMachine.ADVANCED_FLOW_COMPLETE); in onGuidedActionClicked() 167 mStateMachine.getListener().onComplete(StateMachine.CONTINUE); in onGuidedActionClicked()
|
D | CaptivePortalWaitingState.java | 29 import com.android.tv.settings.connectivity.util.StateMachine; 47 StateMachine stateMachine = ViewModelProviders.of(mActivity).get(StateMachine.class); in processForward() 48 stateMachine.getListener().onComplete(StateMachine.CONTINUE); in processForward() 53 StateMachine stateMachine = ViewModelProviders.of(mActivity).get(StateMachine.class); in processBackward()
|
D | ConnectFailedState.java | 31 import com.android.tv.settings.connectivity.util.StateMachine; 57 StateMachine stateMachine = ViewModelProviders.of(mActivity).get(StateMachine.class); in processBackward() 74 private StateMachine mStateMachine; 86 .get(StateMachine.class); in onCreate() 110 .onComplete(StateMachine.TRY_AGAIN); in onGuidedActionClicked() 113 .onComplete(StateMachine.SELECT_WIFI); in onGuidedActionClicked()
|
D | EasyConnectQRState.java | 41 import com.android.tv.settings.connectivity.util.StateMachine; 49 private final StateMachine mStateMachine; 53 mStateMachine = ViewModelProviders.of(mActivity).get(StateMachine.class); in EasyConnectQRState() 83 private StateMachine mStateMachine; 94 mStateMachine = ViewModelProviders.of(getActivity()).get(StateMachine.class); in onCreate() 171 mStateMachine.getListener().onComplete(StateMachine.CONNECT); in onEnrolleeSuccess() 179 mStateMachine.getListener().onComplete(StateMachine.RESULT_FAILURE); in onFailure() 197 mStateMachine.getListener().onComplete(StateMachine.RESULT_FAILURE); in onBootstrapUriGenerated()
|
D | AddPageBasedOnNetworkState.java | 29 import com.android.tv.settings.connectivity.util.StateMachine; 36 private final StateMachine mStateMachine; 44 mStateMachine = ViewModelProviders.of(mActivity).get(StateMachine.class); in AddPageBasedOnNetworkState() 52 mStateMachine.getListener().onComplete(StateMachine.OTHER_NETWORK); in processForward() 70 mStateMachine.getListener().onComplete(StateMachine.KNOWN_NETWORK); in processForward() 72 mStateMachine.getListener().onComplete(StateMachine.ADD_START); in processForward()
|
D | ProxyBypassState.java | 34 import com.android.tv.settings.connectivity.util.StateMachine; 76 private StateMachine mStateMachine; 96 .get(StateMachine.class); in onCreate() 143 mStateMachine.getListener().onComplete(StateMachine.ADVANCED_FLOW_COMPLETE); in onGuidedActionEditedAndProceed() 145 mStateMachine.getListener().onComplete(StateMachine.IP_SETTINGS); in onGuidedActionEditedAndProceed() 148 mStateMachine.getListener().onComplete(StateMachine.PROXY_SETTINGS_INVALID); in onGuidedActionEditedAndProceed()
|
D | AddStartState.java | 28 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()
|
D | EnterPasswordState.java | 46 import com.android.tv.settings.connectivity.util.StateMachine; 58 private StateMachine mStateMachine; 63 mStateMachine = ViewModelProviders.of(mActivity).get(StateMachine.class); in EnterPasswordState() 69 mStateMachine.getListener().onComplete(StateMachine.OPTIONS_OR_CONNECT); in processForward() 80 mStateMachine.getListener().onComplete(StateMachine.CANCEL); in processBackward() 101 private StateMachine mStateMachine; 185 .get(StateMachine.class); in onCreate() 251 mStateMachine.getListener().onComplete(StateMachine.OPTIONS_OR_CONNECT); in onGuidedActionEditedAndProceed()
|
D | SuccessState.java | 30 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()
|
D | ChooseSecurityState.java | 31 import com.android.tv.settings.connectivity.util.StateMachine; 73 private StateMachine mStateMachine; 92 .get(StateMachine.class); in onCreate() 105 mStateMachine.getListener().onComplete(StateMachine.OPTIONS_OR_CONNECT); in onGuidedActionClicked() 107 mStateMachine.getListener().onComplete(StateMachine.CONTINUE); in onGuidedActionClicked()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/ |
D | AddWifiNetworkActivity.java | 44 import com.android.tv.settings.connectivity.util.StateMachine; 65 private final StateMachine.Callback mStateMachineCallback = new StateMachine.Callback() { 81 private StateMachine mStateMachine; 99 mStateMachine = ViewModelProviders.of(this).get(StateMachine.class); in onCreate() 123 StateMachine.CONTINUE, in onCreate() 130 StateMachine.OPTIONS_OR_CONNECT, in onCreate() 135 StateMachine.CONTINUE, in onCreate() 142 StateMachine.OPTIONS_OR_CONNECT, in onCreate() 149 StateMachine.CONNECT, in onCreate() 154 StateMachine.RESULT_FAILURE, in onCreate() [all …]
|
D | WifiConnectionActivity.java | 46 import com.android.tv.settings.connectivity.util.StateMachine; 81 private StateMachine mStateMachine; 92 private final StateMachine.Callback mStateMachineCallback = new StateMachine.Callback() { 116 mStateMachine = ViewModelProviders.of(this).get(StateMachine.class); in onCreate() 131 StateMachine.ADD_START, in onCreate() 135 StateMachine.SELECT_WIFI, in onCreate() 141 StateMachine.PASSWORD, in onCreate() 145 StateMachine.CONNECT, in onCreate() 151 StateMachine.OPTIONS_OR_CONNECT, in onCreate() 157 StateMachine.CONNECT, in onCreate() [all …]
|
D | SaveState.java | 30 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()
|
D | FinishState.java | 24 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()
|
D | SaveFailedState.java | 31 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()
|
D | EditProxySettingsActivity.java | 36 import com.android.tv.settings.connectivity.util.StateMachine; 58 private StateMachine mStateMachine; 59 private final StateMachine.Callback mStateMachineCallback = result -> { 68 mStateMachine = ViewModelProviders.of(this).get(StateMachine.class); in onCreate() 108 StateMachine.RESULT_SUCCESS, in onCreate() 113 StateMachine.RESULT_FAILURE, in onCreate()
|
D | EditIpSettingsActivity.java | 36 import com.android.tv.settings.connectivity.util.StateMachine; 57 private StateMachine mStateMachine; 58 private final StateMachine.Callback mStateMachineCallback = result -> { 67 mStateMachine = ViewModelProviders.of(this).get(StateMachine.class); in onCreate() 108 StateMachine.RESULT_SUCCESS, in onCreate() 113 StateMachine.RESULT_FAILURE, in onCreate()
|
D | SaveSuccessState.java | 31 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/ |
D | AddStartStateTest.java | 28 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()
|