code: protected void replaceText(CharSequence text) {
          switch (mAutoCompleteMode){
              case AUTOCOMPLETE_MODE_SINGLE:
                  ((InternalAutoCompleteTextView)mInputView).superReplaceText(text);
                  break;
              case AUTOCOMPLETE_MODE_MULTI:
                  ((InternalMultiAutoCompleteTextView)mInputView).superReplaceText(text);
                  break;
          }
      }
docs: <p>Performs the text completion by replacing the current text by the
  selected item. Subclasses should override this method to avoid replacing
  the whole content of the edit box.</p>
  
  @param text the selected suggestion in the drop down list