Home
last modified time | relevance | path

Searched refs:wifiInfo (Results 1 – 24 of 24) sorted by relevance

/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/wifi/
DWifiConfigurationProvider.java102 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/
DWifiInfoTest.java46 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/
DConnectivityListener.java195 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/
DWifiInfoRoboTest.java47 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/
DWifiSettingsUiTest.java132 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/
DWifiStatusTest.java178 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 …]
DWifiInfoPreferenceController.java100 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/
DWifiStatusTest.java178 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 …]
DWifiInfoPreferenceController.java100 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/
DWifiNetworkListFragmentTest.java141 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/
DAddWifiNetworkTask.java96 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/
DWifiPrivacyPreferenceController.java101 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/
DNetworkUtil.java123 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/
DProvisioningParams.java155 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/
DWifiInfoProvider.java39 void onWifiChanged(NetworkInfo networkInfo, WifiInfo wifiInfo); in onWifiChanged() argument
55 NetworkInfo networkInfo, WifiInfo wifiInfo); in onWifiConfigurationChanged() argument
DWifiDetailsBasePreferenceController.java89 NetworkInfo networkInfo, WifiInfo wifiInfo) { in onWifiConfigurationChanged() argument
103 public void onWifiChanged(NetworkInfo networkInfo, WifiInfo wifiInfo) { in onWifiChanged() argument
DWifiDetailsFragment.java184 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/
DWifiScanWorkerTest.java208 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/
DAdminIntegratedFlowPrepareActivity.java50 if (params.wifiInfo != null) { in shouldRunPrepareActivity()
DAdminIntegratedFlowPrepareController.java58 if (mParams.wifiInfo != null) { in setUpTasks()
DDeviceOwnerProvisioningController.java66 if (mParams.wifiInfo != null) { in setUpTasks()
/packages/modules/CaptivePortalLogin/src/com/android/captiveportallogin/
DCaptivePortalLoginActivity.java657 final WifiInfo wifiInfo = mWifiManager.getConnectionInfo(); in getSsid() local
658 return removeDoubleQuotes(wifiInfo.getSSID()); in getSsid()
/packages/modules/NetworkStack/src/com/android/server/connectivity/
DNetworkMonitor.java763 final WifiInfo wifiInfo = mWifiManager.getConnectionInfo(); in buildDataStallDetectionStats() local
764 stats.setWiFiData(wifiInfo); in buildDataStallDetectionStats()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/preprovisioning/
DPreProvisioningController.java291 if (!mUtils.isConnectedToNetwork(mContext) && mParams.wifiInfo == null in initiateProvisioning()