Merge "[SP29] Send interface warning bytes to NetworkStatsProvider"

This commit is contained in:
Junyu Lai
2021-03-30 02:56:25 +00:00
committed by Gerrit Code Review

View File

@@ -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));
} }
} }