/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() 126 StateMachine.ENTER_ADVANCED_FLOW, in createFlow() 136 StateMachine.EXIT_ADVANCED_FLOW, in createFlow() 144 StateMachine.ADVANCED_FLOW_COMPLETE, in createFlow() 149 StateMachine.CONTINUE, in createFlow() 156 StateMachine.IP_SETTINGS, in createFlow() 161 StateMachine.ADVANCED_FLOW_COMPLETE, in createFlow() 166 StateMachine.PROXY_HOSTNAME, in createFlow() 173 StateMachine.CONTINUE, in createFlow() [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(this, StateMachine.RESTART); in processForward() 48 stateMachine.getListener().onComplete(this, StateMachine.ENTER_ADVANCED_FLOW); in processForward() 51 stateMachine.getListener().onComplete(this, 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(this, StateMachine.ADVANCED_FLOW_COMPLETE); in processForward() 96 private StateMachine mStateMachine; 116 .get(StateMachine.class); in onCreate() 166 StateMachine.ADVANCED_FLOW_COMPLETE); in onGuidedActionClicked() 168 mStateMachine.getListener().onComplete(this, StateMachine.IP_SETTINGS); in onGuidedActionClicked() 171 mStateMachine.getListener().onComplete(this, StateMachine.PROXY_HOSTNAME); in onGuidedActionClicked()
|
D | AdvancedOptionsState.java | 34 import com.android.tv.settings.connectivity.util.StateMachine; 52 StateMachine stateMachine = ViewModelProviders in processForward() 54 .get(StateMachine.class); in processForward() 55 stateMachine.getListener().onComplete(this, StateMachine.ADVANCED_FLOW_COMPLETE); in processForward() 92 private StateMachine mStateMachine; 126 .get(StateMachine.class); in onCreate() 148 mStateMachine.getListener().onComplete(this, StateMachine.ADVANCED_FLOW_COMPLETE); in onGuidedActionClicked() 150 mStateMachine.getListener().onComplete(this, StateMachine.CONTINUE); in onGuidedActionClicked()
|
D | ConnectState.java | 50 import com.android.tv.settings.connectivity.util.StateMachine; 78 StateMachine stateMachine = ViewModelProviders.of(mActivity).get(StateMachine.class); in processBackward() 100 StateMachine mStateMachine; 144 .of(getActivity()).get(StateMachine.class); in onCreate() 214 notifyListener(StateMachine.RESULT_SUCCESS); in connectSucceeded() 272 notifyListener(StateMachine.RESULT_UNKNOWN_ERROR); in startConnect() 288 notifyListener(StateMachine.RESULT_FAILURE); in startConnect() 300 notifyListener(StateMachine.RESULT_UNKNOWN_ERROR); in startConnect() 306 notifyListener(StateMachine.RESULT_FAILURE); in startConnect() 324 notifyListener(StateMachine.RESULT_UNKNOWN_ERROR); in startSave() [all …]
|
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(this, StateMachine.ADVANCED_FLOW_COMPLETE); in processForward() 97 private StateMachine mStateMachine; 117 .get(StateMachine.class); in onCreate() 165 mStateMachine.getListener().onComplete(this, StateMachine.ADVANCED_FLOW_COMPLETE); in onGuidedActionClicked() 167 mStateMachine.getListener().onComplete(this, StateMachine.CONTINUE); in onGuidedActionClicked()
|
D | AddStartState.java | 24 import com.android.tv.settings.connectivity.util.StateMachine; 31 private final StateMachine mStateMachine; 38 mStateMachine = ViewModelProviders.of(mActivity).get(StateMachine.class); in AddStartState() 47 ? StateMachine.PASSWORD : StateMachine.CONNECT); in processForward()
|
D | ConnectFailedState.java | 32 import com.android.tv.settings.connectivity.util.StateMachine; 60 StateMachine stateMachine = ViewModelProviders.of(mActivity).get(StateMachine.class); in processBackward() 77 private StateMachine mStateMachine; 89 .get(StateMachine.class); in onCreate() 113 .onComplete(this, StateMachine.TRY_AGAIN); in onGuidedActionClicked() 116 .onComplete(this, 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(QRCodeFragment.this, StateMachine.CONNECT); in onEnrolleeSuccess() 180 StateMachine.RESULT_FAILURE); in onFailure() 199 StateMachine.RESULT_FAILURE); in onBootstrapUriGenerated()
|
D | ProxyBypassState.java | 33 import com.android.tv.settings.connectivity.util.StateMachine; 75 private StateMachine mStateMachine; 95 .get(StateMachine.class); in onCreate() 144 StateMachine.ADVANCED_FLOW_COMPLETE); in onGuidedActionEditedAndProceed() 146 mStateMachine.getListener().onComplete(this, StateMachine.IP_SETTINGS); in onGuidedActionEditedAndProceed() 150 StateMachine.PROXY_SETTINGS_INVALID); in onGuidedActionEditedAndProceed()
|
D | AdvancedFlowCompleteState.java | 24 import com.android.tv.settings.connectivity.util.StateMachine; 31 private final StateMachine mStateMachine; 36 mStateMachine = ViewModelProviders.of(mActivity).get(StateMachine.class); in AdvancedFlowCompleteState() 42 mStateMachine.getListener().onComplete(this, StateMachine.EXIT_ADVANCED_FLOW); in processForward()
|
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(this, StateMachine.OPTIONS_OR_CONNECT); in onGuidedActionClicked() 107 mStateMachine.getListener().onComplete(this, StateMachine.CONTINUE); in onGuidedActionClicked()
|
D | EnterPasswordState.java | 48 import com.android.tv.settings.connectivity.util.StateMachine; 60 private StateMachine mStateMachine; 65 mStateMachine = ViewModelProviders.of(mActivity).get(StateMachine.class); in EnterPasswordState() 71 mStateMachine.getListener().onComplete(this, StateMachine.OPTIONS_OR_CONNECT); in processForward() 82 mStateMachine.getListener().onComplete(this, StateMachine.CANCEL); in processBackward() 103 private StateMachine mStateMachine; 187 .get(StateMachine.class); in onCreate() 253 mStateMachine.getListener().onComplete(this, StateMachine.OPTIONS_OR_CONNECT); in onGuidedActionEditedAndProceed()
|
D | Dns2State.java | 32 import com.android.tv.settings.connectivity.util.StateMachine; 74 private StateMachine mStateMachine; 94 .get(StateMachine.class); in onCreate() 142 StateMachine.ADVANCED_FLOW_COMPLETE); in onGuidedActionEditedAndProceed() 144 mStateMachine.getListener().onComplete(this, StateMachine.IP_SETTINGS_INVALID); in onGuidedActionEditedAndProceed()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/ |
D | AddWifiNetworkActivity.java | 47 import com.android.tv.settings.connectivity.util.StateMachine; 68 private final StateMachine.Callback mStateMachineCallback = new StateMachine.Callback() { 84 private StateMachine mStateMachine; 102 mStateMachine = ViewModelProviders.of(this).get(StateMachine.class); in onCreate() 126 StateMachine.CONTINUE, in onCreate() 133 StateMachine.OPTIONS_OR_CONNECT, in onCreate() 138 StateMachine.CONTINUE, in onCreate() 145 StateMachine.OPTIONS_OR_CONNECT, in onCreate() 152 StateMachine.CONNECT, in onCreate() 157 StateMachine.RESULT_FAILURE, in onCreate() [all …]
|
D | WifiConnectionActivity.java | 44 import com.android.tv.settings.connectivity.util.StateMachine; 66 private StateMachine mStateMachine; 76 private final StateMachine.Callback mStateMachineCallback = new StateMachine.Callback() { 100 mStateMachine = ViewModelProviders.of(this).get(StateMachine.class); in onCreate() 114 StateMachine.ADD_START, in onCreate() 118 StateMachine.SELECT_WIFI, in onCreate() 124 StateMachine.PASSWORD, in onCreate() 128 StateMachine.CONNECT, in onCreate() 134 StateMachine.OPTIONS_OR_CONNECT, in onCreate() 140 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(this, StateMachine.RESULT_SUCCESS); in onSuccess() 106 StateMachine sm = ViewModelProviders in onFailure() 107 .of(activity).get(StateMachine.class); in onFailure() 108 sm.getListener().onComplete(this, 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(this, 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(this, StateMachine.FAIL); in onGuidedActionClicked()
|
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()
|
D | EditProxySettingsActivity.java | 37 import com.android.tv.settings.connectivity.util.StateMachine; 75 private StateMachine mStateMachine; 76 private final StateMachine.Callback mStateMachineCallback = result -> { 85 mStateMachine = ViewModelProviders.of(this).get(StateMachine.class); in onCreate() 127 StateMachine.RESULT_SUCCESS, in onCreate() 132 StateMachine.RESULT_FAILURE, in onCreate()
|
D | EditIpSettingsActivity.java | 37 import com.android.tv.settings.connectivity.util.StateMachine; 74 private StateMachine mStateMachine; 75 private final StateMachine.Callback mStateMachineCallback = result -> { 84 mStateMachine = ViewModelProviders.of(this).get(StateMachine.class); in onCreate() 127 StateMachine.RESULT_SUCCESS, in onCreate() 132 StateMachine.RESULT_FAILURE, in onCreate()
|
/packages/modules/Bluetooth/system/common/ |
D | state_machine.h | 31 class StateMachine { 39 friend class StateMachine; variable 48 State(StateMachine& sm, int state_id) : sm_(sm), state_id_(state_id) {} in State() 94 void TransitionTo(StateMachine::State* dest_state) { in TransitionTo() 99 StateMachine& sm_; 103 StateMachine() in StateMachine() function 107 ~StateMachine() { in ~StateMachine() 179 void TransitionTo(StateMachine::State* dest_state) { in TransitionTo()
|
/packages/services/Car/service/src/com/android/car/evs/ |
D | CarEvsService.java | 23 import static com.android.car.evs.StateMachine.REQUEST_PRIORITY_NORMAL; 24 import static com.android.car.evs.StateMachine.REQUEST_PRIORITY_HIGH; 267 private final SparseArray<StateMachine> mServiceInstances; 329 StateMachine s = new StateMachine(context, builtinContext, this, in CarEvsService() 357 StateMachine s = new StateMachine(context, builtinContext, this, activityComponentName, in CarEvsService() 377 StateMachine instance = mServiceInstances.get(type); in onEvent() 417 StateMachine instance = mServiceInstances.valueAt(i); in init() 461 StateMachine instance = mServiceInstances.get(CarEvsManager.SERVICE_TYPE_REARVIEW); in init() 487 StateMachine instance = mServiceInstances.valueAt(i); in release() 572 StateMachine instance = mServiceInstances.get(type); in startActivity() [all …]
|
/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; 58 StateMachine stateMachine = ViewModelProviders.of(mActivity).get(StateMachine.class); in setUp() 72 verify(mStateCompleteListener).onComplete(mAddStartState, StateMachine.PASSWORD); in testForward_needsWifiConfiguration_NeedPassword() 82 verify(mStateCompleteListener).onComplete(mAddStartState, StateMachine.PASSWORD); in testForward_shouldEditBeforeConnect_NeedPassword() 91 verify(mStateCompleteListener).onComplete(mAddStartState, StateMachine.CONNECT); in testForward_DoNotNeedPassword_Connect()
|