Searched refs:callerPermissions (Results 1 – 3 of 3) sorted by relevance
439 mContext.callerPermissions.add(android.Manifest.permission.MANAGE_DEVICE_ADMINS); in testSetActiveAdmin_SecurityException()457 mContext.callerPermissions.add(android.Manifest.permission.MANAGE_DEVICE_ADMINS); in testSetActiveAdmin()497 mContext.callerPermissions.add("android.permission.INTERACT_ACROSS_USERS_FULL"); in testSetActiveAdmin()502 mContext.callerPermissions.remove("android.permission.INTERACT_ACROSS_USERS_FULL"); in testSetActiveAdmin()550 mContext.callerPermissions.add("android.permission.INTERACT_ACROSS_USERS_FULL"); in testSetActiveAdmin()555 mContext.callerPermissions.remove("android.permission.INTERACT_ACROSS_USERS_FULL"); in testSetActiveAdmin()569 mContext.callerPermissions.add(android.Manifest.permission.MANAGE_DEVICE_ADMINS); in testSetActiveAdmin_multiUsers()594 mContext.callerPermissions.add(android.Manifest.permission.MANAGE_DEVICE_ADMINS); in testSetActiveAdmin_twiceWithoutReplace()612 mContext.callerPermissions.add(android.Manifest.permission.MANAGE_DEVICE_ADMINS); in testSetActiveAdmin_permissionCheck()635 mContext.callerPermissions.add(android.Manifest.permission.MANAGE_DEVICE_ADMINS); in testRemoveActiveAdmin_SecurityException()[all …]
163 public final List<String> callerPermissions = new ArrayList<>(); field in DpmMockContext166 public final List<String> permissions = callerPermissions;262 permissions = callerPermissions; in enforceCallingOrSelfPermission()508 permissions = callerPermissions; in checkPermission()
60 mSpiedDpmMockContext.callerPermissions.add( in setUp()