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

Commit fa641180 authored by Mike Ma's avatar Mike Ma
Browse files

Mute BatteryStatsImpl CPU uid readers log

As requested in b/170786671
These two print statements are happening 10s of times every 5s.

10-13 19:21:45.964 W BatteryStatsImpl: Got cluster times for an isolated
uid with no mapping: 1099185
10-13 19:21:51.445 D BatteryStatsImpl: Got freq readings for an isolated
uid with no mapping: 90001

Bug: 165017936
Test: n/a
Change-Id: Ib1e7bc097e4864ce16f3622b780675609776cb30
parent 2374b914
Loading
Loading
Loading
Loading
+8 −8
Original line number Diff line number Diff line
@@ -12574,11 +12574,11 @@ public class BatteryStatsImpl extends BatteryStats {
                // This could happen if the isolated uid mapping was removed before that process
                // was actually killed.
                mCpuUidUserSysTimeReader.removeUid(uid);
                Slog.d(TAG, "Got readings for an isolated uid with no mapping: " + uid);
                if (DEBUG) Slog.d(TAG, "Got readings for an isolated uid: " + uid);
                return;
            }
            if (!mUserInfoProvider.exists(UserHandle.getUserId(uid))) {
                Slog.d(TAG, "Got readings for an invalid user's uid " + uid);
                if (DEBUG) Slog.d(TAG, "Got readings for an invalid user's uid " + uid);
                mCpuUidUserSysTimeReader.removeUid(uid);
                return;
            }
@@ -12683,11 +12683,11 @@ public class BatteryStatsImpl extends BatteryStats {
            uid = mapUid(uid);
            if (Process.isIsolated(uid)) {
                mCpuUidFreqTimeReader.removeUid(uid);
                Slog.d(TAG, "Got freq readings for an isolated uid with no mapping: " + uid);
                if (DEBUG) Slog.d(TAG, "Got freq readings for an isolated uid: " + uid);
                return;
            }
            if (!mUserInfoProvider.exists(UserHandle.getUserId(uid))) {
                Slog.d(TAG, "Got freq readings for an invalid user's uid " + uid);
                if (DEBUG) Slog.d(TAG, "Got freq readings for an invalid user's uid " + uid);
                mCpuUidFreqTimeReader.removeUid(uid);
                return;
            }
@@ -12797,11 +12797,11 @@ public class BatteryStatsImpl extends BatteryStats {
            uid = mapUid(uid);
            if (Process.isIsolated(uid)) {
                mCpuUidActiveTimeReader.removeUid(uid);
                Slog.w(TAG, "Got active times for an isolated uid with no mapping: " + uid);
                if (DEBUG) Slog.w(TAG, "Got active times for an isolated uid: " + uid);
                return;
            }
            if (!mUserInfoProvider.exists(UserHandle.getUserId(uid))) {
                Slog.w(TAG, "Got active times for an invalid user's uid " + uid);
                if (DEBUG) Slog.w(TAG, "Got active times for an invalid user's uid " + uid);
                mCpuUidActiveTimeReader.removeUid(uid);
                return;
            }
@@ -12827,11 +12827,11 @@ public class BatteryStatsImpl extends BatteryStats {
            uid = mapUid(uid);
            if (Process.isIsolated(uid)) {
                mCpuUidClusterTimeReader.removeUid(uid);
                Slog.w(TAG, "Got cluster times for an isolated uid with no mapping: " + uid);
                if (DEBUG) Slog.w(TAG, "Got cluster times for an isolated uid: " + uid);
                return;
            }
            if (!mUserInfoProvider.exists(UserHandle.getUserId(uid))) {
                Slog.w(TAG, "Got cluster times for an invalid user's uid " + uid);
                if (DEBUG) Slog.w(TAG, "Got cluster times for an invalid user's uid " + uid);
                mCpuUidClusterTimeReader.removeUid(uid);
                return;
            }