/packages/apps/Car/Settings/src/com/android/car/settings/wifi/ |
D | WifiUtil.java | 234 WifiConfiguration wifiConfig = getWifiConfig(ssid, security, password, hidden); in connectToWifiEntry() local 235 wifiManager.connect(wifiConfig, listener); in connectToWifiEntry() 240 WifiConfiguration wifiConfig = new WifiConfiguration(); in getWifiConfig() local 241 wifiConfig.SSID = String.format("\"%s\"", ssid); in getWifiConfig() 242 wifiConfig.hiddenSSID = hidden; in getWifiConfig() 244 return finishWifiConfig(wifiConfig, security, password); in getWifiConfig() 250 WifiConfiguration wifiConfig = new WifiConfiguration(); in getWifiConfig() local 252 wifiConfig.SSID = "\"" + wifiEntry.getSsid() + "\""; in getWifiConfig() 254 wifiConfig.networkId = wifiEntry.getWifiConfiguration().networkId; in getWifiConfig() 255 wifiConfig.hiddenSSID = wifiEntry.getWifiConfiguration().hiddenSSID; in getWifiConfig() [all …]
|
/packages/modules/Wifi/service/java/com/android/server/wifi/hotspot2/ |
D | PasspointProvider.java | 546 WifiConfiguration wifiConfig = new WifiConfiguration(); in getWifiConfig() local 553 wifiConfig.setSecurityParams(paramsList); in getWifiConfig() 555 wifiConfig.FQDN = mConfig.getHomeSp().getFqdn(); in getWifiConfig() 556 wifiConfig.setPasspointUniqueId(mConfig.getUniqueId()); in getWifiConfig() 558 wifiConfig.roamingConsortiumIds = Arrays.copyOf( in getWifiConfig() 565 wifiConfig.updateIdentifier = Integer.toString(mConfig.getUpdateIdentifier()); in getWifiConfig() 567 wifiConfig.meteredOverride = WifiConfiguration.METERED_OVERRIDE_METERED; in getWifiConfig() 570 wifiConfig.providerFriendlyName = mConfig.getHomeSp().getFriendlyName(); in getWifiConfig() 575 wifiConfig.carrierId = carrierId; in getWifiConfig() 577 wifiConfig.setSubscriptionGroup(mConfig.getSubscriptionGroup()); in getWifiConfig() [all …]
|
D | PasspointManager.java | 1351 private boolean addWifiConfig(WifiConfiguration wifiConfig) { in addWifiConfig() argument 1352 if (wifiConfig == null) { in addWifiConfig() 1358 PasspointProvider.convertFromWifiConfig(wifiConfig); in addWifiConfig() 1364 WifiEnterpriseConfig enterpriseConfig = wifiConfig.enterpriseConfig; in addWifiConfig() 1387 mProviderIndex++, wifiConfig.creatorUid, null, false, in addWifiConfig()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/ |
D | PasspointManagerTest.java | 339 WifiConfiguration wifiConfig = WifiConfigurationTestUtil.generateWifiConfig(-1, in createMockProvider() local 342 return createMockProvider(config, wifiConfig, false); in createMockProvider() 352 PasspointConfiguration config, WifiConfiguration wifiConfig, boolean isSuggestion) { in createMockProvider() argument 356 lenient().when(provider.getWifiConfig()).thenReturn(wifiConfig); in createMockProvider() 424 WifiConfiguration wifiConfig = WifiConfigurationTestUtil.generateWifiConfig(-1, TEST_UID, in addTestProvider() local 428 return addTestProvider(fqdn, friendlyName, packageName, wifiConfig, isSuggestion, realm, in addTestProvider() 439 String packageName, WifiConfiguration wifiConfig, boolean isSuggestion, String realm, in addTestProvider() argument 443 wifiConfig.setPasspointUniqueId(config.getUniqueId()); in addTestProvider() 451 PasspointProvider provider = createMockProvider(config, wifiConfig, isSuggestion); in addTestProvider() 1701 WifiConfiguration wifiConfig = new WifiConfiguration(); in addLegacyPasspointConfigWithUserCredential() local [all …]
|
D | PasspointProviderTest.java | 332 PasspointConfiguration passpointConfig, WifiConfiguration wifiConfig) { in verifyWifiConfigWithTestData() argument 341 WifiEnterpriseConfig wifiEnterpriseConfig = wifiConfig.enterpriseConfig; in verifyWifiConfigWithTestData() 342 assertEquals(homeSp.getFqdn(), wifiConfig.FQDN); in verifyWifiConfigWithTestData() 343 assertEquals(homeSp.getFriendlyName(), wifiConfig.providerFriendlyName); in verifyWifiConfigWithTestData() 345 wifiConfig.roamingConsortiumIds)); in verifyWifiConfigWithTestData() 347 assertTrue(wifiConfig.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.WPA_EAP)); in verifyWifiConfigWithTestData() 348 assertTrue(wifiConfig.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.IEEE8021X)); in verifyWifiConfigWithTestData() 349 assertEquals(wifiConfig.updateIdentifier, in verifyWifiConfigWithTestData() 351 assertEquals(allowedProtocols, wifiConfig.allowedProtocols); in verifyWifiConfigWithTestData() 353 wifiConfig.updateIdentifier); in verifyWifiConfigWithTestData() [all …]
|
/packages/modules/Connectivity/tests/cts/multidevices/snippet/ |
D | ConnectivityMultiDevicesSnippet.kt | 99 val wifiConfig = WifiConfiguration() in connectToWifi() constant 100 wifiConfig.SSID = "\"" + ssid + "\"" in connectToWifi() 101 wifiConfig.preSharedKey = "\"" + passphrase + "\"" in connectToWifi() 102 wifiConfig.hiddenSSID = true in connectToWifi() 103 wifiConfig.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA2_PSK) in connectToWifi() 104 wifiConfig.allowedPairwiseCiphers.set(WifiConfiguration.PairwiseCipher.TKIP) in connectToWifi() 105 wifiConfig.allowedPairwiseCiphers.set(WifiConfiguration.PairwiseCipher.CCMP) in connectToWifi() 109 connectUtil.connectToWifiConfig(wifiConfig) in connectToWifi()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/dpp/ |
D | WifiNetworkListFragmentTest.java | 72 final WifiConfiguration wifiConfig = new WifiConfiguration(); in onActivityResult_addNetworkRequestOk_shouldSaveNetwork() local 74 intent.putExtra(WifiNetworkListFragment.WIFI_CONFIG_KEY, wifiConfig); in onActivityResult_addNetworkRequestOk_shouldSaveNetwork() 79 verify(mWifiNetworkListFragment.mWifiManager).save(eq(wifiConfig), any()); in onActivityResult_addNetworkRequestOk_shouldSaveNetwork() 134 final WifiConfiguration wifiConfig = mock(WifiConfiguration.class); in onPreferenceClick_validWifiEntryPreference_onChooseNetwork() local 135 when(wifiConfig.getPrintableSsid()).thenReturn("ssid"); in onPreferenceClick_validWifiEntryPreference_onChooseNetwork() 136 when(wifiEntry.getWifiConfiguration()).thenReturn(wifiConfig); in onPreferenceClick_validWifiEntryPreference_onChooseNetwork()
|
/packages/apps/Settings/src/com/android/settings/wifi/dpp/ |
D | WifiNetworkListFragment.java | 229 final WifiConfiguration wifiConfig = selectedWifiEntry.getWifiConfiguration(); in onPreferenceClick() local 230 if (wifiConfig == null) { in onPreferenceClick() 235 wifiConfig.getPrintableSsid(), wifiConfig.preSharedKey, wifiConfig.hiddenSSID, in onPreferenceClick() 236 wifiConfig.networkId, /* isHotspot */ false); in onPreferenceClick()
|
D | WifiDppQrCodeScannerFragment.java | 632 for (WifiConfiguration wifiConfig : wifiConfigs) { in onEnrolleeSuccess() 633 if (wifiConfig.networkId == newNetworkId) { in onEnrolleeSuccess() 635 mEnrolleeWifiConfiguration = wifiConfig; in onEnrolleeSuccess() 636 if (!canConnectWifi(wifiConfig.SSID)) return; in onEnrolleeSuccess() 637 wifiManager.connect(wifiConfig, WifiDppQrCodeScannerFragment.this); in onEnrolleeSuccess()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | SoftApBackupRestoreTest.java | 210 WifiConfiguration wifiConfig = new WifiConfiguration(); in testSoftApConfigBackupAndRestoreWithOldConfig() local 211 wifiConfig.SSID = "TestAP"; in testSoftApConfigBackupAndRestoreWithOldConfig() 212 wifiConfig.apBand = WifiConfiguration.AP_BAND_2GHZ; in testSoftApConfigBackupAndRestoreWithOldConfig() 213 wifiConfig.apChannel = 12; in testSoftApConfigBackupAndRestoreWithOldConfig() 214 wifiConfig.hiddenSSID = true; in testSoftApConfigBackupAndRestoreWithOldConfig() 215 wifiConfig.preSharedKey = "test_pwd"; in testSoftApConfigBackupAndRestoreWithOldConfig() 216 wifiConfig.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA2_PSK); in testSoftApConfigBackupAndRestoreWithOldConfig() 217 byte[] data = getBytesForBackup(wifiConfig); in testSoftApConfigBackupAndRestoreWithOldConfig() 221 assertWifiConfigurationEqualSoftApConfiguration(wifiConfig, restoredConfig); in testSoftApConfigBackupAndRestoreWithOldConfig()
|
/packages/modules/Wifi/framework/java/android/net/wifi/ |
D | SoftApConfiguration.java | 1240 WifiConfiguration wifiConfig = new WifiConfiguration(); in toWifiConfiguration() local 1242 wifiConfig.SSID = utf8Text != null ? utf8Text.toString() : WifiManager.UNKNOWN_SSID; in toWifiConfiguration() 1243 wifiConfig.preSharedKey = mPassphrase; in toWifiConfiguration() 1244 wifiConfig.hiddenSSID = mHiddenSsid; in toWifiConfiguration() 1245 wifiConfig.apChannel = getChannel(); in toWifiConfiguration() 1248 wifiConfig.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.NONE); in toWifiConfiguration() 1252 wifiConfig.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA2_PSK); in toWifiConfiguration() 1261 wifiConfig.apBand = WifiConfiguration.AP_BAND_2GHZ; in toWifiConfiguration() 1264 wifiConfig.apBand = WifiConfiguration.AP_BAND_5GHZ; in toWifiConfiguration() 1267 wifiConfig.apBand = WifiConfiguration.AP_BAND_ANY; in toWifiConfiguration() [all …]
|
D | IWifiManager.aidl | 237 boolean startSoftAp(in WifiConfiguration wifiConfig, String packageName); in startSoftAp() argument 270 boolean setWifiApConfiguration(in WifiConfiguration wifiConfig, String packageName); in setWifiApConfiguration() argument
|
D | BaseWifiService.java | 477 public boolean startSoftAp(WifiConfiguration wifiConfig, String packageName) { in startSoftAp() argument 560 public boolean setWifiApConfiguration(WifiConfiguration wifiConfig, String packageName) { in setWifiApConfiguration() argument
|
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/networkrequest/ |
D | NetworkRequestDialogFragment.java | 235 WifiConfiguration wifiConfig = selectedWifiEntry.getWifiConfiguration(); in onClick() local 236 if (wifiConfig == null) { in onClick() 238 wifiConfig = WifiUtil.getWifiConfig(selectedWifiEntry, /* password= */ null); in onClick() 242 if (wifiConfig != null) { in onClick() 243 mUserSelectionCallback.select(wifiConfig); in onClick()
|
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/network/ |
D | ConnectivityListener.java | 237 WifiConfiguration wifiConfig = ap.getConfig(); in getWifiMacAddress() local 238 if (wifiConfig != null in getWifiMacAddress() 239 && wifiConfig.macRandomizationSetting in getWifiMacAddress() 241 return wifiConfig.getRandomizedMacAddress().toString(); in getWifiMacAddress()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/ |
D | NetworkRequestDialogFragment.java | 202 WifiConfiguration wifiConfig = selectedAccessPoint.getConfig(); in onClick() local 203 if (wifiConfig == null) { in onClick() 204 wifiConfig = WifiConfigHelper.getConfiguration( in onClick() 209 mUserSelectionCallback.select(wifiConfig); in onClick()
|
D | ConnectivityListener.java | 194 WifiConfiguration wifiConfig = ap.getConfig(); in getWifiMacAddress() local 195 if (wifiConfig != null in getWifiMacAddress() 197 return wifiConfig.getRandomizedMacAddress().toString(); in getWifiMacAddress()
|
/packages/services/Car/tests/CarLibTests/src/android/car/ |
D | CarProjectionManagerTest.java | 132 WifiConfiguration wifiConfig = config.toWifiConfiguration(); in startAp_success_setWifiConfiguration() local 133 mController.setWifiConfiguration(wifiConfig); in startAp_success_setWifiConfiguration() 140 assertThat(mApCallback.mWifiConfiguration).isEqualTo(wifiConfig); in startAp_success_setWifiConfiguration()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/util/ |
D | ApConfigUtil.java | 940 @NonNull WifiConfiguration wifiConfig) { in fromWifiConfiguration() 946 configBuilder.setSsid(wifiConfig.SSID); in fromWifiConfiguration() 947 if (wifiConfig.getAuthType() == WifiConfiguration.KeyMgmt.WPA2_PSK) { in fromWifiConfiguration() 948 configBuilder.setPassphrase(wifiConfig.preSharedKey, in fromWifiConfiguration() 951 configBuilder.setHiddenSsid(wifiConfig.hiddenSSID); in fromWifiConfiguration() 954 switch (wifiConfig.apBand) { in fromWifiConfiguration() 969 if (wifiConfig.apChannel == 0) { in fromWifiConfiguration() 972 configBuilder.setChannel(wifiConfig.apChannel, band); in fromWifiConfiguration()
|
D | XmlUtil.java | 464 XmlSerializer out, WifiConfiguration wifiConfig, in writePreSharedKeyToXml() argument 468 if (encryptionUtil != null && wifiConfig.preSharedKey != null) { in writePreSharedKeyToXml() 469 if (wifiConfig.hasEncryptedPreSharedKey() && !wifiConfig.hasPreSharedKeyChanged()) { in writePreSharedKeyToXml() 470 encryptedData = new EncryptedData(wifiConfig.getEncryptedPreSharedKey(), in writePreSharedKeyToXml() 471 wifiConfig.getEncryptedPreSharedKeyIv()); in writePreSharedKeyToXml() 473 encryptedData = encryptionUtil.encrypt(wifiConfig.preSharedKey.getBytes()); in writePreSharedKeyToXml() 483 wifiConfig.setEncryptedPreSharedKey(encryptedData.getEncryptedData(), in writePreSharedKeyToXml() 485 wifiConfig.setHasPreSharedKeyChanged(false); in writePreSharedKeyToXml() 488 writeNextValue(out, XML_TAG_PRE_SHARED_KEY, wifiConfig.preSharedKey); in writePreSharedKeyToXml()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/ |
D | ApConfigUtilTest.java | 936 WifiConfiguration wifiConfig = new WifiConfiguration(); in testConvertInvalidWifiConfigurationToSoftApConfiguration() local 937 wifiConfig.SSID = "AndroidAP"; in testConvertInvalidWifiConfigurationToSoftApConfiguration() 938 wifiConfig.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA2_PSK); in testConvertInvalidWifiConfigurationToSoftApConfiguration() 939 assertNull(ApConfigUtil.fromWifiConfiguration(wifiConfig)); in testConvertInvalidWifiConfigurationToSoftApConfiguration() 945 WifiConfiguration wifiConfig = new WifiConfiguration(); in testConvertInvalidKeyMgmtWifiConfigurationToSoftApConfiguration() local 946 wifiConfig.SSID = "AndroidAP"; in testConvertInvalidKeyMgmtWifiConfigurationToSoftApConfiguration() 947 wifiConfig.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA_EAP); in testConvertInvalidKeyMgmtWifiConfigurationToSoftApConfiguration() 948 wifiConfig.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA2_PSK); in testConvertInvalidKeyMgmtWifiConfigurationToSoftApConfiguration() 949 wifiConfig.preSharedKey = "12345678"; in testConvertInvalidKeyMgmtWifiConfigurationToSoftApConfiguration() 950 assertNull(ApConfigUtil.fromWifiConfiguration(wifiConfig)); in testConvertInvalidKeyMgmtWifiConfigurationToSoftApConfiguration()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/ |
D | NetworkRequestDialogFragmentTest.java | 154 final WifiConfiguration wifiConfig = new WifiConfiguration(); in onClick_validSelection_shouldCallSelect() local 155 when(clickedWifiEntry.getWifiConfiguration()).thenReturn(wifiConfig); in onClick_validSelection_shouldCallSelect() 164 verify(selectionCallback, times(1)).select(wifiConfig); in onClick_validSelection_shouldCallSelect()
|
/packages/modules/Wifi/framework/tests/src/android/net/wifi/ |
D | WifiManagerTest.java | 237 SoftApConfiguration softApConfig, WifiConfiguration wifiConfig) { in compareWifiAndSoftApConfiguration() argument 241 if (!Objects.equals(wifiConfig.SSID, softApConfig.getWifiSsid().getUtf8Text())) { in compareWifiAndSoftApConfiguration() 244 if (!Objects.equals(wifiConfig.BSSID, softApConfig.getBssid())) { in compareWifiAndSoftApConfiguration() 247 if (!Objects.equals(wifiConfig.preSharedKey, softApConfig.getPassphrase())) { in compareWifiAndSoftApConfiguration() 251 if (wifiConfig.hiddenSSID != softApConfig.isHiddenSsid()) { in compareWifiAndSoftApConfiguration() 256 if (wifiConfig.getAuthType() != WifiConfiguration.KeyMgmt.NONE) { in compareWifiAndSoftApConfiguration() 261 if (wifiConfig.getAuthType() != WifiConfiguration.KeyMgmt.WPA2_PSK) { in compareWifiAndSoftApConfiguration() 604 WifiConfiguration wifiConfig = callback.mRes.getWifiConfiguration(); in testCreationAndCloseOfLocalOnlyHotspotReservation() local 605 assertTrue(compareWifiAndSoftApConfiguration(softApConfig, wifiConfig)); in testCreationAndCloseOfLocalOnlyHotspotReservation() 627 WifiConfiguration wifiConfig = callback.mRes.getWifiConfiguration(); in testLocalOnlyHotspotReservationCallsStopProperlyInTryWithResources() local [all …]
|
/packages/apps/Settings/src/com/android/settings/wifi/ |
D | WifiConfigController.java | 1110 final WifiConfiguration wifiConfig = mAccessPoint.getConfig(); in showSecurityFields() local 1111 final WifiEnterpriseConfig enterpriseConfig = wifiConfig.enterpriseConfig; in showSecurityFields() 1164 if (wifiConfig.carrierId == mActiveSubscriptionInfos.get(i).getCarrierId()) { in showSecurityFields()
|
D | WifiConfigController2.java | 1123 final WifiConfiguration wifiConfig = mWifiEntry.getWifiConfiguration(); in showSecurityFields() local 1124 final WifiEnterpriseConfig enterpriseConfig = wifiConfig.enterpriseConfig; in showSecurityFields() 1177 int index = mActiveSubscriptionInfos.indexOfKey(wifiConfig.carrierId); in showSecurityFields()
|