/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | ScoringParamsTest.java | 50 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 …]
|
D | WifiScoreReportTest.java | 97 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 …]
|
D | CandidateScorerTest.java | 97 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()
|
D | WifiNetworkSelectorTest.java | 97 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 …]
|
D | WakeupEvaluatorTest.java | 64 private final ScoringParams mScoringParams = new ScoringParams(); field in WakeupEvaluatorTest 115 assertTrue(params, mScoringParams.update(params)); in setUp() 116 mWakeupEvaluator = new WakeupEvaluator(mScoringParams); in setUp()
|
D | WifiBlocklistMonitorTest.java | 96 @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()
|
D | WifiConnectivityManagerTest.java | 229 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()
|
D | WifiMetricsTest.java | 179 @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/ |
D | ThroughputScorer.java | 47 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 …]
|
D | WifiInjector.java | 154 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 …]
|
D | VelocityBasedConnectedScore.java | 33 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()
|
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 | CompatibilityScorer.java | 38 private final ScoringParams mScoringParams; field in CompatibilityScorer 67 mScoringParams = scoringParams; in CompatibilityScorer() 79 int rssiSaturationThreshold = mScoringParams.getGoodRssi(candidate.getFrequency()); in scoreCandidate()
|
D | BubbleFunScorer.java | 46 private final ScoringParams mScoringParams; field in BubbleFunScorer 49 mScoringParams = scoringParams; in BubbleFunScorer() 64 final int rssiEntryThreshold = mScoringParams.getEntryRssi(candidate.getFrequency()); in scoreCandidate()
|
D | ScoreCardBasedScorer.java | 40 private final ScoringParams mScoringParams; field in ScoreCardBasedScorer 75 mScoringParams = scoringParams; in ScoreCardBasedScorer() 87 int rssiSaturationThreshold = mScoringParams.getGoodRssi(candidate.getFrequency()); in scoreCandidate()
|
D | WifiScoreReport.java | 91 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);
|
D | WifiNetworkSelector.java | 105 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()
|
D | WifiConnectivityManager.java | 152 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()
|
D | WifiBlocklistMonitor.java | 125 private final ScoringParams mScoringParams; field in WifiBlocklistMonitor 206 mScoringParams = scoringParams; in WifiBlocklistMonitor() 659 int sufficientRssi = mScoringParams.getSufficientRssi(scanResult.frequency); in tryEnablingBlockedBssids()
|
D | WifiMetrics.java | 244 private ScoringParams mScoringParams; field in WifiMetrics 1532 mScoringParams = scoringParams; in setScoringParams() 5106 if (mScoringParams != null) { in consolidateScoringParams() 5107 int experimentIdentifier = mScoringParams.getExperimentIdentifier(); in consolidateScoringParams()
|
D | ClientModeImpl.java | 234 private final ScoringParams mScoringParams; field in ClientModeImpl 730 mScoringParams = scoringParams; in ClientModeImpl() 2932 return mScoringParams.getSufficientRssi(scanResult.frequency);
|