Home
last modified time | relevance | path

Searched refs:searchView (Results 1 – 10 of 10) 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()
/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/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/Launcher3/quickstep/src/com/android/launcher3/taskbar/allapps/
DTaskbarAllAppsContainerView.java59 TaskbarAllAppsFallbackSearchContainer searchView = in inflateSearchBar() local
61 searchView.setId(R.id.search_container_all_apps); in inflateSearchBar()
62 searchView.setVisibility(GONE); in inflateSearchBar()
63 return searchView; in inflateSearchBar()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/permissions/connectedapps/searchapps/
DSearchAppsFragment.kt67 private var searchView: SearchView? = null in <lambda>() variable in com.android.healthconnect.controller.permissions.connectedapps.searchapps.SearchAppsFragment
105 searchView = searchMenuItem.actionView as SearchView in <lambda>()
106 searchView!!.queryHint = getText(R.string.search_connected_apps) in <lambda>()
107 searchView!!.setOnQueryTextListener(this) in <lambda>()
108 searchView!!.maxWidth = Int.MAX_VALUE in <lambda>()
/packages/services/Telephony/testapps/TelephonyManagerTestApp/src/com/android/phone/testapps/telephonymanagertestapp/
DTelephonyManagerTestApp.java56 SearchView searchView = (SearchView) menu.findItem(R.id.search_input).getActionView(); in onCreateOptionsMenu() local
58 searchView.setSearchableInfo(searchManager.getSearchableInfo(getComponentName())); in onCreateOptionsMenu()
59 searchView.setOnQueryTextListener(this); in onCreateOptionsMenu()
60 searchView.addOnAttachStateChangeListener(new View.OnAttachStateChangeListener() { in onCreateOptionsMenu()
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/manageapplications/
DManageApplicationsTest.java165 final SearchView searchView = mock(SearchView.class); in onCreateOptionsMenu_shouldSetSearchQueryListener() local
168 when(searchMenu.getActionView()).thenReturn(searchView); in onCreateOptionsMenu_shouldSetSearchQueryListener()
177 verify(searchView).setOnQueryTextListener(mFragment); in onCreateOptionsMenu_shouldSetSearchQueryListener()
182 final SearchView searchView = mock(SearchView.class); in onCreateOptionsMenu_hasExpandSearchFlag_shouldExpandSearchView() local
185 when(searchMenu.getActionView()).thenReturn(searchView); in onCreateOptionsMenu_hasExpandSearchFlag_shouldExpandSearchView()
297 final SearchView searchView = mock(SearchView.class); in onRebuildComplete_hasSearchQuery_shouldFilterSearch() local
298 ReflectionHelpers.setField(mFragment, "mSearchView", searchView); in onRebuildComplete_hasSearchQuery_shouldFilterSearch()
299 when(searchView.isVisibleToUser()).thenReturn(true); in onRebuildComplete_hasSearchQuery_shouldFilterSearch()
300 when(searchView.getQuery()).thenReturn(query); in onRebuildComplete_hasSearchQuery_shouldFilterSearch()
516 final SearchView searchView = mock(SearchView.class); in onSaveInstanceState_searchViewSet_shouldSetBundleValue() local
[all …]
/packages/services/Car/car_product/car_ui_portrait/apps/CarUiPortraitCarUiProxy/plugin/src/main/java/com/chassis/car/ui/plugin/toolbar/
DToolbarControllerImpl.java980 SearchView searchView = new SearchView(mPluginContext); in inflateSearchView() local
981 searchView.setHint(mSearchHint); in inflateSearchView()
982 searchView.setIcon(mSearchIcon); in inflateSearchView()
983 searchView.setSearchQuery(mSearchQuery); in inflateSearchView()
984 searchView.setSearchListeners( in inflateSearchView()
986 searchView.setSearchCompletedListeners( in inflateSearchView()
988 searchView.setVisibility(GONE); in inflateSearchView()
993 mSearchViewContainer.addView(searchView, layoutParams); in inflateSearchView()
995 searchView.setSearchConfig(mSearchConfigForWidescreen); in inflateSearchView()
997 mSearchView = searchView; in inflateSearchView()
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/bots/
DSearchBot.java72 UiObject searchView = findSearchView(); in clickIcon() local
73 searchView.click(); in clickIcon()
/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()