/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/setup/ |
D | WifiSetupActivity.java | 38 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 …]
|
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 | ConnectState.java | 40 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()
|
D | OptionsOrConnectState.java | 24 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()
|
D | ConnectFailedState.java | 30 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()
|
D | ConnectTimeOutState.java | 30 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()
|
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() 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()
|
D | ProxyBypassState.java | 33 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()
|
D | ProxySettingsState.java | 33 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()
|
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 | 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 | ConnectRejectedByApState.java | 30 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()
|
D | ConnectAuthFailureState.java | 31 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()
|
D | AdvancedOptionsState.java | 30 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/ |
D | AddWifiNetworkActivity.java | 40 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 …]
|
D | WifiConnectionActivity.java | 44 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 …]
|
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 | EnterAdvancedFlowOrRetryState.java | 25 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()
|
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 | EditIpSettingsActivity.java | 32 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()
|
D | EditProxySettingsActivity.java | 32 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()
|
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()
|
D | AddPageBasedOnNetworkStateTest.java | 35 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()
|