code: @Implementation(minSdk = LOLLIPOP)
    protected boolean setPermittedInputMethods(ComponentName admin, List<String> packageNames) {
      enforceDeviceOwnerOrProfileOwner(admin);
      permittedInputMethods = packageNames;
      return true;
    }
docs: 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.