Home
last modified time | relevance | path

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

/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DScoringParamsTest.java56 private ScoringParams mScoringParams; field in ScoringParamsTest
66 mScoringParams = new ScoringParams(); in setUp()
73 assertTrue(-127 < mScoringParams.getExitRssi(frequency)); in checkThresholds()
74 assertTrue(mScoringParams.getExitRssi(frequency) in checkThresholds()
75 <= mScoringParams.getEntryRssi(frequency)); in checkThresholds()
76 assertTrue(mScoringParams.getEntryRssi(frequency) in checkThresholds()
77 <= mScoringParams.getSufficientRssi(frequency)); in checkThresholds()
78 assertTrue(mScoringParams.getSufficientRssi(frequency) in checkThresholds()
79 <= mScoringParams.getGoodRssi(frequency)); in checkThresholds()
80 assertTrue(mScoringParams.getGoodRssi(frequency) < 0); in checkThresholds()
[all …]
DWifiScoreReportTest.java83 ScoringParams mScoringParams; field in WifiScoreReportTest
147 mScoringParams = new ScoringParams(mContext); in setUp()
148 mWifiScoreReport = new WifiScoreReport(mScoringParams, mClock); in setUp()
279 assertTrue(mScoringParams.update("rssi5=-83:-80:-66:-55")); in stayOnIfRssiDoesNotGetBelowEntryThreshold()
300 mWifiInfo.txSuccessRate = mScoringParams.getYippeeSkippyPacketsPerSecond() + 0.1; in allowTerribleRssiIfDataIsMovingWell()
301 mWifiInfo.rxSuccessRate = mScoringParams.getYippeeSkippyPacketsPerSecond() + 0.1; in allowTerribleRssiIfDataIsMovingWell()
310 mWifiInfo.rxSuccessRate = mScoringParams.getYippeeSkippyPacketsPerSecond() - 0.1; in allowTerribleRssiIfDataIsMovingWell()
315 mWifiInfo.rxSuccessRate = mScoringParams.getYippeeSkippyPacketsPerSecond() + 0.1; in allowTerribleRssiIfDataIsMovingWell()
325 assertTrue(mScoringParams.update("nud=0"));
326 assertEquals(0, mScoringParams.getNudKnob());
[all …]
DCandidateScorerTest.java89 public ScoringParams mScoringParams; field in CandidateScorerTest
101 mScoringParams.update(""); in setUp()
178 int goodRssi = mScoringParams.getGoodRssi(mCandidate1.getFrequency()); in testAboveSaturationDoNotSwitchAwayEvenWithALargeRssiDifference()
DWifiNetworkSelectorTest.java79 mScoringParams = new ScoringParams(); in setUp()
86 mScoringParams, in setUp()
96 mCompatibilityScorer = new CompatibilityScorer(mScoringParams); in setUp()
97 mScoreCardBasedScorer = new ScoreCardBasedScorer(mScoringParams); in setUp()
203 private ScoringParams mScoringParams; field in WifiNetworkSelectorTest
234 mThresholdMinimumRssi2G = mScoringParams.getEntryRssi(ScoringParams.BAND2); in setupThresholds()
235 mThresholdMinimumRssi5G = mScoringParams.getEntryRssi(ScoringParams.BAND5); in setupThresholds()
237 mThresholdQualifiedRssi2G = mScoringParams.getSufficientRssi(ScoringParams.BAND2); in setupThresholds()
238 mThresholdQualifiedRssi5G = mScoringParams.getSufficientRssi(ScoringParams.BAND5); in setupThresholds()
1564 String diagnose = "" + mScoringParams + " // " + experimentId; in testCandidateScorerUse()
[all …]
DWakeupEvaluatorTest.java54 private final ScoringParams mScoringParams = new ScoringParams(); field in WakeupEvaluatorTest
83 assertTrue(params, mScoringParams.update(params)); in setUp()
84 mWakeupEvaluator = new WakeupEvaluator(mScoringParams); in setUp()
DWifiMetricsTest.java143 @Mock ScoringParams mScoringParams; field in WifiMetricsTest
169 mWifiMetrics.setScoringParams(mScoringParams); in setUp()
2259 when(mScoringParams.getExperimentIdentifier()).thenReturn(id); in testExperimentId()
2271 when(mScoringParams.getExperimentIdentifier()).thenReturn(id); in testDefaultExperimentId()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
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()
DWifiScoreReport.java49 private final ScoringParams mScoringParams; field in WifiScoreReport
57 mScoringParams = scoringParams; in WifiScoreReport()
123 && wifiInfo.txSuccessRate >= mScoringParams.getYippeeSkippyPacketsPerSecond() in calculateAndReportScore()
124 && wifiInfo.rxSuccessRate >= mScoringParams.getYippeeSkippyPacketsPerSecond()) { in calculateAndReportScore()
134 int entry = mScoringParams.getEntryRssi(wifiInfo.getFrequency()); in calculateAndReportScore()
196 int nud = mScoringParams.getNudKnob(); in shouldCheckIpLayer()
DVelocityBasedConnectedScore.java30 private final ScoringParams mScoringParams; field in VelocityBasedConnectedScore
39 mScoringParams = scoringParams; in VelocityBasedConnectedScore()
135 return mScoringParams.getExitRssi(mFrequency) + mThresholdAdjustment; in getAdjustedRssiThreshold()
173 double horizonSeconds = mScoringParams.getHorizonSeconds(); in generateScore()
DCompatibilityScorer.java37 private final ScoringParams mScoringParams; field in CompatibilityScorer
61 mScoringParams = scoringParams; in CompatibilityScorer()
73 int rssiSaturationThreshold = mScoringParams.getGoodRssi(candidate.getFrequency()); in scoreCandidate()
DBubbleFunScorer.java43 private final ScoringParams mScoringParams; field in BubbleFunScorer
46 mScoringParams = scoringParams; in BubbleFunScorer()
61 final int rssiEntryThreshold = mScoringParams.getEntryRssi(candidate.getFrequency()); in scoreCandidate()
DScoreCardBasedScorer.java38 private final ScoringParams mScoringParams; field in ScoreCardBasedScorer
68 mScoringParams = scoringParams; in ScoreCardBasedScorer()
80 int rssiSaturationThreshold = mScoringParams.getGoodRssi(candidate.getFrequency()); in scoreCandidate()
DWifiInjector.java102 private final ScoringParams mScoringParams; field in WifiInjector
264 mScoringParams = new ScoringParams(mContext, mFrameworkFacade, in WifiInjector()
266 mWifiMetrics.setScoringParams(mScoringParams); in WifiInjector()
267 mWifiNetworkSelector = new WifiNetworkSelector(mContext, mWifiScoreCard, mScoringParams, in WifiInjector()
269 CompatibilityScorer compatibilityScorer = new CompatibilityScorer(mScoringParams); in WifiInjector()
271 ScoreCardBasedScorer scoreCardBasedScorer = new ScoreCardBasedScorer(mScoringParams); in WifiInjector()
273 BubbleFunScorer bubbleFunScorer = new BubbleFunScorer(mScoringParams); in WifiInjector()
276 mSavedNetworkEvaluator = new SavedNetworkEvaluator(mContext, mScoringParams, in WifiInjector()
332 new WakeupEvaluator(mScoringParams), wakeupOnboarding, mWifiConfigManager, in WifiInjector()
512 return mScoringParams; in getScoringParams()
DSavedNetworkEvaluator.java50 private final ScoringParams mScoringParams; field in SavedNetworkEvaluator
63 mScoringParams = scoringParams; in SavedNetworkEvaluator()
121 int rssiSaturationThreshold = mScoringParams.getGoodRssi(scanResult.frequency); in calculateBssidScore()
DWifiConnectivityManager.java152 private final ScoringParams mScoringParams; field in WifiConnectivityManager
613 mScoringParams = scoringParams; in WifiConnectivityManager()
642 + " min5GHzRssi " + mScoringParams.getEntryRssi(ScoringParams.BAND5) in WifiConnectivityManager()
643 + " min24GHzRssi " + mScoringParams.getEntryRssi(ScoringParams.BAND2) in WifiConnectivityManager()
655 return mRssiScoreSlope * (Math.max(mScoringParams.getGoodRssi(ScoringParams.BAND2), in initialScoreMax()
656 mScoringParams.getGoodRssi(ScoringParams.BAND5)) in initialScoreMax()
1017 pnoSettings.min5GHzRssi = mScoringParams.getEntryRssi(ScoringParams.BAND5); in startDisconnectedPnoScan()
1018 pnoSettings.min24GHzRssi = mScoringParams.getEntryRssi(ScoringParams.BAND2); in startDisconnectedPnoScan()
DWifiNetworkSelector.java113 private final ScoringParams mScoringParams; field in WifiNetworkSelector
233 > mScoringParams.getSufficientRssi(wifiInfo.getFrequency()); in isCurrentNetworkSufficient()
370 return (scanResult.level < mScoringParams.getEntryRssi(scanResult.frequency)); in isSignalTooWeak()
898 int overrideExperimentId = mScoringParams.getExperimentIdentifier(); in getActiveCandidateScorer()
968 mScoringParams = scoringParams; in WifiNetworkSelector()
DWifiMetrics.java198 private ScoringParams mScoringParams; field in WifiMetrics
871 mScoringParams = scoringParams; in setScoringParams()
3514 if (mScoringParams != null) { in consolidateScoringParams()
3515 int experimentIdentifier = mScoringParams.getExperimentIdentifier(); in consolidateScoringParams()