Loading core/java/android/net/NetworkRequest.java +3 −1 Original line number Diff line number Diff line Loading @@ -353,7 +353,9 @@ public class NetworkRequest implements Parcelable { * NetworkSpecifier. */ public Builder setNetworkSpecifier(NetworkSpecifier networkSpecifier) { MatchAllNetworkSpecifier.checkNotMatchAllNetworkSpecifier(networkSpecifier); if (networkSpecifier instanceof MatchAllNetworkSpecifier) { throw new IllegalArgumentException("A MatchAllNetworkSpecifier is not permitted"); } mNetworkCapabilities.setNetworkSpecifier(networkSpecifier); return this; } Loading services/core/java/com/android/server/ConnectivityService.java +3 −1 Original line number Diff line number Diff line Loading @@ -5658,7 +5658,9 @@ public class ConnectivityService extends IConnectivityManager.Stub if (ns == null) { return; } MatchAllNetworkSpecifier.checkNotMatchAllNetworkSpecifier(ns); if (ns instanceof MatchAllNetworkSpecifier) { throw new IllegalArgumentException("A MatchAllNetworkSpecifier is not permitted"); } } private void ensureValid(NetworkCapabilities nc) { Loading Loading
core/java/android/net/NetworkRequest.java +3 −1 Original line number Diff line number Diff line Loading @@ -353,7 +353,9 @@ public class NetworkRequest implements Parcelable { * NetworkSpecifier. */ public Builder setNetworkSpecifier(NetworkSpecifier networkSpecifier) { MatchAllNetworkSpecifier.checkNotMatchAllNetworkSpecifier(networkSpecifier); if (networkSpecifier instanceof MatchAllNetworkSpecifier) { throw new IllegalArgumentException("A MatchAllNetworkSpecifier is not permitted"); } mNetworkCapabilities.setNetworkSpecifier(networkSpecifier); return this; } Loading
services/core/java/com/android/server/ConnectivityService.java +3 −1 Original line number Diff line number Diff line Loading @@ -5658,7 +5658,9 @@ public class ConnectivityService extends IConnectivityManager.Stub if (ns == null) { return; } MatchAllNetworkSpecifier.checkNotMatchAllNetworkSpecifier(ns); if (ns instanceof MatchAllNetworkSpecifier) { throw new IllegalArgumentException("A MatchAllNetworkSpecifier is not permitted"); } } private void ensureValid(NetworkCapabilities nc) { Loading