Make NetworkStateTracker an interface
As part of the WifiStateTracker cleanup, need to have NetworkStateTracker as an interface. Change-Id: I2ac48d7e4c7274ac4df40bc3b8591b182956a936
This commit is contained in:
parent
d391e894a3
commit
7f132d9680
1 changed files with 207 additions and 10 deletions
|
|
@ -121,7 +121,10 @@ public class NetworkInfo implements Parcelable {
|
|||
*/
|
||||
public NetworkInfo(int type) {}
|
||||
|
||||
NetworkInfo(int type, int subtype, String typeName, String subtypeName) {
|
||||
/**
|
||||
* @hide
|
||||
*/
|
||||
public NetworkInfo(int type, int subtype, String typeName, String subtypeName) {
|
||||
if (!ConnectivityManager.isNetworkTypeValid(type)) {
|
||||
throw new IllegalArgumentException("Invalid network type: " + type);
|
||||
}
|
||||
|
|
@ -281,8 +284,9 @@ public class NetworkInfo implements Parcelable {
|
|||
* if one was supplied. May be {@code null}.
|
||||
* @param extraInfo an optional {@code String} providing addditional network state
|
||||
* information passed up from the lower networking layers.
|
||||
* @hide
|
||||
*/
|
||||
void setDetailedState(DetailedState detailedState, String reason, String extraInfo) {
|
||||
public void setDetailedState(DetailedState detailedState, String reason, String extraInfo) {
|
||||
this.mDetailedState = detailedState;
|
||||
this.mState = stateMap.get(detailedState);
|
||||
this.mReason = reason;
|
||||
|
|
|
|||
Loading…
Reference in a new issue