Merge "Have the status bar listen to all macro-users VPN changes."
This commit is contained in:
commit
90988528c3
1 changed files with 14 additions and 0 deletions
|
|
@ -23,6 +23,7 @@ import android.os.Process;
|
|||
import android.text.TextUtils;
|
||||
|
||||
import java.util.Objects;
|
||||
import java.util.Set;
|
||||
|
||||
/**
|
||||
* Defines a request for a network, made through {@link NetworkRequest.Builder} and used
|
||||
|
|
@ -203,6 +204,19 @@ public class NetworkRequest implements Parcelable {
|
|||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the watched UIDs for this request. This will be reset and wiped out unless
|
||||
* the calling app holds the CHANGE_NETWORK_STATE permission.
|
||||
*
|
||||
* @param uids The watched UIDs as a set of UidRanges, or null for everything.
|
||||
* @return The builder to facilitate chaining.
|
||||
* @hide
|
||||
*/
|
||||
public Builder setUids(Set<UidRange> uids) {
|
||||
mNetworkCapabilities.setUids(uids);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Add a capability that must not exist in the requested network.
|
||||
* <p>
|
||||
|
|
|
|||
Loading…
Reference in a new issue