private boolean insertNewAccount(ContentValues values) {
    Preconditions.checkNotNull(values);
    Preconditions.checkNotNull(values.get(NAME_COLUMN));
    AccountIndex index =
        new AccountIndex((String) values.get(NAME_COLUMN), (String) values.get(ISSUER_COLUMN));
    if (indexExists(index)) {
      return false;  // An account with this name already exists
    }
    return mDatabase.insert(TABLE_NAME, null, values) != -1;
  }
Swaps the value of the {@link #ID_COLUMN} associated with the passed two AccountIndexes.

@param firstIndex the {@link AccountIndex} to be swapped
@param secondIndex the {@link AccountIndex} to be swapped
java/com/google/android/apps/authenticator/otp/AccountDb.java