/frameworks/base/core/tests/coretests/src/android/net/ |
D | NetworkKeyTest.java | 42 @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/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
D | NetworkControllerWifiTest.java | 39 private WifiInfo mWifiInfo = mock(WifiInfo.class); field in NetworkControllerWifiTest 45 when(mWifiInfo.makeCopy(anyLong())).thenReturn(mWifiInfo); in setUp() 46 when(mWifiInfo.isPrimary()).thenReturn(true); in setUp() 65 NetworkCapabilities.TRANSPORT_WIFI, true, true, mWifiInfo); in testWifiIcon() 68 NetworkCapabilities.TRANSPORT_WIFI, false, true, mWifiInfo); in testWifiIcon() 88 NetworkCapabilities.TRANSPORT_WIFI, true, true, mWifiInfo); in testQsWifiIcon() 90 NetworkCapabilities.TRANSPORT_WIFI, true, true, mWifiInfo); in testQsWifiIcon() 94 NetworkCapabilities.TRANSPORT_WIFI, false, true, mWifiInfo); in testQsWifiIcon() 109 NetworkCapabilities.TRANSPORT_WIFI, true, true, mWifiInfo); in testQsDataDirection() 111 NetworkCapabilities.TRANSPORT_WIFI, true, true, mWifiInfo); in testQsDataDirection() [all …]
|
/frameworks/base/core/java/android/net/vcn/ |
D | VcnTransportInfo.java | 50 @Nullable private final WifiInfo mWifiInfo; field in VcnTransportInfo 62 mWifiInfo = wifiInfo; in VcnTransportInfo() 75 return mWifiInfo; in getWifiInfo() 93 return Objects.hash(mWifiInfo, mSubId); in hashCode() 100 return Objects.equals(mWifiInfo, that.mWifiInfo) && mSubId == that.mSubId; in equals() 117 (mWifiInfo == null) ? null : mWifiInfo.makeCopy(redactions), mSubId); in makeCopy() 125 if (mWifiInfo != null) { in getApplicableRedactions() 126 redactions |= mWifiInfo.getApplicableRedactions(); in getApplicableRedactions() 136 dest.writeParcelable(mWifiInfo, flags); in writeToParcel() 141 return "VcnTransportInfo { mWifiInfo = " + mWifiInfo + ", mSubId = " + mSubId + " }"; in toString()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/ |
D | WifiStatusTracker.java | 162 private WifiInfo mWifiInfo; field in WifiStatusTracker 216 mWifiInfo = null; in fetchInitialState() 219 mWifiInfo = mWifiManager.getConnectionInfo(); in fetchInitialState() 220 if (mWifiInfo != null) { in fetchInitialState() 221 if (mWifiInfo.isPasspointAp() || mWifiInfo.isOsuAp()) { in fetchInitialState() 222 ssid = mWifiInfo.getPasspointProviderFriendlyName(); in fetchInitialState() 224 ssid = getValidSsid(mWifiInfo); in fetchInitialState() 227 isCarrierMerged = mWifiInfo.isCarrierMerged(); in fetchInitialState() 228 subId = mWifiInfo.getSubscriptionId(); in fetchInitialState() 230 updateRssi(mWifiInfo.getRssi()); in fetchInitialState() [all …]
|
D | TestAccessPointBuilder.java | 59 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/ |
D | InternetTile.java | 237 final WifiCallbackInfo mWifiInfo = new WifiCallbackInfo(); field in InternetTile.InternetSignalCallback 247 mWifiInfo.mEnabled = indicators.enabled; in setWifiIndicators() 251 mWifiInfo.mConnected = indicators.qsIcon.visible; in setWifiIndicators() 252 mWifiInfo.mWifiSignalIconId = indicators.qsIcon.icon; in setWifiIndicators() 253 mWifiInfo.mWifiSignalContentDescription = indicators.qsIcon.contentDescription; in setWifiIndicators() 254 mWifiInfo.mEnabled = indicators.enabled; in setWifiIndicators() 255 mWifiInfo.mSsid = indicators.description; in setWifiIndicators() 256 mWifiInfo.mActivityIn = indicators.activityIn; in setWifiIndicators() 257 mWifiInfo.mActivityOut = indicators.activityOut; in setWifiIndicators() 258 mWifiInfo.mIsTransient = indicators.isTransient; in setWifiIndicators() [all …]
|
/frameworks/opt/net/wifi/libs/WifiTrackerLib/src/com/android/wifitrackerlib/ |
D | WifiEntry.java | 233 protected WifiInfo mWifiInfo; field in WifiEntry 835 mWifiInfo = wifiInfo; in updateConnectionInfo() 862 mWifiInfo = null; in updateConnectionInfo() 962 if (getConnectedState() == CONNECTED_STATE_CONNECTED && mWifiInfo != null) { in getWifiInfoDescription() 963 sj.add("f = " + mWifiInfo.getFrequency()); in getWifiInfoDescription() 964 final String bssid = mWifiInfo.getBSSID(); in getWifiInfoDescription() 968 sj.add("standard = " + mWifiInfo.getWifiStandard()); in getWifiInfoDescription() 969 sj.add("rssi = " + mWifiInfo.getRssi()); in getWifiInfoDescription() 970 sj.add("score = " + mWifiInfo.getScore()); in getWifiInfoDescription() 971 sj.add(String.format(" tx=%.1f,", mWifiInfo.getSuccessfulTxPacketsPerSecond())); in getWifiInfoDescription() [all …]
|
D | MergedCarrierEntry.java | 82 if (mWifiInfo != null) { in getSsid() 83 return sanitizeSsid(mWifiInfo.getSSID()); in getSsid() 90 if (mWifiInfo != null) { in getMacAddress() 91 final String wifiInfoMac = mWifiInfo.getMacAddress(); in getMacAddress()
|
D | PasspointWifiEntry.java | 242 if (mWifiInfo != null) { in getSsid() 243 return sanitizeSsid(mWifiInfo.getSSID()); in getSsid() 256 if (mWifiInfo != null) { in getMacAddress() 257 final String wifiInfoMac = mWifiInfo.getMacAddress(); in getMacAddress() 519 if (mWifiInfo != null) { in updateSecurityTypes() 520 final int wifiInfoSecurity = mWifiInfo.getCurrentSecurityType(); in updateSecurityTypes() 530 if (mWifiInfo != null) { in onScoreCacheUpdated() 531 mSpeed = getSpeedFromWifiInfo(mScoreCache, mWifiInfo); in onScoreCacheUpdated()
|
D | StandardWifiEntry.java | 250 if (mWifiInfo != null) { in getMacAddress() 251 final String wifiInfoMac = mWifiInfo.getMacAddress(); in getMacAddress() 708 if (mWifiInfo != null) { in onScoreCacheUpdated() 709 mSpeed = getSpeedFromWifiInfo(mScoreCache, mWifiInfo); in onScoreCacheUpdated() 770 if (mWifiInfo != null) { in updateSecurityTypes() 771 final int wifiInfoSecurity = mWifiInfo.getCurrentSecurityType(); in updateSecurityTypes() 773 mTargetSecurityTypes.add(mWifiInfo.getCurrentSecurityType()); in updateSecurityTypes() 920 if (mWifiInfo != null && scanResult.BSSID.equals(mWifiInfo.getBSSID())) { in getScanResultDescription()
|
/frameworks/base/tests/vcn/java/com/android/server/vcn/ |
D | VcnGatewayConnectionTest.java | 91 private WifiInfo mWifiInfo; field in VcnGatewayConnectionTest 97 mWifiInfo = mock(WifiInfo.class); in setUp() 98 doReturn(mWifiInfo).when(mWifiInfo).makeCopy(anyLong()); in setUp() 110 capBuilder.setTransportInfo(mWifiInfo); in verifyBuildNetworkCapabilitiesCommon() 147 assertEquals(mWifiInfo, info.getWifiInfo()); in verifyBuildNetworkCapabilitiesCommon()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
D | NetworkScoreServiceTest.java | 134 @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/packages/SettingsLib/tests/robotests/src/com/android/settingslib/deviceinfo/ |
D | WifiMacAddressPreferenceControllerTest.java | 60 private WifiInfo mWifiInfo; field in WifiMacAddressPreferenceControllerTest 78 doReturn(mWifiInfo).when(mWifiManager).getConnectionInfo(); in setUp()
|
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/ |
D | AccessPointTest.java | 101 private WifiInfo mWifiInfo; field in AccessPointTest 132 mWifiInfo = new WifiInfo(); in setUp() 133 mWifiInfo.setSSID(WifiSsid.createFromAsciiEncoded(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/ |
D | TelephonyTest.java | 322 protected WifiInfo mWifiInfo; field in TelephonyTest 674 doReturn(mWifiInfo).when(mWifiManager).getConnectionInfo(); in setUp()
|