Home
last modified time | relevance | path

Searched refs:menuItem (Results 1 – 9 of 9) sorted by relevance

/frameworks/support/v7/appcompat/src/android/support/v7/view/menu/
DBaseMenuWrapper.java41 final MenuItem getMenuItemWrapper(final MenuItem menuItem) { in getMenuItemWrapper() argument
42 if (menuItem instanceof SupportMenuItem) { in getMenuItemWrapper()
43 final SupportMenuItem supportMenuItem = (SupportMenuItem) menuItem; in getMenuItemWrapper()
51 MenuItem wrappedItem = mMenuItems.get(menuItem); in getMenuItemWrapper()
61 return menuItem; in getMenuItemWrapper()
100 android.view.MenuItem menuItem; in internalRemoveGroup() local
103 menuItem = iterator.next(); in internalRemoveGroup()
104 if (groupId == menuItem.getGroupId()) { in internalRemoveGroup()
116 android.view.MenuItem menuItem; in internalRemoveItem() local
119 menuItem = iterator.next(); in internalRemoveItem()
[all …]
/frameworks/base/core/java/com/android/internal/widget/
DFloatingToolbar.java264 MenuItem menuItem = menu.getItem(i); in getVisibleAndEnabledMenuItems() local
265 if (menuItem.isVisible() && menuItem.isEnabled()) { in getVisibleAndEnabledMenuItems()
266 Menu subMenu = menuItem.getSubMenu(); in getVisibleAndEnabledMenuItems()
270 menuItems.add(menuItem); in getVisibleAndEnabledMenuItems()
279 for (MenuItem menuItem : menuItems) { in getShowingMenuItemsReferences()
280 if (isIconOnlyMenuItem(menuItem)) { in getShowingMenuItemsReferences()
281 references.add(menuItem.getIcon()); in getShowingMenuItemsReferences()
283 references.add(menuItem.getTitle()); in getShowingMenuItemsReferences()
1117 final MenuItem menuItem = remainingMenuItems.peek(); in layoutMainPanelItems() local
1118 View menuItemButton = createMenuItemButton(mContext, menuItem); in layoutMainPanelItems()
[all …]
/frameworks/base/core/java/android/widget/
DMenuPopupWindow.java165 MenuItem menuItem = null; in onHoverEvent() local
171 menuItem = menuAdapter.getItem(itemPosition); in onHoverEvent()
177 if (oldMenuItem != menuItem) { in onHoverEvent()
183 mHoveredMenuItem = menuItem; in onHoverEvent()
185 if (menuItem != null) { in onHoverEvent()
186 mHoverListener.onItemHoverEnter(menu, menuItem); in onHoverEvent()
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
DMenuPopupWindow.java196 MenuItem menuItem = null; in onHoverEvent() local
202 menuItem = menuAdapter.getItem(itemPosition); in onHoverEvent()
208 if (oldMenuItem != menuItem) { in onHoverEvent()
214 mHoveredMenuItem = menuItem; in onHoverEvent()
216 if (menuItem != null) { in onHoverEvent()
217 mHoverListener.onItemHoverEnter(menu, menuItem); in onHoverEvent()
/frameworks/base/tools/layoutlib/bridge/src/android/view/
DMenuInflater_Delegate.java47 /*package*/ static void registerMenu(MenuInflater thisInflater, MenuItem menuItem, in registerMenu() argument
49 if (menuItem instanceof BridgeMenuItemImpl) { in registerMenu()
55 ((BridgeMenuItemImpl) menuItem).setViewCookie(viewKey); in registerMenu()
/frameworks/base/packages/DocumentsUI/tests/src/com/android/documentsui/bots/
DUiBot.java206 UiObject2 menuItem = null; in findMenuWithName() local
208 menuItem = it.next(); in findMenuWithName()
209 UiObject2 text = menuItem.findObject(By.text(label)); in findMenuWithName()
214 return menuItem; in findMenuWithName()
/frameworks/base/core/java/com/android/internal/app/
DLocalePickerWithRegion.java162 public boolean onOptionsItemSelected(MenuItem menuItem) { in onOptionsItemSelected() argument
163 int id = menuItem.getItemId(); in onOptionsItemSelected()
169 return super.onOptionsItemSelected(menuItem); in onOptionsItemSelected()
/frameworks/support/design/src/android/support/design/internal/
DNavigationMenuPresenter.java567 MenuItemImpl menuItem = ((NavigationMenuTextItem) item).getMenuItem(); in restoreInstanceState() local
568 if (menuItem != null && menuItem.getItemId() == checkedItem) { in restoreInstanceState()
569 setCheckedItem(menuItem); in restoreInstanceState()
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DRenderSessionImpl.java1404 MenuItemImpl menuItem; in getViewKey() local
1406 menuItem = ((ActionMenuItemView) view).getItemData(); in getViewKey()
1408 menuItem = ((ListMenuItemView) view).getItemData(); in getViewKey()
1410 menuItem = ((IconMenuItemView) view).getItemData(); in getViewKey()
1412 menuItem = null; in getViewKey()
1414 if (menuItem instanceof BridgeMenuItemImpl) { in getViewKey()
1415 return ((BridgeMenuItemImpl) menuItem).getViewCookie(); in getViewKey()