Home
last modified time | relevance | path

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

/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DDevicePolicyManagerTest.java439 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 …]
DDpmMockContext.java163 public final List<String> callerPermissions = new ArrayList<>(); field in DpmMockContext
166 public final List<String> permissions = callerPermissions;
262 permissions = callerPermissions; in enforceCallingOrSelfPermission()
508 permissions = callerPermissions; in checkPermission()
DNetworkEventTest.java60 mSpiedDpmMockContext.callerPermissions.add( in setUp()