Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ad217d4d authored by Sudheer Shanka's avatar Sudheer Shanka
Browse files

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
parent 76f4a956
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;