Home
last modified time | relevance | path

Searched refs:isCategory (Results 1 – 4 of 4) sorted by relevance

/packages/modules/ExtServices/tests/src/android/ext/services/notification/
DNotificationCategorizerTest.java119 when(mEntry.isCategory(Notification.CATEGORY_ALARM)).thenReturn(true); in testAlarmCategory()
124 when(mEntry.isCategory(Notification.CATEGORY_ALARM)).thenReturn(false); in testAlarmCategory()
134 when(mEntry.isCategory(Notification.CATEGORY_CALL)).thenReturn(true); in testCallCategory()
139 when(mEntry.isCategory(Notification.CATEGORY_CALL)).thenReturn(false); in testCallCategory()
149 when(mEntry.isCategory(Notification.CATEGORY_REMINDER)).thenReturn(true); in testReminderCategory()
154 when(mEntry.isCategory(Notification.CATEGORY_REMINDER)).thenReturn(false); in testReminderCategory()
164 when(mEntry.isCategory(Notification.CATEGORY_EVENT)).thenReturn(true); in testEventCategory()
169 when(mEntry.isCategory(Notification.CATEGORY_EVENT)).thenReturn(false); in testEventCategory()
DNotificationEntryTest.java218 assertTrue(entry.isCategory(Notification.CATEGORY_EMAIL)); in testIsCategory()
219 assertFalse(entry.isCategory(Notification.CATEGORY_MESSAGE)); in testIsCategory()
/packages/modules/ExtServices/src/android/ext/services/notification/
DNotificationCategorizer.java76 if (entry.isCategory(Notification.CATEGORY_REMINDER)) { in getCategory()
79 if (entry.isCategory(Notification.CATEGORY_EVENT)) { in getCategory()
82 if (entry.isCategory(Notification.CATEGORY_ALARM) in getCategory()
87 if (entry.isCategory(Notification.CATEGORY_CALL)) { in getCategory()
DNotificationEntry.java230 public boolean isCategory(String category) { in isCategory() method in NotificationEntry
282 return isCategory(CATEGORY_MESSAGE) in isMessaging()