public static void tapNeutralButtonIn3ButtonDialog(Instrumentation instrumentation) {
    selectDialogButton(instrumentation);

    instrumentation.sendKeyDownUpSync(KeyEvent.KEYCODE_DPAD_RIGHT);
    instrumentation.sendKeyDownUpSync(KeyEvent.KEYCODE_DPAD_CENTER);
  }
Taps the neutral button of a currently displayed 3 button dialog. This method assumes that a
button of the dialog is currently selected.
javatests/com/google/android/apps/authenticator/testing/TestUtilities.java