Searched refs:grantPermissions (Results 1 – 7 of 7) sorted by relevance
174 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 …]
116 mShadowContext.grantPermissions(BACKUP); in setUp()117 mShadowContext.grantPermissions(INTERACT_ACROSS_USERS_FULL); in setUp()1602 mShadowContext.grantPermissions(INTERACT_ACROSS_USERS_FULL); in setCallerAndGrantInteractUserPermission()
175 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 …]
229 public void grantPermissions() { in grantPermissions() method in CrossProfileAppsServiceImplRoboTest230 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 CrossProfileAppsServiceImplRoboTest614 shadowOf(mContext).grantPermissions(Process.myPid(), CALLING_UID, permissions); in grantPermissions()
143 shadowApplication.grantPermissions(pid, uid, "android.permission.BACKUP"); in setUpBinderCallerAndApplicationAsSystem()144 shadowApplication.grantPermissions(pid, uid, "android.permission.CONFIRM_FULL_BACKUP"); in setUpBinderCallerAndApplicationAsSystem()
3077 public void setPermissionStates(Collection<String> grantPermissions, in setPermissionStates() argument3079 for (String grantPermission : grantPermissions) { in setPermissionStates()
5852 ArraySet<String> grantPermissions = new ArraySet<>();5873 grantPermissions.add(readStringAttribute(in, ATTR_NAME));5923 params.setPermissionStates(grantPermissions, denyPermissions);