/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/slice/ |
D | ConnectToWifiHandlerTest.java | 54 private AccessPoint mAccessPoint; field in ConnectToWifiHandlerTest 64 doReturn(mWifiConfig).when(mAccessPoint).getConfig(); in setUp() 69 when(mAccessPoint.isSaved()).thenReturn(false); in connect_shouldConnectToUnsavedOpenNetwork() 70 when(mAccessPoint.getSecurity()).thenReturn(AccessPoint.SECURITY_NONE); in connect_shouldConnectToUnsavedOpenNetwork() 72 mHandler.connect(mContext, mAccessPoint); in connect_shouldConnectToUnsavedOpenNetwork() 79 when(mAccessPoint.isSaved()).thenReturn(false); in connect_shouldStartOsuProvisioning() 80 when(mAccessPoint.isOsuProvider()).thenReturn(true); in connect_shouldStartOsuProvisioning() 82 mHandler.connect(mContext, mAccessPoint); in connect_shouldStartOsuProvisioning() 84 verify(mAccessPoint).startOsuProvisioning(any(WifiManager.ActionListener.class)); in connect_shouldStartOsuProvisioning() 90 when(mAccessPoint.isSaved()).thenReturn(false); in connect_shouldConnectWithPasspointProvider() [all …]
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/ |
D | WifiDetailsFragment.java | 76 private AccessPoint mAccessPoint; field in WifiDetailsFragment 92 mAccessPoint = new AccessPoint(getContext(), in onCreate() 113 getPreferenceScreen().setTitle(mAccessPoint.getSsid()); in onCreatePreferences() 134 if (TextUtils.equals(mAccessPoint.getSsidStr(), accessPoint.getSsidStr()) in onWifiListChanged() 135 && mAccessPoint.getSecurity() == accessPoint.getSecurity()) { in onWifiListChanged() 138 mAccessPoint = accessPoint; in onWifiListChanged() 150 final boolean active = mAccessPoint.isActive(); in update() 162 String macAddress = mConnectivityListener.getWifiMacAddress(mAccessPoint); in update() 172 WifiConfiguration wifiConfiguration = mAccessPoint.getConfig(); in update() 187 ForgetNetworkConfirmFragment.prepareArgs(mForgetNetworkPref.getExtras(), mAccessPoint); in update() local [all …]
|
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/details/ |
D | WifiDetailsFragment.java | 55 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 WifiInfoProvider(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 …]
|
D | WifiInfoProvider.java | 90 private final AccessPoint mAccessPoint; field in WifiInfoProvider 136 if (mAccessPoint.matches(wifiConfiguration)) { 173 mAccessPoint.update(mWifiConfig, mWifiInfo, mNetworkInfo); 194 mAccessPoint = accessPoint; in WifiInfoProvider() 199 mWifiConfig = mAccessPoint.getConfig(); in WifiInfoProvider()
|
D | WifiDetailsBasePreferenceController.java | 49 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/ |
D | WifiDetailPreferenceController.java | 161 private AccessPoint mAccessPoint; field in WifiDetailPreferenceController 230 if (mAccessPoint.matches(wifiConfiguration)) { 285 mAccessPoint.update(mWifiConfig, mWifiInfo, mNetworkInfo); 359 mAccessPoint = accessPoint; in WifiDetailPreferenceController() 384 mConnected = mAccessPoint.isActive(); in WifiDetailPreferenceController() 387 mIsEphemeral = mAccessPoint.isEphemeral(); in WifiDetailPreferenceController() 401 mIsExpired = mAccessPoint.isExpired(); in WifiDetailPreferenceController() 402 mIsPasspointConfigurationR1 = mAccessPoint.isPasspointConfigurationR1(); in WifiDetailPreferenceController() 456 mSecurityPref.setSummary(mAccessPoint.getSecurityString(/* concise */ false)); in displayPreference() 480 return mAccessPoint.isActive(); in updateCaptivePortalButton() [all …]
|
D | WifiNetworkDetailsFragment.java | 59 private AccessPoint mAccessPoint; field in WifiNetworkDetailsFragment 65 mAccessPoint = new AccessPoint(context, getArguments()); in onAttach() 95 || mAccessPoint == null) { in onCreateDialog() 98 return WifiDialog.createModal(getActivity(), this, mAccessPoint, in onCreateDialog() 133 mAccessPoint, in createPreferenceControllers() 143 controllers.add(new AddDevicePreferenceController(context).init(mAccessPoint)); in createPreferenceControllers() 146 new WifiMeteredPreferenceController(context, mAccessPoint.getConfig()); in createPreferenceControllers() 151 privacyController.setWifiConfiguration(mAccessPoint.getConfig()); in createPreferenceControllers() 152 privacyController.setIsEphemeral(mAccessPoint.isEphemeral()); in createPreferenceControllers() 154 mAccessPoint.isPasspoint() || mAccessPoint.isPasspointConfig()); in createPreferenceControllers()
|
D | AddDevicePreferenceController.java | 43 private AccessPoint mAccessPoint; field in AddDevicePreferenceController 53 mAccessPoint = accessPoint; in init() 60 if (WifiDppUtils.isSupportConfiguratorQrCodeScanner(mContext, mAccessPoint)) { in getAvailabilityStatus() 79 mWifiManager, mAccessPoint); in launchWifiDppConfiguratorQrCodeScanner()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/details/ |
D | WifiDetailPreferenceController.java | 152 private AccessPoint mAccessPoint; field in WifiDetailPreferenceController 213 if (mAccessPoint.matches(wifiConfiguration)) { 252 mAccessPoint.update(mWifiConfig, mWifiInfo, mNetworkInfo); 292 if (mConnected != mAccessPoint.isActive()) { 294 mConnected = mAccessPoint.isActive(); 295 if (mAccessPoint.isActive()) { 339 mAccessPoint = accessPoint; in WifiDetailPreferenceController() 367 mConnected = mAccessPoint.isActive(); in WifiDetailPreferenceController() 370 mIsEphemeral = mAccessPoint.isEphemeral(); in WifiDetailPreferenceController() 417 WifiDppUtils.isSupportConfiguratorQrCodeGenerator(mContext, mAccessPoint)); in displayPreference() [all …]
|
D | WifiNetworkDetailsFragment.java | 54 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()
|
D | AddDevicePreferenceController.java | 40 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/ |
D | AccessPointPreferenceTest.java | 53 private AccessPoint mAccessPoint; field in AccessPointPreferenceTest 68 mPreference = new AccessPointPreference(context, mAccessPoint); in setUp() 75 when(mAccessPoint.getSecurity()).thenReturn(AccessPoint.SECURITY_NONE); in onClick_securityTypeNone_doesntOpenDialog() 87 when(mAccessPoint.getSecurity()).thenReturn(AccessPoint.SECURITY_PSK); in onClick_hasSecurity_isSaved_correctPassword_doesntOpenDialog() 88 when(mAccessPoint.isSaved()).thenReturn(true); in onClick_hasSecurity_isSaved_correctPassword_doesntOpenDialog() 89 when(mAccessPoint.getConfig()).thenReturn(config); in onClick_hasSecurity_isSaved_correctPassword_doesntOpenDialog() 104 when(mAccessPoint.getSecurity()).thenReturn(AccessPoint.SECURITY_PSK); in onClick_hasSecurity_isSaved_incorrectPassword_opensDialog() 105 when(mAccessPoint.isSaved()).thenReturn(true); in onClick_hasSecurity_isSaved_incorrectPassword_opensDialog() 106 when(mAccessPoint.getConfig()).thenReturn(config); in onClick_hasSecurity_isSaved_incorrectPassword_opensDialog() 119 when(mAccessPoint.getSecurity()).thenReturn(AccessPoint.SECURITY_PSK); in onClick_hasSecurity_isNotSaved_opensDialog() [all …]
|
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/ |
D | AccessPointPreference.java | 38 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 !WifiUtil.isOpenNetwork(mAccessPoint.getSecurity()) && (!mAccessPoint.isSaved() in shouldShowPasswordDialog() 78 || WifiUtil.isAccessPointDisabledByWrongPassword(mAccessPoint)); in shouldShowPasswordDialog() 87 WifiUtil.isOpenNetwork(mAccessPoint.getSecurity()) in getAccessPointIcon() 91 drawable.setLevel(mAccessPoint.getLevel()); in getAccessPointIcon()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/ |
D | WifiConfigController.java | 91 private final AccessPoint mAccessPoint; field in WifiConfigController 191 mAccessPoint = accessPoint; in WifiConfigController() 205 mAccessPoint = accessPoint; in WifiConfigController() 268 if (mAccessPoint == null) { // new network in initWifiConfigController() 273 mConfigUi.setTitle(mAccessPoint.getTitle()); in initWifiConfigController() 278 if (mAccessPoint.isSaved()) { in initWifiConfigController() 279 WifiConfiguration config = mAccessPoint.getConfig(); in initWifiConfigController() 326 if ((!mAccessPoint.isSaved() && !mAccessPoint.isActive() in initWifiConfigController() 327 && !mAccessPoint.isPasspointConfig()) in initWifiConfigController() 345 final DetailedState state = mAccessPoint.getDetailedState(); in initWifiConfigController() [all …]
|
D | WifiDialog.java | 54 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/apps/Settings/src/com/android/settings/wifi/ |
D | WifiConfigController.java | 102 private final AccessPoint mAccessPoint; field in WifiConfigController 222 mAccessPoint = accessPoint; in WifiConfigController() 237 mAccessPoint = accessPoint; in WifiConfigController() 292 if (mAccessPoint == null) { // new network in initWifiConfigController() 296 mConfigUi.setTitle(mAccessPoint.getTitle()); in initWifiConfigController() 301 if (mAccessPoint.isSaved()) { in initWifiConfigController() 302 WifiConfiguration config = mAccessPoint.getConfig(); in initWifiConfigController() 354 if ((!mAccessPoint.isSaved() && !mAccessPoint.isActive() in initWifiConfigController() 355 && !mAccessPoint.isPasspointConfig()) in initWifiConfigController() 378 final DetailedState state = mAccessPoint.getDetailedState(); in initWifiConfigController() [all …]
|
D | WifiDialog.java | 60 private final AccessPoint mAccessPoint; field in WifiDialog 91 mAccessPoint = accessPoint; in WifiDialog() 104 mController = new WifiConfigController(this, mView, mAccessPoint, mMode); in onCreate() 115 if (mAccessPoint == null) { in onCreate() 161 if (WifiUtils.isNetworkLockedDown(getContext(), mAccessPoint.getConfig())) { in onClick()
|
D | ConfigureAccessPointFragment.java | 55 private AccessPoint mAccessPoint; field in ConfigureAccessPointFragment 60 mAccessPoint = new AccessPoint(context, getArguments()); in onAttach() 84 mUiController = new WifiConfigController(this, rootView, mAccessPoint, in onCreateView()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/ |
D | WifiConfigControllerTest.java | 69 private AccessPoint mAccessPoint; field in WifiConfigControllerTest 93 when(mAccessPoint.getSecurity()).thenReturn(AccessPoint.SECURITY_PSK); in setUp() 99 mController = new TestWifiConfigController(mConfigUiBase, mView, mAccessPoint, in setUp() 181 when(mAccessPoint.isSaved()).thenReturn(true); in isSubmittable_savedConfigZeroLengthPassword_shouldReturnTrue() 201 when(mAccessPoint.isSaved()).thenReturn(true); in isSubmittable_EapToPskWithValidPassword_shouldReturnTrue() 214 when(mAccessPoint.isSaved()).thenReturn(true); in isSubmittable_EapWithAkaMethod_shouldReturnTrue() 223 when(mAccessPoint.isReachable()).thenReturn(false); in getSignalString_notReachable_shouldHaveNoSignalString() 231 when(mAccessPoint.getSecurity()).thenReturn(AccessPoint.SECURITY_EAP); in loadCertificates_keyStoreListFail_shouldNotCrash() 235 mController = new TestWifiConfigController(mConfigUiBase, mView, mAccessPoint, in loadCertificates_keyStoreListFail_shouldNotCrash() 405 when(mAccessPoint.isSaved()).thenReturn(true); in checkSavedMacRandomizedValue() [all …]
|
D | ConnectedAccessPointPreferenceTest.java | 43 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/ |
D | WifiDppUtilsTest.java | 50 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()
|