FileDocCategorySizeDatePackage
IDevicePolicyManager.javaAPI DocAndroid 5.1 API145806Sat Mar 14 05:47:58 GMT 2015android.app.admin

IDevicePolicyManager

public interface IDevicePolicyManager implements android.os.IInterface
Internal IPC interface to the device policy service. {@hide}

Fields Summary
Constructors Summary
Methods Summary
public voidaddCrossProfileIntentFilter(android.content.ComponentName admin, android.content.IntentFilter filter, int flags)

public booleanaddCrossProfileWidgetProvider(android.content.ComponentName admin, java.lang.String packageName)

public voidaddPersistentPreferredActivity(android.content.ComponentName admin, android.content.IntentFilter filter, android.content.ComponentName activity)

public voidclearCrossProfileIntentFilters(android.content.ComponentName admin)

public voidclearDeviceOwner(java.lang.String packageName)

public voidclearPackagePersistentPreferredActivities(android.content.ComponentName admin, java.lang.String packageName)

public voidclearProfileOwner(android.content.ComponentName who)

public android.os.UserHandlecreateAndInitializeUser(android.content.ComponentName who, java.lang.String name, java.lang.String profileOwnerName, android.content.ComponentName profileOwnerComponent, android.os.Bundle adminExtras)

public android.os.UserHandlecreateUser(android.content.ComponentName who, java.lang.String name)

public voidenableSystemApp(android.content.ComponentName admin, java.lang.String packageName)

public intenableSystemAppWithIntent(android.content.ComponentName admin, android.content.Intent intent)

public voidenforceCanManageCaCerts(android.content.ComponentName admin)

public java.lang.String[]getAccountTypesWithManagementDisabled()

public java.lang.String[]getAccountTypesWithManagementDisabledAsUser(int userId)

public java.util.ListgetActiveAdmins(int userHandle)

public android.os.BundlegetApplicationRestrictions(android.content.ComponentName who, java.lang.String packageName)

public booleangetAutoTimeRequired()

public booleangetCameraDisabled(android.content.ComponentName who, int userHandle)

public booleangetCrossProfileCallerIdDisabled(android.content.ComponentName who)

public booleangetCrossProfileCallerIdDisabledForUser(int userId)

public java.util.ListgetCrossProfileWidgetProviders(android.content.ComponentName admin)

public intgetCurrentFailedPasswordAttempts(int userHandle)

public java.lang.StringgetDeviceOwner()

public java.lang.StringgetDeviceOwnerName()

public android.content.ComponentNamegetGlobalProxyAdmin(int userHandle)

public intgetKeyguardDisabledFeatures(android.content.ComponentName who, int userHandle)

public java.lang.String[]getLockTaskPackages(android.content.ComponentName who)

public intgetMaximumFailedPasswordsForWipe(android.content.ComponentName admin, int userHandle)

public longgetMaximumTimeToLock(android.content.ComponentName who, int userHandle)

public longgetPasswordExpiration(android.content.ComponentName who, int userHandle)

public longgetPasswordExpirationTimeout(android.content.ComponentName who, int userHandle)

public intgetPasswordHistoryLength(android.content.ComponentName who, int userHandle)

public intgetPasswordMinimumLength(android.content.ComponentName who, int userHandle)

public intgetPasswordMinimumLetters(android.content.ComponentName who, int userHandle)

public intgetPasswordMinimumLowerCase(android.content.ComponentName who, int userHandle)

public intgetPasswordMinimumNonLetter(android.content.ComponentName who, int userHandle)

public intgetPasswordMinimumNumeric(android.content.ComponentName who, int userHandle)

public intgetPasswordMinimumSymbols(android.content.ComponentName who, int userHandle)

public intgetPasswordMinimumUpperCase(android.content.ComponentName who, int userHandle)

public intgetPasswordQuality(android.content.ComponentName who, int userHandle)

public java.util.ListgetPermittedAccessibilityServices(android.content.ComponentName admin)

public java.util.ListgetPermittedAccessibilityServicesForUser(int userId)

public java.util.ListgetPermittedInputMethods(android.content.ComponentName admin)

public java.util.ListgetPermittedInputMethodsForCurrentUser()

public android.content.ComponentNamegetProfileOwner(int userHandle)

public java.lang.StringgetProfileOwnerName(int userHandle)

public intgetProfileWithMinimumFailedPasswordsForWipe(int userHandle)

public voidgetRemoveWarning(android.content.ComponentName policyReceiver, android.os.RemoteCallback result, int userHandle)

public android.content.ComponentNamegetRestrictionsProvider(int userHandle)

public booleangetScreenCaptureDisabled(android.content.ComponentName who, int userHandle)

public booleangetStorageEncryption(android.content.ComponentName who, int userHandle)

public intgetStorageEncryptionStatus(int userHandle)

public java.util.ListgetTrustAgentConfiguration(android.content.ComponentName admin, android.content.ComponentName agent, int userId)

public booleanhasGrantedPolicy(android.content.ComponentName policyReceiver, int usesPolicy, int userHandle)

public booleanhasUserSetupCompleted()

public booleaninstallCaCert(android.content.ComponentName admin, byte[] certBuffer)

public booleaninstallKeyPair(android.content.ComponentName who, byte[] privKeyBuffer, byte[] certBuffer, java.lang.String alias)

public booleanisActivePasswordSufficient(int userHandle)

public booleanisAdminActive(android.content.ComponentName policyReceiver, int userHandle)

