Remove a useless parameter.

This argument is useless because all its callers pass the same
value : false.

Test: runtest
Change-Id: Id921caa4ffadef535a5bbcfea052283a07320b28
This commit is contained in:
Chalard Jean
2018-06-07 16:11:34 +09:00
parent 040a41f850
commit 0ceb26580f

View File

@@ -971,7 +971,7 @@ public class ConnectivityService extends IConnectivityManager.Stub
throw new IllegalStateException("No free netIds"); throw new IllegalStateException("No free netIds");
} }
private NetworkState getFilteredNetworkState(int networkType, int uid, boolean ignoreBlocked) { private NetworkState getFilteredNetworkState(int networkType, int uid) {
if (mLegacyTypeTracker.isTypeSupported(networkType)) { if (mLegacyTypeTracker.isTypeSupported(networkType)) {
final NetworkAgentInfo nai = mLegacyTypeTracker.getNetworkForType(networkType); final NetworkAgentInfo nai = mLegacyTypeTracker.getNetworkForType(networkType);
final NetworkState state; final NetworkState state;
@@ -989,7 +989,7 @@ public class ConnectivityService extends IConnectivityManager.Stub
state = new NetworkState(info, new LinkProperties(), capabilities, state = new NetworkState(info, new LinkProperties(), capabilities,
null, null, null); null, null, null);
} }
filterNetworkStateForUid(state, uid, ignoreBlocked); filterNetworkStateForUid(state, uid, false);
return state; return state;
} else { } else {
return NetworkState.EMPTY; return NetworkState.EMPTY;
@@ -1194,7 +1194,7 @@ public class ConnectivityService extends IConnectivityManager.Stub
return state.networkInfo; return state.networkInfo;
} }
} }
final NetworkState state = getFilteredNetworkState(networkType, uid, false); final NetworkState state = getFilteredNetworkState(networkType, uid);
return state.networkInfo; return state.networkInfo;
} }
@@ -1229,7 +1229,7 @@ public class ConnectivityService extends IConnectivityManager.Stub
public Network getNetworkForType(int networkType) { public Network getNetworkForType(int networkType) {
enforceAccessPermission(); enforceAccessPermission();
final int uid = Binder.getCallingUid(); final int uid = Binder.getCallingUid();
NetworkState state = getFilteredNetworkState(networkType, uid, false); NetworkState state = getFilteredNetworkState(networkType, uid);
if (!isNetworkWithLinkPropertiesBlocked(state.linkProperties, uid, false)) { if (!isNetworkWithLinkPropertiesBlocked(state.linkProperties, uid, false)) {
return state.network; return state.network;
} }