Home
last modified time | relevance | path

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

/frameworks/base/core/tests/coretests/src/android/net/
DNetworkKeyTest.java42 @Mock private WifiInfo mWifiInfo; field in NetworkKeyTest
56 when(mWifiInfo.getBSSID()).thenReturn(VALID_BSSID); in createFromWifi_nullSsid()
57 assertNull(NetworkKey.createFromWifiInfo(mWifiInfo)); in createFromWifi_nullSsid()
62 when(mWifiInfo.getSSID()).thenReturn(""); in createFromWifi_emptySsid()
63 when(mWifiInfo.getBSSID()).thenReturn(VALID_BSSID); in createFromWifi_emptySsid()
64 assertNull(NetworkKey.createFromWifiInfo(mWifiInfo)); in createFromWifi_emptySsid()
69 when(mWifiInfo.getSSID()).thenReturn(WifiManager.UNKNOWN_SSID); in createFromWifi_noneSsid()
70 when(mWifiInfo.getBSSID()).thenReturn(VALID_BSSID); in createFromWifi_noneSsid()
71 assertNull(NetworkKey.createFromWifiInfo(mWifiInfo)); in createFromWifi_noneSsid()
76 when(mWifiInfo.getSSID()).thenReturn(VALID_SSID); in createFromWifi_nullBssid()
[all …]
/frameworks/base/core/java/android/net/vcn/
DVcnTransportInfo.java51 @Nullable private final WifiInfo mWifiInfo; field in VcnTransportInfo
73 mWifiInfo = wifiInfo; in VcnTransportInfo()
87 return mWifiInfo; in getWifiInfo()
115 return Objects.hash(mWifiInfo, mSubId, mMinUdpPort4500NatTimeoutSeconds); in hashCode()
122 return Objects.equals(mWifiInfo, that.mWifiInfo) in equals()
142 (mWifiInfo == null) ? null : mWifiInfo.makeCopy(redactions), in makeCopy()
152 if (mWifiInfo != null) { in getApplicableRedactions()
153 redactions |= mWifiInfo.getApplicableRedactions(); in getApplicableRedactions()
163 dest.writeParcelable(mWifiInfo, flags); in writeToParcel()
169 return "VcnTransportInfo { mWifiInfo = " + mWifiInfo + ", mSubId = " + mSubId + " }"; in toString()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/connectivity/
DNetworkControllerWifiTest.java59 private WifiInfo mWifiInfo = mock(WifiInfo.class); field in NetworkControllerWifiTest
66 when(mWifiInfo.makeCopy(anyLong())).thenReturn(mWifiInfo); in setUp()
67 when(mWifiInfo.isPrimary()).thenReturn(true); in setUp()
86 NetworkCapabilities.TRANSPORT_WIFI, true, true, mWifiInfo); in testWifiIcon()
89 NetworkCapabilities.TRANSPORT_WIFI, false, true, mWifiInfo); in testWifiIcon()
109 NetworkCapabilities.TRANSPORT_WIFI, true, true, mWifiInfo); in testQsWifiIcon()
111 NetworkCapabilities.TRANSPORT_WIFI, true, true, mWifiInfo); in testQsWifiIcon()
115 NetworkCapabilities.TRANSPORT_WIFI, false, true, mWifiInfo); in testQsWifiIcon()
130 NetworkCapabilities.TRANSPORT_WIFI, true, true, mWifiInfo); in testQsDataDirection()
132 NetworkCapabilities.TRANSPORT_WIFI, true, true, mWifiInfo); in testQsDataDirection()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
DWifiStatusTracker.java160 private WifiInfo mWifiInfo; field in WifiStatusTracker
236 mWifiInfo = null; in fetchInitialState()
239 mWifiInfo = mWifiManager.getConnectionInfo(); in fetchInitialState()
240 if (mWifiInfo != null) { in fetchInitialState()
241 if (mWifiInfo.isPasspointAp() || mWifiInfo.isOsuAp()) { in fetchInitialState()
242 ssid = mWifiInfo.getPasspointProviderFriendlyName(); in fetchInitialState()
244 ssid = getValidSsid(mWifiInfo); in fetchInitialState()
246 isCarrierMerged = mWifiInfo.isCarrierMerged(); in fetchInitialState()
247 subId = mWifiInfo.getSubscriptionId(); in fetchInitialState()
248 updateRssi(mWifiInfo.getRssi()); in fetchInitialState()
[all …]
DTestAccessPointBuilder.java59 private WifiInfo mWifiInfo; field in TestAccessPointBuilder
85 bundle.putParcelable(AccessPoint.KEY_WIFIINFO, mWifiInfo); in build()
215 mWifiInfo = info; in setWifiInfo()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
DInternetTile.java294 final WifiCallbackInfo mWifiInfo = new WifiCallbackInfo(); field in InternetTile.InternetSignalCallback
306 synchronized (mWifiInfo) { in setWifiIndicators()
307 mWifiInfo.mEnabled = indicators.enabled; in setWifiIndicators()
308 mWifiInfo.mSsid = indicators.description; in setWifiIndicators()
309 mWifiInfo.mIsTransient = indicators.isTransient; in setWifiIndicators()
310 mWifiInfo.mStatusLabel = indicators.statusLabel; in setWifiIndicators()
312 mWifiInfo.mConnected = indicators.qsIcon.visible; in setWifiIndicators()
313 mWifiInfo.mWifiSignalIconId = indicators.qsIcon.icon; in setWifiIndicators()
314 mWifiInfo.mWifiSignalContentDescription = indicators.qsIcon.contentDescription; in setWifiIndicators()
316 mWifiInfo.mConnected = false; in setWifiIndicators()
[all …]
/frameworks/opt/net/wifi/libs/WifiTrackerLib/src/com/android/wifitrackerlib/
DWifiEntry.java243 protected WifiInfo mWifiInfo; field in WifiEntry
400 || (mWifiInfo != null && NonSdkApiWrapper.isPrimary(mWifiInfo)); in isPrimaryNetwork()
741 return Utils.getSpeedString(mContext, mWifiInfo, /* isTx */ true); in getTxSpeedString()
748 return Utils.getSpeedString(mContext, mWifiInfo, /* isTx */ false); in getRxSpeedString()
1026 mWifiInfo = null; in updateWifiInfo()
1031 mWifiInfo = wifiInfo; in updateWifiInfo()
1032 final int wifiInfoRssi = mWifiInfo.getRssi(); in updateWifiInfo()
1051 mConnectedInfo.frequencyMhz = mWifiInfo.getFrequency(); in updateWifiInfo()
1052 mConnectedInfo.linkSpeedMbps = mWifiInfo.getLinkSpeed(); in updateWifiInfo()
1053 mConnectedInfo.wifiStandard = mWifiInfo.getWifiStandard(); in updateWifiInfo()
[all …]
DMergedCarrierEntry.java77 if (mWifiInfo != null) { in getSsid()
78 return sanitizeSsid(mWifiInfo.getSSID()); in getSsid()
86 if (mWifiInfo != null) { in getMacAddress()
87 final String wifiInfoMac = mWifiInfo.getMacAddress(); in getMacAddress()
DPasspointWifiEntry.java238 if (mWifiInfo != null) { in getSsid()
239 return sanitizeSsid(mWifiInfo.getSSID()); in getSsid()
264 if (mWifiInfo != null) { in getMacAddress()
265 final String wifiInfoMac = mWifiInfo.getMacAddress(); in getMacAddress()
465 if (mWifiInfo != null) { in getStandardString()
466 return Utils.getStandardString(mContext, mWifiInfo.getWifiStandard()); in getStandardString()
481 if (mWifiInfo != null) { in getBandString()
482 return Utils.wifiInfoToBandString(mContext, mWifiInfo); in getBandString()
553 if (mWifiInfo != null) { in updateSecurityTypes()
554 final int wifiInfoSecurity = mWifiInfo.getCurrentSecurityType(); in updateSecurityTypes()
DHotspotNetworkEntry.java289 if (mWifiInfo == null) { in getMacAddress()
292 final String wifiInfoMac = mWifiInfo.getMacAddress(); in getMacAddress()
323 if (mWifiInfo == null) { in getStandardString()
326 return Utils.getStandardString(mContext, mWifiInfo.getWifiStandard()); in getStandardString()
331 if (mWifiInfo == null) { in getBandString()
334 return Utils.wifiInfoToBandString(mContext, mWifiInfo); in getBandString()
DStandardWifiEntry.java256 if (mWifiInfo != null) { in getMacAddress()
257 final String wifiInfoMac = mWifiInfo.getMacAddress(); in getMacAddress()
608 if (mWifiInfo != null) { in getStandardString()
609 return Utils.getStandardString(mContext, mWifiInfo.getWifiStandard()); in getStandardString()
629 if (mWifiInfo != null) { in getBandString()
630 return Utils.wifiInfoToBandString(mContext, mWifiInfo); in getBandString()
780 if (mWifiInfo != null) { in updateSecurityTypes()
781 final int wifiInfoSecurity = mWifiInfo.getCurrentSecurityType(); in updateSecurityTypes()
783 mTargetSecurityTypes.add(mWifiInfo.getCurrentSecurityType()); in updateSecurityTypes()
923 if (mWifiInfo != null && scanResult.BSSID.equals(mWifiInfo.getBSSID())) { in getScanResultDescription()
/frameworks/base/services/tests/servicestests/src/com/android/server/
DNetworkScoreServiceTest.java134 @Mock private WifiInfo mWifiInfo; field in NetworkScoreServiceTest
160 when(mWifiInfo.getSSID()).thenReturn(SCORED_NETWORK.networkKey.wifiKey.ssid); in setUp()
161 when(mWifiInfo.getBSSID()).thenReturn(SCORED_NETWORK.networkKey.wifiKey.bssid); in setUp()
713 when(mWifiInfo.getSSID()).thenReturn(null); in testCurrentNetworkScoreCacheFilter_invalidWifiInfo_nullSsid()
715 new NetworkScoreService.CurrentNetworkScoreCacheFilter(() -> mWifiInfo); in testCurrentNetworkScoreCacheFilter_invalidWifiInfo_nullSsid()
725 when(mWifiInfo.getSSID()).thenReturn(WifiManager.UNKNOWN_SSID); in testCurrentNetworkScoreCacheFilter_invalidWifiInfo_noneSsid()
727 new NetworkScoreService.CurrentNetworkScoreCacheFilter(() -> mWifiInfo); in testCurrentNetworkScoreCacheFilter_invalidWifiInfo_noneSsid()
737 when(mWifiInfo.getSSID()).thenReturn(""); in testCurrentNetworkScoreCacheFilter_invalidWifiInfo_emptySsid()
739 new NetworkScoreService.CurrentNetworkScoreCacheFilter(() -> mWifiInfo); in testCurrentNetworkScoreCacheFilter_invalidWifiInfo_emptySsid()
749 when(mWifiInfo.getBSSID()).thenReturn(INVALID_BSSID); in testCurrentNetworkScoreCacheFilter_invalidWifiInfo_invalidBssid()
[all …]
/frameworks/base/tests/vcn/java/com/android/server/vcn/
DVcnGatewayConnectionTest.java122 private WifiInfo mWifiInfo; field in VcnGatewayConnectionTest
128 mWifiInfo = mock(WifiInfo.class); in setUp()
129 doReturn(mWifiInfo).when(mWifiInfo).makeCopy(anyLong()); in setUp()
141 capBuilder.setTransportInfo(mWifiInfo); in verifyBuildNetworkCapabilitiesCommon()
180 assertEquals(mWifiInfo, info.getWifiInfo()); in verifyBuildNetworkCapabilitiesCommon()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/deviceinfo/
DWifiMacAddressPreferenceControllerTest.java58 private WifiInfo mWifiInfo; field in WifiMacAddressPreferenceControllerTest
76 doReturn(mWifiInfo).when(mWifiManager).getConnectionInfo(); in setUp()
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/
DAccessPointTest.java101 private WifiInfo mWifiInfo; field in AccessPointTest
132 mWifiInfo = new WifiInfo(); in setUp()
133 mWifiInfo.setSSID(WifiSsid.fromString(TEST_SSID)); in setUp()
134 mWifiInfo.setBSSID(TEST_BSSID); in setUp()
1180 mWifiInfo.setFQDN("fqdn"); in testUpdate_passpointWifiInfo_updatesPasspointAccessPoint()
1181 mWifiInfo.setProviderFriendlyName("providerFriendlyName"); in testUpdate_passpointWifiInfo_updatesPasspointAccessPoint()
1191 assertThat(passpointAp.update(null, mWifiInfo, null)).isTrue(); in testUpdate_passpointWifiInfo_updatesPasspointAccessPoint()
1199 mWifiInfo.setFQDN("fqdn"); in testUpdate_passpointWifiInfo_doesNotUpdateNonPasspointAccessPoint()
1200 mWifiInfo.setProviderFriendlyName("providerFriendlyName"); in testUpdate_passpointWifiInfo_doesNotUpdateNonPasspointAccessPoint()
1208 assertThat(ap.update(null, mWifiInfo, null)).isFalse(); in testUpdate_passpointWifiInfo_doesNotUpdateNonPasspointAccessPoint()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DTelephonyTest.java278 protected WifiInfo mWifiInfo; field in TelephonyTest
565 mWifiInfo = Mockito.mock(WifiInfo.class); in setUp()
856 doReturn(mWifiInfo).when(mWifiManager).getConnectionInfo(); in setUp()