Skip to content
Commit 52743c9a 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
Change-Id: I4dc19754b81638282dc3a89611b49b001cc0b32c
parent 55de2996
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