Home
last modified time | relevance | path

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

/frameworks/base/services/robotests/backup/src/com/android/server/backup/
DUserBackupManagerServiceTest.java174 mShadowContext.grantPermissions(android.Manifest.permission.BACKUP); in testDestinationString()
190 mShadowContext.grantPermissions(android.Manifest.permission.BACKUP); in testDestinationString_whenTransportNotRegistered()
222 mShadowContext.grantPermissions(android.Manifest.permission.BACKUP); in testIsAppEligibleForBackup_whenAppNotEligible()
238 mShadowContext.grantPermissions(android.Manifest.permission.BACKUP); in testIsAppEligibleForBackup_whenAppEligible()
275 mShadowContext.grantPermissions(android.Manifest.permission.BACKUP); in testFilterAppsEligibleForBackup()
296 mShadowContext.grantPermissions(android.Manifest.permission.BACKUP); in testFilterAppsEligibleForBackup_whenNoneIsEligible()
353 mShadowContext.grantPermissions(android.Manifest.permission.BACKUP); in testSelectBackupTransport()
373 mShadowContext.grantPermissions(android.Manifest.permission.BACKUP); in testSelectBackupTransport_nonRegisteredTransport()
408 mShadowContext.grantPermissions(android.Manifest.permission.BACKUP); in testSelectBackupTransportAsync()
432 mShadowContext.grantPermissions(android.Manifest.permission.BACKUP); in testSelectBackupTransportAsync_whenRegistrationFails()
[all …]
DBackupManagerServiceRoboTest.java116 mShadowContext.grantPermissions(BACKUP); in setUp()
117 mShadowContext.grantPermissions(INTERACT_ACROSS_USERS_FULL); in setUp()
1602 mShadowContext.grantPermissions(INTERACT_ACROSS_USERS_FULL); in setCallerAndGrantInteractUserPermission()
/frameworks/base/services/robotests/backup/src/com/android/server/backup/restore/
DActiveRestoreSessionTest.java175 mShadowApplication.grantPermissions(android.Manifest.permission.BACKUP); in testGetAvailableRestoreSets_forNullObserver()
186 mShadowApplication.grantPermissions(android.Manifest.permission.BACKUP); in testGetAvailableRestoreSets_whenTransportNotRegistered()
197 mShadowApplication.grantPermissions(android.Manifest.permission.BACKUP); in testGetAvailableRestoreSets()
216 mShadowApplication.grantPermissions(android.Manifest.permission.BACKUP); in testGetAvailableRestoreSets_forEmptyRestoreSets()
232 mShadowApplication.grantPermissions(android.Manifest.permission.BACKUP); in testGetAvailableRestoreSets_forNullRestoreSets()
250 mShadowApplication.grantPermissions(android.Manifest.permission.BACKUP); in testRestoreAll()
275 mShadowApplication.grantPermissions(android.Manifest.permission.BACKUP); in testRestoreAll_whenNoRestoreSets()
286 mShadowApplication.grantPermissions(android.Manifest.permission.BACKUP); in testRestoreAll_whenSinglePackageSession()
298 mShadowApplication.grantPermissions(android.Manifest.permission.BACKUP); in testRestoreAll_whenSessionEnded()
312 mShadowApplication.grantPermissions(android.Manifest.permission.BACKUP); in testRestoreAll_whenTransportNotRegistered()
[all …]
/frameworks/base/services/robotests/src/com/android/server/pm/
DCrossProfileAppsServiceImplRoboTest.java229 public void grantPermissions() { in grantPermissions() method in CrossProfileAppsServiceImplRoboTest
230 grantPermissions( in grantPermissions()
281 grantPermissions(Manifest.permission.CONFIGURE_INTERACT_ACROSS_PROFILES); in setInteractAcrossProfilesAppOp_missingInteractAcrossUsersAndFull_throwsSecurityException()
301 grantPermissions( in setInteractAcrossProfilesAppOp_configureInteractAcrossProfilesPermissionWithoutAppOpsPermissions_setsAppOp()
314 grantPermissions( in setInteractAcrossProfilesAppOp_appOpsPermissionsWithoutConfigureInteractAcrossProfilesPermission_setsAppOp()
328 grantPermissions(Manifest.permission.INTERACT_ACROSS_USERS); in setInteractAcrossProfilesAppOp_setsAppOpWithUsersAndWithoutFull()
337 grantPermissions(Manifest.permission.INTERACT_ACROSS_USERS_FULL); in setInteractAcrossProfilesAppOp_setsAppOpWithFullAndWithoutUsers()
545 shadowOf(mContext).grantPermissions( in canUserAttemptToConfigureInteractAcrossProfiles_platformSignedAppWithAutomaticPermission_returnsFalse()
613 private void grantPermissions(String... permissions) { in grantPermissions() method in CrossProfileAppsServiceImplRoboTest
614 shadowOf(mContext).grantPermissions(Process.myPid(), CALLING_UID, permissions); in grantPermissions()
/frameworks/base/services/robotests/backup/src/com/android/server/backup/testing/
DBackupManagerServiceTestUtils.java143 shadowApplication.grantPermissions(pid, uid, "android.permission.BACKUP"); in setUpBinderCallerAndApplicationAsSystem()
144 shadowApplication.grantPermissions(pid, uid, "android.permission.CONFIRM_FULL_BACKUP"); in setUpBinderCallerAndApplicationAsSystem()
/frameworks/base/core/java/android/content/pm/
DPackageInstaller.java3077 public void setPermissionStates(Collection<String> grantPermissions, in setPermissionStates() argument
3079 for (String grantPermission : grantPermissions) { in setPermissionStates()
/frameworks/base/services/core/java/com/android/server/pm/
DPackageInstallerSession.java5852 ArraySet<String> grantPermissions = new ArraySet<>();
5873 grantPermissions.add(readStringAttribute(in, ATTR_NAME));
5923 params.setPermissionStates(grantPermissions, denyPermissions);