Improved logging and dump on TextClassification.

Bug: 117435676
Test: adb shell dumpsys textclassification

Change-Id: I09a7bbebb38117f1be8456a0c31b74a936b1e079
This commit is contained in:
Felipe Leme
2018-10-12 13:42:40 -07:00
parent 8977bfd6e0
commit f819213c85
2 changed files with 25 additions and 4 deletions

View File

@@ -405,8 +405,8 @@ public abstract class TextClassifierService extends Service {
PackageManager.MATCH_SYSTEM_ONLY);
if ((ri == null) || (ri.serviceInfo == null)) {
Slog.w(LOG_TAG, String.format("Package or service not found in package %s",
packageName));
Slog.w(LOG_TAG, String.format("Package or service not found in package %s for user %d",
packageName, context.getUserId()));
return null;
}
final ServiceInfo si = ri.serviceInfo;