Home
last modified time | relevance | path

Searched refs:mAccessPoint (Results 1 – 20 of 20) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/slice/
DConnectToWifiHandlerTest.java52 private AccessPoint mAccessPoint; field in ConnectToWifiHandlerTest
62 doReturn(mWifiConfig).when(mAccessPoint).getConfig(); in setUp()
67 when(mAccessPoint.isSaved()).thenReturn(false); in connect_shouldConnectToUnsavedOpenNetwork()
68 when(mAccessPoint.getSecurity()).thenReturn(AccessPoint.SECURITY_NONE); in connect_shouldConnectToUnsavedOpenNetwork()
70 mHandler.connect(mContext, mAccessPoint); in connect_shouldConnectToUnsavedOpenNetwork()
77 when(mAccessPoint.isSaved()).thenReturn(false); in connect_shouldStartOsuProvisioning()
78 when(mAccessPoint.isOsuProvider()).thenReturn(true); in connect_shouldStartOsuProvisioning()
80 mHandler.connect(mContext, mAccessPoint); in connect_shouldStartOsuProvisioning()
82 verify(mAccessPoint).startOsuProvisioning(any(WifiManager.ActionListener.class)); in connect_shouldStartOsuProvisioning()
88 when(mAccessPoint.isSaved()).thenReturn(false); in connect_shouldConnectWithPasspointProvider()
[all …]
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/details/
DWifiDetailsFragment.java55 private AccessPoint mAccessPoint; field in WifiDetailsFragment
105 WifiUtil.forget(getContext(), mAccessPoint); in onCreate()
112 mWifiManager.connect(mAccessPoint.getConfig(), in onCreate()
128 mAccessPoint = new AccessPoint(getContext(), getArguments().getBundle(EXTRA_AP_STATE)); in onAttach()
130 LOG.d("Creating WifiInfoProvider for " + mAccessPoint); in onAttach()
132 mWifiInfoProvider = new WifiInfoProviderImpl(getContext(), mAccessPoint); in onAttach()
139 .init(mAccessPoint, mWifiInfoProvider)); in onAttach()
141 .init(mAccessPoint, mWifiInfoProvider)); in onAttach()
143 .init(mAccessPoint, mWifiInfoProvider)); in onAttach()
145 .init(mAccessPoint, mWifiInfoProvider)); in onAttach()
[all …]
DWifiInfoProviderImpl.java57 private final AccessPoint mAccessPoint; field in WifiInfoProviderImpl
83 if (mAccessPoint.matches(wifiConfiguration)) {
133 mAccessPoint.update(mWifiConfig, mWifiInfo, mNetworkInfo);
154 mAccessPoint = accessPoint; in WifiInfoProviderImpl()
159 mWifiConfig = mAccessPoint.getConfig(); in WifiInfoProviderImpl()
DWifiDetailsBasePreferenceController.java49 private AccessPoint mAccessPoint; field in WifiDetailsBasePreferenceController
62 mAccessPoint = accessPoint; in init()
69 return mAccessPoint; in getAccessPoint()
/packages/apps/Settings/src/com/android/settings/wifi/details/
DWifiDetailPreferenceController.java151 private AccessPoint mAccessPoint; field in WifiDetailPreferenceController
204 if (mAccessPoint.matches(wifiConfiguration)) {
262 mAccessPoint.update(mWifiConfig, mWifiInfo, mNetworkInfo);
335 mAccessPoint = accessPoint; in WifiDetailPreferenceController()
359 mConnected = mAccessPoint.isActive(); in WifiDetailPreferenceController()
362 mIsEphemeral = mAccessPoint.isEphemeral(); in WifiDetailPreferenceController()
425 mSecurityPref.setSummary(mAccessPoint.getSecurityString(/* concise */ false)); in displayPreference()
437 mLifecycle, (PreferenceFragmentCompat) mFragment, mAccessPoint.getSsid()); in setupEntityHeader()
450 mEntityHeaderController.setLabel(mAccessPoint.getTitle()); in setupEntityHeader()
459 mAccessPoint.getSettingsSummary(true /*convertSavedAsDisconnected*/)) in refreshEntityHeader()
[all …]
DWifiNetworkDetailsFragment.java55 private AccessPoint mAccessPoint; field in WifiNetworkDetailsFragment
61 mAccessPoint = new AccessPoint(context, getArguments()); in onAttach()
91 || mAccessPoint == null) { in onCreateDialog()
94 return WifiDialog.createModal(getActivity(), this, mAccessPoint, in onCreateDialog()
129 mAccessPoint, in createPreferenceControllers()
139 controllers.add(new AddDevicePreferenceController(context).init(mAccessPoint)); in createPreferenceControllers()
142 new WifiMeteredPreferenceController(context, mAccessPoint.getConfig()); in createPreferenceControllers()
147 privacyController.setWifiConfiguration(mAccessPoint.getConfig()); in createPreferenceControllers()
148 privacyController.setIsEphemeral(mAccessPoint.isEphemeral()); in createPreferenceControllers()
150 mAccessPoint.isPasspoint() || mAccessPoint.isPasspointConfig()); in createPreferenceControllers()
DAddDevicePreferenceController.java40 private AccessPoint mAccessPoint; field in AddDevicePreferenceController
50 mAccessPoint = accessPoint; in init()
57 if (WifiDppUtils.isSupportConfiguratorQrCodeScanner(mContext, mAccessPoint)) { in getAvailabilityStatus()
76 mWifiManager, mAccessPoint); in launchWifiDppConfiguratorQrCodeScanner()
/packages/apps/Settings/src/com/android/settings/wifi/
DWifiConfigController.java92 private final AccessPoint mAccessPoint; field in WifiConfigController
206 mAccessPoint = accessPoint; in WifiConfigController()
220 mAccessPoint = accessPoint; in WifiConfigController()
284 if (mAccessPoint == null) { // new network in initWifiConfigController()
289 mConfigUi.setTitle(mAccessPoint.getTitle()); in initWifiConfigController()
294 if (mAccessPoint.isSaved()) { in initWifiConfigController()
295 WifiConfiguration config = mAccessPoint.getConfig(); in initWifiConfigController()
340 if ((!mAccessPoint.isSaved() && !mAccessPoint.isActive() in initWifiConfigController()
341 && !mAccessPoint.isPasspointConfig()) in initWifiConfigController()
349 mAccessPoint.isCarrierAp() ? View.GONE : View.VISIBLE); in initWifiConfigController()
[all …]
DWifiDialog.java55 private final AccessPoint mAccessPoint; field in WifiDialog
86 mAccessPoint = accessPoint; in WifiDialog()
99 mController = new WifiConfigController(this, mView, mAccessPoint, mMode); in onCreate()
110 if (mAccessPoint == null) { in onCreate()
123 if (mAccessPoint == null) { in onStart()
127 ssid = mAccessPoint.getSsidStr(); in onStart()
165 if (WifiUtils.isNetworkLockedDown(getContext(), mAccessPoint.getConfig())) { in onClick()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/
DWifiConfigController.java91 private final AccessPoint mAccessPoint; field in WifiConfigController
191 mAccessPoint = accessPoint; in WifiConfigController()
205 mAccessPoint = accessPoint; in WifiConfigController()
269 if (mAccessPoint == null) { // new network in initWifiConfigController()
274 mConfigUi.setTitle(mAccessPoint.getTitle()); in initWifiConfigController()
279 if (mAccessPoint.isSaved()) { in initWifiConfigController()
280 WifiConfiguration config = mAccessPoint.getConfig(); in initWifiConfigController()
325 if ((!mAccessPoint.isSaved() && !mAccessPoint.isActive() in initWifiConfigController()
326 && !mAccessPoint.isPasspointConfig()) in initWifiConfigController()
334 mAccessPoint.isCarrierAp() ? View.GONE : View.VISIBLE); in initWifiConfigController()
[all …]
DWifiDialog.java54 private final AccessPoint mAccessPoint; field in WifiDialog
75 mAccessPoint = accessPoint; in WifiDialog()
88 mController = new WifiConfigController(this, mView, mAccessPoint, mMode); in onCreate()
99 if (mAccessPoint == null) { in onCreate()
112 if (mAccessPoint == null) { in onStart()
116 ssid = mAccessPoint.getSsidStr(); in onStart()
154 if (WifiUtils.isNetworkLockedDown(getContext(), mAccessPoint.getConfig())) { in onClick()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/details/
DWifiDetailPreferenceController.java152 private AccessPoint mAccessPoint; field in WifiDetailPreferenceController
205 if (mAccessPoint.matches(wifiConfiguration)) {
249 mAccessPoint.update(mWifiConfig, mWifiInfo, mNetworkInfo);
289 if (mConnected != mAccessPoint.isActive()) {
291 mConnected = mAccessPoint.isActive();
292 if (mAccessPoint.isActive()) {
336 mAccessPoint = accessPoint; in WifiDetailPreferenceController()
364 mConnected = mAccessPoint.isActive(); in WifiDetailPreferenceController()
367 mIsEphemeral = mAccessPoint.isEphemeral(); in WifiDetailPreferenceController()
414 WifiDppUtils.isSupportConfiguratorQrCodeGenerator(mContext, mAccessPoint)); in displayPreference()
[all …]
DWifiNetworkDetailsFragment.java54 private AccessPoint mAccessPoint; field in WifiNetworkDetailsFragment
59 mAccessPoint = new AccessPoint(context, getArguments()); in onAttach()
89 || mAccessPoint == null) { in onCreateDialog()
92 return WifiDialog.createModal(getActivity(), mWifiDetailPreferenceController, mAccessPoint, in onCreateDialog()
127 mAccessPoint, in createPreferenceControllers()
137 controllers.add(new AddDevicePreferenceController(context).init(mAccessPoint)); in createPreferenceControllers()
138 controllers.add(new WifiMeteredPreferenceController(context, mAccessPoint.getConfig())); in createPreferenceControllers()
141 privacyController.setWifiConfiguration(mAccessPoint.getConfig()); in createPreferenceControllers()
142 privacyController.setIsEphemeral(mAccessPoint.isEphemeral()); in createPreferenceControllers()
144 mAccessPoint.isPasspoint() || mAccessPoint.isPasspointConfig()); in createPreferenceControllers()
DAddDevicePreferenceController.java40 private AccessPoint mAccessPoint; field in AddDevicePreferenceController
50 mAccessPoint = accessPoint; in init()
57 if (WifiDppUtils.isSupportConfiguratorQrCodeScanner(mContext, mAccessPoint)) { in getAvailabilityStatus()
76 mWifiManager, mAccessPoint); in launchWifiDppConfiguratorQrCodeScanner()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/wifi/
DAccessPointPreferenceTest.java49 private AccessPoint mAccessPoint; field in AccessPointPreferenceTest
60 mPreference = new AccessPointPreference(context, mAccessPoint); in setUp()
67 when(mAccessPoint.getSecurity()).thenReturn(AccessPoint.SECURITY_NONE); in onClick_securityTypeNone_doesntOpenDialog()
79 when(mAccessPoint.getSecurity()).thenReturn(AccessPoint.SECURITY_PSK); in onClick_hasSecurity_isSaved_correctPassword_doesntOpenDialog()
80 when(mAccessPoint.isSaved()).thenReturn(true); in onClick_hasSecurity_isSaved_correctPassword_doesntOpenDialog()
81 when(mAccessPoint.getConfig()).thenReturn(config); in onClick_hasSecurity_isSaved_correctPassword_doesntOpenDialog()
96 when(mAccessPoint.getSecurity()).thenReturn(AccessPoint.SECURITY_PSK); in onClick_hasSecurity_isSaved_incorrectPassword_opensDialog()
97 when(mAccessPoint.isSaved()).thenReturn(true); in onClick_hasSecurity_isSaved_incorrectPassword_opensDialog()
98 when(mAccessPoint.getConfig()).thenReturn(config); in onClick_hasSecurity_isSaved_incorrectPassword_opensDialog()
111 when(mAccessPoint.getSecurity()).thenReturn(AccessPoint.SECURITY_PSK); in onClick_hasSecurity_isNotSaved_opensDialog()
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/
DWifiDetailsFragment.java64 private AccessPoint mAccessPoint; field in WifiDetailsFragment
81 mAccessPoint = new AccessPoint(getContext(), in onCreate()
102 getPreferenceScreen().setTitle(mAccessPoint.getSsid()); in onCreatePreferences()
127 if (TextUtils.equals(mAccessPoint.getSsidStr(), accessPoint.getSsidStr()) in onWifiListChanged()
128 && mAccessPoint.getSecurity() == accessPoint.getSecurity()) { in onWifiListChanged()
131 mAccessPoint = accessPoint; in onWifiListChanged()
143 final boolean active = mAccessPoint.isActive(); in update()
156 WifiConfiguration wifiConfiguration = mAccessPoint.getConfig(); in update()
171 ForgetNetworkConfirmFragment.prepareArgs(mForgetNetworkPref.getExtras(), mAccessPoint); in update() local
187 private AccessPoint mAccessPoint; field in WifiDetailsFragment.ForgetNetworkConfirmFragment
[all …]
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/
DAccessPointPreference.java38 private final AccessPoint mAccessPoint; field in AccessPointPreference
46 mAccessPoint = accessPoint; in AccessPointPreference()
47 LOG.d("creating preference for ap: " + mAccessPoint); in AccessPointPreference()
55 return mAccessPoint; in getAccessPoint()
77 return mAccessPoint.getSecurity() != AccessPoint.SECURITY_NONE && (!mAccessPoint.isSaved() in shouldShowPasswordDialog()
78 || WifiUtil.isAccessPointDisabledByWrongPassword(mAccessPoint)); in shouldShowPasswordDialog()
87 (mAccessPoint.getSecurity() != AccessPoint.SECURITY_NONE) in getAccessPointIcon()
91 drawable.setLevel(mAccessPoint.getLevel()); in getAccessPointIcon()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/
DWifiConfigControllerTest.java67 private AccessPoint mAccessPoint; field in WifiConfigControllerTest
91 when(mAccessPoint.getSecurity()).thenReturn(AccessPoint.SECURITY_PSK); in setUp()
97 mController = new TestWifiConfigController(mConfigUiBase, mView, mAccessPoint, in setUp()
179 when(mAccessPoint.isSaved()).thenReturn(true); in isSubmittable_savedConfigZeroLengthPassword_shouldReturnTrue()
199 when(mAccessPoint.isSaved()).thenReturn(true); in isSubmittable_EapToPskWithValidPassword_shouldReturnTrue()
212 when(mAccessPoint.isSaved()).thenReturn(true); in isSubmittable_EapWithAkaMethod_shouldReturnTrue()
221 when(mAccessPoint.isReachable()).thenReturn(false); in getSignalString_notReachable_shouldHaveNoSignalString()
239 when(mAccessPoint.isCarrierAp()).thenReturn(true); in showForCarrierAp()
240 when(mAccessPoint.getCarrierName()).thenReturn(carrierName); in showForCarrierAp()
241 mController = new TestWifiConfigController(mConfigUiBase, mView, mAccessPoint, in showForCarrierAp()
[all …]
DConnectedAccessPointPreferenceTest.java43 private AccessPoint mAccessPoint; field in ConnectedAccessPointPreferenceTest
56 mConnectedAccessPointPreference = new ConnectedAccessPointPreference(mAccessPoint, mContext, in setUp()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/dpp/
DWifiDppUtilsTest.java50 private AccessPoint mAccessPoint; field in WifiDppUtilsTest
69 when(mAccessPoint.isPasspoint()).thenReturn(false); in getConfiguratorQrCodeScannerIntentOrNull_hiddenSsidNetwork_hasHiddenSsidExtra()
70 when(mAccessPoint.getSecurity()).thenReturn(AccessPoint.SECURITY_PSK); in getConfiguratorQrCodeScannerIntentOrNull_hiddenSsidNetwork_hasHiddenSsidExtra()
71 when(mAccessPoint.getConfig()).thenReturn(mWifiConfiguration); in getConfiguratorQrCodeScannerIntentOrNull_hiddenSsidNetwork_hasHiddenSsidExtra()
78 .getConfiguratorQrCodeScannerIntentOrNull(mContext, mWifiManager, mAccessPoint); in getConfiguratorQrCodeScannerIntentOrNull_hiddenSsidNetwork_hasHiddenSsidExtra()