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
Change-Id: I4dc19754b81638282dc3a89611b49b001cc0b32c
2 files changed