Home
last modified time | relevance | path

Searched refs:isPackageAllowed (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/service/notification/
DNotificationListenerFilterTest.java52 assertThat(nlf.isPackageAllowed(new VersionedPackage("any", 0))).isTrue(); in testEmptyConstructor()
70 assertThat(nlf.isPackageAllowed(a1)).isFalse(); in testConstructor()
71 assertThat(nlf.isPackageAllowed(a2)).isFalse(); in testConstructor()
82 assertThat(nlf.isPackageAllowed(new VersionedPackage("pkg1", 0))).isFalse(); in testSetDisallowedPackages()
129 assertThat(nlf1.isPackageAllowed(a1)).isFalse(); in testParceling()
130 assertThat(nlf1.isPackageAllowed(a2)).isFalse(); in testParceling()
/frameworks/base/core/java/android/service/notification/
DNotificationListenerFilter.java89 public boolean isPackageAllowed(VersionedPackage pkg) { in isPackageAllowed() method in NotificationListenerFilter
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DNotificationManagerServiceTest.java491 when(mNlf.isPackageAllowed(any())).thenReturn(true); in setUp()
492 when(mNlf.isPackageAllowed(null)).thenReturn(true); in setUp()
7872 when(mNlf.isPackageAllowed(any())).thenReturn(false); in testIsVisibleToListener_disallowedPackage()
8106 assertFalse(captor.getValue().isPackageAllowed(new VersionedPackage("apples", 9000))); in testMigrateNotificationFilter_migrationAllAllowed()
8107 assertFalse(captor.getValue().isPackageAllowed(new VersionedPackage("cherries", 9002))); in testMigrateNotificationFilter_migrationAllAllowed()
8108 assertFalse(captor.getValue().isPackageAllowed(new VersionedPackage("apples", 9003))); in testMigrateNotificationFilter_migrationAllAllowed()
8111 assertTrue(captor.getValue().isPackageAllowed(new VersionedPackage("apples", 10000))); in testMigrateNotificationFilter_migrationAllAllowed()
8132 assertFalse(captor.getValue().isPackageAllowed(new VersionedPackage("apples", 1001))); in testMigrateNotificationFilter_noPreexistingFilter()
8155 assertFalse(captor.getValue().isPackageAllowed(new VersionedPackage("apples", 1001))); in testMigrateNotificationFilter_existingTypeFilter()
8179 assertTrue(captor.getValue().isPackageAllowed(new VersionedPackage("apples", 1001))); in testMigrateNotificationFilter_existingPkgFilter()
[all …]
DManagedServicesTest.java1702 service.isPackageAllowed(component.getPackageName(), userId)); in verifyExpectedApprovedPackages()
1706 service.isPackageAllowed(verifyValue, userId)); in verifyExpectedApprovedPackages()
/frameworks/base/services/core/java/com/android/server/notification/
DManagedServices.java881 protected boolean isPackageAllowed(String pkg, int userId) { in isPackageAllowed() method in ManagedServices
929 if (isPackageAllowed(pkgName, UserHandle.getUserId(uid))) { in onPackagesChanged()
DNotificationManagerService.java4115 && !mAssistants.isPackageAllowed(pkg, UserHandle.getCallingUserId())) {
5247 return mListeners.isPackageAllowed(packageName, userId);
9367 || !nls.isPackageAllowed(
/frameworks/base/services/
Dart-profile26193 HPLcom/android/server/notification/ManagedServices;->isPackageAllowed(Ljava/lang/String;I)Z+]Landro…