Send broadcast when changing restrict background.
When changing global restrict background status, send connectivity change broadcast, since it radically changes DISCONNECTED/BLOCKED status system-wide. Also reduce verbose stats logging. Bug: 5854466 Change-Id: I3b612c520f50cc3000a3a569b7e0ab5f691cc2bd
This commit is contained in:
@@ -51,6 +51,7 @@ import java.util.Map;
|
|||||||
public class NetworkStatsRecorder {
|
public class NetworkStatsRecorder {
|
||||||
private static final String TAG = "NetworkStatsRecorder";
|
private static final String TAG = "NetworkStatsRecorder";
|
||||||
private static final boolean LOGD = true;
|
private static final boolean LOGD = true;
|
||||||
|
private static final boolean LOGV = false;
|
||||||
|
|
||||||
private final FileRotator mRotator;
|
private final FileRotator mRotator;
|
||||||
private final NonMonotonicObserver<String> mObserver;
|
private final NonMonotonicObserver<String> mObserver;
|
||||||
@@ -170,7 +171,7 @@ public class NetworkStatsRecorder {
|
|||||||
|
|
||||||
mLastSnapshot = snapshot;
|
mLastSnapshot = snapshot;
|
||||||
|
|
||||||
if (LOGD && unknownIfaces.size() > 0) {
|
if (LOGV && unknownIfaces.size() > 0) {
|
||||||
Slog.w(TAG, "unknown interfaces " + unknownIfaces + ", ignoring those stats");
|
Slog.w(TAG, "unknown interfaces " + unknownIfaces + ", ignoring those stats");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user