Loading services/usage/java/com/android/server/usage/UsageStatsService.java +2 −1 Original line number Diff line number Diff line Loading @@ -106,6 +106,7 @@ public class UsageStatsService extends SystemService implements private static final long FLUSH_INTERVAL = COMPRESS_TIME ? TEN_SECONDS : TWENTY_MINUTES; private static final long TIME_CHANGE_THRESHOLD_MILLIS = 2 * 1000; // Two seconds. private static final boolean ENABLE_KERNEL_UPDATES = false; private static final File KERNEL_COUNTER_FILE = new File("/proc/uid_procstat/set"); long mAppIdleScreenThresholdMillis; Loading Loading @@ -241,7 +242,7 @@ public class UsageStatsService extends SystemService implements postOneTimeCheckIdleStates(); } if (KERNEL_COUNTER_FILE.exists()) { if (ENABLE_KERNEL_UPDATES && KERNEL_COUNTER_FILE.exists()) { try { ActivityManager.getService().registerUidObserver(mUidObserver, ActivityManager.UID_OBSERVER_PROCSTATE Loading Loading
services/usage/java/com/android/server/usage/UsageStatsService.java +2 −1 Original line number Diff line number Diff line Loading @@ -106,6 +106,7 @@ public class UsageStatsService extends SystemService implements private static final long FLUSH_INTERVAL = COMPRESS_TIME ? TEN_SECONDS : TWENTY_MINUTES; private static final long TIME_CHANGE_THRESHOLD_MILLIS = 2 * 1000; // Two seconds. private static final boolean ENABLE_KERNEL_UPDATES = false; private static final File KERNEL_COUNTER_FILE = new File("/proc/uid_procstat/set"); long mAppIdleScreenThresholdMillis; Loading Loading @@ -241,7 +242,7 @@ public class UsageStatsService extends SystemService implements postOneTimeCheckIdleStates(); } if (KERNEL_COUNTER_FILE.exists()) { if (ENABLE_KERNEL_UPDATES && KERNEL_COUNTER_FILE.exists()) { try { ActivityManager.getService().registerUidObserver(mUidObserver, ActivityManager.UID_OBSERVER_PROCSTATE Loading