Home
last modified time | relevance | path

Searched refs:isAlertRateLimited (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/services/core/java/com/android/server/notification/
DNotificationUsageStats.java107 public synchronized boolean isAlertRateLimited(String packageName) { in isAlertRateLimited() method in NotificationUsageStats
109 return stats.isAlertRateLimited(); in isAlertRateLimited()
617 public boolean isAlertRateLimited() { in isAlertRateLimited() method in NotificationUsageStats.AggregatedStats
DNotificationAttentionHelper.java609 if (mUsageStats.isAlertRateLimited(pkg)) { in shouldMuteNotificationLocked()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DNotificationAttentionHelperTest.java206 when(mUsageStats.isAlertRateLimited(any())).thenReturn(false); in setUp()
1391 when(mUsageStats.isAlertRateLimited(any())).thenReturn(true); in testRepeatedSoundOverLimitMuted()
1406 verify(mUsageStats, never()).isAlertRateLimited(any()); in testPostingSilentNotificationDoesNotAffectRateLimiting()
1415 verify(mUsageStats, never()).isAlertRateLimited(any()); in testPostingGroupSuppressedDoesNotAffectRateLimiting()
1424 verify(mUsageStats, times(1)).isAlertRateLimited(any()); in testGroupSuppressionFailureDoesNotAffectRateLimiting()