Add maxTargetSdk restriction to unused APIs.
These are APIs that have @UnsupportedAppUsage but for which we don't have any evidence of them currently being used, so should be safe to remove from the unsupported list. Bug: 170729553 Test: Treehugger Merged-In: I626caf7c1fe46c5ab1f39c2895b42a34319f771a Change-Id: I54e5ecd11e76ca1de3c5893e3a98b0108e735413
This commit is contained in:
parent
c5c6f28294
commit
fe2fed741e
1 changed files with 44 additions and 39 deletions
|
|
@ -565,7 +565,7 @@ public class TrafficStats {
|
|||
}
|
||||
|
||||
/** {@hide} */
|
||||
@UnsupportedAppUsage
|
||||
@UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.R, trackingBug = 170729553)
|
||||
public static long getMobileTcpRxPackets() {
|
||||
long total = 0;
|
||||
for (String iface : getMobileIfaces()) {
|
||||
|
|
@ -581,7 +581,7 @@ public class TrafficStats {
|
|||
}
|
||||
|
||||
/** {@hide} */
|
||||
@UnsupportedAppUsage
|
||||
@UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.R, trackingBug = 170729553)
|
||||
public static long getMobileTcpTxPackets() {
|
||||
long total = 0;
|
||||
for (String iface : getMobileIfaces()) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue