Home
last modified time | relevance | path

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

/frameworks/base/core/tests/coretests/src/android/service/notification/
DNotificationListenerFilterTest.java43 assertThat(nlf.isTypeAllowed(FLAG_FILTER_TYPE_CONVERSATIONS)).isTrue(); in testEmptyConstructor()
44 assertThat(nlf.isTypeAllowed(FLAG_FILTER_TYPE_ALERTING)).isTrue(); in testEmptyConstructor()
45 assertThat(nlf.isTypeAllowed(FLAG_FILTER_TYPE_SILENT)).isTrue(); in testEmptyConstructor()
63 assertThat(nlf.isTypeAllowed(FLAG_FILTER_TYPE_CONVERSATIONS)).isFalse(); in testConstructor()
64 assertThat(nlf.isTypeAllowed(FLAG_FILTER_TYPE_ALERTING)).isTrue(); in testConstructor()
65 assertThat(nlf.isTypeAllowed(FLAG_FILTER_TYPE_SILENT)).isFalse(); in testConstructor()
91 assertThat(nlf.isTypeAllowed(FLAG_FILTER_TYPE_CONVERSATIONS)).isFalse(); in testSetTypes()
92 assertThat(nlf.isTypeAllowed(FLAG_FILTER_TYPE_ALERTING)).isTrue(); in testSetTypes()
93 assertThat(nlf.isTypeAllowed(FLAG_FILTER_TYPE_SILENT)).isTrue(); in testSetTypes()
122 assertThat(nlf1.isTypeAllowed(FLAG_FILTER_TYPE_CONVERSATIONS)).isFalse(); in testParceling()
[all …]
/frameworks/base/core/java/android/service/notification/
DNotificationListenerFilter.java81 public boolean isTypeAllowed(int type) { in isTypeAllowed() method in NotificationListenerFilter
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DNotificationManagerServiceTest.java490 when(mNlf.isTypeAllowed(anyInt())).thenReturn(true); in setUp()
7855 when(mNlf.isTypeAllowed(anyInt())).thenReturn(false); in testIsVisibleToListener_mismatchedType()
/frameworks/base/services/core/java/com/android/server/notification/
DNotificationManagerService.java9366 && (!nls.isTypeAllowed(notificationType)