Home
last modified time | relevance | path

Searched refs:setNotificationPermission (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DPermissionHelperTest.java247 mPermissionHelper.setNotificationPermission("pkg", 10, true, true); in testSetNotificationPermission_grantUserSet()
268 mPermissionHelper.setNotificationPermission(pkgPerm); in testSetNotificationPermission_pkgPerm_grantedByDefaultPermSet_allUserSet()
282 mPermissionHelper.setNotificationPermission("pkg", 10, false, true); in testSetNotificationPermission_revokeUserSet()
297 mPermissionHelper.setNotificationPermission("pkg", 10, true, false); in testSetNotificationPermission_grantNotUserSet()
311 mPermissionHelper.setNotificationPermission("pkg", 10, false, false); in testSetNotificationPermission_revokeNotUserSet()
326 mPermissionHelper.setNotificationPermission("pkg", 10, false, true); in testSetNotificationPermission_SystemFixedPermNotSet()
339 mPermissionHelper.setNotificationPermission("pkg", 10, false, true); in testSetNotificationPermission_PolicyFixedPermNotSet()
350 mPermissionHelper.setNotificationPermission("pkg", 10, true, false); in testSetNotificationPermission_alreadyGrantedNotRegranted()
361 mPermissionHelper.setNotificationPermission("pkg", 10, false, false); in testSetNotificationPermission_alreadyRevokedNotRerevoked()
379 mPermissionHelper.setNotificationPermission("pkg", 10, false, false); in testSetNotificationPermission_doesntRequestNotChanged()
DPreferencesHelperTest.java853 verify(mPermissionHelper, never()).setNotificationPermission(any()); in testReadXml_oldXml_backup_migratesWhenPkgInstalled()
868 verify(mPermissionHelper).setNotificationPermission(pkg1Expected); in testReadXml_oldXml_backup_migratesWhenPkgInstalled()
869 verify(mPermissionHelper).setNotificationPermission(pkg2Expected); in testReadXml_oldXml_backup_migratesWhenPkgInstalled()
870 verify(mPermissionHelper).setNotificationPermission(pkg3Expected); in testReadXml_oldXml_backup_migratesWhenPkgInstalled()
922 verify(mPermissionHelper, never()).setNotificationPermission(any()); in testReadXml_newXml_noMigration_showPermissionNotification()
981 verify(mPermissionHelper, never()).setNotificationPermission(any()); in testReadXml_newXml_permissionNotificationOff()
1040 verify(mPermissionHelper, never()).setNotificationPermission(any()); in testReadXml_newXml_noMigration_noPermissionNotification()
1066 verify(mPermissionHelper, never()).setNotificationPermission(any()); in testReadXml_oldXml_migration_NoUid()
1076 verify(mPermissionHelper, times(1)).setNotificationPermission(any()); in testReadXml_oldXml_migration_NoUid()
1104 verify(mPermissionHelper, never()).setNotificationPermission(any()); in testReadXml_newXml_noMigration_NoUid()
DNotificationManagerServiceTest.java1851 verify(mPermissionHelper, never()).setNotificationPermission( in testSetNotificationsEnabledForPackage_noChange()
1860 verify(mPermissionHelper).setNotificationPermission( in testSetNotificationsEnabledForPackage()
3625 verify(mPermissionHelper).setNotificationPermission( in testDefaultChannelUpdatesApp_postMigrationToPermissions()
3781 }).when(mPermissionHelper).setNotificationPermission("package", 0, false, true); in setNotificationsEnabledForPackage_disabling_clearsNotifications()
/frameworks/base/services/core/java/com/android/server/notification/
DPermissionHelper.java183 public void setNotificationPermission(String packageName, @UserIdInt int userId, boolean grant, in setNotificationPermission() method in PermissionHelper
226 public void setNotificationPermission(PackagePermission pkgPerm) { in setNotificationPermission() method in PermissionHelper
231 setNotificationPermission(pkgPerm.packageName, pkgPerm.userId, pkgPerm.granted, in setNotificationPermission()
DPreferencesHelper.java2687 mPermissionHelper.setNotificationPermission(p); in onPackagesChanged()
2925 mPermissionHelper.setNotificationPermission(pkgPerm); in migrateNotificationPermissions()
DNotificationManagerService.java3086 mPermissionHelper.setNotificationPermission(pkg, UserHandle.getUserId(uid),
3828 mPermissionHelper.setNotificationPermission(