Home
last modified time | relevance | path

Searched refs:grantPermissions (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/services/robotests/backup/src/com/android/server/backup/
DUserBackupManagerServiceTest.java157 mShadowContext.grantPermissions(android.Manifest.permission.BACKUP); in testDestinationString()
173 mShadowContext.grantPermissions(android.Manifest.permission.BACKUP); in testDestinationString_whenTransportNotRegistered()
205 mShadowContext.grantPermissions(android.Manifest.permission.BACKUP); in testIsAppEligibleForBackup_whenAppNotEligible()
221 mShadowContext.grantPermissions(android.Manifest.permission.BACKUP); in testIsAppEligibleForBackup_whenAppEligible()
258 mShadowContext.grantPermissions(android.Manifest.permission.BACKUP); in testFilterAppsEligibleForBackup()
279 mShadowContext.grantPermissions(android.Manifest.permission.BACKUP); in testFilterAppsEligibleForBackup_whenNoneIsEligible()
336 mShadowContext.grantPermissions(android.Manifest.permission.BACKUP); in testSelectBackupTransport()
371 mShadowContext.grantPermissions(android.Manifest.permission.BACKUP); in testSelectBackupTransportAsync()
395 mShadowContext.grantPermissions(android.Manifest.permission.BACKUP); in testSelectBackupTransportAsync_whenRegistrationFails()
417 mShadowContext.grantPermissions(android.Manifest.permission.BACKUP); in testSelectBackupTransportAsync_whenTransportGetsUnregistered()
[all …]
DBackupManagerServiceTest.java1572 mShadowContext.grantPermissions(DUMP); in grantDumpPermissions()
1573 mShadowContext.grantPermissions(PACKAGE_USAGE_STATS); in grantDumpPermissions()
1583 mShadowContext.grantPermissions(BACKUP); in createService()
1604 mShadowContext.grantPermissions(INTERACT_ACROSS_USERS_FULL); in setCallerAndGrantInteractUserPermission()
/frameworks/base/services/robotests/backup/src/com/android/server/backup/restore/
DActiveRestoreSessionTest.java168 mShadowApplication.grantPermissions(android.Manifest.permission.BACKUP); in testGetAvailableRestoreSets_forNullObserver()
179 mShadowApplication.grantPermissions(android.Manifest.permission.BACKUP); in testGetAvailableRestoreSets_whenTransportNotRegistered()
190 mShadowApplication.grantPermissions(android.Manifest.permission.BACKUP); in testGetAvailableRestoreSets()
209 mShadowApplication.grantPermissions(android.Manifest.permission.BACKUP); in testGetAvailableRestoreSets_forEmptyRestoreSets()
224 mShadowApplication.grantPermissions(android.Manifest.permission.BACKUP); in testGetAvailableRestoreSets_forNullRestoreSets()
242 mShadowApplication.grantPermissions(android.Manifest.permission.BACKUP); in testRestoreAll()
267 mShadowApplication.grantPermissions(android.Manifest.permission.BACKUP); in testRestoreAll_whenNoRestoreSets()
278 mShadowApplication.grantPermissions(android.Manifest.permission.BACKUP); in testRestoreAll_whenSinglePackageSession()
290 mShadowApplication.grantPermissions(android.Manifest.permission.BACKUP); in testRestoreAll_whenSessionEnded()
304 mShadowApplication.grantPermissions(android.Manifest.permission.BACKUP); in testRestoreAll_whenTransportNotRegistered()
[all …]
/frameworks/base/services/robotests/backup/src/com/android/server/backup/testing/
DBackupManagerServiceTestUtils.java144 shadowApplication.grantPermissions(pid, uid, "android.permission.BACKUP"); in setUpBinderCallerAndApplicationAsSystem()
145 shadowApplication.grantPermissions(pid, uid, "android.permission.CONFIRM_FULL_BACKUP"); in setUpBinderCallerAndApplicationAsSystem()
/frameworks/base/services/core/java/com/android/server/pm/
DPackageManagerService.java1545 final boolean grantPermissions = (args.installFlags in doHandleMessage()
1559 handlePackagePostInstall(parentRes, grantPermissions, in doHandleMessage()
1569 handlePackagePostInstall(childRes, grantPermissions, in doHandleMessage()
1871 private void handlePackagePostInstall(PackageInstalledInfo res, boolean grantPermissions, in handlePackagePostInstall() argument
1900 if (grantPermissions) { in handlePackagePostInstall()