From 05b8de85ce27c2baa0127a2a187ec8891028782b Mon Sep 17 00:00:00 2001 From: Julia Reynolds Date: Mon, 7 Oct 2019 13:02:04 -0400 Subject: [PATCH] Add more logging around remoteview limits Test: look at logcat Change-Id: Icf36d1d3132f6541d81d21eb53b96e302e45f1f3 --- .../server/notification/NotificationManagerService.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/services/core/java/com/android/server/notification/NotificationManagerService.java b/services/core/java/com/android/server/notification/NotificationManagerService.java index 3341991aa0ae9..a4c17db6b4d96 100755 --- a/services/core/java/com/android/server/notification/NotificationManagerService.java +++ b/services/core/java/com/android/server/notification/NotificationManagerService.java @@ -5007,12 +5007,13 @@ public class NotificationManagerService extends SystemService { final int contentViewSize = contentView.estimateMemoryUsage(); if (contentViewSize > mWarnRemoteViewsSizeBytes && contentViewSize < mStripRemoteViewsSizeBytes) { - Slog.w(TAG, "RemoteViews too large on tag: " + tag + " id: " + id + Slog.w(TAG, "RemoteViews too large on pkg: " + pkg + " tag: " + tag + " id: " + id + " this might be stripped in a future release"); } if (contentViewSize >= mStripRemoteViewsSizeBytes) { mUsageStats.registerImageRemoved(pkg); - Slog.w(TAG, "Removed too large RemoteViews on tag: " + tag + " id: " + id); + Slog.w(TAG, + "Removed too large RemoteViews on pkg: " + pkg + " tag: " + tag + " id: " + id); return true; } return false;