A service which stores a subset of scored networks from the active network scorer.
To be implemented by network subsystems (e.g. Wi-Fi). NetworkScoreService will propagate
scores down to each subsystem depending on the network type. Implementations may register for
a given network type by calling NetworkScoreManager.registerNetworkSubsystem.
A proper implementation should throw SecurityException whenever the caller is not privileged.
It may request scores by calling NetworkScoreManager#requestScores(NetworkKey[]); a call to
updateScores may follow but may not depending on the active scorer's implementation, and in
general this method may be called at any time.
Implementations should also override dump() so that "adb shell dumpsys network_score" includes
the current scores for each network for debugging purposes. |