It looks like you're almost there.
The SearchDialog
source does this to get the auto complete editable.
mSearchAutoComplete = (SearchAutoComplete) findViewById(com.android.internal.R.id.search_src_text);
(note that the SearchAutoComplete
class is a subclass of AutoCompleteTextView
)