Class EnforcingAdminFactory

java.lang.Object
org.robolectric.shadows.EnforcingAdminFactory

public class EnforcingAdminFactory extends Object
Factory for EnforcingAdmin
  • Method Details

    • create

      public static EnforcingAdmin create(UserHandle userHandle, String packageName, Authority authority)
      Return an EnforcingAdmin which can enforce a certain policy
      Parameters:
      userHandle - The UserHandle on which the admin is installed on.
      packageName - The package name of the admin.
      authority - The Authority on which the admin is acting on, e.g. DPC, DeviceAdmin, etc..