Home
last modified time | relevance | path

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

12

/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiScoreCardTest.java123 ExtendedWifiInfo mWifiInfo; field in WifiScoreCardTest
144 mWifiInfo = new ExtendedWifiInfo(mock(WifiGlobals.class), WIFI_IFACE_NAME); in setUp()
145 mWifiInfo.setSSID(TEST_SSID_1); in setUp()
146 mWifiInfo.setBSSID(TEST_BSSID_1.toString()); in setUp()
147 mWifiInfo.setNetworkId(TEST_NETWORK_CONFIG_ID); in setUp()
148 mWifiInfo.setTxLinkSpeedMbps(866); in setUp()
149 mWifiInfo.setRxLinkSpeedMbps(866); in setUp()
150 mWifiInfo.setMaxSupportedTxLinkSpeedMbps(866); in setUp()
151 mWifiInfo.setMaxSupportedRxLinkSpeedMbps(866); in setUp()
216 mWifiInfo.setSSID(TEST_SSID_1); in testUpdate()
[all …]
DWifiLinkLayerStatsTest.java45 ExtendedWifiInfo mWifiInfo; field in WifiLinkLayerStatsTest
54 mWifiInfo = new ExtendedWifiInfo(mock(WifiGlobals.class), WIFI_IFACE_NAME); in setUp()
89 mWifiInfo.setAffiliatedMloLinks(mloLinks); in setupMloLinks()
166 assertNotNull(mWifiInfo.getAffiliatedMloLinks()); in checkThatAverageRatesConvergeToTheRightValuesAndTotalsAreRight()
173 mWifiInfo.updatePacketRates(mWifiLinkLayerStats, mWifiLinkLayerStats.timeStampInMs); in checkThatAverageRatesConvergeToTheRightValuesAndTotalsAreRight()
176 assertEquals((double) txg, mWifiInfo.getSuccessfulTxPacketsPerSecond(), txg * 0.02); in checkThatAverageRatesConvergeToTheRightValuesAndTotalsAreRight()
177 assertEquals((double) txr, mWifiInfo.getRetriedTxPacketsPerSecond(), txr * 0.02); in checkThatAverageRatesConvergeToTheRightValuesAndTotalsAreRight()
178 assertEquals((double) txb, mWifiInfo.getLostTxPacketsPerSecond(), txb * 0.02); in checkThatAverageRatesConvergeToTheRightValuesAndTotalsAreRight()
179 assertEquals((double) rxg, mWifiInfo.getSuccessfulRxPacketsPerSecond(), rxg * 0.02); in checkThatAverageRatesConvergeToTheRightValuesAndTotalsAreRight()
181 assertEquals(mWifiInfo.txSuccess, n * txg); in checkThatAverageRatesConvergeToTheRightValuesAndTotalsAreRight()
[all …]
DVelocityBasedConnectedScoreTest.java58 WifiInfo mWifiInfo; field in VelocityBasedConnectedScoreTest
88 mWifiInfo = new WifiInfo(); in setUp()
89 mWifiInfo.setFrequency(2412); in setUp()
116 mWifiInfo.setRssi(mRssiExitThreshold2GHz - 2); in allowLowRssiIfErrorRateIsLowAndSomeDataIsMoving()
117 mWifiInfo.setLinkSpeed(6); // Mbps in allowLowRssiIfErrorRateIsLowAndSomeDataIsMoving()
118 mWifiInfo.setSuccessfulTxPacketsPerSecond(2.1); // proportional to pps in allowLowRssiIfErrorRateIsLowAndSomeDataIsMoving()
119 mWifiInfo.setLostTxPacketsPerSecond(.5); in allowLowRssiIfErrorRateIsLowAndSomeDataIsMoving()
120 mWifiInfo.setSuccessfulRxPacketsPerSecond(2.1); in allowLowRssiIfErrorRateIsLowAndSomeDataIsMoving()
122 mVelocityBasedConnectedScore.updateUsingWifiInfo(mWifiInfo, in allowLowRssiIfErrorRateIsLowAndSomeDataIsMoving()
129 mVelocityBasedConnectedScore.updateUsingWifiInfo(mWifiInfo, mClock.getWallClockMillis()); in allowLowRssiIfErrorRateIsLowAndSomeDataIsMoving()
[all …]
DWifiScoreReportTest.java118 ExtendedWifiInfo mWifiInfo; field in WifiScoreReportTest
235 mWifiInfo = new ExtendedWifiInfo(mWifiGlobals, TEST_IFACE_NAME); in setUp()
236 mWifiInfo.setFrequency(2412); in setUp()
237 mWifiInfo.setBSSID(TEST_BSSID); in setUp()
259 mWifiScoreReport = new WifiScoreReport(mScoringParams, mClock, mWifiMetrics, mWifiInfo, in setUp()
349 mWifiInfo.setRssi(-77); in calculateAndReportScoreSucceeds()
425 mWifiInfo.setRssi(-77); in calculateAndReportScoreWhileLingering_sendLingeringScore()
434 mWifiInfo.setRssi(-60); in calculateAndReportScoreWhileLingering_sendLingeringScore()
493 assertTrue(mWifiInfo.isUsable()); in testExternalScorerWhileLingering_sendLingeringScore()
507 mWifiInfo.setRssi(WifiInfo.INVALID_RSSI); in calculateAndReportScoreDoesNotReportWhenRssiIsNotValid()
[all …]
DWifiNetworkSelectorTest.java318 @Mock private WifiInfo mWifiInfo; field in WifiNetworkSelectorTest
378 when(mWifiInfo.getSupplicantState()).thenReturn(SupplicantState.DISCONNECTED); in setupWifiInfo()
379 when(mWifiInfo.is24GHz()).thenReturn(true); in setupWifiInfo()
380 when(mWifiInfo.is5GHz()).thenReturn(false); in setupWifiInfo()
381 when(mWifiInfo.getFrequency()).thenReturn(2400); in setupWifiInfo()
382 when(mWifiInfo.getRssi()).thenReturn(-70); in setupWifiInfo()
383 when(mWifiInfo.getNetworkId()).thenReturn(WifiConfiguration.INVALID_NETWORK_ID); in setupWifiInfo()
384 when(mWifiInfo.getBSSID()).thenReturn(null); in setupWifiInfo()
385 when(mWifiInfo.isUsable()).thenReturn(true); in setupWifiInfo()
386 when(mWifiInfo.getScore()).thenReturn(ConnectedScore.WIFI_INITIAL_SCORE); in setupWifiInfo()
[all …]
DWifiDataStallTest.java73 @Mock WifiInfo mWifiInfo; field in WifiDataStallTest
141 when(mWifiInfo.getLinkSpeed()).thenReturn(10); in setUp()
142 when(mWifiInfo.getRxLinkSpeedMbps()).thenReturn(10); in setUp()
143 when(mWifiInfo.getFrequency()).thenReturn(5850); in setUp()
144 when(mWifiInfo.getBSSID()).thenReturn("5G_WiFi"); in setUp()
145 when(mWifiInfo.getRssi()).thenReturn(TEST_RSSI); in setUp()
298 mCapabilities, null, mNewLlStats, mWifiInfo, mTxBytes, mRxBytes); in verifyThroughputNoRxLinkSpeed()
303 when(mWifiInfo.getRxLinkSpeedMbps()).thenReturn(-1); in verifyThroughputNoRxLinkSpeed()
305 mCapabilities, mOldLlStats, mNewLlStats, mWifiInfo, mTxBytes, mRxBytes); in verifyThroughputNoRxLinkSpeed()
315 mCapabilities, mOldLlStats, mNewLlStats, mWifiInfo, mTxBytes, mRxBytes)); in verifyDataStallTxFailureInternal()
[all …]
DRssiMonitorTest.java66 private final WifiInfo mWifiInfo = new ExtendedWifiInfo(mWifiGlobals, TEST_INTERFACE_NAME); field in RssiMonitorTest
96 mRssiMonitor = new RssiMonitor(mWifiGlobals, wifiThreadRunner, mWifiInfo, mWifiNative, in setUp()
100 mWifiInfo.setRssi(TEST_RSSI_HIGH); in setUp()
107 mWifiInfo.setRssi(TEST_RSSI_HIGH); in setupClientMonitorHighRssiStationary()
143 mWifiInfo.setRssi(TEST_RSSI_MEDIUM); in testUpdatePollRssiIntervalStationaryHighToHysteresisRssi()
156 mWifiInfo.setRssi(TEST_RSSI_LOW); in testUpdatePollRssiIntervalStationaryHighToLowRssi()
180 mWifiInfo.setRssi(TEST_RSSI_LOW); in testUpdatePollRssiIntervalStationaryLowToHighRssi()
197 assertEquals(TEST_RSSI_LOW, mWifiInfo.getRssi()); in testOnClientRssiThresholdBreached()
214 assertEquals(TEST_APP_RSSI_THRESHOLD_BREACH_LOW, mWifiInfo.getRssi()); in testOnAppRssiThresholdBreached()
222 assertEquals(TEST_APP_RSSI_THRESHOLD_BREACH_HIGH, mWifiInfo.getRssi()); in testOnAppRssiThresholdBreached()
[all …]
DWifiHealthMonitorTest.java126 private ExtendedWifiInfo mWifiInfo; field in WifiHealthMonitorTest
158 mWifiInfo = new ExtendedWifiInfo(mock(WifiGlobals.class), WIFI_IFACE_NAME); in setUp()
159 mWifiInfo.setBSSID(TEST_BSSID_1.toString()); in setUp()
160 mWifiInfo.setSSID(TEST_SSID_1); in setUp()
163 mWifiConfig.SSID = mWifiInfo.getSSID(); in setUp()
166 mWifiInfo.setSSID(TEST_SSID_2); in setUp()
168 mWifiConfig.SSID = mWifiInfo.getSSID(); in setUp()
342 mWifiScoreCard.noteConnectionAttempt(mWifiInfo, -53, mWifiInfo.getSSID()); in makeNetworkConnectionExample()
344 mWifiInfo.setRssi(-55); in makeNetworkConnectionExample()
345 mWifiScoreCard.noteIpConfiguration(mWifiInfo); in makeNetworkConnectionExample()
[all …]
DClientModeImplTest.java524 ExtendedWifiInfo mWifiInfo; field in ClientModeImplTest
694 mWifiInfo = new ExtendedWifiInfo(mWifiGlobals, WIFI_IFACE_NAME); in setUp()
826 mDeviceConfigFacade, mScanRequestProxy, mWifiInfo, mWifiConnectivityManager, in initializeCmi()
945 mWifiInfo.setNetworkId(WifiConfiguration.INVALID_NETWORK_ID); in canSaveAdminRestrictedNetworkWithoutConnecting()
965 mWifiInfo.setNetworkId(WifiConfiguration.INVALID_NETWORK_ID); in canSaveDeprecatedSecurityTypeNetworkWithoutConnecting()
1288 WifiInfo wifiInfo = mWifiInfo; in connect()
1295 mWifiInfo.getCurrentSecurityType()); in connect()
1443 WifiInfo wifiInfo = mWifiInfo; in connectWithIpProvisionTimeout()
1450 mWifiInfo.getCurrentSecurityType()); in connectWithIpProvisionTimeout()
2139 WifiInfo wifiInfo = mWifiInfo; in connectPasspointAp()
[all …]
DWifiCountryCodeTest.java103 @Mock WifiInfo mWifiInfo; field in WifiCountryCodeTest
147 when(mClientModeManager.getConnectionInfo()).thenReturn(mWifiInfo); in setUp()
148 when(mWifiInfo.getSuccessfulTxPacketsPerSecond()).thenReturn(10.0); in setUp()
149 when(mWifiInfo.getSuccessfulRxPacketsPerSecond()).thenReturn(5.0); in setUp()
349 when(mWifiInfo.getSuccessfulTxPacketsPerSecond()).thenReturn(20.0); in telephonyCountryCodeChangeAfterL2Connected()
359 when(mWifiInfo.getSuccessfulTxPacketsPerSecond()).thenReturn(10.0); in telephonyCountryCodeChangeAfterL2Connected()
DWifiConnectivityManagerTest.java158 mWifiInfo = getWifiInfo(); in setUp()
180 when(mPrimaryClientModeManager.getConnectionInfo()).thenReturn(mWifiInfo); in setUp()
293 private WifiInfo mWifiInfo; field in WifiConnectivityManagerTest
2769 mWifiInfo.setSSID(WifiSsid.fromUtf8Text(CANDIDATE_SSID)); in wifiConnected_openNetworkNotifierHandlesConnection()
3724 when(mWifiNS.isNetworkSufficient(eq(mWifiInfo))).thenReturn(false); in verifyFullBandScanWhenConnected()
3725 when(mWifiNS.hasActiveStream(eq(mWifiInfo))).thenReturn(false); in verifyFullBandScanWhenConnected()
3726 when(mWifiNS.hasSufficientLinkQuality(eq(mWifiInfo))).thenReturn(false); in verifyFullBandScanWhenConnected()
3727 when(mWifiNS.hasInternetOrExpectNoInternet(eq(mWifiInfo))).thenReturn(true); in verifyFullBandScanWhenConnected()
3769 when(mWifiNS.isNetworkSufficient(eq(mWifiInfo))).thenReturn(true); in verifyFullBandScanWhenConnected()
3770 when(mWifiNS.hasActiveStream(eq(mWifiInfo))).thenReturn(false); in verifyFullBandScanWhenConnected()
[all …]
DWifiLastResortWatchdogTest.java56 @Mock WifiInfo mWifiInfo; field in WifiLastResortWatchdogTest
91 when(mClientModeManager.getConnectionInfo()).thenReturn(mWifiInfo); in setUp()
99 when(mWifiInfo.getSSID()).thenReturn(TEST_NETWORK_SSID); in setUp()
1569 when(mWifiInfo.getSSID()).thenReturn(ssids[0]); in testMetricsCollection()
1570 when(mWifiInfo.getBSSID()).thenReturn(bssids[0]); in testMetricsCollection()
1913 when(mWifiInfo.getSSID()).thenReturn(ssids[0]); in testWatchdogAssumesSuccessOnlyIfFirstConnectionAfterRestartSucceeds()
1914 when(mWifiInfo.getBSSID()).thenReturn(bssids[0]); in testWatchdogAssumesSuccessOnlyIfFirstConnectionAfterRestartSucceeds()
2201 when(mWifiInfo.getSSID()).thenReturn(ssids[0]); in testWatchdogAssumesSuccessOnlyIfConnectedOnSameSsid()
2202 when(mWifiInfo.getBSSID()).thenReturn(bssids[0]); in testWatchdogAssumesSuccessOnlyIfConnectedOnSameSsid()
2391 when(mWifiInfo.getSSID()).thenReturn(ssids[0]); in testNotTriggerBugreportIfConnectedToNewBssid()
[all …]
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiScoreReport.java120 private final ExtendedWifiInfo mWifiInfo; field in WifiScoreReport
214 for (MloLink link : mWifiInfo.getAffiliatedMloLinks()) { in triggerUpdateOfWifiUsabilityStats()
225 mWifiInfo.setRssi(newRssi); in triggerUpdateOfWifiUsabilityStats()
231 mWifiInfo.setLinkSpeed(newTxLinkSpeed); in triggerUpdateOfWifiUsabilityStats()
232 mWifiInfo.setTxLinkSpeedMbps(newTxLinkSpeed); in triggerUpdateOfWifiUsabilityStats()
238 mWifiInfo.setRxLinkSpeedMbps(newRxLinkSpeed); in triggerUpdateOfWifiUsabilityStats()
241 mWifiInfo.setFrequency(newFrequency); in triggerUpdateOfWifiUsabilityStats()
246 mWifiMetrics.updateWifiUsabilityStatsEntries(mInterfaceName, mWifiInfo, stats); in triggerUpdateOfWifiUsabilityStats()
297 mWifiInfo.setUsable(mIsUsable); in notifyStatusUpdate()
373 if (mWifiConnectedNetworkScorerHolder == null && mLegacyIntScore == mWifiInfo.getScore()) { in reportNetworkScoreToConnectivityServiceIfNecessary()
[all …]
DClientModeImpl.java333 private final ExtendedWifiInfo mWifiInfo; field in ClientModeImpl
793 mWifiInfo = wifiInfo; in ClientModeImpl()
857 mRssiMonitor = new RssiMonitor(mWifiGlobals, mWifiThreadRunner, mWifiInfo, mWifiNative, in ClientModeImpl()
1265 boolean isMetered = WifiConfiguration.isMetered(newConfig, mWifiInfo); in onNetworkUpdated()
1266 boolean wasMetered = WifiConfiguration.isMetered(oldConfig, mWifiInfo); in onNetworkUpdated()
1274 mWifiInfo.setTrusted(newConfig.trusted); in onNetworkUpdated()
1631 mWifiInfo.updatePacketRates(stats, mLastLinkLayerStatsUpdate); in getWifiLinkLayerStats()
1635 mWifiInfo.updatePacketRates(mTxPkts, mRxPkts, mLastLinkLayerStatsUpdate); in getWifiLinkLayerStats()
1786 SupplicantState supplicantState = mWifiInfo.getSupplicantState(); in isSupplicantTransientState()
1814 return new WifiInfo(mWifiInfo); in getConnectionInfo()
[all …]
DRssiMonitor.java38 private final WifiInfo mWifiInfo; field in RssiMonitor
54 mWifiInfo = wifiInfo; in RssiMonitor()
116 mWifiInfo.setRssi(curRssi); in handleRssiBreachRestartRssiMonitor()
168 int curRssi = mWifiInfo.getRssi(); in updatePollRssiInterval()
188 enableClientRssiMonitorAndUpdateThresholds(mWifiInfo.getRssi()); in setLongPollRssiInterval()
205 disableClientRssiMonitorAndUpdateThresholds(mWifiInfo.getRssi()); in setShortPollRssiInterval()
225 updateRssiRangesAndStartMonitor(mWifiInfo.getRssi()); in updateAppThresholdsAndStartMonitor()
309 disableClientRssiMonitorAndUpdateThresholds(mWifiInfo.getRssi()); in setFixedPollRssiInterval()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/task/
DAddWifiNetworkTaskTest.java78 @Mock private android.net.wifi.WifiInfo mWifiInfo; field in AddWifiNetworkTaskTest
156 when(mWifiManager.getConnectionInfo()).thenReturn(mWifiInfo); in testIsConnectedToSpecifiedWifiTrue()
157 when(mWifiInfo.getSSID()).thenReturn(TEST_SSID); in testIsConnectedToSpecifiedWifiTrue()
179 when(mWifiManager.getConnectionInfo()).thenReturn(mWifiInfo); in testNoWifiInfoInProvider()
180 when(mWifiInfo.getSSID()).thenReturn(TEST_SSID_2); in testNoWifiInfoInProvider()
207 when(mWifiManager.getConnectionInfo()).thenReturn(mWifiInfo); in testFailingAddingNetwork()
208 when(mWifiInfo.getSSID()).thenReturn(TEST_SSID_2); in testFailingAddingNetwork()
237 when(mWifiManager.getConnectionInfo()).thenReturn(mWifiInfo); in testFailingToReconnectAfterAddingNetwork()
238 when(mWifiInfo.getSSID()).thenReturn(TEST_SSID_2); in testFailingToReconnectAfterAddingNetwork()
273 when(mWifiManager.getConnectionInfo()).thenReturn(mWifiInfo); in testReconnectAfterAddingNetworkSuccess()
[all …]
/packages/modules/NetworkStack/src/com/android/networkstack/metrics/
DDataStallDetectionStats.java57 public final byte[] mWifiInfo; field in DataStallDetectionStats
76 mWifiInfo = emptyWifiInfoIfNull(wifi); in DataStallDetectionStats()
133 .append(HexDump.toHexString(mWifiInfo)) in toString()
151 && Arrays.equals(mWifiInfo, other.mWifiInfo) in equals()
160 return Objects.hash(mNetworkType, mEvaluationType, Arrays.hashCode(mWifiInfo), in hashCode()
174 private byte[] mWifiInfo; field in DataStallDetectionStats.Builder
257 mWifiInfo = MessageNano.toByteArray(data); in setWiFiData()
302 return new DataStallDetectionStats(mCellularInfo, mWifiInfo, in build()
DDataStallStatsUtils.java75 stats.mWifiInfo, in write()
/packages/modules/Telephony/services/QualifiedNetworksService/tests/src/com/android/telephony/qns/
DWifiQualityMonitorTest.java63 private WifiInfo mWifiInfo; field in WifiQualityMonitorTest
98 mWifiInfo = new WifiInfo.Builder().setRssi(mSetRssi).build(); in setUp()
107 when(mWifiManager.getConnectionInfo()).thenReturn(mWifiInfo); in testGetCurrentQuality()
117 when(mWifiManager.getConnectionInfo()).thenReturn(mWifiInfo); in testRegisterThresholdChange_RoveIn()
151 when(mWifiManager.getConnectionInfo()).thenReturn(mWifiInfo); in testRegisterThresholdChange_RoveOut()
241 mWifiInfo = new WifiInfo.Builder().setRssi(mSetRssi).build(); in testBackhaulTimer()
242 when(mWifiManager.getConnectionInfo()).thenReturn(mWifiInfo); in testBackhaulTimer()
293 mWifiInfo = new WifiInfo.Builder().setRssi(mSetRssi).build(); in testValidateWqmStatus_ValidRange()
294 when(mWifiManager.getConnectionInfo()).thenReturn(mWifiInfo); in testValidateWqmStatus_ValidRange()
305 mWifiInfo = new WifiInfo.Builder().setRssi(mSetRssi).build(); in testValidateWqmStatus_InValidRssiWithValidThreshold()
[all …]
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/b2b/
DWifiRoamingModeManagerTest.java56 @Mock WifiInfo mWifiInfo; field in WifiRoamingModeManagerTest
66 when(mActiveModeWarden.getConnectionInfo()).thenReturn(mWifiInfo); in setUp()
67 when(mWifiInfo.getSSID()).thenReturn(CURRENT_SSID); in setUp()
/packages/modules/Wifi/framework/java/android/net/wifi/
DWifiInfo.java661 private final WifiInfo mWifiInfo = new WifiInfo(); field in WifiInfo.Builder
669 mWifiInfo.setSSID(WifiSsid.fromBytes(ssid)); in setSsid()
679 mWifiInfo.setBSSID(bssid); in setBssid()
690 mWifiInfo.setApMldMacAddress(address); in setApMldMacAddress()
700 mWifiInfo.setApMloLinkId(linkId); in setApMloLinkId()
711 mWifiInfo.setAffiliatedMloLinks(links); in setAffiliatedMloLinks()
721 mWifiInfo.setRssi(rssi); in setRssi()
731 mWifiInfo.setNetworkId(networkId); in setNetworkId()
742 mWifiInfo.setSubscriptionId(subId); in setSubscriptionId()
752 mWifiInfo.setCurrentSecurityType(securityType); in setCurrentSecurityType()
[all …]
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/details/
DWifiInfoProvider.java97 private WifiInfo mWifiInfo; field in WifiInfoProvider
217 return mWifiInfo; in getWifiInfo()
264 mWifiInfo = mWifiManager.getConnectionInfo(); in updateInfo()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/p2p/
DWifiP2pMetricsTest.java58 @Mock WifiInfo mWifiInfo; field in WifiP2pMetricsTest
67 when(mWifiManager.getConnectionInfo()).thenReturn(mWifiInfo); in setUp()
68 when(mWifiInfo.getFrequency()).thenReturn(0); in setUp()
111 when(mWifiInfo.getFrequency()).thenReturn(2412); in startAndEndConnectionEventSucceeds()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/
DOsuNetworkConnectionTest.java83 @Mock WifiInfo mWifiInfo; field in OsuNetworkConnectionTest
96 when(mWifiManager.getConnectionInfo()).thenReturn(mWifiInfo); in setUp()
97 when(mWifiInfo.getNetworkId()).thenReturn(TEST_NETWORK_ID); in setUp()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/model/
DProvisioningParams.java387 wifiInfo = builder.mWifiInfo; in ProvisioningParams()
649 private WifiInfo mWifiInfo; field in ProvisioningParams.Builder
716 mWifiInfo = wifiInfo; in setWifiInfo()

12