@VisibleForTesting
  int getId(AccountIndex index) {
    Cursor cursor = getAccountCursor(index);
    try {
      if (!cursorIsEmpty(cursor)) {
        cursor.moveToFirst();
        return cursor.getInt(cursor.getColumnIndex(ID_COLUMN));
      }
    } finally {
      tryCloseCursor(cursor);
    }
    return INVALID_ID;
  }
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