Home
last modified time | relevance | path

Searched refs:mMenuItem (Results 1 – 4 of 4) sorted by relevance

/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/main/java/com/android/car/ui/toolbar/
DMenuItemRenderer.java44 private final MenuItem mMenuItem; field in MenuItemRenderer
55 mMenuItem = item; in MenuItemRenderer()
57 mMenuItem.setListener(this); in MenuItemRenderer()
67 if (mMenuItem.isSearch()) { in setToolbarIsSearching()
80 @LayoutRes int layout = mMenuItem.isPrimary() in createView()
107 mView.setId(mMenuItem.getId()); in updateView()
109 boolean hasIcon = mMenuItem.getIcon() != null; in updateView()
110 boolean hasText = !TextUtils.isEmpty(mMenuItem.getTitle()); in updateView()
111 boolean textAndIcon = mMenuItem.isShowingIconAndTitle(); in updateView()
112 boolean checkable = mMenuItem.isCheckable(); in updateView()
[all …]
/packages/apps/Car/libs/car-ui-lib/referencedesign/sharedlibrary/src/main/java/com/chassis/car/ui/sharedlibrary/toolbar/
DMenuItemView.java39 private final MenuItemOEMV1 mMenuItem; field in MenuItemView
67 mMenuItem = menuItem; in MenuItemView()
68 mMenuItem.setUpdateListener(this::onMenuItemUpdated); in MenuItemView()
69 onMenuItemUpdated(mMenuItem); in MenuItemView()
73 setId(mMenuItem.getId()); in onMenuItemUpdated()
75 boolean hasIcon = mMenuItem.getIcon() != null; in onMenuItemUpdated()
76 boolean hasText = !TextUtils.isEmpty(mMenuItem.getTitle()); in onMenuItemUpdated()
77 boolean textAndIcon = mMenuItem.isShowingIconAndTitle(); in onMenuItemUpdated()
78 boolean checkable = mMenuItem.isCheckable(); in onMenuItemUpdated()
80 if (!mMenuItem.isVisible() || (!checkable && !hasIcon && !hasText)) { in onMenuItemUpdated()
[all …]
/packages/apps/DocumentsUI/src/com/android/documentsui/queries/
DSearchViewManager.java91 private @Nullable MenuItem mMenuItem; field in SearchViewManager
222 mMenuItem = mMenu.findItem(R.id.option_menu_search); in install()
223 mSearchView = (SearchView) mMenuItem.getActionView(); in install()
244 mMenuItem.setOnActionExpandListener(this); in install()
267 if (mMenuItem == null || mSearchView == null) { in update()
275 mMenuItem.expandActionView(); in update()
287 if (mMenuItem.isActionViewExpanded()) { in update()
288 mMenuItem.collapseActionView(); in update()
311 if (mMenuItem == null) { in showMenu()
323 mMenuItem.setVisible(supportsSearch && (!stack.isRecents() || !mShowSearchBar)); in showMenu()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/
DNetworkProviderSettingsTest.java116 private MenuItem mMenuItem; field in NetworkProviderSettingsTest
447 doReturn(NetworkProviderSettings.MENU_FIX_CONNECTIVITY).when(mMenuItem).getItemId(); in onOptionsItemSelected_fixConnectivity_restartInternet()
449 mNetworkProviderSettings.onOptionsItemSelected(mMenuItem); in onOptionsItemSelected_fixConnectivity_restartInternet()