Home
last modified time | relevance | path

Searched refs:UserChoiceInfo (Results 1 – 24 of 24) sorted by relevance

/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/security/
DWifiSecurityHelper.java31 import com.android.tv.settings.connectivity.setup.UserChoiceInfo;
72 @UserChoiceInfo.PAGE int page) { in getActionsList()
74 case UserChoiceInfo.SECURITY: in getActionsList()
82 UserChoiceInfo userChoiceInfo = ViewModelProviders.of(context).get(UserChoiceInfo.class); in getSsid()
83 String savedSsid = userChoiceInfo.getPageSummary(UserChoiceInfo.SSID); in getSsid()
89 UserChoiceInfo userChoiceInfo = ViewModelProviders.of(context).get(UserChoiceInfo.class); in getSecurity()
90 Integer savedSecurity = userChoiceInfo.getChoice(UserChoiceInfo.SECURITY); in getSecurity()
95 UserChoiceInfo userChoiceInfo = ViewModelProviders.of(context).get(UserChoiceInfo.class); in getConfig()
105 if (userChoiceInfo.getPageSummary(UserChoiceInfo.SSID) != null) { in getConfig()
107 userChoiceInfo.getPageSummary(UserChoiceInfo.SSID)); in getConfig()
[all …]
/packages/apps/TvSettings/Settings/tests/robotests/src/com/android/tv/settings/connectivity/setup/
DAddPageBasedOnNetworkStateTest.java54 private UserChoiceInfo mUserChoiceInfo;
64 mUserChoiceInfo = ViewModelProviders.of(mActivity).get(UserChoiceInfo.class); in setUp()
73 mUserChoiceInfo.put(UserChoiceInfo.SELECT_WIFI, getString(R.string.other_network)); in testForward_otherNetwork()
85 mUserChoiceInfo.put(UserChoiceInfo.PASSWORD, "123"); in testForward_clearPassword_ssidNotMatch()
92 assertNull(mUserChoiceInfo.getPageSummary(UserChoiceInfo.PASSWORD)); in testForward_clearPassword_ssidNotMatch()
102 mUserChoiceInfo.put(UserChoiceInfo.PASSWORD, "123"); in testForward_clearPassword_ssidIsNull()
105 assertNull(mUserChoiceInfo.getPageSummary(UserChoiceInfo.PASSWORD)); in testForward_clearPassword_ssidIsNull()
129 mUserChoiceInfo.put(UserChoiceInfo.PASSWORD, "123"); in testForward_networkNotSaved()
DConnectFailedFragmentTest.java41 private UserChoiceInfo mUserChoiceInfo;
48 mUserChoiceInfo = ViewModelProviders.of(mActivity).get(UserChoiceInfo.class); in setUp()
56 mUserChoiceInfo.setConnectionFailedStatus(UserChoiceInfo.ConnectionFailedStatus.UNKNOWN); in testGetConnectionFailTitle_unknown_failure()
67 UserChoiceInfo.ConnectionFailedStatus.AUTHENTICATION); in testGetConnectionFailTitle_auth_failure()
76 mUserChoiceInfo.setConnectionFailedStatus(UserChoiceInfo.ConnectionFailedStatus.REJECTED); in testGetConnectionFailTitle_rejected_failure()
86 mUserChoiceInfo.setConnectionFailedStatus(UserChoiceInfo.ConnectionFailedStatus.TIMEOUT); in testGetConnectionFailTitle_time_out_failure()
DAddStartStateTest.java45 private UserChoiceInfo mUserChoiceInfo;
54 mUserChoiceInfo = ViewModelProviders.of(mActivity).get(UserChoiceInfo.class); in setUp()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/setup/
DOptionsOrConnectState.java41 UserChoiceInfo userChoiceInfo = ViewModelProviders.of(mActivity).get(UserChoiceInfo.class); in processForward()
42 UserChoiceInfo.ConnectionFailedStatus status = userChoiceInfo.getConnectionFailedStatus(); in processForward()
43 if (status == UserChoiceInfo.ConnectionFailedStatus.AUTHENTICATION) { in processForward()
59 UserChoiceInfo userChoiceInfo = ViewModelProviders.of(mActivity).get(UserChoiceInfo.class); in processBackward()
DConnectState.java107 private UserChoiceInfo mUserChoiceInfo;
128 mUserChoiceInfo = ViewModelProviders.of(getActivity()).get(UserChoiceInfo.class); in onCreate()
134 mUserChoiceInfo = ViewModelProviders.of(getActivity()).get(UserChoiceInfo.class); in onCreate()
237 UserChoiceInfo.ConnectionFailedStatus.AUTHENTICATION); in inferConnectionStatus()
241 UserChoiceInfo.ConnectionFailedStatus.REJECTED); in inferConnectionStatus()
248 UserChoiceInfo.ConnectionFailedStatus.UNKNOWN); in inferConnectionStatus()
338 UserChoiceInfo userChoiceInfo = ViewModelProviders in handleMessage()
339 .of(fragment.getActivity()).get(UserChoiceInfo.class); in handleMessage()
341 UserChoiceInfo.ConnectionFailedStatus.TIMEOUT); in handleMessage()
DEnterPasswordState.java57 private UserChoiceInfo mUserChoiceInfo;
62 mUserChoiceInfo = ViewModelProviders.of(mActivity).get(UserChoiceInfo.class); in EnterPasswordState()
68 if (!mUserChoiceInfo.isVisible(UserChoiceInfo.PASSWORD)) { in processForward()
79 if (!mUserChoiceInfo.isVisible(UserChoiceInfo.PASSWORD)) { in processBackward()
100 private UserChoiceInfo mUserChoiceInfo;
182 .get(UserChoiceInfo.class); in onCreate()
226 CharSequence prevPassword = mUserChoiceInfo.getPageSummary(UserChoiceInfo.PASSWORD); in onCreateActions()
249 mUserChoiceInfo.put(UserChoiceInfo.PASSWORD, action.getTitle().toString()); in onGuidedActionEditedAndProceed()
DAddPageBasedOnNetworkState.java37 private final UserChoiceInfo mUserChoiceInfo;
43 mUserChoiceInfo = ViewModelProviders.of(mActivity).get(UserChoiceInfo.class); in AddPageBasedOnNetworkState()
51 getString(R.string.other_network), UserChoiceInfo.SELECT_WIFI)) { in processForward()
57 if (mUserChoiceInfo.getPageSummary(UserChoiceInfo.PASSWORD) != null in processForward()
60 mUserChoiceInfo.removePageSummary(UserChoiceInfo.PASSWORD); in processForward()
DEnterSsidState.java75 private UserChoiceInfo mUserChoiceInfo;
93 .get(UserChoiceInfo.class); in onCreate()
114 CharSequence prevSsid = mUserChoiceInfo.getPageSummary(UserChoiceInfo.SSID); in onCreateActions()
129 mUserChoiceInfo.put(UserChoiceInfo.SSID, action.getTitle().toString()); in onGuidedActionEditedAndProceed()
DEasyConnectQRState.java82 private UserChoiceInfo mUserChoiceInfo;
93 mUserChoiceInfo = ViewModelProviders.of(getActivity()).get(UserChoiceInfo.class); in onCreate()
167 mUserChoiceInfo.put(UserChoiceInfo.SSID, config.getPrintableSsid()); in onEnrolleeSuccess()
178 UserChoiceInfo.ConnectionFailedStatus.EASY_CONNECT_FAILURE); in onFailure()
DChooseSecurityState.java74 private UserChoiceInfo mUserChoiceInfo;
89 .get(UserChoiceInfo.class); in onCreate()
103 mUserChoiceInfo.put(UserChoiceInfo.SECURITY, (int) action.getId()); in onGuidedActionClicked()
DSummaryNotConnectedState.java74 private UserChoiceInfo mUserChoiceInfo;
97 .get(UserChoiceInfo.class); in onCreate()
107 mUserChoiceInfo.removePageSummary(UserChoiceInfo.SELECT_WIFI); in onGuidedActionClicked()
DConnectFailedState.java73 UserChoiceInfo mUserChoiceInfo;
89 .get(UserChoiceInfo.class); in onCreate()
119 UserChoiceInfo.ConnectionFailedStatus status = in getConnectionFailTitle()
DSelectWifiState.java87 private UserChoiceInfo mUserChoiceInfo;
96 .get(UserChoiceInfo.class); in onCreate()
214 CharSequence title = mUserChoiceInfo.getPageSummary(UserChoiceInfo.SELECT_WIFI); in onViewCreated()
230 mUserChoiceInfo.put(UserChoiceInfo.SELECT_WIFI, action.getTitle().toString()); in onGuidedActionClicked()
DAddStartState.java37 private final UserChoiceInfo mUserChoiceInfo;
42 mUserChoiceInfo = ViewModelProviders.of(mActivity).get(UserChoiceInfo.class); in AddStartState()
DSummaryConnectedWifiState.java76 private UserChoiceInfo mUserChoiceInfo;
107 .get(UserChoiceInfo.class); in onCreate()
DAdvancedOptionsState.java74 UserChoiceInfo userChoiceInfo = ViewModelProviders in isNetworkLockedDown()
76 .get(UserChoiceInfo.class); in isNetworkLockedDown()
DKnownNetworkState.java80 private UserChoiceInfo mUserChoiceInfo;
115 .get(UserChoiceInfo.class); in onCreate()
DProxySettingsState.java78 UserChoiceInfo userChoiceInfo = ViewModelProviders in isNetworkLockedDown()
80 .get(UserChoiceInfo.class); in isNetworkLockedDown()
DIpSettingsState.java79 UserChoiceInfo userChoiceInfo = ViewModelProviders in isNetworkLockedDown()
81 .get(UserChoiceInfo.class); in isNetworkLockedDown()
DWifiSetupActivity.java71 private UserChoiceInfo mUserChoiceInfo;
114 mUserChoiceInfo = ViewModelProviders.of(this).get(UserChoiceInfo.class); in onCreate()
DUserChoiceInfo.java35 public class UserChoiceInfo extends ViewModel { class
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/
DAddWifiNetworkActivity.java42 import com.android.tv.settings.connectivity.setup.UserChoiceInfo;
101 UserChoiceInfo userChoiceInfo = ViewModelProviders.of(this).get(UserChoiceInfo.class); in onCreate()
DWifiConnectionActivity.java44 import com.android.tv.settings.connectivity.setup.UserChoiceInfo;
197 UserChoiceInfo userChoiceInfo = in onCreate()
198 ViewModelProviders.of(this).get(UserChoiceInfo.class); in onCreate()