Searched refs:callerPermissions (Results 1 – 3 of 3) sorted by relevance
487 mContext.callerPermissions.add(android.Manifest.permission.MANAGE_DEVICE_ADMINS); in testSetActiveAdmin_SecurityException()505 mContext.callerPermissions.add(android.Manifest.permission.MANAGE_DEVICE_ADMINS); in testSetActiveAdmin()547 mContext.callerPermissions.add("android.permission.INTERACT_ACROSS_USERS_FULL"); in testSetActiveAdmin()552 mContext.callerPermissions.remove("android.permission.INTERACT_ACROSS_USERS_FULL"); in testSetActiveAdmin()600 mContext.callerPermissions.add("android.permission.INTERACT_ACROSS_USERS_FULL"); in testSetActiveAdmin()605 mContext.callerPermissions.remove("android.permission.INTERACT_ACROSS_USERS_FULL"); in testSetActiveAdmin()619 mContext.callerPermissions.add(android.Manifest.permission.MANAGE_DEVICE_ADMINS); in testSetActiveAdmin_multiUsers()644 mContext.callerPermissions.add(android.Manifest.permission.MANAGE_DEVICE_ADMINS); in testSetActiveAdmin_twiceWithoutReplace()662 mContext.callerPermissions.add(android.Manifest.permission.MANAGE_DEVICE_ADMINS); in testSetActiveAdmin_permissionCheck()685 mContext.callerPermissions.add(android.Manifest.permission.MANAGE_DEVICE_ADMINS); in testRemoveActiveAdmin_SecurityException()[all …]
164 public final List<String> callerPermissions = new ArrayList<>(); field in DpmMockContext167 public final List<String> permissions = callerPermissions;283 permissions = callerPermissions; in enforceCallingOrSelfPermission()541 permissions = callerPermissions; in checkPermission()
63 mSpiedDpmMockContext.callerPermissions.add( in setUp()