Home
last modified time | relevance | path

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

/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiCandidatesTest.java53 WifiCandidates mWifiCandidates;
61 mWifiCandidates = new WifiCandidates(mWifiScoreCard); in setUp()
142 WifiCandidates.Key key1 = new WifiCandidates.Key(matchInfo1, mac1, 1); in testKeyEquivalence()
147 assertEquals(key1, new WifiCandidates.Key(matchInfo1, mac1, 1)); in testKeyEquivalence()
149 assertEquals(key1, new WifiCandidates.Key(matchInfo1Prime, mac1, 1)); in testKeyEquivalence()
152 assertEquals(key1.hashCode(), new WifiCandidates.Key(matchInfo1, mac1, 1).hashCode()); in testKeyEquivalence()
153 assertEquals(key1.hashCode(), new WifiCandidates.Key(matchInfo1Prime, mac1, 1).hashCode()); in testKeyEquivalence()
156 assertFalse(key1.equals(new WifiCandidates.Key(matchInfo2, mac1, 1))); in testKeyEquivalence()
157 assertFalse(key1.equals(new WifiCandidates.Key(matchInfo1, mac2, 1))); in testKeyEquivalence()
158 assertFalse(key1.equals(new WifiCandidates.Key(matchInfo1, mac1, 2))); in testKeyEquivalence()
[all …]
DConcreteCandidate.java23 public final class ConcreteCandidate implements WifiCandidates.Candidate {
24 private WifiCandidates.Key mKey;
44 public ConcreteCandidate(WifiCandidates.Candidate candidate) { in ConcreteCandidate()
67 public ConcreteCandidate setKey(WifiCandidates.Key key) { in setKey()
73 public WifiCandidates.Key getKey() { in getKey()
DCandidateScorerTest.java25 import com.android.server.wifi.WifiCandidates.Candidate;
26 import com.android.server.wifi.WifiCandidates.CandidateScorer;
27 import com.android.server.wifi.WifiCandidates.ScoredCandidate;
DWifiNetworkSelectorTest.java193 @Mock private WifiCandidates.CandidateScorer mCandidateScorer;
1633 private static final WifiCandidates.CandidateScorer NULL_SCORER =
1634 new WifiCandidates.CandidateScorer() {
1641 public WifiCandidates.ScoredCandidate scoreCandidates(
1642 Collection<WifiCandidates.Candidate> group) {
1643 return new WifiCandidates.ScoredCandidate(0, 0, null);
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiNetworkSelector.java119 private final Map<String, WifiCandidates.CandidateScorer> mCandidateScorers = new ArrayMap<>();
741 WifiCandidates wifiCandidates = new WifiCandidates(mWifiScoreCard); in selectNetwork()
783 Collection<Collection<WifiCandidates.Candidate>> groupedCandidates = in selectNetwork()
785 for (Collection<WifiCandidates.Candidate> group: groupedCandidates) { in selectNetwork()
786 WifiCandidates.Candidate best = null; in selectNetwork()
787 for (WifiCandidates.Candidate candidate: group) { in selectNetwork()
817 final WifiCandidates.CandidateScorer activeScorer = getActiveCandidateScorer(); in selectNetwork()
818 for (WifiCandidates.CandidateScorer candidateScorer : mCandidateScorers.values()) { in selectNetwork()
819 WifiCandidates.ScoredCandidate choice; in selectNetwork()
896 private WifiCandidates.CandidateScorer getActiveCandidateScorer() { in getActiveCandidateScorer()
[all …]
DCompatibilityScorer.java21 import com.android.server.wifi.WifiCandidates.Candidate;
22 import com.android.server.wifi.WifiCandidates.ScoredCandidate;
29 final class CompatibilityScorer implements WifiCandidates.CandidateScorer {
DBubbleFunScorer.java21 import com.android.server.wifi.WifiCandidates.Candidate;
22 import com.android.server.wifi.WifiCandidates.ScoredCandidate;
30 final class BubbleFunScorer implements WifiCandidates.CandidateScorer {
DScoreCardBasedScorer.java21 import com.android.server.wifi.WifiCandidates.Candidate;
22 import com.android.server.wifi.WifiCandidates.ScoredCandidate;
30 final class ScoreCardBasedScorer implements WifiCandidates.CandidateScorer {
DWifiCandidates.java37 public class WifiCandidates { class
40 WifiCandidates(@NonNull WifiScoreCard wifiScoreCard) { in WifiCandidates() method in WifiCandidates
470 public WifiCandidates setPicky(boolean picky) { in setPicky()