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.java217 assertTrue(entry.isCategory(Notification.CATEGORY_EMAIL)); in testIsCategory()
218 assertFalse(entry.isCategory(Notification.CATEGORY_MESSAGE)); in testIsCategory()
/packages/modules/ExtServices/src/android/ext/services/notification/
DNotificationCategorizer.java75 if (entry.isCategory(Notification.CATEGORY_REMINDER)) { in getCategory()
78 if (entry.isCategory(Notification.CATEGORY_EVENT)) { in getCategory()
81 if (entry.isCategory(Notification.CATEGORY_ALARM) in getCategory()
86 if (entry.isCategory(Notification.CATEGORY_CALL)) { in getCategory()
DNotificationEntry.java221 public boolean isCategory(String category) { in isCategory() method in NotificationEntry
273 return isCategory(CATEGORY_MESSAGE) in isMessaging()