Home
last modified time | relevance | path

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

/packages/apps/DeskClock/src/com/android/deskclock/actionbarmenu/
DSearchMenuItemController.kt62 val searchView = SearchView(context) in onCreateOptionsItem() constant
63 searchView.setImeOptions(EditorInfo.IME_FLAG_NO_EXTRACT_UI) in onCreateOptionsItem()
64 searchView.setInputType(InputType.TYPE_CLASS_TEXT or InputType.TYPE_TEXT_FLAG_CAP_WORDS) in onCreateOptionsItem()
65 searchView.setQuery(queryText, false) in onCreateOptionsItem()
66 searchView.setOnCloseListener(mSearchModeChangeListener) in onCreateOptionsItem()
67 searchView.setOnSearchClickListener(mSearchModeChangeListener) in onCreateOptionsItem()
68 searchView.setOnQueryTextListener(queryListener) in onCreateOptionsItem()
71 .setActionView(searchView) in onCreateOptionsItem()
75 searchView.requestFocus() in onCreateOptionsItem()
76 searchView.setIconified(false) in onCreateOptionsItem()
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/DeskClock/tests/src/com/android/deskclock/worldclock/
DCitySelectionActivityTest.java52 private SearchView searchView; field in CitySelectionActivityTest
69 searchView = activity.findViewById(R.id.menu_item_search); in setUp()
78 searchView = null; in tearDown()
85 assertNotNull(searchView); in validateDefaultState()
97 searchView.setQuery("Z", true); in searchCities()
103 searchView.setQuery("", true); in searchCities()
/packages/apps/Car/libs/car-ui-lib/src/com/android/car/ui/toolbar/
DToolbarControllerImpl.java581 SearchView searchView = new SearchView(getContext()); in setState() local
582 searchView.setHint(mSearchHint); in setState()
583 searchView.setIcon(mSearchIcon); in setState()
584 searchView.setSearchQuery(mSearchQuery); in setState()
585 searchView.setSearchListeners(mOnSearchListeners); in setState()
586 searchView.setSearchCompletedListeners(mOnSearchCompletedListeners); in setState()
587 searchView.setVisibility(GONE); in setState()
592 mSearchViewContainer.addView(searchView, layoutParams); in setState()
594 mSearchView = searchView; in setState()
/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/quickstep/recents_ui_overrides/src/com/android/launcher3/uioverrides/touchcontrollers/
DFlingAndHoldTouchController.java191 View searchView = mLauncher.getAppsView().getSearchView(); in onDragEnd() local
192 if (searchView instanceof FeedbackHandler) { in onDragEnd()
193 ((FeedbackHandler) searchView).resetFeedback(); in onDragEnd()
/packages/apps/Launcher3/src/com/android/launcher3/allapps/
DAllAppsGridAdapter.java301 TextView searchView = (TextView) holder.itemView; in onBindViewHolder() local
303 searchView.setVisibility(View.VISIBLE); in onBindViewHolder()
305 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()