code: private void updateSearchAutoComplete() {
          mQueryTextView.setThreshold(mSearchable.getSuggestThreshold());
          mQueryTextView.setImeOptions(mSearchable.getImeOptions());
          int inputType = mSearchable.getInputType();
          // We only touch this if the input type is set up for text (which it almost certainly
          // should be, in the case of search!)
          if ((inputType & InputType.TYPE_MASK_CLASS) == InputType.TYPE_CLASS_TEXT) {
              // The existence of a suggestions authority is the proxy for "suggestions
              // are available here"
              inputType &= ~InputType.TYPE_TEXT_FLAG_AUTO_COMPLETE;
              if (mSearchable.getSuggestAuthority() != null) {
                  inputType |= InputType.TYPE_TEXT_FLAG_AUTO_COMPLETE;
                  // TYPE_TEXT_FLAG_AUTO_COMPLETE means that the text editor is performing
                  // auto-completion based on its own semantics, which it will present to the user
                  // as they type. This generally means that the input method should not show its
                  // own candidates, and the spell checker should not be in action. The text editor
                  // supplies its candidates by calling InputMethodManager.displayCompletions(),
                  // which in turn will call InputMethodSession.displayCompletions().
                  inputType |= InputType.TYPE_TEXT_FLAG_NO_SUGGESTIONS;
              }
          }
          mQueryTextView.setInputType(inputType);
          if (mSuggestionsAdapter != null) {
              mSuggestionsAdapter.changeCursor(null);
          }
          // attach the suggestions adapter, if suggestions are available
          // The existence of a suggestions authority is the proxy for "suggestions available here"
          if (mSearchable.getSuggestAuthority() != null) {
              mSuggestionsAdapter = new SuggestionsAdapter(getContext(),
                      this, mSearchable, mOutsideDrawablesCache);
              mQueryTextView.setAdapter(mSuggestionsAdapter);
              ((SuggestionsAdapter) mSuggestionsAdapter).setQueryRefinement(
                      mQueryRefinement ? SuggestionsAdapter.REFINE_ALL
                              : SuggestionsAdapter.REFINE_BY_ENTRY);
          }
      }
docs: Updates the auto-complete text view.