Actually @hide unwanted capability methods.
Cherry-pick of ag/3943779 Bug: 77601789 Test: builds, boots Test: make doc-comment-check-docs Merged-In: I80a88123b16c54734306da7e5dc0670972041648 Merged-In: I923e5377a1abe761217612452cbfdba752e53de2
This commit is contained in:
committed by
Chalard Jean
parent
20329ac8bb
commit
5b7ec405f4
@@ -171,6 +171,8 @@ public class NetworkRequest implements Parcelable {
|
||||
* If the given capability was previously added to the list of unwanted capabilities
|
||||
* then the capability will also be removed from the list of unwanted capabilities.
|
||||
*
|
||||
* @see #addUnwantedCapability(int)
|
||||
*
|
||||
* @param capability The capability to add.
|
||||
* @return The builder to facilitate chaining
|
||||
* {@code builder.addCapability(...).addCapability();}.
|
||||
@@ -230,6 +232,7 @@ public class NetworkRequest implements Parcelable {
|
||||
*
|
||||
* @param capability The capability to add to unwanted capability list.
|
||||
* @return The builder to facilitate chaining.
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
public Builder addUnwantedCapability(@NetworkCapabilities.NetCapability int capability) {
|
||||
@@ -435,6 +438,15 @@ public class NetworkRequest implements Parcelable {
|
||||
return networkCapabilities.hasCapability(capability);
|
||||
}
|
||||
|
||||
/**
|
||||
* @see Builder#addUnwantedCapability(int)
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
public boolean hasUnwantedCapability(@NetCapability int capability) {
|
||||
return networkCapabilities.hasUnwantedCapability(capability);
|
||||
}
|
||||
|
||||
/**
|
||||
* @see Builder#addTransportType(int)
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user