From 1899c84ff179f8f4eb1593e0b8fb8b5d7af41fd4 Mon Sep 17 00:00:00 2001 From: Dan Sandler Date: Sun, 1 Dec 2019 22:34:02 -0500 Subject: [PATCH] Log full ManagedServiceInfo on listener errors. Fixes: 145472152 Test: atest NotificationTests Change-Id: Icff79c3ced6be81212fd39b12e595001cfe843ac --- .../NotificationManagerService.java | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/services/core/java/com/android/server/notification/NotificationManagerService.java b/services/core/java/com/android/server/notification/NotificationManagerService.java index d5f2d7e550d74..c5f382908b11d 100755 --- a/services/core/java/com/android/server/notification/NotificationManagerService.java +++ b/services/core/java/com/android/server/notification/NotificationManagerService.java @@ -8162,7 +8162,7 @@ public class NotificationManagerService extends SystemService { try { assistant.onAllowedAdjustmentsChanged(); } catch (RemoteException ex) { - Slog.e(TAG, "unable to notify assistant (capabilities): " + assistant, ex); + Slog.e(TAG, "unable to notify assistant (capabilities): " + info, ex); } } @@ -8172,7 +8172,7 @@ public class NotificationManagerService extends SystemService { try { assistant.onNotificationsSeen(keys); } catch (RemoteException ex) { - Slog.e(TAG, "unable to notify assistant (seen): " + assistant, ex); + Slog.e(TAG, "unable to notify assistant (seen): " + info, ex); } } @@ -8478,7 +8478,7 @@ public class NotificationManagerService extends SystemService { listener.onStatusBarIconsBehaviorChanged(hideSilentStatusIcons); } catch (RemoteException ex) { Slog.e(TAG, "unable to notify listener " - + "(hideSilentStatusIcons): " + listener, ex); + + "(hideSilentStatusIcons): " + info, ex); } }); } @@ -8771,7 +8771,7 @@ public class NotificationManagerService extends SystemService { try { listener.onNotificationPosted(sbnHolder, rankingUpdate); } catch (RemoteException ex) { - Slog.e(TAG, "unable to notify listener (posted): " + listener, ex); + Slog.e(TAG, "unable to notify listener (posted): " + info, ex); } } @@ -8785,7 +8785,7 @@ public class NotificationManagerService extends SystemService { try { listener.onNotificationRemoved(sbnHolder, rankingUpdate, stats, reason); } catch (RemoteException ex) { - Slog.e(TAG, "unable to notify listener (removed): " + listener, ex); + Slog.e(TAG, "unable to notify listener (removed): " + info, ex); } } @@ -8795,7 +8795,7 @@ public class NotificationManagerService extends SystemService { try { listener.onNotificationRankingUpdate(rankingUpdate); } catch (RemoteException ex) { - Slog.e(TAG, "unable to notify listener (ranking update): " + listener, ex); + Slog.e(TAG, "unable to notify listener (ranking update): " + info, ex); } } @@ -8804,7 +8804,7 @@ public class NotificationManagerService extends SystemService { try { listener.onListenerHintsChanged(hints); } catch (RemoteException ex) { - Slog.e(TAG, "unable to notify listener (listener hints): " + listener, ex); + Slog.e(TAG, "unable to notify listener (listener hints): " + info, ex); } } @@ -8814,7 +8814,7 @@ public class NotificationManagerService extends SystemService { try { listener.onInterruptionFilterChanged(interruptionFilter); } catch (RemoteException ex) { - Slog.e(TAG, "unable to notify listener (interruption filter): " + listener, ex); + Slog.e(TAG, "unable to notify listener (interruption filter): " + info, ex); } } @@ -8825,7 +8825,7 @@ public class NotificationManagerService extends SystemService { try { listener.onNotificationChannelModification(pkg, user, channel, modificationType); } catch (RemoteException ex) { - Slog.e(TAG, "unable to notify listener (channel changed): " + listener, ex); + Slog.e(TAG, "unable to notify listener (channel changed): " + info, ex); } } @@ -8836,7 +8836,7 @@ public class NotificationManagerService extends SystemService { try { listener.onNotificationChannelGroupModification(pkg, user, group, modificationType); } catch (RemoteException ex) { - Slog.e(TAG, "unable to notify listener (channel group changed): " + listener, ex); + Slog.e(TAG, "unable to notify listener (channel group changed): " + info, ex); } }