am d59c3e95: am 485826b2: am 892a7e18: Merge "Add a hidden method to clear the capabilities of a NetworkRequest" into mnc-dev

* commit 'd59c3e95310ffe6a5fdf03c245a092e6a120b9da':
  Add a hidden method to clear the capabilities of a NetworkRequest
This commit is contained in:
Lorenzo Colitti
2015-05-20 13:17:19 +00:00
committed by Android Git Automerger

View File

@@ -114,6 +114,18 @@ public class NetworkRequest implements Parcelable {
return this;
}
/**
* Completely clears all the {@code NetworkCapabilities} from this builder instance,
* removing even the capabilities that are set by default when the object is constructed.
*
* @return The builder to facilitate chaining.
* @hide
*/
public Builder clearCapabilities() {
mNetworkCapabilities.clearAll();
return this;
}
/**
* Adds the given transport requirement to this builder. These represent
* the set of allowed transports for the request. Only networks using one