Home
last modified time | relevance | path

Searched refs:searchView (Results 1 – 8 of 8) sorted by relevance

/packages/apps/DeskClock/src/com/android/deskclock/actionbarmenu/
DSearchMenuItemController.java75 final SearchView searchView = new SearchView(mContext); in onCreateOptionsItem() local
76 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()
/packages/apps/Dialer/java/com/android/dialer/app/widget/
DSearchEditTextLayout.java49 private EditText searchView; field in SearchEditTextLayout
91 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()
/packages/apps/Car/Dialer/src/com/android/car/dialer/ui/search/
DContactResultsFragment.java144 SearchView searchView = actionBar.getCustomView().findViewById(R.id.search_view); in setupActionBar() local
150 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()
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/manageapplications/
DManageApplicationsTest.java166 final SearchView searchView = mock(SearchView.class); in onCreateOptionsMenu_shouldSetSearchQueryListener() local
169 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() local
186 when(searchMenu.getActionView()).thenReturn(searchView); in onCreateOptionsMenu_hasExpandSearchFlag_shouldExpandSearchView()
299 final SearchView searchView = mock(SearchView.class); in onRebuildComplete_hasSearchQuery_shouldFilterSearch() local
300 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()
/packages/services/Telephony/testapps/TelephonyManagerTestApp/src/com/android/phone/testapps/telephonymanagertestapp/
DTelephonyManagerTestApp.java55 SearchView searchView = (SearchView) menu.findItem(R.id.search_input).getActionView(); in onCreateOptionsMenu() local
57 searchView.setSearchableInfo(searchManager.getSearchableInfo(getComponentName())); in onCreateOptionsMenu()
58 searchView.setOnQueryTextListener(this); in onCreateOptionsMenu()
59 searchView.addOnAttachStateChangeListener(new View.OnAttachStateChangeListener() { in onCreateOptionsMenu()
/packages/apps/Dialer/java/com/android/dialer/app/
DDialtactsActivity.java237 private EditText searchView; field in DialtactsActivity
321 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()
/packages/apps/Launcher3/src/com/android/launcher3/allapps/
DAllAppsGridAdapter.java297 TextView searchView = (TextView) holder.itemView; in onBindViewHolder() local
299 searchView.setVisibility(View.VISIBLE); in onBindViewHolder()
301 searchView.setVisibility(View.GONE); in onBindViewHolder()
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/bots/
DSearchBot.java70 UiObject searchView = findSearchView(); in clickIcon() local
71 searchView.click(); in clickIcon()