@Implements(value=android.net.NetworkScoreManager.class, isInAndroidSdk=false, minSdk=21) public class ShadowNetworkScoreManager extends Object
Provides testing APIs for NetworkScoreManager
.
Constructor and Description |
---|
ShadowNetworkScoreManager() |
Modifier and Type | Method and Description |
---|---|
protected void |
disableScoring() |
String |
getActiveScorerPackage() |
boolean |
isScoringEnabled()
Whether scoring is enabled.
|
boolean |
setActiveScorer(String packageName) |
@Implementation public String getActiveScorerPackage()
@Implementation public boolean setActiveScorer(String packageName)
@Implementation protected void disableScoring()
isScoringEnabled()
public boolean isScoringEnabled()
Whether scoring is enabled.