public booleanisApplicationHidden(android.content.ComponentName admin, java.lang.String packageName)

public booleanisDeviceOwner(java.lang.String packageName)

public booleanisLockTaskPermitted(java.lang.String pkg)

public booleanisMasterVolumeMuted(android.content.ComponentName admin)

public booleanisRemovingAdmin(android.content.ComponentName adminReceiver, int userHandle)

public booleanisUninstallBlocked(android.content.ComponentName admin, java.lang.String packageName)

public voidlockNow()

public voidnotifyLockTaskModeChanged(boolean isEnabled, java.lang.String pkg, int userId)

public booleanpackageHasActiveAdmins(java.lang.String packageName, int userHandle)

public voidremoveActiveAdmin(android.content.ComponentName policyReceiver, int userHandle)

public booleanremoveCrossProfileWidgetProvider(android.content.ComponentName admin, java.lang.String packageName)

public booleanremoveUser(android.content.ComponentName who, android.os.UserHandle userHandle)

public voidreportFailedPasswordAttempt(int userHandle)

public voidreportSuccessfulPasswordAttempt(int userHandle)

public booleanresetPassword(java.lang.String password, int flags, int userHandle)

public voidsetAccountManagementDisabled(android.content.ComponentName who, java.lang.String accountType, boolean disabled)

public voidsetActiveAdmin(android.content.ComponentName policyReceiver, boolean refreshing, int userHandle)

public voidsetActivePasswordState(int quality, int length, int letters, int uppercase, int lowercase, int numbers, int symbols, int nonletter, int userHandle)

public booleansetApplicationHidden(android.content.ComponentName admin, java.lang.String packageName, boolean hidden)

public voidsetApplicationRestrictions(android.content.ComponentName who, java.lang.String packageName, android.os.Bundle settings)

public voidsetAutoTimeRequired(android.content.ComponentName who, int userHandle, boolean required)

public voidsetCameraDisabled(android.content.ComponentName who, boolean disabled, int userHandle)

public voidsetCrossProfileCallerIdDisabled(android.content.ComponentName who, boolean disabled)

public booleansetDeviceOwner(java.lang.String packageName, java.lang.String ownerName)

public android.content.ComponentNamesetGlobalProxy(android.content.ComponentName admin, java.lang.String proxySpec, java.lang.String exclusionList, int userHandle)

public voidsetGlobalSetting(android.content.ComponentName who, java.lang.String setting, java.lang.String value)

public voidsetKeyguardDisabledFeatures(android.content.ComponentName who, int which, int userHandle)

public voidsetLockTaskPackages(android.content.ComponentName who, java.lang.String[] packages)

public voidsetMasterVolumeMuted(android.content.ComponentName admin, boolean on)

public voidsetMaximumFailedPasswordsForWipe(android.content.ComponentName admin, int num, int userHandle)

public voidsetMaximumTimeToLock(android.content.ComponentName who, long timeMs, int userHandle)

public voidsetPasswordExpirationTimeout(android.content.ComponentName who, long expiration, int userHandle)

public voidsetPasswordHistoryLength(android.content.ComponentName who, int length, int userHandle)

public voidsetPasswordMinimumLength(android.content.ComponentName who, int length, int userHandle)

public voidsetPasswordMinimumLetters(android.content.ComponentName who, int length, int userHandle)

public voidsetPasswordMinimumLowerCase(android.content.ComponentName who, int length, int userHandle)

public voidsetPasswordMinimumNonLetter(android.content.ComponentName who, int length, int userHandle)

public voidsetPasswordMinimumNumeric(android.content.ComponentName who, int length, int userHandle)

public voidsetPasswordMinimumSymbols(android.content.ComponentName who, int length, int userHandle)

public voidsetPasswordMinimumUpperCase(android.content.ComponentName who, int length, int userHandle)

public voidsetPasswordQuality(android.content.ComponentName who, int quality, int userHandle)

public booleansetPermittedAccessibilityServices(android.content.ComponentName admin, java.util.List packageList)

public booleansetPermittedInputMethods(android.content.ComponentName admin, java.util.List packageList)

public voidsetProfileEnabled(android.content.ComponentName who)

public voidsetProfileName(android.content.ComponentName who, java.lang.String profileName)

public booleansetProfileOwner(android.content.ComponentName who, java.lang.String ownerName, int userHandle)

public voidsetRecommendedGlobalProxy(android.content.ComponentName admin, android.net.ProxyInfo proxyInfo)

public voidsetRestrictionsProvider(android.content.ComponentName who, android.content.ComponentName provider)

public voidsetScreenCaptureDisabled(android.content.ComponentName who, int userHandle, boolean disabled)

public voidsetSecureSetting(android.content.ComponentName who, java.lang.String setting, java.lang.String value)

public intsetStorageEncryption(android.content.ComponentName who, boolean encrypt, int userHandle)

public voidsetTrustAgentConfiguration(android.content.ComponentName admin, android.content.ComponentName agent, android.os.PersistableBundle args, int userId)

public voidsetUninstallBlocked(android.content.ComponentName admin, java.lang.String packageName, boolean uninstallBlocked)

public voidsetUserRestriction(android.content.ComponentName who, java.lang.String key, boolean enable)

public booleanswitchUser(android.content.ComponentName who, android.os.UserHandle userHandle)

public voiduninstallCaCert(android.content.ComponentName admin, java.lang.String alias)

public voidwipeData(int flags, int userHandle)