/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/wifi/ |
D | WifiConfigurationProvider.java | 102 public WifiConfiguration generateWifiConfiguration(WifiInfo wifiInfo) { in generateWifiConfiguration() argument 104 wifiConf.SSID = wifiInfo.ssid; in generateWifiConfiguration() 106 wifiConf.hiddenSSID = wifiInfo.hidden; in generateWifiConfiguration() 108 String securityType = wifiInfo.securityType != null ? wifiInfo.securityType : NONE; in generateWifiConfiguration() 111 updateForWPAConfiguration(wifiConf, wifiInfo.password); in generateWifiConfiguration() 114 updateForWEPConfiguration(wifiConf, wifiInfo.password); in generateWifiConfiguration() 117 maybeUpdateForEAPConfiguration(wifiConf, wifiInfo); in generateWifiConfiguration() 127 wifiInfo.proxyHost, in generateWifiConfiguration() 128 wifiInfo.proxyPort, in generateWifiConfiguration() 129 wifiInfo.proxyBypassHosts, in generateWifiConfiguration() [all …]
|
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/model/ |
D | WifiInfoTest.java | 46 WifiInfo wifiInfo = WifiInfo.Builder.builder() in testBuilderWriteAndReadBack() local 64 assertEquals(TEST_SSID, wifiInfo.ssid); in testBuilderWriteAndReadBack() 65 assertEquals(TEST_HIDDEN, wifiInfo.hidden); in testBuilderWriteAndReadBack() 66 assertEquals(TEST_SECURITY_TYPE, wifiInfo.securityType); in testBuilderWriteAndReadBack() 67 assertEquals(TEST_PASSWORD, wifiInfo.password); in testBuilderWriteAndReadBack() 68 assertEquals(TEST_EAP_METHOD, wifiInfo.eapMethod); in testBuilderWriteAndReadBack() 69 assertEquals(TEST_PHASE2_AUTH, wifiInfo.phase2Auth); in testBuilderWriteAndReadBack() 70 assertEquals(TEST_CA_CERT, wifiInfo.caCertificate); in testBuilderWriteAndReadBack() 71 assertEquals(TEST_USER_CERT, wifiInfo.userCertificate); in testBuilderWriteAndReadBack() 72 assertEquals(TEST_IDENTITY, wifiInfo.identity); in testBuilderWriteAndReadBack() [all …]
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/ |
D | ConnectivityListener.java | 195 WifiInfo wifiInfo = mWifiManager.getConnectionInfo(); in getWifiIpAddress() local 196 int ip = wifiInfo.getIpAddress(); in getWifiIpAddress() 210 WifiInfo wifiInfo = mWifiManager.getConnectionInfo(); in getWifiMacAddress() local 211 return wifiInfo.getMacAddress(); in getWifiMacAddress() 271 WifiInfo wifiInfo = mWifiManager.getConnectionInfo(); in getWifiSignalStrength() local 272 return WifiManager.calculateSignalLevel(wifiInfo.getRssi(), maxLevel); in getWifiSignalStrength() 317 WifiInfo wifiInfo = mWifiManager.getConnectionInfo(); in updateConnectivityStatus() local 320 if (wifiInfo != null) { in updateConnectivityStatus() 322 signalStrength = WifiManager.calculateSignalLevel(wifiInfo.getRssi(), 4); in updateConnectivityStatus() 383 WifiInfo wifiInfo = mWifiManager.getConnectionInfo(); in getSsid() local [all …]
|
/packages/apps/ManagedProvisioning/tests/robotests/src/com/android/managedprovisioning/model/ |
D | WifiInfoRoboTest.java | 47 WifiInfo wifiInfo = WifiInfo.Builder.builder() in testBuilderWriteAndReadBack() local 58 assertEquals(TEST_SSID, wifiInfo.ssid); in testBuilderWriteAndReadBack() 59 assertEquals(TEST_HIDDEN, wifiInfo.hidden); in testBuilderWriteAndReadBack() 60 assertEquals(TEST_SECURITY_TYPE, wifiInfo.securityType); in testBuilderWriteAndReadBack() 61 assertEquals(TEST_PASSWORD, wifiInfo.password); in testBuilderWriteAndReadBack() 62 assertEquals(TEST_PROXY_HOST, wifiInfo.proxyHost); in testBuilderWriteAndReadBack() 63 assertEquals(TEST_PROXY_PORT, wifiInfo.proxyPort); in testBuilderWriteAndReadBack() 64 assertEquals(TEST_PROXY_BYPASS_HOSTS, wifiInfo.proxyBypassHosts); in testBuilderWriteAndReadBack() 65 assertEquals(TEST_PAC_URL, wifiInfo.pacUrl); in testBuilderWriteAndReadBack()
|
/packages/apps/Settings/tests/unit/src/com/android/settings/wifi/ |
D | WifiSettingsUiTest.java | 132 WifiInfo wifiInfo = new WifiInfo(); in setupConnectedAccessPoint() local 133 wifiInfo.setSSID(WifiSsid.createFromAsciiEncoded(TEST_UNQUOTED_SSID)); in setupConnectedAccessPoint() 134 wifiInfo.setBSSID(TEST_BSSID); in setupConnectedAccessPoint() 135 wifiInfo.setRssi(TEST_RSSI); in setupConnectedAccessPoint() 136 wifiInfo.setNetworkId(TEST_NETWORK_ID); in setupConnectedAccessPoint() 140 accessPoint.update(config, wifiInfo, networkInfo); in setupConnectedAccessPoint() 305 WifiInfo wifiInfo = new WifiInfo(); in wrongPasswordSavedNetwork() local 306 wifiInfo.setSSID(WifiSsid.createFromAsciiEncoded(TEST_UNQUOTED_SSID)); in wrongPasswordSavedNetwork() 307 wifiInfo.setBSSID(TEST_BSSID); in wrongPasswordSavedNetwork() 308 wifiInfo.setRssi(TEST_RSSI); in wrongPasswordSavedNetwork() [all …]
|
/packages/apps/Settings/src/com/android/settings/wifi/ |
D | WifiStatusTest.java | 178 final WifiInfo wifiInfo = mWifiManager.getConnectionInfo(); 181 mBSSID.setText(wifiInfo.getBSSID()); 182 mHiddenSSID.setText(String.valueOf(wifiInfo.getHiddenSSID())); 183 int ipAddr = wifiInfo.getIpAddress(); 191 mTxLinkSpeed.setText(String.valueOf(wifiInfo.getTxLinkSpeedMbps())+" Mbps"); 192 mRxLinkSpeed.setText(String.valueOf(wifiInfo.getRxLinkSpeedMbps())+" Mbps"); 193 mMACAddr.setText(wifiInfo.getMacAddress()); 194 mNetworkId.setText(String.valueOf(wifiInfo.getNetworkId())); 195 mRSSI.setText(String.valueOf(wifiInfo.getRssi())); 196 mSSID.setText(wifiInfo.getSSID()); [all …]
|
D | WifiInfoPreferenceController.java | 100 final WifiInfo wifiInfo = mWifiManager.getConnectionInfo(); in updateWifiInfo() local 103 final String macAddress = wifiInfo == null ? null : wifiInfo.getMacAddress(); in updateWifiInfo()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/ |
D | WifiStatusTest.java | 178 final WifiInfo wifiInfo = mWifiManager.getConnectionInfo(); 181 mBSSID.setText(wifiInfo.getBSSID()); 182 mHiddenSSID.setText(String.valueOf(wifiInfo.getHiddenSSID())); 183 int ipAddr = wifiInfo.getIpAddress(); 191 mTxLinkSpeed.setText(String.valueOf(wifiInfo.getTxLinkSpeedMbps())+" Mbps"); 192 mRxLinkSpeed.setText(String.valueOf(wifiInfo.getRxLinkSpeedMbps())+" Mbps"); 193 mMACAddr.setText(wifiInfo.getMacAddress()); 194 mNetworkId.setText(String.valueOf(wifiInfo.getNetworkId())); 195 mRSSI.setText(String.valueOf(wifiInfo.getRssi())); 196 mSSID.setText(wifiInfo.getSSID()); [all …]
|
D | WifiInfoPreferenceController.java | 100 final WifiInfo wifiInfo = mWifiManager.getConnectionInfo(); in updateWifiInfo() local 103 final String macAddress = wifiInfo == null ? null : wifiInfo.getMacAddress(); in updateWifiInfo()
|
/packages/apps/Settings/tests/unit/src/com/android/settings/wifi/dpp/ |
D | WifiNetworkListFragmentTest.java | 141 final WifiInfo wifiInfo = new WifiInfo(); in setupConnectedAccessPoint() local 142 wifiInfo.setSSID(WifiSsid.createFromAsciiEncoded(TEST_UNQUOTED_SSID)); in setupConnectedAccessPoint() 143 wifiInfo.setBSSID(TEST_BSSID); in setupConnectedAccessPoint() 144 wifiInfo.setRssi(TEST_RSSI); in setupConnectedAccessPoint() 145 wifiInfo.setNetworkId(TEST_NETWORK_ID); in setupConnectedAccessPoint() 149 accessPoint.update(config, wifiInfo, networkInfo); in setupConnectedAccessPoint()
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/ |
D | AddWifiNetworkTask.java | 96 if (mProvisioningParams.wifiInfo == null) { in run() 125 mWifiConfigurationProvider.generateWifiConfiguration(mProvisioningParams.wifiInfo); in connectToProvidedNetwork() 217 if (!mProvisioningParams.wifiInfo.ssid.equals(connectedSSID)) { in isConnectedToSpecifiedWifi() 218 ProvisionLogger.logd("Wanted to connect SSID " + mProvisioningParams.wifiInfo.ssid in isConnectedToSpecifiedWifi()
|
/packages/apps/Settings/src/com/android/settings/wifi/details/ |
D | WifiPrivacyPreferenceController.java | 101 final WifiInfo wifiInfo = mWifiManager.getConnectionInfo(); in onPreferenceChange() local 102 if (wifiInfo != null && wifiInfo.getNetworkId() == mWifiConfiguration.networkId) { in onPreferenceChange()
|
/packages/apps/Dialer/java/com/android/dialer/common/ |
D | NetworkUtil.java | 123 WifiInfo wifiInfo = wifiMgr.getConnectionInfo(); in getWifiNetworkName() local 124 if (wifiInfo == null) { in getWifiNetworkName() 127 name = wifiInfo.getSSID(); in getWifiNetworkName()
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/model/ |
D | ProvisioningParams.java | 155 public final WifiInfo wifiInfo; field in ProvisioningParams 292 wifiInfo = builder.mWifiInfo; in ProvisioningParams() 343 putPersistableBundlableIfNotNull(bundle, TAG_WIFI_INFO, wifiInfo); in toPersistableBundle() 563 public Builder setWifiInfo(WifiInfo wifiInfo) { in setWifiInfo() argument 564 mWifiInfo = wifiInfo; in setWifiInfo()
|
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/details/ |
D | WifiInfoProvider.java | 39 void onWifiChanged(NetworkInfo networkInfo, WifiInfo wifiInfo); in onWifiChanged() argument 55 NetworkInfo networkInfo, WifiInfo wifiInfo); in onWifiConfigurationChanged() argument
|
D | WifiDetailsBasePreferenceController.java | 89 NetworkInfo networkInfo, WifiInfo wifiInfo) { in onWifiConfigurationChanged() argument 103 public void onWifiChanged(NetworkInfo networkInfo, WifiInfo wifiInfo) { in onWifiChanged() argument
|
D | WifiDetailsFragment.java | 184 public void onWifiChanged(NetworkInfo networkInfo, WifiInfo wifiInfo) { in onWifiChanged() argument 205 NetworkInfo networkInfo, WifiInfo wifiInfo) { in onWifiConfigurationChanged() argument
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/slice/ |
D | WifiScanWorkerTest.java | 208 final WifiInfo wifiInfo = new WifiInfo(); in setConnectionInfoSSID() local 209 wifiInfo.setSSID(WifiSsid.createFromAsciiEncoded(ssid)); in setConnectionInfoSSID() 210 ShadowWifiManager.get().setConnectionInfo(wifiInfo); in setConnectionInfoSSID()
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/provisioning/ |
D | AdminIntegratedFlowPrepareActivity.java | 50 if (params.wifiInfo != null) { in shouldRunPrepareActivity()
|
D | AdminIntegratedFlowPrepareController.java | 58 if (mParams.wifiInfo != null) { in setUpTasks()
|
D | DeviceOwnerProvisioningController.java | 66 if (mParams.wifiInfo != null) { in setUpTasks()
|
/packages/modules/CaptivePortalLogin/src/com/android/captiveportallogin/ |
D | CaptivePortalLoginActivity.java | 657 final WifiInfo wifiInfo = mWifiManager.getConnectionInfo(); in getSsid() local 658 return removeDoubleQuotes(wifiInfo.getSSID()); in getSsid()
|
/packages/modules/NetworkStack/src/com/android/server/connectivity/ |
D | NetworkMonitor.java | 763 final WifiInfo wifiInfo = mWifiManager.getConnectionInfo(); in buildDataStallDetectionStats() local 764 stats.setWiFiData(wifiInfo); in buildDataStallDetectionStats()
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/preprovisioning/ |
D | PreProvisioningController.java | 291 if (!mUtils.isConnectedToNetwork(mContext) && mParams.wifiInfo == null in initiateProvisioning()
|