Home
last modified time | relevance | path

Searched refs:NotificationCategorizer (Results 1 – 5 of 5) sorted by relevance

/packages/modules/ExtServices/tests/src/android/ext/services/notification/
DNotificationCategorizerTest.java69 NotificationCategorizer nc = new NotificationCategorizer(); in testPeopleCategory()
74 assertEquals(NotificationCategorizer.CATEGORY_PEOPLE, nc.getCategory(mEntry)); in testPeopleCategory()
75 assertFalse(nc.shouldSilence(NotificationCategorizer.CATEGORY_PEOPLE)); in testPeopleCategory()
80 NotificationCategorizer nc = new NotificationCategorizer(); in testMin()
85 assertEquals(NotificationCategorizer.CATEGORY_MIN, nc.getCategory(mEntry)); in testMin()
86 assertTrue(nc.shouldSilence(NotificationCategorizer.CATEGORY_MIN)); in testMin()
91 NotificationCategorizer nc = new NotificationCategorizer(); in testHigh()
95 assertEquals(NotificationCategorizer.CATEGORY_HIGH, nc.getCategory(mEntry)); in testHigh()
96 assertFalse(nc.shouldSilence(NotificationCategorizer.CATEGORY_HIGH)); in testHigh()
101 NotificationCategorizer nc = new NotificationCategorizer(); in testOngoingCategory()
[all …]
DAgingHelperTest.java64 private NotificationCategorizer mCategorizer;
132 when(mCategorizer.getCategory(entry)).thenReturn(NotificationCategorizer.CATEGORY_PEOPLE); in testSnoozingOnSeen()
145 when(mCategorizer.getCategory(entry)).thenReturn(NotificationCategorizer.CATEGORY_PEOPLE); in testNoSnoozingOnSeenUserLocked()
/packages/modules/ExtServices/src/android/ext/services/notification/
DAgingHelper.java26 import android.ext.services.notification.NotificationCategorizer.Category;
47 private NotificationCategorizer mNotificationCategorizer;
54 public AgingHelper(Context context, NotificationCategorizer categorizer, Callback callback) { in AgingHelper()
76 if (category == NotificationCategorizer.CATEGORY_MIN) { in onNotificationSeen()
81 if (category == NotificationCategorizer.CATEGORY_ONGOING in onNotificationSeen()
82 || category > NotificationCategorizer.CATEGORY_REMINDER) { in onNotificationSeen()
168 NotificationCategorizer.CATEGORY_EVERYTHING_ELSE));
DNotificationCategorizer.java37 public class NotificationCategorizer { class
DAssistant.java92 private NotificationCategorizer mNotificationCategorizer;
122 mNotificationCategorizer = new NotificationCategorizer(); in onCreate()