shadows/framework/src/main/java/org/robolectric/shadows/ShadowDevicePolicyManager.java
@Implementation(minSdk = LOLLIPOP)
  protected boolean setPermittedInputMethods(ComponentName admin, List<String> packageNames) {
    enforceDeviceOwnerOrProfileOwner(admin);
    permittedInputMethods = packageNames;
    return true;
  }
@Implementation(minSdk = LOLLIPOP)
  protected boolean setPermittedInputMethods(ComponentName admin, List<String> packageNames) {
    enforceDeviceOwnerOrProfileOwner(admin);
    permittedInputMethods = packageNames;
    return true;
  }
Sets permitted input methods.

<p>The API can be called by either a profile or device owner.

<p>This method does not check already enabled non-system input methods, so will always set the
restriction and return true.