code: public void setIsDeviceSecure(int userId, boolean isDeviceSecure) {
      if (isDeviceSecure) {
        deviceSecureForUsers.add(userId);
      } else {
        deviceSecureForUsers.remove(userId);
      }
    }
docs: For tests on Android >=M, sets the value to be returned by {@link #isDeviceSecure(int)}.
  
  @see #isDeviceSecure(int)