diff options
| author | 2018-02-17 02:57:02 +0000 | |
|---|---|---|
| committer | 2018-02-17 02:57:02 +0000 | |
| commit | 394989a34a80851845d8c9e9368c0850b49efbfb (patch) | |
| tree | 92628cc1e9688348e512a58a8b7efe3a392eba62 | |
| parent | fee7bd20752892575903c9bfceb78e705cdb085d (diff) | |
| parent | 111ed73a9c9971ac20e8fd8eaebb56a38f341664 (diff) | |
Merge "StatsCompanionService logcat message updates"
| -rw-r--r-- | services/core/java/com/android/server/stats/StatsCompanionService.java | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/services/core/java/com/android/server/stats/StatsCompanionService.java b/services/core/java/com/android/server/stats/StatsCompanionService.java index 7cf0ea378a7d..d6359b8cbee3 100644 --- a/services/core/java/com/android/server/stats/StatsCompanionService.java +++ b/services/core/java/com/android/server/stats/StatsCompanionService.java @@ -130,7 +130,7 @@ public class StatsCompanionService extends IStatsCompanionService.Stub { synchronized (sStatsdLock) { sStatsd = fetchStatsdService(); if (sStatsd == null) { - Slog.w(TAG, "Could not access statsd"); + Slog.w(TAG, "Could not access statsd for UserUpdateReceiver"); return; } try { @@ -145,7 +145,7 @@ public class StatsCompanionService extends IStatsCompanionService.Stub { } }; mShutdownEventReceiver = new ShutdownEventReceiver(); - Slog.w(TAG, "Registered receiver for ACTION_PACKAGE_REPLACE AND ADDED."); + if (DEBUG) Slog.d(TAG, "Registered receiver for ACTION_PACKAGE_REPLACED and ADDED."); PowerProfile powerProfile = new PowerProfile(context); final int numClusters = powerProfile.getNumCpuClusters(); mKernelCpuSpeedReaders = new KernelCpuSpeedReader[numClusters]; @@ -218,7 +218,7 @@ public class StatsCompanionService extends IStatsCompanionService.Stub { PackageManager pm = context.getPackageManager(); final List<UserInfo> users = um.getUsers(true); if (DEBUG) { - Slog.w(TAG, "Iterating over " + users.size() + " profiles."); + Slog.d(TAG, "Iterating over " + users.size() + " profiles."); } List<Integer> uids = new ArrayList<>(); @@ -239,7 +239,7 @@ public class StatsCompanionService extends IStatsCompanionService.Stub { sStatsd.informAllUidData(toIntArray(uids), toLongArray(versions), apps.toArray(new String[apps.size()])); if (DEBUG) { - Slog.w(TAG, "Sent data for " + uids.size() + " apps"); + Slog.d(TAG, "Sent data for " + uids.size() + " apps"); } } @@ -892,7 +892,7 @@ public class StatsCompanionService extends IStatsCompanionService.Stub { } sStatsd = fetchStatsdService(); if (sStatsd == null) { - Slog.w(TAG, "Could not access statsd"); + Slog.i(TAG, "Could not yet find statsd to tell it that StatsCompanion is alive."); return; } if (DEBUG) Slog.d(TAG, "Saying hi to statsd"); @@ -932,6 +932,7 @@ public class StatsCompanionService extends IStatsCompanionService.Stub { } finally { restoreCallingIdentity(token); } + Slog.i(TAG, "Told statsd that StatsCompanionService is alive."); } catch (RemoteException e) { Slog.e(TAG, "Failed to inform statsd that statscompanion is ready", e); forgetEverything(); |