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.java487 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 …]
DDpmMockContext.java164 public final List<String> callerPermissions = new ArrayList<>(); field in DpmMockContext
167 public final List<String> permissions = callerPermissions;
283 permissions = callerPermissions; in enforceCallingOrSelfPermission()
541 permissions = callerPermissions; in checkPermission()
DNetworkEventTest.java63 mSpiedDpmMockContext.callerPermissions.add( in setUp()