summaryrefslogtreecommitdiff
path: root/service-t/src/com/android/server/net/NetworkStatsService.java
diff options
context:
space:
mode:
authorFrank Li <lifr@google.com>2022-03-16 12:28:24 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2022-03-16 12:28:24 +0000
commit62bfe3e882cd429e80c8da9e17b195bed26746eb (patch)
tree2c5bfa552706f8bc8b5a694d37513958283dbcd9 /service-t/src/com/android/server/net/NetworkStatsService.java
parent2a4a56b0040819adfd200a4c1ef9d04597239815 (diff)
parentb9bacae1fc7ae96c099f5b57f3788037bcebd385 (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.java13
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