Home
last modified time | relevance | path

Searched refs:mScoringParams (Results 1 – 22 of 22) sorted by relevance

/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DScoringParamsTest.java50 private ScoringParams mScoringParams; field in ScoringParamsTest
60 mScoringParams = new ScoringParams(); in setUp()
67 assertTrue(-127 < mScoringParams.getExitRssi(frequency)); in checkThresholds()
68 assertTrue(mScoringParams.getExitRssi(frequency) in checkThresholds()
69 <= mScoringParams.getEntryRssi(frequency)); in checkThresholds()
70 assertTrue(mScoringParams.getEntryRssi(frequency) in checkThresholds()
71 <= mScoringParams.getSufficientRssi(frequency)); in checkThresholds()
72 assertTrue(mScoringParams.getSufficientRssi(frequency) in checkThresholds()
73 <= mScoringParams.getGoodRssi(frequency)); in checkThresholds()
74 assertTrue(mScoringParams.getGoodRssi(frequency) < 0); in checkThresholds()
[all …]
DWifiScoreReportTest.java97 ScoringParams mScoringParams; field in WifiScoreReportTest
204 mScoringParams = new ScoringParams(); in setUp()
207 mWifiScoreReport = new WifiScoreReport(mScoringParams, mClock, mWifiMetrics, mWifiInfo, in setUp()
551 assertTrue(mScoringParams.update("rssi5=-83:-80:-66:-55")); in stayOnIfRssiDoesNotGetBelowEntryThreshold()
573 mScoringParams.getYippeeSkippyPacketsPerSecond() + 0.1); in allowTerribleRssiIfDataIsMovingWell()
575 mScoringParams.getYippeeSkippyPacketsPerSecond() + 0.1); in allowTerribleRssiIfDataIsMovingWell()
585 mScoringParams.getYippeeSkippyPacketsPerSecond() - 0.1); in allowTerribleRssiIfDataIsMovingWell()
591 mScoringParams.getYippeeSkippyPacketsPerSecond() + 0.1); in allowTerribleRssiIfDataIsMovingWell()
601 assertTrue(mScoringParams.update("nud=0"));
602 assertEquals(0, mScoringParams.getNudKnob());
[all …]
DCandidateScorerTest.java97 public ScoringParams mScoringParams; field in CandidateScorerTest
109 mScoringParams.update(""); in setUp()
252 ? mScoringParams.getSufficientRssi(mCandidate1.getFrequency()) : in testAboveSaturationDoNotSwitchAwayEvenWithALargeRssiDifference()
253 mScoringParams.getGoodRssi(mCandidate1.getFrequency()); in testAboveSaturationDoNotSwitchAwayEvenWithALargeRssiDifference()
DWifiNetworkSelectorTest.java97 mScoringParams = new ScoringParams(); in setUp()
105 mScoringParams, in setUp()
119 mCompatibilityScorer = new CompatibilityScorer(mScoringParams); in setUp()
120 mScoreCardBasedScorer = new ScoreCardBasedScorer(mScoringParams); in setUp()
121 mThroughputScorer = new ThroughputScorer(mScoringParams); in setUp()
284 private ScoringParams mScoringParams; field in WifiNetworkSelectorTest
315 mThresholdMinimumRssi2G = mScoringParams.getEntryRssi( in setupThresholds()
317 mThresholdMinimumRssi5G = mScoringParams.getEntryRssi(ScanResult.BAND_5_GHZ_START_FREQ_MHZ); in setupThresholds()
319 mThresholdQualifiedRssi2G = mScoringParams.getSufficientRssi( in setupThresholds()
321 mThresholdQualifiedRssi5G = mScoringParams.getSufficientRssi( in setupThresholds()
[all …]
DWakeupEvaluatorTest.java64 private final ScoringParams mScoringParams = new ScoringParams(); field in WakeupEvaluatorTest
115 assertTrue(params, mScoringParams.update(params)); in setUp()
116 mWakeupEvaluator = new WakeupEvaluator(mScoringParams); in setUp()
DWifiBlocklistMonitorTest.java96 @Mock private ScoringParams mScoringParams; field in WifiBlocklistMonitorTest
113 when(mScoringParams.getSufficientRssi(anyInt())).thenReturn(TEST_SUFFICIENT_RSSI); in setup()
183 mWifiLastResortWatchdog, mClock, mLocalLog, mWifiScoreCard, mScoringParams, in setup()
1222 mWifiLastResortWatchdog, mClock, mLocalLog, mWifiScoreCard, mScoringParams, in testNetworkSelectionDisableReasonCustomConfigOverride()
DWifiConnectivityManagerTest.java229 verify(mScoringParams, atLeast(0)).getEntryRssi(anyInt()); in cleanup()
230 verifyNoMoreInteractions(mScoringParams); in cleanup()
253 @Mock private ScoringParams mScoringParams; field in WifiConnectivityManagerTest
472 WifiConnectivityManager wCm = new WifiConnectivityManager(mContext, mScoringParams, in createConnectivityManager()
3778 verify(mScoringParams, times(2)).getEntryRssi(ScanResult.BAND_6_GHZ_START_FREQ_MHZ); in changeDeviceMobilityStateDuringScan()
3779 verify(mScoringParams, times(2)).getEntryRssi(ScanResult.BAND_5_GHZ_START_FREQ_MHZ); in changeDeviceMobilityStateDuringScan()
3780 verify(mScoringParams, times(2)).getEntryRssi(ScanResult.BAND_24_GHZ_START_FREQ_MHZ); in changeDeviceMobilityStateDuringScan()
DWifiMetricsTest.java179 @Mock ScoringParams mScoringParams; field in WifiMetricsTest
220 mWifiMetrics.setScoringParams(mScoringParams); in setUp()
3319 when(mScoringParams.getExperimentIdentifier()).thenReturn(id); in testExperimentId()
3331 when(mScoringParams.getExperimentIdentifier()).thenReturn(id); in testDefaultExperimentId()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DThroughputScorer.java47 private final ScoringParams mScoringParams; field in ThroughputScorer
74 mScoringParams = scoringParams; in ThroughputScorer()
86 int rssiSaturationThreshold = mScoringParams.getSufficientRssi(candidate.getFrequency()); in scoreCandidate()
96 int currentNetworkBonusMin = mScoringParams.getCurrentNetworkBonusMin(); in scoreCandidate()
98 * mScoringParams.getCurrentNetworkBonusPercent() / 100); in scoreCandidate()
104 : mScoringParams.getSecureNetworkBonus(); in scoreCandidate()
108 : mScoringParams.getUnmeteredNetworkBonus(); in scoreCandidate()
110 int savedNetworkAward = candidate.isEphemeral() ? 0 : mScoringParams.getSavedNetworkBonus(); in scoreCandidate()
180 * mScoringParams.getThroughputBonusNumerator() in calculateThroughputBonusScore()
181 / mScoringParams.getThroughputBonusDenominator(); in calculateThroughputBonusScore()
[all …]
DWifiInjector.java154 private final ScoringParams mScoringParams; field in WifiInjector
261 mScoringParams = new ScoringParams(mContext); in WifiInjector()
364 mWifiScoreCard, mScoringParams, mWifiMetrics); in WifiInjector()
381 mWifiMetrics.setScoringParams(mScoringParams); in WifiInjector()
390 mWifiNetworkSelector = new WifiNetworkSelector(mContext, mWifiScoreCard, mScoringParams, in WifiInjector()
394 CompatibilityScorer compatibilityScorer = new CompatibilityScorer(mScoringParams); in WifiInjector()
396 ScoreCardBasedScorer scoreCardBasedScorer = new ScoreCardBasedScorer(mScoringParams); in WifiInjector()
398 BubbleFunScorer bubbleFunScorer = new BubbleFunScorer(mScoringParams); in WifiInjector()
400 ThroughputScorer throughputScorer = new ThroughputScorer(mScoringParams); in WifiInjector()
460 mContext, mScoringParams, mWifiConfigManager, in WifiInjector()
[all …]
DVelocityBasedConnectedScore.java33 private final ScoringParams mScoringParams; field in VelocityBasedConnectedScore
42 mScoringParams = scoringParams; in VelocityBasedConnectedScore()
143 return mScoringParams.getExitRssi(mFrequency) + mThresholdAdjustment; in getAdjustedRssiThreshold()
181 double horizonSeconds = mScoringParams.getHorizonSeconds(); in generateScore()
DAggressiveConnectedScore.java26 private final ScoringParams mScoringParams; field in AggressiveConnectedScore
33 mScoringParams = scoringParams; in AggressiveConnectedScore()
54 int threshRssi = mScoringParams.getSufficientRssi(mFrequencyMHz); in generateScore()
DWakeupEvaluator.java28 private final ScoringParams mScoringParams; field in WakeupEvaluator
31 mScoringParams = scoringParams; in WakeupEvaluator()
68 return scanResult.level < mScoringParams.getEntryRssi(scanResult.frequency); in isBelowThreshold()
DCompatibilityScorer.java38 private final ScoringParams mScoringParams; field in CompatibilityScorer
67 mScoringParams = scoringParams; in CompatibilityScorer()
79 int rssiSaturationThreshold = mScoringParams.getGoodRssi(candidate.getFrequency()); in scoreCandidate()
DBubbleFunScorer.java46 private final ScoringParams mScoringParams; field in BubbleFunScorer
49 mScoringParams = scoringParams; in BubbleFunScorer()
64 final int rssiEntryThreshold = mScoringParams.getEntryRssi(candidate.getFrequency()); in scoreCandidate()
DScoreCardBasedScorer.java40 private final ScoringParams mScoringParams; field in ScoreCardBasedScorer
75 mScoringParams = scoringParams; in ScoreCardBasedScorer()
87 int rssiSaturationThreshold = mScoringParams.getGoodRssi(candidate.getFrequency()); in scoreCandidate()
DWifiScoreReport.java91 private final ScoringParams mScoringParams; field in WifiScoreReport
487 mScoringParams = scoringParams; in WifiScoreReport()
560 >= mScoringParams.getYippeeSkippyPacketsPerSecond() in calculateAndReportScore()
562 >= mScoringParams.getYippeeSkippyPacketsPerSecond() in calculateAndReportScore()
573 int entry = mScoringParams.getEntryRssi(mWifiInfo.getFrequency()); in calculateAndReportScore()
694 int nud = mScoringParams.getNudKnob(); in shouldCheckIpLayer()
1001 mVelocityBasedConnectedScore = new VelocityBasedConnectedScore(mScoringParams, mClock);
DWifiNetworkSelector.java105 private final ScoringParams mScoringParams; field in WifiNetworkSelector
210 return currentRssi >= mScoringParams.getSufficientRssi(wifiInfo.getFrequency()); in hasSufficientLinkQuality()
221 > mScoringParams.getActiveTrafficPacketsPerSecond() in hasActiveStream()
223 > mScoringParams.getActiveTrafficPacketsPerSecond(); in hasActiveStream()
385 return (scanResult.level < mScoringParams.getEntryRssi(scanResult.frequency)); in isSignalTooWeak()
665 return observedRssi >= expectedRssi - mScoringParams.getEstimateRssiErrorMargin(); in isUserChoiceRssiCloseToOrGreaterThanExpectedValue()
1150 long millis = TimeUnit.MINUTES.toMillis(mScoringParams.getLastSelectionMinutes()); in calculateLastSelectionWeight()
1158 int overrideExperimentId = mScoringParams.getExperimentIdentifier(); in getActiveCandidateScorer()
1276 mScoringParams = scoringParams; in WifiNetworkSelector()
DWifiConnectivityManager.java152 private final ScoringParams mScoringParams; field in WifiConnectivityManager
1020 mScoringParams = scoringParams; in WifiConnectivityManager()
1927 pnoSettings.min6GHzRssi = mScoringParams.getEntryRssi(ScanResult.BAND_6_GHZ_START_FREQ_MHZ); in startDisconnectedPnoScan()
1928 pnoSettings.min5GHzRssi = mScoringParams.getEntryRssi(ScanResult.BAND_5_GHZ_START_FREQ_MHZ); in startDisconnectedPnoScan()
1929 pnoSettings.min24GHzRssi = mScoringParams.getEntryRssi( in startDisconnectedPnoScan()
DWifiBlocklistMonitor.java125 private final ScoringParams mScoringParams; field in WifiBlocklistMonitor
206 mScoringParams = scoringParams; in WifiBlocklistMonitor()
659 int sufficientRssi = mScoringParams.getSufficientRssi(scanResult.frequency); in tryEnablingBlockedBssids()
DWifiMetrics.java244 private ScoringParams mScoringParams; field in WifiMetrics
1532 mScoringParams = scoringParams; in setScoringParams()
5106 if (mScoringParams != null) { in consolidateScoringParams()
5107 int experimentIdentifier = mScoringParams.getExperimentIdentifier(); in consolidateScoringParams()
DClientModeImpl.java234 private final ScoringParams mScoringParams; field in ClientModeImpl
730 mScoringParams = scoringParams; in ClientModeImpl()
2932 return mScoringParams.getSufficientRssi(scanResult.frequency);