Merge "[SP29] Send interface warning bytes to NetworkStatsProvider" am: f60f4abb74 am: b4d15aa0b4
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1470723 Change-Id: I6d799819362fd7d89b6be691d15c49314c867734
This commit is contained in:
@@ -1693,11 +1693,14 @@ public class NetworkStatsService extends INetworkStatsService.Stub {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void setStatsProviderLimitAsync(@NonNull String iface, long quota) {
|
public void setStatsProviderWarningAndLimitAsync(
|
||||||
if (LOGV) Slog.v(TAG, "setStatsProviderLimitAsync(" + iface + "," + quota + ")");
|
@NonNull String iface, long warning, long limit) {
|
||||||
// TODO: Set warning accordingly.
|
if (LOGV) {
|
||||||
|
Slog.v(TAG, "setStatsProviderWarningAndLimitAsync("
|
||||||
|
+ iface + "," + warning + "," + limit + ")");
|
||||||
|
}
|
||||||
invokeForAllStatsProviderCallbacks((cb) -> cb.mProvider.onSetWarningAndLimit(iface,
|
invokeForAllStatsProviderCallbacks((cb) -> cb.mProvider.onSetWarningAndLimit(iface,
|
||||||
NetworkStatsProvider.QUOTA_UNLIMITED, quota));
|
warning, limit));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user