Home
last modified time | relevance | path

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

/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiScoreReportTest.java70 WifiInfo mWifiInfo; field in WifiScoreReportTest
129 mWifiInfo = new WifiInfo(); in setUp()
130 mWifiInfo.setFrequency(2412); in setUp()
157 mWifiInfo.setRssi(-77); in calculateAndReportScoreSucceeds()
158 mWifiScoreReport.calculateAndReportScore(mWifiInfo, mNetworkAgent, mWifiMetrics); in calculateAndReportScoreSucceeds()
171 mWifiInfo.setRssi(WifiInfo.INVALID_RSSI); in calculateAndReportScoreDoesNotReportWhenRssiIsNotValid()
172 mWifiScoreReport.calculateAndReportScore(mWifiInfo, mNetworkAgent, mWifiMetrics); in calculateAndReportScoreDoesNotReportWhenRssiIsNotValid()
184 mWifiInfo.setRssi(-33); in networkAgentMayBeNull()
186 mWifiScoreReport.calculateAndReportScore(mWifiInfo, null, mWifiMetrics); in networkAgentMayBeNull()
200 mWifiInfo.setRssi(-80); in allowLowRssiIfDataIsMoving()
[all …]
DWifiLinkLayerStatsTest.java32 ExtendedWifiInfo mWifiInfo; field in WifiLinkLayerStatsTest
41 mWifiInfo = new ExtendedWifiInfo(); in setUp()
97 mWifiInfo.updatePacketRates(mWifiLinkLayerStats, mWifiLinkLayerStats.timeStampInMs); in checkThatAverageRatesConvergeToTheRightValuesAndTotalsAreRight()
100 assertEquals((double) txg, mWifiInfo.txSuccessRate, txg * 0.02); in checkThatAverageRatesConvergeToTheRightValuesAndTotalsAreRight()
101 assertEquals((double) txr, mWifiInfo.txRetriesRate, txr * 0.02); in checkThatAverageRatesConvergeToTheRightValuesAndTotalsAreRight()
102 assertEquals((double) txb, mWifiInfo.txBadRate, txb * 0.02); in checkThatAverageRatesConvergeToTheRightValuesAndTotalsAreRight()
103 assertEquals((double) rxg, mWifiInfo.rxSuccessRate, rxg * 0.02); in checkThatAverageRatesConvergeToTheRightValuesAndTotalsAreRight()
105 assertEquals(mWifiInfo.txSuccess, n * txg); in checkThatAverageRatesConvergeToTheRightValuesAndTotalsAreRight()
106 assertEquals(mWifiInfo.txRetries, n * txr); in checkThatAverageRatesConvergeToTheRightValuesAndTotalsAreRight()
107 assertEquals(mWifiInfo.txBad, n * txb); in checkThatAverageRatesConvergeToTheRightValuesAndTotalsAreRight()
[all …]
DWifiNetworkSelectorTest.java143 @Mock private WifiInfo mWifiInfo; field in WifiNetworkSelectorTest
182 when(mWifiInfo.is24GHz()).thenReturn(true); in setupWifiInfo()
183 when(mWifiInfo.is5GHz()).thenReturn(false); in setupWifiInfo()
184 when(mWifiInfo.getFrequency()).thenReturn(2400); in setupWifiInfo()
185 when(mWifiInfo.getRssi()).thenReturn(-70); in setupWifiInfo()
186 when(mWifiInfo.getNetworkId()).thenReturn(WifiConfiguration.INVALID_NETWORK_ID); in setupWifiInfo()
187 when(mWifiInfo.getBSSID()).thenReturn(null); in setupWifiInfo()
218 blacklist, mWifiInfo, false, true, false); in emptyScanResults()
248 blacklist, mWifiInfo, false, true, false); in verifyMinimumRssiThreshold()
279 blacklist, mWifiInfo, false, true, false); in verifyMinimumTimeGapWhenConnected()
[all …]
DVelocityBasedConnectedScoreTest.java55 WifiInfo mWifiInfo; field in VelocityBasedConnectedScoreTest
85 mWifiInfo = new WifiInfo(); in setUp()
86 mWifiInfo.setFrequency(2412); in setUp()
112 mWifiInfo.setRssi(mRssiExitThreshold2GHz - 2); in allowLowRssiIfErrorRateIsLowAndSomeDataIsMoving()
113 mWifiInfo.setLinkSpeed(6); // Mbps in allowLowRssiIfErrorRateIsLowAndSomeDataIsMoving()
114 mWifiInfo.txSuccessRate = 2.1; // proportional to pps in allowLowRssiIfErrorRateIsLowAndSomeDataIsMoving()
115 mWifiInfo.txBadRate = .5; in allowLowRssiIfErrorRateIsLowAndSomeDataIsMoving()
116 mWifiInfo.rxSuccessRate = 2.1; in allowLowRssiIfErrorRateIsLowAndSomeDataIsMoving()
118 mVelocityBasedConnectedScore.updateUsingWifiInfo(mWifiInfo, in allowLowRssiIfErrorRateIsLowAndSomeDataIsMoving()
125 mVelocityBasedConnectedScore.updateUsingWifiInfo(mWifiInfo, mClock.getWallClockMillis()); in allowLowRssiIfErrorRateIsLowAndSomeDataIsMoving()
[all …]
DWifiConnectivityManagerTest.java90 mWifiInfo = getWifiInfo(); in setUp()
126 private WifiInfo mWifiInfo; field in WifiConnectivityManagerTest
317 mWifiConfigManager, mWifiInfo, mWifiNS, mWifiConnectivityHelper, in createConnectivityManager()
1161 mWifiInfo.txSuccessRate = 0; in checkSingleScanSettingsWhenConnectedWithLowDataRate()
1162 mWifiInfo.rxSuccessRate = 0; in checkSingleScanSettingsWhenConnectedWithLowDataRate()
1201 mWifiInfo.txSuccessRate = mFullScanMaxTxPacketRate * 2; in checkPartialScanRequestedWithHighDataRateWithoutFwRoaming()
1202 mWifiInfo.rxSuccessRate = mFullScanMaxRxPacketRate * 2; in checkPartialScanRequestedWithHighDataRateWithoutFwRoaming()
1246 mWifiInfo.txSuccessRate = mFullScanMaxTxPacketRate * 2; in checkPartialScanSkippedWithHighDataRateWithFwRoaming()
1247 mWifiInfo.rxSuccessRate = mFullScanMaxRxPacketRate * 2; in checkPartialScanSkippedWithHighDataRateWithFwRoaming()
1290 mWifiInfo.txSuccessRate = mFullScanMaxTxPacketRate * 2; in checkSingleScanSettingsWhenConnectedWithHighDataRateNotInCache()
[all …]
/frameworks/base/core/tests/coretests/src/android/net/
DNetworkKeyTest.java24 @Mock private WifiInfo mWifiInfo; field in NetworkKeyTest
38 when(mWifiInfo.getBSSID()).thenReturn(VALID_BSSID); in createFromWifi_nullSsid()
39 assertNull(NetworkKey.createFromWifiInfo(mWifiInfo)); in createFromWifi_nullSsid()
44 when(mWifiInfo.getSSID()).thenReturn(""); in createFromWifi_emptySsid()
45 when(mWifiInfo.getBSSID()).thenReturn(VALID_BSSID); in createFromWifi_emptySsid()
46 assertNull(NetworkKey.createFromWifiInfo(mWifiInfo)); in createFromWifi_emptySsid()
51 when(mWifiInfo.getSSID()).thenReturn(WifiSsid.NONE); in createFromWifi_noneSsid()
52 when(mWifiInfo.getBSSID()).thenReturn(VALID_BSSID); in createFromWifi_noneSsid()
53 assertNull(NetworkKey.createFromWifiInfo(mWifiInfo)); in createFromWifi_noneSsid()
58 when(mWifiInfo.getSSID()).thenReturn(VALID_SSID); in createFromWifi_nullBssid()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
DWifiStatusTracker.java68 private WifiInfo mWifiInfo; field in WifiStatusTracker
112 mWifiInfo = null; in handleBroadcast()
115 mWifiInfo = mWifiManager.getConnectionInfo(); in handleBroadcast()
116 if (mWifiInfo != null) { in handleBroadcast()
117 ssid = getValidSsid(mWifiInfo); in handleBroadcast()
118 updateRssi(mWifiInfo.getRssi()); in handleBroadcast()
141 NetworkKey networkKey = NetworkKey.createFromWifiInfo(mWifiInfo); in maybeRequestNetworkScore()
161 mWifiNetworkScoreCache.getScoredNetwork(NetworkKey.createFromWifiInfo(mWifiInfo)); in updateStatusLabel()
DTestAccessPointBuilder.java57 private WifiInfo mWifiInfo; field in TestAccessPointBuilder
81 bundle.putParcelable(AccessPoint.KEY_WIFIINFO, mWifiInfo); in build()
213 mWifiInfo = info; in setWifiInfo()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiStateMachine.java231 mWifiInfo.setRssi(curRssi); in processRssiThreshold()
311 private final ExtendedWifiInfo mWifiInfo; field in WifiStateMachine
805 mWifiInfo = new ExtendedWifiInfo(); in WifiStateMachine()
1150 if (!forceReconnect && mWifiInfo.getNetworkId() == netId) { in connectToUserSelectNetwork()
1259 mWifiInfo.updatePacketRates(stats, lastLinkLayerStatsUpdate); in getWifiLinkLayerStats()
1263 mWifiInfo.updatePacketRates(mTxPkts, mRxPkts, lastLinkLayerStatsUpdate); in getWifiLinkLayerStats()
1399 SupplicantState supplicantState = mWifiInfo.getSupplicantState(); in isSupplicantTransientState()
1424 WifiInfo result = new WifiInfo(mWifiInfo); in syncRequestConnectionInfo()
1429 return mWifiInfo; in getWifiInfo()
1876 pw.println("mWifiInfo " + mWifiInfo); in dump()
[all …]
DWifiConnectivityManager.java136 private final WifiInfo mWifiInfo; field in WifiConnectivityManager
269 mNetworkSelector.selectNetwork(scanDetails, buildBssidBlacklist(), mWifiInfo, in handleScanResults()
585 mWifiInfo = wifiInfo; in WifiConnectivityManager()
719 || targetBssid.equals(mWifiInfo.getBSSID())) in connectToNetwork()
720 && SupplicantState.isConnecting(mWifiInfo.getSupplicantState())) { in connectToNetwork()
745 .getConfiguredNetwork(mWifiInfo.getNetworkId()); in connectToNetwork()
747 (mWifiInfo.getSSID() + " : " + mWifiInfo.getBSSID()); in connectToNetwork()
806 config.networkId, CHANNEL_LIST_AGE_MS, mWifiInfo.getFrequency()); in setScanChannels()
850 boolean isTrafficOverThreshold = mWifiInfo.txSuccessRate > mFullScanMaxTxRate in startPeriodicSingleScan()
851 || mWifiInfo.rxSuccessRate > mFullScanMaxRxRate; in startPeriodicSingleScan()
/frameworks/base/services/tests/servicestests/src/com/android/server/
DNetworkScoreServiceTest.java135 @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()
712 when(mWifiInfo.getSSID()).thenReturn(null); in testCurrentNetworkScoreCacheFilter_invalidWifiInfo_nullSsid()
714 new NetworkScoreService.CurrentNetworkScoreCacheFilter(() -> mWifiInfo); in testCurrentNetworkScoreCacheFilter_invalidWifiInfo_nullSsid()
724 when(mWifiInfo.getSSID()).thenReturn(WifiSsid.NONE); in testCurrentNetworkScoreCacheFilter_invalidWifiInfo_noneSsid()
726 new NetworkScoreService.CurrentNetworkScoreCacheFilter(() -> mWifiInfo); in testCurrentNetworkScoreCacheFilter_invalidWifiInfo_noneSsid()
736 when(mWifiInfo.getSSID()).thenReturn(""); in testCurrentNetworkScoreCacheFilter_invalidWifiInfo_emptySsid()
738 new NetworkScoreService.CurrentNetworkScoreCacheFilter(() -> mWifiInfo); in testCurrentNetworkScoreCacheFilter_invalidWifiInfo_emptySsid()
748 when(mWifiInfo.getBSSID()).thenReturn(INVALID_BSSID); in testCurrentNetworkScoreCacheFilter_invalidWifiInfo_invalidBssid()
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/
DOsuNetworkConnectionTest.java79 @Mock WifiInfo mWifiInfo; field in OsuNetworkConnectionTest
92 when(mWifiInfo.getNetworkId()).thenReturn(TEST_NETWORK_ID); in setUp()