Searched refs:searchView (Results 1 – 8 of 8) sorted by relevance
75 final SearchView searchView = new SearchView(mContext); in onCreateOptionsItem() local76 searchView.setImeOptions(EditorInfo.IME_FLAG_NO_EXTRACT_UI); in onCreateOptionsItem()77 searchView.setInputType(InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_FLAG_CAP_WORDS); in onCreateOptionsItem()78 searchView.setQuery(mQuery, false); in onCreateOptionsItem()79 searchView.setOnCloseListener(mSearchModeChangeListener); in onCreateOptionsItem()80 searchView.setOnSearchClickListener(mSearchModeChangeListener); in onCreateOptionsItem()81 searchView.setOnQueryTextListener(mQueryListener); in onCreateOptionsItem()84 .setActionView(searchView) in onCreateOptionsItem()88 searchView.requestFocus(); in onCreateOptionsItem()89 searchView.setIconified(false); in onCreateOptionsItem()
49 private EditText searchView; field in SearchEditTextLayout91 searchView = (EditText) expanded.findViewById(R.id.search_view); in onFinishInflate()111 searchView.onTouchEvent(event); in onFinishInflate()115 searchView.setOnFocusChangeListener( in onFinishInflate()127 searchView.setOnClickListener( in onFinishInflate()137 searchView.addTextChangedListener( in onFinishInflate()156 searchView.setText(null); in onFinishInflate()240 searchView.requestFocus(); in expand()285 if (TextUtils.isEmpty(searchView.getText())) { in updateVisibility()
144 SearchView searchView = actionBar.getCustomView().findViewById(R.id.search_view); in setupActionBar() local150 searchView.setIconified(false); in setupActionBar()152 searchView.clearFocus(); in setupActionBar()157 searchView.setOnQueryTextListener(new SearchView.OnQueryTextListener() { in setupActionBar()173 searchView.setOnCloseListener(() -> true); in setupActionBar()175 mSearchView = searchView; in setupActionBar()
166 final SearchView searchView = mock(SearchView.class); in onCreateOptionsMenu_shouldSetSearchQueryListener() local169 when(searchMenu.getActionView()).thenReturn(searchView); in onCreateOptionsMenu_shouldSetSearchQueryListener()178 verify(searchView).setOnQueryTextListener(mFragment); in onCreateOptionsMenu_shouldSetSearchQueryListener()183 final SearchView searchView = mock(SearchView.class); in onCreateOptionsMenu_hasExpandSearchFlag_shouldExpandSearchView() local186 when(searchMenu.getActionView()).thenReturn(searchView); in onCreateOptionsMenu_hasExpandSearchFlag_shouldExpandSearchView()299 final SearchView searchView = mock(SearchView.class); in onRebuildComplete_hasSearchQuery_shouldFilterSearch() local300 ReflectionHelpers.setField(mFragment, "mSearchView", searchView); in onRebuildComplete_hasSearchQuery_shouldFilterSearch()301 when(searchView.isVisibleToUser()).thenReturn(true); in onRebuildComplete_hasSearchQuery_shouldFilterSearch()302 when(searchView.getQuery()).thenReturn(query); in onRebuildComplete_hasSearchQuery_shouldFilterSearch()
55 SearchView searchView = (SearchView) menu.findItem(R.id.search_input).getActionView(); in onCreateOptionsMenu() local57 searchView.setSearchableInfo(searchManager.getSearchableInfo(getComponentName())); in onCreateOptionsMenu()58 searchView.setOnQueryTextListener(this); in onCreateOptionsMenu()59 searchView.addOnAttachStateChangeListener(new View.OnAttachStateChangeListener() { in onCreateOptionsMenu()
237 private EditText searchView; field in DialtactsActivity321 false /* smartDialSearch */, searchView.getText().toString(), true /* animate */);391 searchView = searchEditTextLayout.findViewById(R.id.search_view); in onCreate()392 searchView.addTextChangedListener(phoneSearchQueryTextListener); in onCreate()393 searchView.setHint(getSearchBoxHint()); in onCreate()524 searchView.setText(voiceSearchQuery); in onResume()1000 searchView.setText(pendingSearchViewQuery); in onCreateOptionsMenu()1161 searchView.setText(null); in exitSearchUi()1262 if (!TextUtils.equals(searchView.getText(), normalizedQuery)) { in onDialpadQueryChanged()1277 searchView.setText(normalizedQuery); in onDialpadQueryChanged()
297 TextView searchView = (TextView) holder.itemView; in onBindViewHolder() local299 searchView.setVisibility(View.VISIBLE); in onBindViewHolder()301 searchView.setVisibility(View.GONE); in onBindViewHolder()
70 UiObject searchView = findSearchView(); in clickIcon() local71 searchView.click(); in clickIcon()