[WifiCandidates] CandidateScorer control over legacy user choice
Provide a mechanism for a CandidateScorer to say whether or not its
network selection may be overridden by the legacy user connect choice
logic.
Update CompatibilityScorer to better emulate the old selection
logic by using this new mechanism, and by using the evaluator-provided
scores when available.
Bug: 112196799
Test: manual
Test: After walking around so that several networks have been selected,
Test: adb shell dumpsys wifi | grep -e ' selects ' -e ' choose'
Test: and verify that CompatibilityScorer would have chosen the same network as the old logic.
Change-Id: I6ba72679ec12161876e81afeba01591aa22a6951
5 files changed