Home
last modified time | relevance | path

Searched refs:WifiCandidates (Results 1 – 13 of 13) sorted by relevance

/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiCandidatesTest.java57 WifiCandidates mWifiCandidates;
66 mWifiCandidates = new WifiCandidates(mWifiScoreCard, mContext); in setUp()
162 WifiCandidates.Key key1 = new WifiCandidates.Key(matchInfo1, mac1, 1); in testKeyEquivalence()
167 assertEquals(key1, new WifiCandidates.Key(matchInfo1, mac1, 1)); in testKeyEquivalence()
169 assertEquals(key1, new WifiCandidates.Key(matchInfo1Prime, mac1, 1)); in testKeyEquivalence()
172 assertEquals(key1.hashCode(), new WifiCandidates.Key(matchInfo1, mac1, 1).hashCode()); in testKeyEquivalence()
173 assertEquals(key1.hashCode(), new WifiCandidates.Key(matchInfo1Prime, mac1, 1).hashCode()); in testKeyEquivalence()
176 assertFalse(key1.equals(new WifiCandidates.Key(matchInfo2, mac1, 1))); in testKeyEquivalence()
177 assertFalse(key1.equals(new WifiCandidates.Key(matchInfo1, mac2, 1))); in testKeyEquivalence()
178 assertFalse(key1.equals(new WifiCandidates.Key(matchInfo1, mac1, 2))); in testKeyEquivalence()
[all …]
DConcreteCandidate.java25 public final class ConcreteCandidate implements WifiCandidates.Candidate {
26 private WifiCandidates.Key mKey;
51 public ConcreteCandidate(WifiCandidates.Candidate candidate) { in ConcreteCandidate()
79 public ConcreteCandidate setKey(WifiCandidates.Key key) { in setKey()
85 public WifiCandidates.Key getKey() { in getKey()
DWifiNetworkSelectorTest.java238 @Mock private WifiCandidates.CandidateScorer mCandidateScorer;
336 List<WifiCandidates.Candidate> candidates = mWifiNetworkSelector.getCandidatesFromScan( in emptyScanResults()
367 List<WifiCandidates.Candidate> candidates = mWifiNetworkSelector.getCandidatesFromScan( in verifyMinimumRssiThreshold()
399 List<WifiCandidates.Candidate> candidates = mWifiNetworkSelector.getCandidatesFromScan( in verifyMinimumTimeGapWhenConnected()
443 List<WifiCandidates.Candidate> candidates = mWifiNetworkSelector.getCandidatesFromScan( in verifyNoMinimumTimeGapWhenDisconnected()
489 List<WifiCandidates.Candidate> candidates = mWifiNetworkSelector.getCandidatesFromScan( in lowRssi5GNetworkIsNotSufficient()
540 List<WifiCandidates.Candidate> candidates = mWifiNetworkSelector.getCandidatesFromScan( in noInternetAccessNetworkIsNotSufficient()
593 List<WifiCandidates.Candidate> candidates = mWifiNetworkSelector.getCandidatesFromScan( in updateConfiguredNetworks()
629 List<WifiCandidates.Candidate> candidates = mWifiNetworkSelector.getCandidatesFromScan( in filterOutBlacklistedBssid()
662 List<WifiCandidates.Candidate> candidates = mWifiNetworkSelector.getCandidatesFromScan( in noSelectionWhenCurrentNetworkNotInScanResults()
[all …]
DCandidateScorerTest.java26 import com.android.server.wifi.WifiCandidates.Candidate;
27 import com.android.server.wifi.WifiCandidates.CandidateScorer;
28 import com.android.server.wifi.WifiCandidates.ScoredCandidate;
DWifiConnectivityManagerTest.java210 @Mock WifiCandidates.Candidate mCandidate1;
211 @Mock WifiCandidates.Candidate mCandidate2;
212 private List<WifiCandidates.Candidate> mCandidateList;
360 WifiCandidates.Key key = new WifiCandidates.Key(mock(ScanResultMatchInfo.class), in mockWifiNetworkSelector()
367 mCandidateList = new ArrayList<WifiCandidates.Candidate>(); in mockWifiNetworkSelector()
373 public WifiConfiguration answer(List<WifiCandidates.Candidate> candidateList) { in mockWifiNetworkSelector()
871 WifiCandidates.Key key = new WifiCandidates.Key(mock(ScanResultMatchInfo.class), in testRetryConnectionOnFailure()
873 WifiCandidates.Candidate otherCandidate = mock(WifiCandidates.Candidate.class); in testRetryConnectionOnFailure()
875 List<WifiCandidates.Candidate> candidateList = new ArrayList<>(); in testRetryConnectionOnFailure()
886 verify(mWifiNS).selectNetwork((List<WifiCandidates.Candidate>) in testRetryConnectionOnFailure()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiNetworkSelector.java105 private final Map<String, WifiCandidates.CandidateScorer> mCandidateScorers = new ArrayMap<>();
743 public List<WifiCandidates.Candidate> getCandidatesFromScan( in getCandidatesFromScan()
783 WifiCandidates wifiCandidates = new WifiCandidates(mWifiScoreCard, mContext); in getCandidatesFromScan()
790 WifiCandidates.Key key = new WifiCandidates.Key( in getCandidatesFromScan()
808 WifiCandidates.Key key = wifiCandidates.keyFromScanDetailAndConfig( in getCandidatesFromScan()
845 public WifiConfiguration selectNetwork(List<WifiCandidates.Candidate> candidates) { in selectNetwork()
849 WifiCandidates wifiCandidates = new WifiCandidates(mWifiScoreCard, mContext, candidates); in selectNetwork()
850 final WifiCandidates.CandidateScorer activeScorer = getActiveCandidateScorer(); in selectNetwork()
853 Collection<Collection<WifiCandidates.Candidate>> groupedCandidates = in selectNetwork()
855 for (Collection<WifiCandidates.Candidate> group : groupedCandidates) { in selectNetwork()
[all …]
DCompatibilityScorer.java22 import com.android.server.wifi.WifiCandidates.Candidate;
23 import com.android.server.wifi.WifiCandidates.ScoredCandidate;
30 final class CompatibilityScorer implements WifiCandidates.CandidateScorer {
DBubbleFunScorer.java22 import com.android.server.wifi.WifiCandidates.Candidate;
23 import com.android.server.wifi.WifiCandidates.ScoredCandidate;
31 final class BubbleFunScorer implements WifiCandidates.CandidateScorer {
DScoreCardBasedScorer.java22 import com.android.server.wifi.WifiCandidates.Candidate;
23 import com.android.server.wifi.WifiCandidates.ScoredCandidate;
32 final class ScoreCardBasedScorer implements WifiCandidates.CandidateScorer {
DThroughputScorer.java24 import com.android.server.wifi.WifiCandidates.Candidate;
25 import com.android.server.wifi.WifiCandidates.ScoredCandidate;
32 final class ThroughputScorer implements WifiCandidates.CandidateScorer {
DWifiCandidates.java43 public class WifiCandidates { class
46 public WifiCandidates(@NonNull WifiScoreCard wifiScoreCard, @NonNull Context context) { in WifiCandidates() method in WifiCandidates
50 public WifiCandidates(@NonNull WifiScoreCard wifiScoreCard, @NonNull Context context, in WifiCandidates() method in WifiCandidates
622 public WifiCandidates setPicky(boolean picky) { in setPicky()
DWifiConnectivityManager.java192 private List<WifiCandidates.Candidate> mLatestCandidates = null;
318 List<WifiCandidates.Candidate> candidates = mNetworkSelector.getCandidatesFromScan( in handleScanResults()
348 private List<WifiCandidates.Candidate> filterCandidatesHighMovement( in filterCandidatesHighMovement()
349 List<WifiCandidates.Candidate> candidates, String listenerName, boolean isFullScan) { in filterCandidatesHighMovement()
372 List<WifiCandidates.Candidate> filteredCandidates = candidates.stream().filter( in filterCandidatesHighMovement()
428 public final Map<WifiCandidates.Key, Integer> candidateRssiMap;
431 CachedWifiCandidates(long timeSinceBootMs, List<WifiCandidates.Candidate> candidates) { in CachedWifiCandidates()
437 this.candidateRssiMap = new ArrayMap<WifiCandidates.Key, Integer>(); in CachedWifiCandidates()
439 for (WifiCandidates.Candidate c : candidates) { in CachedWifiCandidates()
/frameworks/opt/net/wifi/tests/wifitests/
DAndroid.bp369 "com.android.server.wifi.WifiCandidates",
370 "com.android.server.wifi.WifiCandidates$*",
371 "com.android.server.wifi.WifiCandidates.**",