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 {
}
};
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];
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();
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");
}
}
}
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");
} 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();