OSDN Git Service

NoMan: Turn off aggregated stats
authorChristoph Studer <chstuder@google.com>
Fri, 22 Aug 2014 18:51:26 +0000 (20:51 +0200)
committerChristoph Studer <chstuder@google.com>
Fri, 22 Aug 2014 19:03:48 +0000 (21:03 +0200)
Aggregated stats can grow unboundedly and shouldn't be enabled
for prod builds.

Bug: 16777910
Change-Id: I1c9303fc3aab93fd75f4dfbbf2e3de467a72f99e

services/core/java/com/android/server/notification/NotificationUsageStats.java

index 1df662c..3d13d21 100644 (file)
@@ -48,7 +48,7 @@ import java.util.Map;
 public class NotificationUsageStats {
     // WARNING: Aggregated stats can grow unboundedly with pkg+id+tag.
     // Don't enable on production builds.
-    private static final boolean ENABLE_AGGREGATED_IN_MEMORY_STATS = true;
+    private static final boolean ENABLE_AGGREGATED_IN_MEMORY_STATS = false;
     private static final boolean ENABLE_SQLITE_LOG = true;
 
     private static final AggregatedStats[] EMPTY_AGGREGATED_STATS = new AggregatedStats[0];