diff options
| author | Junyu Lai <junyulai@google.com> | 2021-03-24 19:25:53 +0000 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2021-03-24 19:25:53 +0000 |
| commit | 4a8feb1558a944c9a726d7dd40ce432906f7e4eb (patch) | |
| tree | 9ae5fe82c1918ba0cec82dee4a91fb3c63299ce7 /core/java | |
| parent | 91e8c8694ab0535a0e3a6fb3f993d92ee72446b7 (diff) | |
| parent | 80fb26a90df617cabcce84c6f7866c17a706418f (diff) | |
Merge changes I6f5e22e3,I6c486303 into sc-dev
* changes:
[SP31] Expose onSetWarningAndLimit System API
[SP29] Send interface warning bytes to NetworkStatsProvider
Diffstat (limited to 'core/java')
| -rw-r--r-- | core/java/android/net/netstats/provider/NetworkStatsProvider.java | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/core/java/android/net/netstats/provider/NetworkStatsProvider.java b/core/java/android/net/netstats/provider/NetworkStatsProvider.java index 65b336ad6fce..23fc06927ef9 100644 --- a/core/java/android/net/netstats/provider/NetworkStatsProvider.java +++ b/core/java/android/net/netstats/provider/NetworkStatsProvider.java @@ -147,10 +147,7 @@ public abstract class NetworkStatsProvider { /** * Notify system that the warning set by {@link #onSetWarningAndLimit} has been reached. - * - * @hide */ - // TODO: Expose as system API. public void notifyWarningReached() { try { // Reuse the code path to notify warning reached with limit reached @@ -198,7 +195,6 @@ public abstract class NetworkStatsProvider { * @param quotaBytes the quota defined as the number of bytes, starting from zero and counting * from now. A value of {@link #QUOTA_UNLIMITED} indicates there is no limit. */ - // TODO: deprecate this once onSetWarningAndLimit is ready. public abstract void onSetLimit(@NonNull String iface, long quotaBytes); /** @@ -217,10 +213,7 @@ public abstract class NetworkStatsProvider { * there is no warning. * @param limitBytes the limit defined as the number of bytes, starting from zero and counting * from now. A value of {@link #QUOTA_UNLIMITED} indicates there is no limit. - * - * @hide */ - // TODO: Expose as system API. public void onSetWarningAndLimit(@NonNull String iface, long warningBytes, long limitBytes) { // Backward compatibility for those who didn't override this function. onSetLimit(iface, limitBytes); |
