Skip to content
Commit 2ea3f948 authored by Alex Johnston's avatar Alex Johnston
Browse files

Replace enforceXXX methods (managed profile)

Removed methods:
* enforceProfileOrDeviceOwner
* enforceCanSetSecondaryLockscreenEnabled
* enforceManagedProfile
* enforceNetworkStackOrProfileOrDeviceOwner
* enforceManageUsers
* enforceManagedProfile
* enforceNotManagedProfile
* enforceCanManageProfileAndDeviceOwners
* enforceCanManageDeviceAdmin

Changed Methods:
* setProfileName
* isEphemeralUser
* setSecondaryLockscreenEnabled
* getPendingSystemUpdate
* isManagedProfile
* setBackupServiceEnabled
* isBackupServiceEnabled
* clearApplicationUserData
* transferOwnership
* isUsingUnifiedPassword
* setAlwaysOnVpnPackage
* getAlwaysOnVpnPackage
* getAlwaysOnVpnLockdownWhitelist
* installCaCert
* uninstallCaCerts
* isAlwaysOnVpnLockdownEnabled
* isProfileActivePasswordSufficientForParent
* setOrganizationColor
* setOrganizationColorForUser
* getOrganizationColor
* getOrganizationColorForUser
* getOrganizationName
* getActiveAdminUncheckedLocked
* getOrganizationNameForUser
* getActiveAdminOrCheckPermissionForCallerLocked
* lockNow
* setProfileEnabled
* isPasswordSufficientAfterProfileUnification
* reportPasswordChanged
* reportFailedPasswordAttempt
* clearProfileOwner
* getPermittedAccessibilityServicesForUser
* getPermittedInputMethodsForCurrentUser
* isDeviceProvisioned
* setDeviceProvisioningConfigApplied
* isDeviceProvisioningConfigApplied
* isManagedKiosk
* isUnattendedManagedKiosk
* onInstalledCertificatesChanged
* approveCaCert
* isCaCertApproved
* getDeviceOwnerComponent
* getDeviceOwnerUserId
* getDeviceOwnerName
* getUserProvisioningState
* getProfileOwnerName
* forceUpdateUserSetupComplete
* getDisallowedSystemApps
* setUserProvisioningState
* enforceCanSetProfileOwnerLocked
* enforceCanSetDeviceOwnerLocked
* checkProvisioningPreCondition
* isUninstallInQueue
* uninstallPackageWithActiveAdmins

Bug: 167960209
Test: atest com.android.server.devicepolicy.DevicePolicyManagerTest
      atest com.android.cts.devicepolicy.ManagedProfileTest#testDevicePolicyManagerParentSupport
Change-Id: I27a51101d245bfe9407408a771ec7acb6311af65
parent 9d505d1a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment