public class WifiNetworkScoreCache
extends INetworkScoreCache.Stub
Modifier and Type | Field and Description |
---|---|
static int |
INVALID_NETWORK_SCORE |
Constructor and Description |
---|
WifiNetworkScoreCache(Context context) |
Modifier and Type | Method and Description |
---|---|
void |
clearScores() |
protected void |
dump(FileDescriptor fd,
PrintWriter writer,
String[] args) |
boolean |
getMeteredHint(ScanResult result)
Returns the ScoredNetwork metered hint for a given ScanResult.
|
int |
getNetworkScore(ScanResult result) |
int |
getNetworkScore(ScanResult result,
boolean isActiveNetwork) |
boolean |
hasScoreCurve(ScanResult result)
Returns whether there is a non-null score curve for the given ScanResult.
|
boolean |
isScoredNetwork(ScanResult result)
Returns whether there is any score info for the given ScanResult.
|
void |
updateScores(List<ScoredNetwork> networks) |
public static final int INVALID_NETWORK_SCORE
public WifiNetworkScoreCache(Context context)
public final void updateScores(List<ScoredNetwork> networks)
public final void clearScores()
public boolean isScoredNetwork(ScanResult result)
public boolean hasScoreCurve(ScanResult result)
public int getNetworkScore(ScanResult result)
public boolean getMeteredHint(ScanResult result)
public int getNetworkScore(ScanResult result, boolean isActiveNetwork)
protected final void dump(FileDescriptor fd, PrintWriter writer, String[] args)