Searched refs:denyPermissions (Results 1 – 4 of 4) sorted by relevance
189 mShadowContext.denyPermissions(android.Manifest.permission.BACKUP); in testDestinationString_withoutPermission()240 mShadowContext.denyPermissions(android.Manifest.permission.BACKUP); in testIsAppEligibleForBackup_withoutPermission()296 mShadowContext.denyPermissions(android.Manifest.permission.BACKUP); in testFilterAppsEligibleForBackup_withoutPermission()355 mShadowContext.denyPermissions(android.Manifest.permission.BACKUP); in testSelectBackupTransport_withoutPermission()438 mShadowContext.denyPermissions(android.Manifest.permission.BACKUP); in testSelectBackupTransportAsync_withoutPermission()507 mShadowContext.denyPermissions(android.Manifest.permission.BACKUP); in testGetCurrentTransportComponent_withoutPermission()748 mShadowContext.denyPermissions(android.Manifest.permission.BACKUP); in testUpdateTransportAttributes_whenPermissionDenied_throwsSecurityException()787 mShadowContext.denyPermissions(android.Manifest.permission.BACKUP); in testRequestBackup_whenPermissionDenied()
1606 mShadowContext.denyPermissions(INTERACT_ACROSS_USERS_FULL); in setCallerAndGrantInteractUserPermission()
1049 ArraySet<String> denyPermissions = denyMap.get(packageName); in readPrivAppPermissions() local1068 if (denyPermissions == null) { in readPrivAppPermissions()1069 denyPermissions = new ArraySet<>(); in readPrivAppPermissions()1071 denyPermissions.add(permName); in readPrivAppPermissions()1075 if (denyPermissions != null) { in readPrivAppPermissions()1076 denyMap.put(packageName, denyPermissions); in readPrivAppPermissions()
156 mShadowApplication.denyPermissions(android.Manifest.permission.BACKUP); in testGetAvailableRestoreSets_withoutPermission()451 mShadowApplication.denyPermissions(android.Manifest.permission.BACKUP); in testRestorePackage_whenCallerIsPackage()509 mShadowApplication.denyPermissions(pid, uid, android.Manifest.permission.BACKUP); in testRestorePackage_whenCallerIsNotPackageAndPermissionDenied()