Home
last modified time | relevance | path

Searched refs:wifiConfiguration (Results 1 – 25 of 36) sorted by relevance

12

/packages/apps/Settings/src/com/android/settings/wifi/dpp/
DWifiDppUtils.java132 WifiConfiguration wifiConfiguration) { in getPresharedKey() argument
137 if (privilegedWifiConfiguration.networkId == wifiConfiguration.networkId) { in getPresharedKey()
140 if (wifiConfiguration.allowedKeyManagement.get(KeyMgmt.NONE) in getPresharedKey()
141 && wifiConfiguration.allowedAuthAlgorithms.get( in getPresharedKey()
150 return wifiConfiguration.preSharedKey; in getPresharedKey()
205 final WifiConfiguration wifiConfiguration = accessPoint.getConfig(); in getConfiguratorQrCodeGeneratorIntentOrNull() local
206 setConfiguratorIntentExtra(intent, wifiManager, wifiConfiguration); in getConfiguratorQrCodeGeneratorIntentOrNull()
234 final WifiConfiguration wifiConfiguration = accessPoint.getConfig(); in getConfiguratorQrCodeScannerIntentOrNull() local
235 setConfiguratorIntentExtra(intent, wifiManager, wifiConfiguration); in getConfiguratorQrCodeScannerIntentOrNull()
237 if (wifiConfiguration.networkId == WifiConfiguration.INVALID_NETWORK_ID) { in getConfiguratorQrCodeScannerIntentOrNull()
[all …]
DWifiNetworkConfig.java265 final WifiConfiguration wifiConfiguration = getBasicWifiConfiguration(); in getWifiConfigurations() local
267 wifiConfiguration.allowedKeyManagement.set(KeyMgmt.NONE); in getWifiConfigurations()
268 wifiConfiguration.allowedAuthAlgorithms.set(AuthAlgorithm.OPEN); in getWifiConfigurations()
269 wifiConfiguration.allowedAuthAlgorithms.set(AuthAlgorithm.SHARED); in getWifiConfigurations()
275 wifiConfiguration.wepKeys[0] = mPreSharedKey; in getWifiConfigurations()
277 wifiConfiguration.wepKeys[0] = addQuotationIfNeeded(mPreSharedKey); in getWifiConfigurations()
280 wifiConfiguration.allowedKeyManagement.set(KeyMgmt.WPA_PSK); in getWifiConfigurations()
283 wifiConfiguration.preSharedKey = mPreSharedKey; in getWifiConfigurations()
285 wifiConfiguration.preSharedKey = addQuotationIfNeeded(mPreSharedKey); in getWifiConfigurations()
288 wifiConfiguration.allowedKeyManagement.set(KeyMgmt.SAE); in getWifiConfigurations()
[all …]
DWifiDppConfiguratorActivity.java387 for (WifiConfiguration wifiConfiguration : configs) { in getConnectedWifiNetworkConfigOrNull()
388 if (wifiConfiguration.networkId == connectionNetworkId) { in getConnectedWifiNetworkConfigOrNull()
390 WifiDppUtils.getSecurityString(wifiConfiguration), in getConnectedWifiNetworkConfigOrNull()
391 wifiConfiguration.getPrintableSsid(), in getConnectedWifiNetworkConfigOrNull()
392 wifiConfiguration.preSharedKey, in getConnectedWifiNetworkConfigOrNull()
393 wifiConfiguration.hiddenSSID, in getConnectedWifiNetworkConfigOrNull()
394 wifiConfiguration.networkId, in getConnectedWifiNetworkConfigOrNull()
DWifiNetworkListFragment.java248 final WifiConfiguration wifiConfiguration = data.getParcelableExtra(WIFI_CONFIG_KEY); in handleAddNetworkSubmitEvent() local
249 if (wifiConfiguration != null) { in handleAddNetworkSubmitEvent()
250 mWifiManager.save(wifiConfiguration, mSaveListener); in handleAddNetworkSubmitEvent()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/dpp/
DWifiNetworkConfig.java265 final WifiConfiguration wifiConfiguration = getBasicWifiConfiguration(); in getWifiConfigurations() local
267 wifiConfiguration.allowedKeyManagement.set(KeyMgmt.NONE); in getWifiConfigurations()
268 wifiConfiguration.allowedAuthAlgorithms.set(AuthAlgorithm.OPEN); in getWifiConfigurations()
269 wifiConfiguration.allowedAuthAlgorithms.set(AuthAlgorithm.SHARED); in getWifiConfigurations()
275 wifiConfiguration.wepKeys[0] = mPreSharedKey; in getWifiConfigurations()
277 wifiConfiguration.wepKeys[0] = addQuotationIfNeeded(mPreSharedKey); in getWifiConfigurations()
280 wifiConfiguration.allowedKeyManagement.set(KeyMgmt.WPA_PSK); in getWifiConfigurations()
283 wifiConfiguration.preSharedKey = mPreSharedKey; in getWifiConfigurations()
285 wifiConfiguration.preSharedKey = addQuotationIfNeeded(mPreSharedKey); in getWifiConfigurations()
288 wifiConfiguration.allowedKeyManagement.set(KeyMgmt.SAE); in getWifiConfigurations()
[all …]
DWifiDppUtils.java197 final WifiConfiguration wifiConfiguration = accessPoint.getConfig(); in getConfiguratorQrCodeGeneratorIntentOrNull() local
198 setConfiguratorIntentExtra(intent, wifiManager, wifiConfiguration); in getConfiguratorQrCodeGeneratorIntentOrNull()
221 final WifiConfiguration wifiConfiguration = accessPoint.getConfig(); in getConfiguratorQrCodeScannerIntentOrNull() local
222 setConfiguratorIntentExtra(intent, wifiManager, wifiConfiguration); in getConfiguratorQrCodeScannerIntentOrNull()
224 if (wifiConfiguration.networkId == WifiConfiguration.INVALID_NETWORK_ID) { in getConfiguratorQrCodeScannerIntentOrNull()
227 intent.putExtra(EXTRA_WIFI_NETWORK_ID, wifiConfiguration.networkId); in getConfiguratorQrCodeScannerIntentOrNull()
243 WifiManager wifiManager, WifiConfiguration wifiConfiguration) { in getHotspotConfiguratorIntentOrNull() argument
245 if (isSupportHotspotConfiguratorQrCodeGenerator(wifiConfiguration)) { in getHotspotConfiguratorIntentOrNull()
251 setConfiguratorIntentExtra(intent, wifiManager, wifiConfiguration); in getHotspotConfiguratorIntentOrNull()
268 WifiConfiguration wifiConfiguration) { in setConfiguratorIntentExtra() argument
[all …]
DWifiDppConfiguratorActivity.java392 for (WifiConfiguration wifiConfiguration : configs) { in getConnectedWifiNetworkConfigOrNull()
393 if (wifiConfiguration.networkId == connectionNetworkId) { in getConnectedWifiNetworkConfigOrNull()
395 WifiDppUtils.getSecurityString(wifiConfiguration), in getConnectedWifiNetworkConfigOrNull()
396 wifiConfiguration.getPrintableSsid(), in getConnectedWifiNetworkConfigOrNull()
397 wifiConfiguration.preSharedKey, in getConnectedWifiNetworkConfigOrNull()
399 wifiConfiguration.networkId, in getConnectedWifiNetworkConfigOrNull()
DWifiNetworkListFragment.java248 final WifiConfiguration wifiConfiguration = data.getParcelableExtra(WIFI_CONFIG_KEY); in handleAddNetworkSubmitEvent() local
249 if (wifiConfiguration != null) { in handleAddNetworkSubmitEvent()
250 mWifiManager.save(wifiConfiguration, mSaveListener); in handleAddNetworkSubmitEvent()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/
DWifiDetailsFragment.java156 WifiConfiguration wifiConfiguration = mAccessPoint.getConfig(); in update() local
157 if (wifiConfiguration != null) { in update()
158 final int networkId = wifiConfiguration.networkId; in update()
160 wifiConfiguration.getProxySettings() == IpConfiguration.ProxySettings.NONE in update()
166 wifiConfiguration.getIpAssignment() == IpConfiguration.IpAssignment.STATIC in update()
174 mProxySettingsPref.setVisible(wifiConfiguration != null); in update()
175 mIpSettingsPref.setVisible(wifiConfiguration != null); in update()
176 mForgetNetworkPref.setVisible(wifiConfiguration != null); in update()
/packages/services/Car/tests/CarLibTests/src/android/car/
DCarProjectionManagerTest.java103 WifiConfiguration wifiConfiguration = new WifiConfiguration(); in startAp_success() local
104 wifiConfiguration.SSID = "Hello"; in startAp_success()
105 wifiConfiguration.BSSID = "AA:BB:CC:CC:DD:EE"; in startAp_success()
106 wifiConfiguration.preSharedKey = "password"; in startAp_success()
108 mController.setWifiConfiguration(wifiConfiguration); in startAp_success()
112 assertThat(mApCallback.mWifiConfiguration).isEqualTo(wifiConfiguration); in startAp_success()
262 public void onStarted(WifiConfiguration wifiConfiguration) { in onStarted() argument
263 mWifiConfiguration = wifiConfiguration; in onStarted()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/setup/
DEnterPasswordState.java184 WifiConfiguration wifiConfiguration = mUserChoiceInfo.getWifiConfiguration(); in setWifiConfigurationPassword() local
190 wifiConfiguration.wepKeys[0] = password; in setWifiConfigurationPassword()
192 wifiConfiguration.wepKeys[0] = '"' + password + '"'; in setWifiConfigurationPassword()
200 wifiConfiguration.preSharedKey = password; in setWifiConfigurationPassword()
202 wifiConfiguration.preSharedKey = '"' + password + '"'; in setWifiConfigurationPassword()
DAddPageBasedOnNetworkState.java64 WifiConfiguration wifiConfiguration = WifiConfigHelper.getConfiguration( in processForward() local
69 mUserChoiceInfo.setWifiConfiguration(wifiConfiguration); in processForward()
70 if (WifiConfigHelper.isNetworkSaved(wifiConfiguration)) { in processForward()
DUserChoiceInfo.java127 public void setWifiConfiguration(WifiConfiguration wifiConfiguration) { in setWifiConfiguration() argument
128 this.mWifiConfiguration = wifiConfiguration; in setWifiConfiguration()
/packages/apps/Nfc/src/com/android/nfc/
DNfcWifiProtectedSetup.java74 final WifiConfiguration wifiConfiguration; in tryNfcWifiSetup() local
76 wifiConfiguration = parse(cachedNdefMessage); in tryNfcWifiSetup()
82 if (wifiConfiguration != null &&!UserManager.get(context).hasUserRestriction( in tryNfcWifiSetup()
87 .putExtra(EXTRA_WIFI_CONFIG, wifiConfiguration) in tryNfcWifiSetup()
/packages/apps/TvSettings/Settings/tests/robotests/src/com/android/tv/settings/connectivity/setup/
DAddPageBasedOnNetworkStateTest.java87 WifiConfiguration wifiConfiguration = new WifiConfiguration(); in testForward_clearPassword_ssidNotMatch() local
88 wifiConfiguration.SSID = "atv02"; in testForward_clearPassword_ssidNotMatch()
89 mUserChoiceInfo.setWifiConfiguration(wifiConfiguration); in testForward_clearPassword_ssidNotMatch()
90 WifiConfigHelper.saveConfiguration(mActivity, wifiConfiguration); in testForward_clearPassword_ssidNotMatch()
DConnectTimeoutStateTest.java55 WifiConfiguration wifiConfiguration = new WifiConfiguration(); in testProcessForward() local
56 wifiConfiguration.SSID = ssid; in testProcessForward()
57 userInfo.setWifiConfiguration(wifiConfiguration); in testProcessForward()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/
DWifiConfigControllerTest.java503 WifiConfiguration wifiConfiguration; in selectEapMethod_savedAccessPoint_shouldGetCorrectPosition() local
508 wifiConfiguration = mController.getConfig(); in selectEapMethod_savedAccessPoint_shouldGetCorrectPosition()
510 assertThat(wifiConfiguration.enterpriseConfig.getEapMethod()).isEqualTo(Eap.PEAP); in selectEapMethod_savedAccessPoint_shouldGetCorrectPosition()
511 assertThat(wifiConfiguration.enterpriseConfig.getPhase2Method()).isEqualTo( in selectEapMethod_savedAccessPoint_shouldGetCorrectPosition()
517 wifiConfiguration = mController.getConfig(); in selectEapMethod_savedAccessPoint_shouldGetCorrectPosition()
519 assertThat(wifiConfiguration.enterpriseConfig.getEapMethod()).isEqualTo(Eap.TTLS); in selectEapMethod_savedAccessPoint_shouldGetCorrectPosition()
520 assertThat(wifiConfiguration.enterpriseConfig.getPhase2Method()).isEqualTo( in selectEapMethod_savedAccessPoint_shouldGetCorrectPosition()
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/details/
DWifiInfoProviderImpl.java81 WifiConfiguration wifiConfiguration = intent
83 if (mAccessPoint.matches(wifiConfiguration)) {
84 mWifiConfig = wifiConfiguration;
DWifiInfoProvider.java54 void onWifiConfigurationChanged(WifiConfiguration wifiConfiguration, in onWifiConfigurationChanged() argument
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/details/
DWifiMeteredPreferenceController.java41 public WifiMeteredPreferenceController(Context context, WifiConfiguration wifiConfiguration) { in WifiMeteredPreferenceController() argument
43 mWifiConfiguration = wifiConfiguration; in WifiMeteredPreferenceController()
DWifiPrivacyPreferenceController.java52 public void setWifiConfiguration(WifiConfiguration wifiConfiguration) { in setWifiConfiguration() argument
53 mWifiConfiguration = wifiConfiguration; in setWifiConfiguration()
/packages/apps/Settings/src/com/android/settings/wifi/details/
DWifiMeteredPreferenceController.java44 public WifiMeteredPreferenceController(Context context, WifiConfiguration wifiConfiguration) { in WifiMeteredPreferenceController() argument
46 mWifiConfiguration = wifiConfiguration; in WifiMeteredPreferenceController()
DWifiPrivacyPreferenceController.java54 public void setWifiConfiguration(WifiConfiguration wifiConfiguration) { in setWifiConfiguration() argument
55 mWifiConfiguration = wifiConfiguration; in setWifiConfiguration()
/packages/services/Car/car-test-lib/src/android/car/testapi/
DFakeCarProjectionService.java182 public void setWifiConfiguration(WifiConfiguration wifiConfiguration) { in setWifiConfiguration() argument
183 mWifiConfiguration = wifiConfiguration; in setWifiConfiguration()
DCarProjectionController.java26 void setWifiConfiguration(WifiConfiguration wifiConfiguration); in setWifiConfiguration() argument

12