Loading services/core/java/com/android/server/notification/NotificationManagerService.java +3 −3 Original line number Diff line number Diff line Loading @@ -6964,15 +6964,15 @@ public class NotificationManagerService extends SystemService { if (record.getSbn().isGroup() && record.getNotification().suppressAlertingDueToGrouping()) { return false; } // not if in call or the screen's on if (isInCall() || mScreenOn) { // not if in call if (isInCall()) { return false; } // check current user if (!isNotificationForCurrentUser(record)) { return false; } // Light, but only when the screen is off return true; } Loading services/tests/uiservicestests/src/com/android/server/notification/BuzzBeepBlinkTest.java +1 −1 Original line number Diff line number Diff line Loading @@ -1185,7 +1185,7 @@ public class BuzzBeepBlinkTest extends UiServiceTestCase { NotificationRecord r = getLightsNotification(); mService.buzzBeepBlinkLocked(r); verifyNeverLights(); assertFalse(r.isInterruptive()); assertTrue(r.isInterruptive()); assertEquals(-1, r.getLastAudiblyAlertedMs()); } Loading Loading
services/core/java/com/android/server/notification/NotificationManagerService.java +3 −3 Original line number Diff line number Diff line Loading @@ -6964,15 +6964,15 @@ public class NotificationManagerService extends SystemService { if (record.getSbn().isGroup() && record.getNotification().suppressAlertingDueToGrouping()) { return false; } // not if in call or the screen's on if (isInCall() || mScreenOn) { // not if in call if (isInCall()) { return false; } // check current user if (!isNotificationForCurrentUser(record)) { return false; } // Light, but only when the screen is off return true; } Loading
services/tests/uiservicestests/src/com/android/server/notification/BuzzBeepBlinkTest.java +1 −1 Original line number Diff line number Diff line Loading @@ -1185,7 +1185,7 @@ public class BuzzBeepBlinkTest extends UiServiceTestCase { NotificationRecord r = getLightsNotification(); mService.buzzBeepBlinkLocked(r); verifyNeverLights(); assertFalse(r.isInterruptive()); assertTrue(r.isInterruptive()); assertEquals(-1, r.getLastAudiblyAlertedMs()); } Loading