Home
last modified time | relevance | path

Searched refs:wifiConfig (Results 1 – 16 of 16) sorted by relevance

/packages/apps/Car/Settings/src/com/android/car/settings/wifi/
DWifiUtil.java162 WifiConfiguration wifiConfig = new WifiConfiguration(); in connectToAccessPoint() local
163 wifiConfig.SSID = String.format("\"%s\"", ssid); in connectToAccessPoint()
164 wifiConfig.allowedPairwiseCiphers.set(WifiConfiguration.PairwiseCipher.CCMP); in connectToAccessPoint()
165 wifiConfig.allowedPairwiseCiphers.set(WifiConfiguration.PairwiseCipher.TKIP); in connectToAccessPoint()
166 wifiConfig.allowedProtocols.set(WifiConfiguration.Protocol.RSN); in connectToAccessPoint()
167 wifiConfig.allowedProtocols.set(WifiConfiguration.Protocol.WPA); in connectToAccessPoint()
168 wifiConfig.allowedGroupCiphers.set(WifiConfiguration.GroupCipher.WEP40); in connectToAccessPoint()
169 wifiConfig.allowedGroupCiphers.set(WifiConfiguration.GroupCipher.WEP104); in connectToAccessPoint()
170 wifiConfig.hiddenSSID = hidden; in connectToAccessPoint()
173 wifiConfig.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.NONE); in connectToAccessPoint()
[all …]
/packages/apps/Settings/src/com/android/settings/wifi/tether/
DWifiTetherPreferenceController.java150 WifiConfiguration wifiConfig = mWifiManager.getWifiApConfiguration(); in handleWifiApStateChanged() local
151 updateConfigSummary(wifiConfig); in handleWifiApStateChanged()
168 private void updateConfigSummary(WifiConfiguration wifiConfig) { in updateConfigSummary() argument
174 (wifiConfig == null) ? s : wifiConfig.SSID))); in updateConfigSummary()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/tether/
DWifiTetherPreferenceController.java150 WifiConfiguration wifiConfig = mWifiManager.getWifiApConfiguration(); in handleWifiApStateChanged() local
151 updateConfigSummary(wifiConfig); in handleWifiApStateChanged()
168 private void updateConfigSummary(WifiConfiguration wifiConfig) { in updateConfigSummary() argument
174 (wifiConfig == null) ? s : wifiConfig.SSID))); in updateConfigSummary()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/dpp/
DWifiNetworkListFragment.java217 final WifiConfiguration wifiConfig = selectedAccessPoint.getConfig(); in onPreferenceTreeClick() local
218 if (wifiConfig == null) { in onPreferenceTreeClick()
223 wifiConfig.getPrintableSsid(), wifiConfig.preSharedKey, /* hiddenSsid */ false, in onPreferenceTreeClick()
224 wifiConfig.networkId, /* isHotspot */ false); in onPreferenceTreeClick()
DWifiDppUtils.java135 for (WifiConfiguration wifiConfig : wifiConfigs) { in getPresharedKey()
136 if (wifiConfig.networkId == config.networkId) { in getPresharedKey()
137 preSharedKey = wifiConfig.preSharedKey; in getPresharedKey()
DWifiDppQrCodeScannerFragment.java555 for (WifiConfiguration wifiConfig : wifiConfigs) { in onEnrolleeSuccess()
556 if (wifiConfig.networkId == newNetworkId) { in onEnrolleeSuccess()
558 mEnrolleeWifiConfiguration = wifiConfig; in onEnrolleeSuccess()
559 wifiManager.connect(wifiConfig, WifiDppQrCodeScannerFragment.this); in onEnrolleeSuccess()
/packages/apps/Settings/src/com/android/settings/wifi/dpp/
DWifiNetworkListFragment.java217 final WifiConfiguration wifiConfig = selectedAccessPoint.getConfig(); in onPreferenceTreeClick() local
218 if (wifiConfig == null) { in onPreferenceTreeClick()
223 wifiConfig.getPrintableSsid(), wifiConfig.preSharedKey, /* hiddenSsid */ false, in onPreferenceTreeClick()
224 wifiConfig.networkId, /* isHotspot */ false); in onPreferenceTreeClick()
DWifiDppQrCodeScannerFragment.java562 for (WifiConfiguration wifiConfig : wifiConfigs) { in onEnrolleeSuccess()
563 if (wifiConfig.networkId == newNetworkId) { in onEnrolleeSuccess()
565 mEnrolleeWifiConfiguration = wifiConfig; in onEnrolleeSuccess()
566 wifiManager.connect(wifiConfig, WifiDppQrCodeScannerFragment.this); in onEnrolleeSuccess()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/setup/
DConnectState.java59 WifiConfiguration wifiConfig = userChoiceInfo.getWifiConfiguration(); in processForward() local
62 wifiConfig.getPrintableSsid()); in processForward()
64 if (!WifiConfigHelper.isNetworkSaved(wifiConfig)) { in processForward()
68 wifiConfig.setIpConfiguration(advFlowInfo.getIpConfiguration()); in processForward()
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/details/
DWifiDetailsFragment.java241 WifiConfiguration wifiConfig = mWifiInfoProvider.getNetworkConfiguration(); in canModifyNetwork() local
242 LOG.d("wifiConfig is: " + wifiConfig); in canModifyNetwork()
243 return wifiConfig != null && !WifiUtil.isNetworkLockedDown(getContext(), wifiConfig); in canModifyNetwork()
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/conditional/
DHotspotConditionController.java117 WifiConfiguration wifiConfig = mWifiManager.getWifiApConfiguration(); in getSsid() local
118 if (wifiConfig == null) { in getSsid()
122 return wifiConfig.SSID; in getSsid()
/packages/apps/Settings/src/com/android/settings/wifi/
DNetworkRequestDialogFragment.java206 WifiConfiguration wifiConfig = selectedAccessPoint.getConfig(); in onClick() local
207 if (wifiConfig == null) { in onClick()
208 wifiConfig = WifiUtils.getWifiConfig(selectedAccessPoint, /* scanResult */ in onClick()
212 if (wifiConfig != null) { in onClick()
213 mUserSelectionCallback.select(wifiConfig); in onClick()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/
DNetworkRequestDialogFragment.java206 WifiConfiguration wifiConfig = selectedAccessPoint.getConfig(); in onClick() local
207 if (wifiConfig == null) { in onClick()
208 wifiConfig = WifiUtils.getWifiConfig(selectedAccessPoint, /* scanResult */ in onClick()
212 if (wifiConfig != null) { in onClick()
213 mUserSelectionCallback.select(wifiConfig); in onClick()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/homepage/contextualcards/conditional/
DHotspotConditionController.java117 WifiConfiguration wifiConfig = mWifiManager.getWifiApConfiguration(); in getSsid() local
118 if (wifiConfig == null) { in getSsid()
122 return wifiConfig.SSID; in getSsid()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/
DWifiDialogActivityTest.java61 WifiConfiguration wifiConfig = new WifiConfiguration(); in setUp() local
62 wifiConfig.SSID = AP1_SSID; in setUp()
63 doReturn(wifiConfig).when(mController).getConfig(); in setUp()
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/shadow/
DShadowWifiManager.java48 protected boolean setWifiApConfiguration(WifiConfiguration wifiConfig) { in setWifiApConfiguration() argument
49 mSavedApConfig = wifiConfig; in setWifiApConfiguration()