Home
last modified time | relevance | path

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

/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DDevicePolicyManagerTest.java165 mContext.callerPermissions.add(permission.MANAGE_DEVICE_ADMINS); in setAsProfileOwner()
166 mContext.callerPermissions.add(permission.MANAGE_PROFILE_AND_DEVICE_OWNERS); in setAsProfileOwner()
203 mContext.callerPermissions.add(android.Manifest.permission.MANAGE_DEVICE_ADMINS); in testSetActiveAdmin_SecurityException()
222 mContext.callerPermissions.add(android.Manifest.permission.MANAGE_DEVICE_ADMINS); in testSetActiveAdmin()
257 mContext.callerPermissions.add("android.permission.INTERACT_ACROSS_USERS_FULL"); in testSetActiveAdmin()
262 mContext.callerPermissions.remove("android.permission.INTERACT_ACROSS_USERS_FULL"); in testSetActiveAdmin()
304 mContext.callerPermissions.add("android.permission.INTERACT_ACROSS_USERS_FULL"); in testSetActiveAdmin()
309 mContext.callerPermissions.remove("android.permission.INTERACT_ACROSS_USERS_FULL"); in testSetActiveAdmin()
322 mContext.callerPermissions.add(android.Manifest.permission.MANAGE_DEVICE_ADMINS); in testSetActiveAdmin_multiUsers()
346 mContext.callerPermissions.add(android.Manifest.permission.MANAGE_DEVICE_ADMINS); in testSetActiveAdmin_twiceWithoutReplace()
[all …]
DDpmMockContext.java271 public final List<String> callerPermissions = new ArrayList<>(); field in DpmMockContext
440 if (!callerPermissions.contains(permission)) { in enforceCallingOrSelfPermission()