/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | ScoringParamsTest.java | 56 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 …]
|
D | WifiScoreReportTest.java | 74 ScoringParams mScoringParams; field in WifiScoreReportTest 126 mScoringParams = new ScoringParams(mContext); in setUp() 127 mWifiScoreReport = new WifiScoreReport(mScoringParams, mClock); in setUp() 258 assertTrue(mScoringParams.update("rssi5=-83:-80:-66:-55")); in stayOnIfRssiDoesNotGetBelowEntryThreshold() 279 mWifiInfo.txSuccessRate = mScoringParams.getYippeeSkippyPacketsPerSecond() + 0.1; in allowTerribleRssiIfDataIsMovingWell() 280 mWifiInfo.rxSuccessRate = mScoringParams.getYippeeSkippyPacketsPerSecond() + 0.1; in allowTerribleRssiIfDataIsMovingWell() 289 mWifiInfo.rxSuccessRate = mScoringParams.getYippeeSkippyPacketsPerSecond() - 0.1; in allowTerribleRssiIfDataIsMovingWell() 294 mWifiInfo.rxSuccessRate = mScoringParams.getYippeeSkippyPacketsPerSecond() + 0.1; in allowTerribleRssiIfDataIsMovingWell() 304 assertTrue(mScoringParams.update("nud=0")); 305 assertEquals(0, mScoringParams.getNudKnob()); [all …]
|
D | CandidateScorerTest.java | 89 public ScoringParams mScoringParams; field in CandidateScorerTest 101 mScoringParams.update(""); in setUp() 178 int goodRssi = mScoringParams.getGoodRssi(mCandidate1.getFrequency()); in testAboveSaturationDoNotSwitchAwayEvenWithALargeRssiDifference()
|
D | WakeupEvaluatorTest.java | 54 private final ScoringParams mScoringParams = new ScoringParams(); field in WakeupEvaluatorTest 83 assertTrue(params, mScoringParams.update(params)); in setUp() 84 mWakeupEvaluator = new WakeupEvaluator(mScoringParams); in setUp()
|
D | WifiNetworkSelectorTest.java | 79 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 …]
|
D | WifiMetricsTest.java | 143 @Mock ScoringParams mScoringParams; field in WifiMetricsTest 169 mWifiMetrics.setScoringParams(mScoringParams); in setUp() 2246 when(mScoringParams.getExperimentIdentifier()).thenReturn(id); in testExperimentId() 2258 when(mScoringParams.getExperimentIdentifier()).thenReturn(id); in testDefaultExperimentId()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | AggressiveConnectedScore.java | 26 private final ScoringParams mScoringParams; field in AggressiveConnectedScore 33 mScoringParams = scoringParams; in AggressiveConnectedScore() 54 int threshRssi = mScoringParams.getSufficientRssi(mFrequencyMHz); in generateScore()
|
D | WakeupEvaluator.java | 28 private final ScoringParams mScoringParams; field in WakeupEvaluator 31 mScoringParams = scoringParams; in WakeupEvaluator() 68 return scanResult.level < mScoringParams.getEntryRssi(scanResult.frequency); in isBelowThreshold()
|
D | WifiScoreReport.java | 48 private final ScoringParams mScoringParams; field in WifiScoreReport 56 mScoringParams = scoringParams; in WifiScoreReport() 119 && wifiInfo.txSuccessRate >= mScoringParams.getYippeeSkippyPacketsPerSecond() in calculateAndReportScore() 120 && wifiInfo.rxSuccessRate >= mScoringParams.getYippeeSkippyPacketsPerSecond()) { in calculateAndReportScore() 130 int entry = mScoringParams.getEntryRssi(wifiInfo.getFrequency()); in calculateAndReportScore() 192 int nud = mScoringParams.getNudKnob(); in shouldCheckIpLayer()
|
D | CompatibilityScorer.java | 37 private final ScoringParams mScoringParams; field in CompatibilityScorer 61 mScoringParams = scoringParams; in CompatibilityScorer() 73 int rssiSaturationThreshold = mScoringParams.getGoodRssi(candidate.getFrequency()); in scoreCandidate()
|
D | VelocityBasedConnectedScore.java | 30 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()
|
D | BubbleFunScorer.java | 43 private final ScoringParams mScoringParams; field in BubbleFunScorer 46 mScoringParams = scoringParams; in BubbleFunScorer() 61 final int rssiEntryThreshold = mScoringParams.getEntryRssi(candidate.getFrequency()); in scoreCandidate()
|
D | ScoreCardBasedScorer.java | 38 private final ScoringParams mScoringParams; field in ScoreCardBasedScorer 68 mScoringParams = scoringParams; in ScoreCardBasedScorer() 80 int rssiSaturationThreshold = mScoringParams.getGoodRssi(candidate.getFrequency()); in scoreCandidate()
|
D | WifiInjector.java | 100 private final ScoringParams mScoringParams; field in WifiInjector 256 mScoringParams = new ScoringParams(mContext, mFrameworkFacade, in WifiInjector() 258 mWifiMetrics.setScoringParams(mScoringParams); in WifiInjector() 259 mWifiNetworkSelector = new WifiNetworkSelector(mContext, mWifiScoreCard, mScoringParams, in WifiInjector() 261 CompatibilityScorer compatibilityScorer = new CompatibilityScorer(mScoringParams); in WifiInjector() 263 ScoreCardBasedScorer scoreCardBasedScorer = new ScoreCardBasedScorer(mScoringParams); in WifiInjector() 265 BubbleFunScorer bubbleFunScorer = new BubbleFunScorer(mScoringParams); in WifiInjector() 268 mSavedNetworkEvaluator = new SavedNetworkEvaluator(mContext, mScoringParams, in WifiInjector() 323 new WakeupEvaluator(mScoringParams), wakeupOnboarding, mWifiConfigManager, in WifiInjector() 503 return mScoringParams; in getScoringParams()
|
D | SavedNetworkEvaluator.java | 50 private final ScoringParams mScoringParams; field in SavedNetworkEvaluator 63 mScoringParams = scoringParams; in SavedNetworkEvaluator() 121 int rssiSaturationThreshold = mScoringParams.getGoodRssi(scanResult.frequency); in calculateBssidScore()
|
D | WifiConnectivityManager.java | 152 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() 1014 pnoSettings.min5GHzRssi = mScoringParams.getEntryRssi(ScoringParams.BAND5); in startDisconnectedPnoScan() 1015 pnoSettings.min24GHzRssi = mScoringParams.getEntryRssi(ScoringParams.BAND2); in startDisconnectedPnoScan()
|
D | WifiNetworkSelector.java | 113 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()
|
D | WifiMetrics.java | 193 private ScoringParams mScoringParams; field in WifiMetrics 801 mScoringParams = scoringParams; in setScoringParams() 3380 if (mScoringParams != null) { in consolidateScoringParams() 3381 int experimentIdentifier = mScoringParams.getExperimentIdentifier(); in consolidateScoringParams()
|