Home | History | Annotate | Download | only in connectivity

Lines Matching defs:score

53  * interested in using it.  Default sort order is descending by score.
91 // for the default network connection, the one with the higher score should be chosen.
147 // If true, becoming unvalidated will lower the network's score. This is only meaningful if the
200 // a request is moved to a network with a better score, regardless of whether the network is or
224 // This represents the last score received from the NetworkAgent.
249 LinkProperties lp, NetworkCapabilities nc, int score, Context context, Handler handler,
257 currentScore = score;
424 // TODO: We may want to refactor this into a NetworkScore class that takes a base score from
426 // score. The NetworkScore class would provide a nice place to centralize score constants
430 // unvalidated, give it the maximum score. Also give it the maximum score if it's explicitly
431 // selected and we're trying to see what its score could be. This ensures that we don't tear
438 int score = currentScore;
440 score -= ConnectivityConstants.UNVALIDATED_SCORE_PENALTY;
442 if (score < 0) score = 0;
443 return score;
446 // Return true on devices configured to ignore score penalty for wifi networks
455 // Get the current score for this Network. This may be modified from what the
461 // Get the current score for this Network as if it was validated. This may be modified from
484 * ConnectivityService when the request is moved to another network with a higher score.
602 "nc{" + networkCapabilities + "} Score{" + getCurrentScore() + "} " +
618 // Enables sorting in descending order of score.