Create ScoredNetworkEvaluator.
- Bring back WifiNetworkScoreCache into the wifi framework
- Replace RecommendedNetworkEvaluator with ScoredNetworkEvalutor, which
is the same as the previous ExternalScoreEvaluator (ag/1865733) with some
changes:
* Check whether a ScanResult matches the current network by comparing
the matching WifiConfiguration instead of the current bssid
* Only create untrusted WifiConfigurations for open networks
* Set candidate ScanResults for all WifiConfigurations - not only the
final chosen WifiConfiguration
* Mark newly created ephemeral WifiConfiguration as enabled for network
selection
* Log a maximum of one LocalLog line per round of network selection
Bug: 37357981
Test: ./test/wifitests/runtests.sh
Change-Id: I99da4edb371928efb7ca7a9dcd28ddaca9209da8
7 files changed