{ "methods": { "__constructor__(android.content.Context,android.app.admin.IDevicePolicyManager)": { "isImplementation": true, "modifiers": [ "protected" ], "params": [ "context", "service" ], "returnType": "void", "exceptions": [], "minSdk": 26, "name": "__constructor__(android.content.Context,android.app.admin.IDevicePolicyManager)" }, "__constructor__(android.content.Context,android.os.Handler)": { "isImplementation": true, "modifiers": [ "protected" ], "params": [ "context", "handler" ], "returnType": "void", "exceptions": [], "maxSdk": 23, "name": "__constructor__(android.content.Context,android.os.Handler)" }, "__constructor__(android.content.Context,boolean)": { "isImplementation": true, "modifiers": [ "protected" ], "params": [ "context", "parentInstance" ], "returnType": "void", "exceptions": [], "minSdk": 24, "maxSdk": 25, "name": "__constructor__(android.content.Context,boolean)" }, "activateResetToken(android.content.ComponentName)": { "isImplementation": false, "modifiers": [ "public" ], "params": [ "admin" ], "returnType": "boolean", "exceptions": [], "name": "activateResetToken(android.content.ComponentName)", "documentation": "Activates reset token for given admin.\n\n@param admin Which {@link DeviceAdminReceiver} this request is associated with.\n@return if the activation state changed.\n@throws IllegalArgumentException if there is no token set for this admin.\n" }, "addDefaultCrossProfilePackage(java.lang.String)": { "isImplementation": false, "modifiers": [ "public" ], "params": [ "packageName" ], "returnType": "void", "exceptions": [], "name": "addDefaultCrossProfilePackage(java.lang.String)" }, "addPersistentPreferredActivity(android.content.ComponentName,android.content.IntentFilter,android.content.ComponentName)": { "isImplementation": true, "modifiers": [ "protected" ], "params": [ "admin", "filter", "activity" ], "returnType": "void", "exceptions": [], "minSdk": 21, "name": "addPersistentPreferredActivity(android.content.ComponentName,android.content.IntentFilter,android.content.ComponentName)" }, "addUserRestriction(android.content.ComponentName,java.lang.String)": { "isImplementation": true, "modifiers": [ "protected" ], "params": [ "admin", "key" ], "returnType": "void", "exceptions": [], "minSdk": 21, "name": "addUserRestriction(android.content.ComponentName,java.lang.String)" }, "clearPackagePersistentPreferredActivities(android.content.ComponentName,java.lang.String)": { "isImplementation": true, "modifiers": [ "protected" ], "params": [ "admin", "packageName" ], "returnType": "void", "exceptions": [], "minSdk": 21, "name": "clearPackagePersistentPreferredActivities(android.content.ComponentName,java.lang.String)" }, "clearProfileOwner(android.content.ComponentName)": { "isImplementation": true, "modifiers": [ "protected" ], "params": [ "admin" ], "returnType": "void", "exceptions": [], "minSdk": 21, "name": "clearProfileOwner(android.content.ComponentName)" }, "clearUserRestriction(android.content.ComponentName,java.lang.String)": { "isImplementation": true, "modifiers": [ "protected" ], "params": [ "admin", "key" ], "returnType": "void", "exceptions": [], "minSdk": 21, "name": "clearUserRestriction(android.content.ComponentName,java.lang.String)" }, "enableSystemApp(android.content.ComponentName,java.lang.String)": { "isImplementation": true, "modifiers": [ "protected" ], "params": [ "admin", "packageName" ], "returnType": "void", "exceptions": [], "minSdk": 21, "name": "enableSystemApp(android.content.ComponentName,java.lang.String)" }, "enforceActiveAdmin(android.content.ComponentName)": { "isImplementation": false, "modifiers": [ "private" ], "params": [ "admin" ], "returnType": "void", "exceptions": [], "name": "enforceActiveAdmin(android.content.ComponentName)" }, "enforceDeviceOwner(android.content.ComponentName)": { "isImplementation": false, "modifiers": [ "private" ], "params": [ "admin" ], "returnType": "void", "exceptions": [], "name": "enforceDeviceOwner(android.content.ComponentName)" }, "enforceDeviceOwnerOrProfileOwner(android.content.ComponentName)": { "isImplementation": false, "modifiers": [ "private" ], "params": [ "admin" ], "returnType": "void", "exceptions": [], "name": "enforceDeviceOwnerOrProfileOwner(android.content.ComponentName)" }, "enforceProfileOwner(android.content.ComponentName)": { "isImplementation": false, "modifiers": [ "private" ], "params": [ "admin" ], "returnType": "void", "exceptions": [], "name": "enforceProfileOwner(android.content.ComponentName)" }, "failSetApplicationHiddenFor(java.util.Collection\u003cjava.lang.String\u003e)": { "isImplementation": false, "modifiers": [ "public" ], "params": [ "packagesToFail" ], "returnType": "void", "exceptions": [], "name": "failSetApplicationHiddenFor(java.util.Collection\u003cjava.lang.String\u003e)", "documentation": "Set package names for witch {@link DevicePolicyManager#setApplicationHidden} should fail.\n\n@param packagesToFail collection of package names or {@code null} to clear the packages.\n" }, "getAccountTypesWithManagementDisabled()": { "isImplementation": true, "modifiers": [ "protected" ], "params": [], "returnType": "java.lang.String[]", "exceptions": [], "minSdk": 21, "name": "getAccountTypesWithManagementDisabled()" }, "getActiveAdmins()": { "isImplementation": true, "modifiers": [ "protected" ], "params": [], "returnType": "java.util.List\u003candroid.content.ComponentName\u003e", "exceptions": [], "name": "getActiveAdmins()" }, "getApplicationRestrictions(android.content.ComponentName,java.lang.String)": { "isImplementation": true, "modifiers": [ "protected" ], "params": [ "admin", "packageName" ], "returnType": "android.os.Bundle", "exceptions": [], "minSdk": 21, "name": "getApplicationRestrictions(android.content.ComponentName,java.lang.String)" }, "getApplicationRestrictions(java.lang.String)": { "isImplementation": false, "modifiers": [ "public" ], "params": [ "packageName" ], "returnType": "android.os.Bundle", "exceptions": [], "name": "getApplicationRestrictions(java.lang.String)", "documentation": "Returns all application restrictions of the {@code packageName} in a {@link Bundle}. " }, "getAutoTimeRequired()": { "isImplementation": true, "modifiers": [ "protected" ], "params": [], "returnType": "boolean", "exceptions": [], "minSdk": 21, "name": "getAutoTimeRequired()" }, "getCrossProfileCalendarPackages()": { "isImplementation": true, "modifiers": [ "protected" ], "params": [], "returnType": "java.util.Set\u003cjava.lang.String\u003e", "exceptions": [], "minSdk": 29, "name": "getCrossProfileCalendarPackages()" }, "getDefaultCrossProfilePackages()": { "isImplementation": true, "modifiers": [ "protected" ], "params": [], "returnType": "java.util.Set\u003cjava.lang.String\u003e", "exceptions": [], "minSdk": 30, "name": "getDefaultCrossProfilePackages()" }, "getDeviceOwner()": { "isImplementation": true, "modifiers": [ "protected" ], "params": [], "returnType": "java.lang.String", "exceptions": [], "minSdk": 18, "name": "getDeviceOwner()", "documentation": "@see #setDeviceOwner(ComponentName) " }, "getKeyguardDisabledFeatures(android.content.ComponentName)": { "isImplementation": true, "modifiers": [ "protected" ], "params": [ "admin" ], "returnType": "int", "exceptions": [], "minSdk": 17, "name": "getKeyguardDisabledFeatures(android.content.ComponentName)" }, "getLastSetPassword()": { "isImplementation": false, "modifiers": [ "public" ], "params": [], "returnType": "java.lang.String", "exceptions": [], "name": "getLastSetPassword()", "documentation": "Retrieves last password set through {@link DevicePolicyManager#resetPassword} or {@link\nDevicePolicyManager#resetPasswordWithToken}.\n" }, "getOrganizationColor(android.content.ComponentName)": { "isImplementation": true, "modifiers": [ "protected" ], "params": [ "admin" ], "returnType": "int", "exceptions": [], "minSdk": 24, "name": "getOrganizationColor(android.content.ComponentName)" }, "getOrganizationName(android.content.ComponentName)": { "isImplementation": true, "modifiers": [ "protected" ], "params": [ "admin" ], "returnType": "java.lang.CharSequence", "exceptions": [], "minSdk": 24, "name": "getOrganizationName(android.content.ComponentName)", "documentation": "Returns organization name.\n\n\u003cp\u003eThe API can only be called by profile owner since Android N.\n\n\u003cp\u003eAndroid framework has a hidden API for getting the organization name for device owner since\nAndroid O. This method, however, is extended to return the organization name for device owners\ntoo to make testing of {@link #setOrganizationName(ComponentName, CharSequence)} easier for\ndevice owner cases.\n" }, "getPermissionGrantState(android.content.ComponentName,java.lang.String,java.lang.String)": { "isImplementation": true, "modifiers": [ "protected" ], "params": [ "admin", "packageName", "permission" ], "returnType": "int", "exceptions": [], "minSdk": 23, "name": "getPermissionGrantState(android.content.ComponentName,java.lang.String,java.lang.String)" }, "getPermittedAccessibilityServices(android.content.ComponentName)": { "isImplementation": true, "modifiers": [ "protected" ], "params": [ "admin" ], "returnType": "java.util.List\u003cjava.lang.String\u003e", "exceptions": [], "minSdk": 21, "name": "getPermittedAccessibilityServices(android.content.ComponentName)" }, "getPermittedInputMethods(android.content.ComponentName)": { "isImplementation": true, "modifiers": [ "protected" ], "params": [ "admin" ], "returnType": "java.util.List\u003cjava.lang.String\u003e", "exceptions": [], "minSdk": 21, "name": "getPermittedInputMethods(android.content.ComponentName)" }, "getProfileOwner()": { "isImplementation": true, "modifiers": [ "protected" ], "params": [], "returnType": "android.content.ComponentName", "exceptions": [], "minSdk": 21, "name": "getProfileOwner()", "documentation": "@see #setProfileOwner(ComponentName) " }, "getProfileOwnerAsUser(int)": { "isImplementation": true, "modifiers": [ "protected" ], "params": [ "userId" ], "returnType": "android.content.ComponentName", "exceptions": [], "minSdk": 21, "name": "getProfileOwnerAsUser(int)" }, "getProfileOwnerNameAsUser(int)": { "isImplementation": true, "modifiers": [ "protected" ], "params": [ "userId" ], "returnType": "java.lang.String", "exceptions": [], "minSdk": 21, "name": "getProfileOwnerNameAsUser(int)", "documentation": "Returns the human-readable name of the profile owner for a user if set using\n{@link #setProfileOwnerName}, otherwise `null`.\n" }, "getShadowUserManager()": { "isImplementation": false, "modifiers": [ "private" ], "params": [], "returnType": "org.robolectric.shadows.ShadowUserManager", "exceptions": [], "name": "getShadowUserManager()" }, "getStorageEncryptionStatus()": { "isImplementation": true, "modifiers": [ "protected" ], "params": [], "returnType": "int", "exceptions": [], "name": "getStorageEncryptionStatus()", "documentation": "@return the previously set status; default is {@link\n DevicePolicyManager#ENCRYPTION_STATUS_UNSUPPORTED}\n@see #setStorageEncryptionStatus(int)\n" }, "getUserProvisioningState()": { "isImplementation": true, "modifiers": [ "protected" ], "params": [], "returnType": "int", "exceptions": [], "minSdk": 24, "name": "getUserProvisioningState()", "documentation": "@return Returns the provisioning state for the current user. " }, "getWipeCalledTimes()": { "isImplementation": false, "modifiers": [ "public" ], "params": [], "returnType": "long", "exceptions": [], "name": "getWipeCalledTimes()" }, "init(android.content.Context)": { "isImplementation": false, "modifiers": [ "private" ], "params": [ "context" ], "returnType": "void", "exceptions": [], "name": "init(android.content.Context)" }, "isAdminActive(android.content.ComponentName)": { "isImplementation": true, "modifiers": [ "protected" ], "params": [ "who" ], "returnType": "boolean", "exceptions": [], "name": "isAdminActive(android.content.ComponentName)" }, "isApplicationHidden(android.content.ComponentName,java.lang.String)": { "isImplementation": true, "modifiers": [ "protected" ], "params": [ "admin", "packageName" ], "returnType": "boolean", "exceptions": [], "minSdk": 21, "name": "isApplicationHidden(android.content.ComponentName,java.lang.String)" }, "isDeviceManaged()": { "isImplementation": true, "modifiers": [ "public" ], "params": [], "returnType": "boolean", "exceptions": [], "minSdk": 24, "name": "isDeviceManaged()", "documentation": "@see #setDeviceOwner(ComponentName) " }, "isDeviceOwnerApp(java.lang.String)": { "isImplementation": true, "modifiers": [ "protected" ], "params": [ "packageName" ], "returnType": "boolean", "exceptions": [], "minSdk": 18, "name": "isDeviceOwnerApp(java.lang.String)" }, "isPackageSuspended(android.content.ComponentName,java.lang.String)": { "isImplementation": true, "modifiers": [ "protected" ], "params": [ "admin", "packageName" ], "returnType": "boolean", "exceptions": [ "android.content.pm.PackageManager.NameNotFoundException" ], "minSdk": 24, "name": "isPackageSuspended(android.content.ComponentName,java.lang.String)" }, "isPermissionGranted(java.lang.String,java.lang.String)": { "isImplementation": false, "modifiers": [ "public" ], "params": [ "packageName", "permission" ], "returnType": "boolean", "exceptions": [], "name": "isPermissionGranted(java.lang.String,java.lang.String)" }, "isProfileOwnerApp(java.lang.String)": { "isImplementation": true, "modifiers": [ "protected" ], "params": [ "packageName" ], "returnType": "boolean", "exceptions": [], "minSdk": 21, "name": "isProfileOwnerApp(java.lang.String)" }, "isResetPasswordTokenActive(android.content.ComponentName)": { "isImplementation": true, "modifiers": [ "protected" ], "params": [ "admin" ], "returnType": "boolean", "exceptions": [], "minSdk": 26, "name": "isResetPasswordTokenActive(android.content.ComponentName)" }, "isUninstallBlocked(android.content.ComponentName,java.lang.String)": { "isImplementation": true, "modifiers": [ "protected" ], "params": [ "admin", "packageName" ], "returnType": "boolean", "exceptions": [], "minSdk": 21, "name": "isUninstallBlocked(android.content.ComponentName,java.lang.String)" }, "lockNow()": { "isImplementation": true, "modifiers": [ "protected" ], "params": [], "returnType": "void", "exceptions": [], "name": "lockNow()" }, "passwordMeetsRequirements(java.lang.String)": { "isImplementation": false, "modifiers": [ "private" ], "params": [ "password" ], "returnType": "boolean", "exceptions": [], "name": "passwordMeetsRequirements(java.lang.String)" }, "removeActiveAdmin(android.content.ComponentName)": { "isImplementation": true, "modifiers": [ "protected" ], "params": [ "admin" ], "returnType": "void", "exceptions": [], "name": "removeActiveAdmin(android.content.ComponentName)" }, "resetPassword(java.lang.String,int)": { "isImplementation": true, "modifiers": [ "protected" ], "params": [ "password", "flags" ], "returnType": "boolean", "exceptions": [], "name": "resetPassword(java.lang.String,int)" }, "resetPasswordWithToken(android.content.ComponentName,java.lang.String,byte[],int)": { "isImplementation": true, "modifiers": [ "protected" ], "params": [ "admin", "password", "token", "flags" ], "returnType": "boolean", "exceptions": [], "minSdk": 26, "name": "resetPasswordWithToken(android.content.ComponentName,java.lang.String,byte[],int)" }, "setAccountManagementDisabled(android.content.ComponentName,java.lang.String,boolean)": { "isImplementation": true, "modifiers": [ "protected" ], "params": [ "admin", "accountType", "disabled" ], "returnType": "void", "exceptions": [], "minSdk": 21, "name": "setAccountManagementDisabled(android.content.ComponentName,java.lang.String,boolean)" }, "setActiveAdmin(android.content.ComponentName)": { "isImplementation": false, "modifiers": [ "public" ], "params": [ "componentName" ], "returnType": "void", "exceptions": [], "name": "setActiveAdmin(android.content.ComponentName)", "documentation": "Sets the given {@code componentName} as one of the active admins. " }, "setApplicationHidden(android.content.ComponentName,java.lang.String,boolean)": { "isImplementation": true, "modifiers": [ "protected" ], "params": [ "admin", "packageName", "hidden" ], "returnType": "boolean", "exceptions": [], "minSdk": 21, "name": "setApplicationHidden(android.content.ComponentName,java.lang.String,boolean)" }, "setApplicationRestrictions(android.content.ComponentName,java.lang.String,android.os.Bundle)": { "isImplementation": true, "modifiers": [ "protected" ], "params": [ "admin", "packageName", "applicationRestrictions" ], "returnType": "void", "exceptions": [], "minSdk": 21, "name": "setApplicationRestrictions(android.content.ComponentName,java.lang.String,android.os.Bundle)" }, "setApplicationRestrictions(java.lang.String,android.os.Bundle)": { "isImplementation": false, "modifiers": [ "public" ], "params": [ "packageName", "applicationRestrictions" ], "returnType": "void", "exceptions": [], "name": "setApplicationRestrictions(java.lang.String,android.os.Bundle)", "documentation": "Sets the application restrictions of the {@code packageName}.\n\n\u003cp\u003eThe new {@code applicationRestrictions} always completely overwrites any existing ones.\n" }, "setAutoTimeRequired(android.content.ComponentName,boolean)": { "isImplementation": true, "modifiers": [ "protected" ], "params": [ "admin", "required" ], "returnType": "void", "exceptions": [], "minSdk": 21, "name": "setAutoTimeRequired(android.content.ComponentName,boolean)" }, "setCrossProfileCalendarPackages(android.content.ComponentName,java.util.Set\u003cjava.lang.String\u003e)": { "isImplementation": true, "modifiers": [ "public" ], "params": [ "admin", "packageNames" ], "returnType": "void", "exceptions": [], "minSdk": 29, "name": "setCrossProfileCalendarPackages(android.content.ComponentName,java.util.Set\u003cjava.lang.String\u003e)" }, "setDefaultCrossProfilePackages(java.util.Set\u003cjava.lang.String\u003e)": { "isImplementation": false, "modifiers": [ "public" ], "params": [ "defaultCrossProfilePackages" ], "returnType": "void", "exceptions": [], "name": "setDefaultCrossProfilePackages(java.util.Set\u003cjava.lang.String\u003e)" }, "setDeviceOwner(android.content.ComponentName)": { "isImplementation": false, "modifiers": [ "public" ], "params": [ "admin" ], "returnType": "void", "exceptions": [], "name": "setDeviceOwner(android.content.ComponentName)", "documentation": "Sets the admin as active admin and device owner.\n\n@see DevicePolicyManager#getDeviceOwner()\n" }, "setKeyguardDisabledFeatures(android.content.ComponentName,int)": { "isImplementation": true, "modifiers": [ "protected" ], "params": [ "admin", "which" ], "returnType": "void", "exceptions": [], "minSdk": 17, "name": "setKeyguardDisabledFeatures(android.content.ComponentName,int)" }, "setOrganizationColor(android.content.ComponentName,int)": { "isImplementation": true, "modifiers": [ "protected" ], "params": [ "admin", "color" ], "returnType": "void", "exceptions": [], "minSdk": 24, "name": "setOrganizationColor(android.content.ComponentName,int)" }, "setOrganizationName(android.content.ComponentName,java.lang.CharSequence)": { "isImplementation": true, "modifiers": [ "protected" ], "params": [ "admin", "name" ], "returnType": "void", "exceptions": [], "minSdk": 24, "name": "setOrganizationName(android.content.ComponentName,java.lang.CharSequence)", "documentation": "Sets organization name.\n\n\u003cp\u003eThe API can only be called by profile owner since Android N and can be called by both of\nprofile owner and device owner since Android O.\n" }, "setPackagesSuspended(android.content.ComponentName,java.lang.String[],boolean)": { "isImplementation": true, "modifiers": [ "protected" ], "params": [ "admin", "packageNames", "suspended" ], "returnType": "java.lang.String[]", "exceptions": [], "minSdk": 24, "name": "setPackagesSuspended(android.content.ComponentName,java.lang.String[],boolean)" }, "setPasswordMinimumLength(android.content.ComponentName,int)": { "isImplementation": true, "modifiers": [ "protected" ], "params": [ "admin", "length" ], "returnType": "void", "exceptions": [], "name": "setPasswordMinimumLength(android.content.ComponentName,int)" }, "setPasswordMinimumLetters(android.content.ComponentName,int)": { "isImplementation": true, "modifiers": [ "protected" ], "params": [ "admin", "length" ], "returnType": "void", "exceptions": [], "name": "setPasswordMinimumLetters(android.content.ComponentName,int)" }, "setPasswordMinimumLowerCase(android.content.ComponentName,int)": { "isImplementation": true, "modifiers": [ "protected" ], "params": [ "admin", "length" ], "returnType": "void", "exceptions": [], "name": "setPasswordMinimumLowerCase(android.content.ComponentName,int)" }, "setPasswordMinimumNonLetter(android.content.ComponentName,int)": { "isImplementation": true, "modifiers": [ "protected" ], "params": [ "admin", "length" ], "returnType": "void", "exceptions": [], "name": "setPasswordMinimumNonLetter(android.content.ComponentName,int)" }, "setPasswordMinimumNumeric(android.content.ComponentName,int)": { "isImplementation": true, "modifiers": [ "protected" ], "params": [ "admin", "length" ], "returnType": "void", "exceptions": [], "name": "setPasswordMinimumNumeric(android.content.ComponentName,int)" }, "setPasswordMinimumSymbols(android.content.ComponentName,int)": { "isImplementation": true, "modifiers": [ "protected" ], "params": [ "admin", "length" ], "returnType": "void", "exceptions": [], "name": "setPasswordMinimumSymbols(android.content.ComponentName,int)" }, "setPasswordMinimumUpperCase(android.content.ComponentName,int)": { "isImplementation": true, "modifiers": [ "protected" ], "params": [ "admin", "length" ], "returnType": "void", "exceptions": [], "name": "setPasswordMinimumUpperCase(android.content.ComponentName,int)" }, "setPasswordQuality(android.content.ComponentName,int)": { "isImplementation": true, "modifiers": [ "protected" ], "params": [ "admin", "quality" ], "returnType": "void", "exceptions": [], "name": "setPasswordQuality(android.content.ComponentName,int)" }, "setPermissionGrantState(android.content.ComponentName,java.lang.String,java.lang.String,int)": { "isImplementation": true, "modifiers": [ "protected" ], "params": [ "admin", "packageName", "permission", "grantState" ], "returnType": "boolean", "exceptions": [], "minSdk": 23, "name": "setPermissionGrantState(android.content.ComponentName,java.lang.String,java.lang.String,int)" }, "setPermittedAccessibilityServices(android.content.ComponentName,java.util.List\u003cjava.lang.String\u003e)": { "isImplementation": true, "modifiers": [ "protected" ], "params": [ "admin", "packageNames" ], "returnType": "boolean", "exceptions": [], "minSdk": 21, "name": "setPermittedAccessibilityServices(android.content.ComponentName,java.util.List\u003cjava.lang.String\u003e)", "documentation": "Sets permitted accessibility services.\n\n\u003cp\u003eThe API can be called by either a profile or device owner.\n\n\u003cp\u003eThis method does not check already enabled non-system accessibility services, so will always\nset the restriction and return true.\n" }, "setPermittedInputMethods(android.content.ComponentName,java.util.List\u003cjava.lang.String\u003e)": { "isImplementation": true, "modifiers": [ "protected" ], "params": [ "admin", "packageNames" ], "returnType": "boolean", "exceptions": [], "minSdk": 21, "name": "setPermittedInputMethods(android.content.ComponentName,java.util.List\u003cjava.lang.String\u003e)", "documentation": "Sets permitted input methods.\n\n\u003cp\u003eThe API can be called by either a profile or device owner.\n\n\u003cp\u003eThis method does not check already enabled non-system input methods, so will always set the\nrestriction and return true.\n" }, "setProfileOwner(android.content.ComponentName)": { "isImplementation": false, "modifiers": [ "public" ], "params": [ "admin" ], "returnType": "void", "exceptions": [], "name": "setProfileOwner(android.content.ComponentName)", "documentation": "Sets the admin as active admin and profile owner.\n\n@see DevicePolicyManager#getProfileOwner()\n" }, "setProfileOwnerName(int,java.lang.String)": { "isImplementation": false, "modifiers": [ "public" ], "params": [ "userId", "name" ], "returnType": "void", "exceptions": [], "name": "setProfileOwnerName(int,java.lang.String)" }, "setResetPasswordToken(android.content.ComponentName,byte[])": { "isImplementation": true, "modifiers": [ "protected" ], "params": [ "admin", "token" ], "returnType": "boolean", "exceptions": [], "minSdk": 26, "name": "setResetPasswordToken(android.content.ComponentName,byte[])" }, "setStorageEncryptionStatus(int)": { "isImplementation": false, "modifiers": [ "public" ], "params": [ "status" ], "returnType": "void", "exceptions": [], "name": "setStorageEncryptionStatus(int)", "documentation": "Setter for {@link DevicePolicyManager#getStorageEncryptionStatus()}. " }, "setUninstallBlocked(android.content.ComponentName,java.lang.String,boolean)": { "isImplementation": true, "modifiers": [ "protected" ], "params": [ "admin", "packageName", "uninstallBlocked" ], "returnType": "void", "exceptions": [], "minSdk": 21, "name": "setUninstallBlocked(android.content.ComponentName,java.lang.String,boolean)" }, "setUserProvisioningState(int)": { "isImplementation": false, "modifiers": [ "public" ], "params": [ "state" ], "returnType": "void", "exceptions": [], "name": "setUserProvisioningState(int)", "documentation": "Sets the user provisioning state.\n\n@param state to store provisioning state\n" }, "wasPackageEverHidden(java.lang.String)": { "isImplementation": false, "modifiers": [ "public" ], "params": [ "packageName" ], "returnType": "boolean", "exceptions": [], "name": "wasPackageEverHidden(java.lang.String)", "documentation": "Returns {@code true} if the given {@code packageName} was ever hidden. " }, "wasSystemAppEnabled(java.lang.String)": { "isImplementation": false, "modifiers": [ "public" ], "params": [ "packageName" ], "returnType": "boolean", "exceptions": [], "name": "wasSystemAppEnabled(java.lang.String)", "documentation": "Returns {@code true} if the given {@code packageName} was a system app and was enabled. " }, "wipeData(int)": { "isImplementation": true, "modifiers": [ "protected" ], "params": [ "flags" ], "returnType": "void", "exceptions": [], "name": "wipeData(int)" }, "wipeData(int,java.lang.CharSequence)": { "isImplementation": true, "modifiers": [ "protected" ], "params": [ "flags", "reason" ], "returnType": "void", "exceptions": [], "name": "wipeData(int,java.lang.CharSequence)" } }, "imports": [ "android.os.Build.VERSION_CODES.JELLY_BEAN_MR1", "android.os.Build.VERSION_CODES.JELLY_BEAN_MR2", "android.os.Build.VERSION_CODES.LOLLIPOP", "android.os.Build.VERSION_CODES.M", "android.os.Build.VERSION_CODES.N", "android.os.Build.VERSION_CODES.N_MR1", "android.os.Build.VERSION_CODES.O", "android.os.Build.VERSION_CODES.Q", "android.os.Build.VERSION_CODES.R", "org.robolectric.shadow.api.Shadow.invokeConstructor", "org.robolectric.util.ReflectionHelpers.ClassParameter.from", "android.annotation.Nullable", "android.annotation.SuppressLint", "android.app.ApplicationPackageManager", "android.app.KeyguardManager", "android.app.admin.DeviceAdminReceiver", "android.app.admin.DevicePolicyManager", "android.app.admin.IDevicePolicyManager", "android.content.ComponentName", "android.content.Context", "android.content.IntentFilter", "android.content.pm.PackageInfo", "android.content.pm.PackageManager", "android.content.pm.PackageManager.NameNotFoundException", "android.os.Build", "android.os.Build.VERSION_CODES", "android.os.Bundle", "android.os.Handler", "android.os.Process", "android.text.TextUtils", "java.util.ArrayList", "java.util.Arrays", "java.util.Collection", "java.util.Collections", "java.util.HashMap", "java.util.HashSet", "java.util.List", "java.util.Map", "java.util.Set", "org.robolectric.RuntimeEnvironment", "org.robolectric.annotation.Implementation", "org.robolectric.annotation.Implements", "org.robolectric.annotation.RealObject", "org.robolectric.shadow.api.Shadow", "org.robolectric.shadows.ShadowDevicePolicyManager.PackageAndPermission" ], "name": "org.robolectric.shadows.ShadowDevicePolicyManager" }