diff options
| author | Frank Li <lifr@google.com> | 2022-03-16 12:28:24 +0000 |
|---|---|---|
| committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2022-03-16 12:28:24 +0000 |
| commit | 62bfe3e882cd429e80c8da9e17b195bed26746eb (patch) | |
| tree | 2c5bfa552706f8bc8b5a694d37513958283dbcd9 /service-t/src/com/android/server/net/NetworkStatsService.java | |
| parent | 2a4a56b0040819adfd200a4c1ef9d04597239815 (diff) | |
| parent | b9bacae1fc7ae96c099f5b57f3788037bcebd385 (diff) | |
Merge "[DU04-2]Appropriate changes to the NetworkPolicyManager API"
Diffstat (limited to 'service-t/src/com/android/server/net/NetworkStatsService.java')
| -rw-r--r-- | service-t/src/com/android/server/net/NetworkStatsService.java | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/service-t/src/com/android/server/net/NetworkStatsService.java b/service-t/src/com/android/server/net/NetworkStatsService.java index 3db635b1d5..7db4b8c849 100644 --- a/service-t/src/com/android/server/net/NetworkStatsService.java +++ b/service-t/src/com/android/server/net/NetworkStatsService.java @@ -2393,10 +2393,17 @@ public class NetworkStatsService extends INetworkStatsService.Stub { } @Override - public void notifyWarningOrLimitReached() { - Log.d(TAG, mTag + ": notifyWarningOrLimitReached"); + public void notifyWarningReached() { + Log.d(TAG, mTag + ": notifyWarningReached"); BinderUtils.withCleanCallingIdentity(() -> - mNetworkPolicyManager.notifyStatsProviderWarningOrLimitReached()); + mNetworkPolicyManager.notifyStatsProviderWarningReached()); + } + + @Override + public void notifyLimitReached() { + Log.d(TAG, mTag + ": notifyLimitReached"); + BinderUtils.withCleanCallingIdentity(() -> + mNetworkPolicyManager.notifyStatsProviderLimitReached()); } @Override |
