Searched refs:nlf (Results 1 – 4 of 4) sorted by relevance
/frameworks/base/core/tests/coretests/src/android/service/notification/ |
D | NotificationListenerFilterTest.java | 42 NotificationListenerFilter nlf = new NotificationListenerFilter(); in testEmptyConstructor() local 43 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() 46 assertThat(nlf.getTypes()).isEqualTo(FLAG_FILTER_TYPE_CONVERSATIONS in testEmptyConstructor() 51 assertThat(nlf.getDisallowedPackages()).isEmpty(); in testEmptyConstructor() 52 assertThat(nlf.isPackageAllowed(new VersionedPackage("any", 0))).isTrue(); in testEmptyConstructor() 61 NotificationListenerFilter nlf = in testConstructor() local 63 assertThat(nlf.isTypeAllowed(FLAG_FILTER_TYPE_CONVERSATIONS)).isFalse(); in testConstructor() 64 assertThat(nlf.isTypeAllowed(FLAG_FILTER_TYPE_ALERTING)).isTrue(); in testConstructor() [all …]
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | NotificationListenersTest.java | 233 NotificationListenerFilter nlf = new NotificationListenerFilter(7, new ArraySet<>()); in testWriteExtraTag() local 237 mListeners.setNotificationListenerFilter(Pair.create(mCn1, 0), nlf); in testWriteExtraTag() local 274 NotificationListenerFilter nlf = new NotificationListenerFilter(7, new ArraySet<>()); in testOnUserRemoved() local 278 mListeners.setNotificationListenerFilter(Pair.create(mCn1, 0), nlf); in testOnUserRemoved() local 303 NotificationListenerFilter nlf = in testEnsureFilters_preExisting() local 305 mListeners.setNotificationListenerFilter(Pair.create(mCn2, 0), nlf); in testEnsureFilters_preExisting() local 312 assertThat(mListeners.getNotificationListenerFilter(Pair.create(mCn2, 0))).isEqualTo(nlf); in testEnsureFilters_preExisting() 425 NotificationListenerFilter nlf = new NotificationListenerFilter(7, new ArraySet<>()); in testOnPackageChanged() local 429 mListeners.setNotificationListenerFilter(Pair.create(mCn1, 0), nlf); in testOnPackageChanged() local 445 NotificationListenerFilter nlf = new NotificationListenerFilter(7, new ArraySet<>()); in testOnPackageChanged_removing() local [all …]
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | NotificationManagerService.java | 3963 NotificationListenerFilter nlf) { 3965 mListeners.setNotificationListenerFilter(Pair.create(cn, userId), nlf); 5246 NotificationListenerFilter nlf = mListeners.getNotificationListenerFilter(key); 5247 if (nlf == null) { 5248 nlf = new NotificationListenerFilter(); 5250 if (nlf.getDisallowedPackages().isEmpty() && disallowedApps != null) { 5258 nlf.addPackage(vp); 5266 if (nlf.areAllTypesAllowed()) { 5267 nlf.setTypes(defaultTypes); 5269 mListeners.setNotificationListenerFilter(key, nlf); [all …]
|
/frameworks/base/core/java/android/app/ |
D | INotificationManager.aidl | 250 void setListenerFilter(in ComponentName cn, int userId, in NotificationListenerFilter nlf); in setListenerFilter() argument
|