Home
last modified time | relevance | path

Searched refs:mPermManager (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DPermissionHelperTest.java75 private IPermissionManager mPermManager; field in PermissionHelperTest
84 mPermissionHelper = new PermissionHelper(mContext, mPackageManager, mPermManager); in setUp()
249 verify(mPermManager).grantRuntimePermission( in testSetNotificationPermission_grantUserSet()
252 verify(mPermManager).updatePermissionFlags("pkg", Manifest.permission.POST_NOTIFICATIONS, in testSetNotificationPermission_grantUserSet()
262 when(mPermManager.getPermissionFlags(anyString(), in testSetNotificationPermission_pkgPerm_grantedByDefaultPermSet_allUserSet()
269 verify(mPermManager).grantRuntimePermission( in testSetNotificationPermission_pkgPerm_grantedByDefaultPermSet_allUserSet()
272 verify(mPermManager).updatePermissionFlags("pkg", Manifest.permission.POST_NOTIFICATIONS, in testSetNotificationPermission_pkgPerm_grantedByDefaultPermSet_allUserSet()
284 verify(mPermManager).revokeRuntimePermission( in testSetNotificationPermission_revokeUserSet()
287 verify(mPermManager).updatePermissionFlags("pkg", Manifest.permission.POST_NOTIFICATIONS, in testSetNotificationPermission_revokeUserSet()
299 verify(mPermManager).grantRuntimePermission( in testSetNotificationPermission_grantNotUserSet()
[all …]
/frameworks/base/services/core/java/com/android/server/notification/
DPermissionHelper.java58 private final IPermissionManager mPermManager; field in PermissionHelper
64 mPermManager = permManager; in PermissionHelper()
199 mPermManager.grantRuntimePermission(packageName, NOTIFICATION_PERMISSION, in setNotificationPermission()
202 mPermManager.revokeRuntimePermission(packageName, NOTIFICATION_PERMISSION, in setNotificationPermission()
207 mPermManager.updatePermissionFlags(packageName, NOTIFICATION_PERMISSION, flagMask, in setNotificationPermission()
211 mPermManager.updatePermissionFlags(packageName, NOTIFICATION_PERMISSION, in setNotificationPermission()
240 int flags = mPermManager.getPermissionFlags(packageName, NOTIFICATION_PERMISSION, in isPermissionFixed()
257 int flags = mPermManager.getPermissionFlags(packageName, NOTIFICATION_PERMISSION, in isPermissionUserSet()
274 int flags = mPermManager.getPermissionFlags(packageName, NOTIFICATION_PERMISSION, in isPermissionGrantedByDefaultOrRole()