code: public void setSearchableInfo(SearchableInfo searchable) {
          mSearchable = searchable;
          if (mSearchable != null) {
              updateSearchAutoComplete();
              updateQueryHint();
          }
          // Cache the voice search capability
          mVoiceButtonEnabled = hasVoiceSearch();
  
          if (mVoiceButtonEnabled) {
              // Disable the microphone on the keyboard, as a mic is displayed near the text box
              // TODO: use imeOptions to disable voice input when the new API will be available
              mQueryTextView.setPrivateImeOptions(IME_OPTION_NO_MICROPHONE);
          }
          updateViewsVisibility(isIconified());
      }
docs: Sets the SearchableInfo for this SearchView. Properties in the SearchableInfo are used
  to display labels, hints, suggestions, create intents for launching search results screens
  and controlling other affordances such as a voice button.
  
  @param searchable a SearchableInfo can be retrieved from the SearchManager, for a specific
  activity or a global search provider.