Searched refs:mMenuItem (Results 1 – 4 of 4) sorted by relevance
44 private final MenuItem mMenuItem; field in MenuItemRenderer55 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 …]
39 private final MenuItemOEMV1 mMenuItem; field in MenuItemView67 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 …]
91 private @Nullable MenuItem mMenuItem; field in SearchViewManager222 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 …]
116 private MenuItem mMenuItem; field in NetworkProviderSettingsTest447 doReturn(NetworkProviderSettings.MENU_FIX_CONNECTIVITY).when(mMenuItem).getItemId(); in onOptionsItemSelected_fixConnectivity_restartInternet()449 mNetworkProviderSettings.onOptionsItemSelected(mMenuItem); in onOptionsItemSelected_fixConnectivity_restartInternet()