Increate netpolicy history size.

This is going to increase system_server's memory
footprint by ~40KB but without increasing this size,
we're not able to capture more than a couple of seconds
of events which makes it difficult to understand what's
going on in the bugs like b/114466242, b/112485285.

Bug: 111890351
Test: manual
Change-Id: I4484d6535adf869921e6cba32d0564934448c3b1
This commit is contained in:
Sudheer Shanka
2018-09-11 16:07:37 -07:00
parent 76f4a95675
commit ad217d4db0

View File

@@ -46,9 +46,9 @@ public class NetworkPolicyLogger {
static final boolean LOGV = Log.isLoggable(TAG, Log.VERBOSE);
private static final int MAX_LOG_SIZE =
ActivityManager.isLowRamDeviceStatic() ? 20 : 50;
ActivityManager.isLowRamDeviceStatic() ? 100 : 400;
private static final int MAX_NETWORK_BLOCKED_LOG_SIZE =
ActivityManager.isLowRamDeviceStatic() ? 50 : 100;
ActivityManager.isLowRamDeviceStatic() ? 100 : 400;
private static final int EVENT_TYPE_GENERIC = 0;
private static final int EVENT_NETWORK_BLOCKED = 1;