Merge changes from topic "unwanted" into pi-dev
* changes: Add @param tag for state in queryDetailsForUidTagState. Remove unwanted capability code per API council feedback.
This commit is contained in:
committed by
Android (Google) Code Review
commit
2eae1e3a45
@@ -305,6 +305,8 @@ public class NetworkStatsManager {
|
||||
* {@link java.lang.System#currentTimeMillis}.
|
||||
* @param uid UID of app
|
||||
* @param tag TAG of interest. Use {@link NetworkStats.Bucket#TAG_NONE} for no tags.
|
||||
* @param state state of interest. Use {@link NetworkStats.Bucket#STATE_ALL} to aggregate
|
||||
* traffic from all states.
|
||||
* @return Statistics object or null if an error happened during statistics collection.
|
||||
* @throws SecurityException if permissions are insufficient to read network statistics.
|
||||
*/
|
||||
|
||||
@@ -233,6 +233,8 @@ public class NetworkRequest implements Parcelable {
|
||||
*
|
||||
* @param capability The capability to add to unwanted capability list.
|
||||
* @return The builder to facilitate chaining.
|
||||
*
|
||||
* @removed
|
||||
*/
|
||||
public Builder addUnwantedCapability(@NetworkCapabilities.NetCapability int capability) {
|
||||
mNetworkCapabilities.addUnwantedCapability(capability);
|
||||
@@ -439,6 +441,8 @@ public class NetworkRequest implements Parcelable {
|
||||
|
||||
/**
|
||||
* @see Builder#addUnwantedCapability(int)
|
||||
*
|
||||
* @removed
|
||||
*/
|
||||
public boolean hasUnwantedCapability(@NetCapability int capability) {
|
||||
return networkCapabilities.hasUnwantedCapability(capability);
|
||||
|
||||
Reference in New Issue
Block a user