/frameworks/base/core/java/com/android/internal/widget/ |
D | FloatingToolbar.java | 305 final MenuItem menuItem = menuItems.get(i); in isCurrentlyShowing() local 307 if (menuItem.getItemId() != showingItem.getItemId() in isCurrentlyShowing() 308 || !TextUtils.equals(menuItem.getTitle(), showingItem.getTitle()) in isCurrentlyShowing() 309 || !Objects.equals(menuItem.getIcon(), showingItem.getIcon()) in isCurrentlyShowing() 310 || menuItem.getGroupId() != showingItem.getGroupId()) { in isCurrentlyShowing() 325 MenuItem menuItem = menu.getItem(i); in getVisibleAndEnabledMenuItems() local 326 if (menuItem.isVisible() && menuItem.isEnabled()) { in getVisibleAndEnabledMenuItems() 327 Menu subMenu = menuItem.getSubMenu(); in getVisibleAndEnabledMenuItems() 331 menuItems.add(menuItem); in getVisibleAndEnabledMenuItems() 1193 for (MenuItem menuItem : menuItems) { in layoutMainPanelItems() [all …]
|
/frameworks/layoutlib/bridge/src/android/view/ |
D | MenuInflater_Delegate.java | 46 /*package*/ static void registerMenu(MenuInflater thisInflater, MenuItem menuItem, in registerMenu() argument 48 if (menuItem instanceof BridgeMenuItemImpl) { in registerMenu() 54 ((BridgeMenuItemImpl) menuItem).setViewCookie(viewKey); in registerMenu() 59 String menuItemName = menuItem != null ? menuItem.getClass().getName() : null; in registerMenu()
|
/frameworks/base/core/java/android/widget/ |
D | MenuPopupWindow.java | 165 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()
|
D | Editor.java | 4277 final MenuItem menuItem = menu.getItem(i); in clearAssistMenuItems() local 4278 if (menuItem.getGroupId() == TextView.ID_ASSIST) { in clearAssistMenuItems() 4279 menu.removeItem(menuItem.getItemId()); in clearAssistMenuItems()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/core/lifecycle/ |
D | ObservableDialogFragment.java | 101 public boolean onOptionsItemSelected(final MenuItem menuItem) { in onOptionsItemSelected() argument 102 boolean lifecycleHandled = mLifecycle.onOptionsItemSelected(menuItem); in onOptionsItemSelected() 104 return super.onOptionsItemSelected(menuItem); in onOptionsItemSelected()
|
D | ObservableActivity.java | 112 public boolean onOptionsItemSelected(final MenuItem menuItem) { in onOptionsItemSelected() argument 113 boolean lifecycleHandled = mLifecycle.onOptionsItemSelected(menuItem); in onOptionsItemSelected() 115 return super.onOptionsItemSelected(menuItem); in onOptionsItemSelected()
|
D | ObservableFragment.java | 117 public boolean onOptionsItemSelected(final MenuItem menuItem) { in onOptionsItemSelected() argument 118 boolean lifecycleHandled = mLifecycle.onOptionsItemSelected(menuItem); in onOptionsItemSelected() 120 return super.onOptionsItemSelected(menuItem); in onOptionsItemSelected()
|
D | ObservablePreferenceFragment.java | 128 public boolean onOptionsItemSelected(final MenuItem menuItem) { in onOptionsItemSelected() argument 129 boolean lifecycleHandled = mLifecycle.onOptionsItemSelected(menuItem); in onOptionsItemSelected() 131 return super.onOptionsItemSelected(menuItem); in onOptionsItemSelected()
|
D | Lifecycle.java | 201 public boolean onOptionsItemSelected(final MenuItem menuItem) { in onOptionsItemSelected() argument 205 if (((OnOptionsItemSelected) observer).onOptionsItemSelected(menuItem)) { in onOptionsItemSelected()
|
/frameworks/base/tests/TouchLatency/app/src/main/java/com/prefabulated/touchlatency/ |
D | TouchLatencyActivity.java | 263 MenuItem menuItem = menu.findItem(R.id.display_mode); in onCreateOptionsMenu() local 265 updateDisplayMode(menuItem, currentMode); in onCreateOptionsMenu() 272 private void updateDisplayMode(MenuItem menuItem, Mode displayMode) { in updateDisplayMode() argument 274 menuItem.setTitle(fps + "hz"); in updateDisplayMode() 275 menuItem.setVisible(true); in updateDisplayMode()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ |
D | NotificationGutsManager.java | 551 NotificationMenuRowPlugin.MenuItem menuItem) { in openGuts() argument 552 if (menuItem.getGutsView() instanceof NotificationGuts.GutsContent) { in openGuts() 554 (NotificationGuts.GutsContent) menuItem.getGutsView(); in openGuts() 562 () -> openGutsInternal(view, x, y, menuItem)); in openGuts() 574 return openGutsInternal(view, x, y, menuItem); in openGuts() 582 NotificationMenuRowPlugin.MenuItem menuItem) { in openGutsInternal() argument 605 if (!bindGuts(row, menuItem)) { in openGutsInternal() 643 mGutsMenuItem = menuItem; in openGutsInternal()
|
D | ExpandableNotificationRow.java | 1736 MenuItem menuItem = provider.getAppOpsMenuItem(mContext); 1737 if (menuItem != null) { 1738 l.onClick(this, v.getWidth() / 2, v.getHeight() / 2, menuItem); 1799 MenuItem menuItem = null; 1801 menuItem = provider.getLongpressMenuItem(mContext); 1803 doLongClickCallback(x, y, menuItem); 1806 private void doLongClickCallback(int x, int y, MenuItem menuItem) { 1807 if (mLongPressListener != null && menuItem != null) { 1808 mLongPressListener.onLongPress(this, x, y, menuItem);
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/ |
D | NotificationGutsManagerTest.java | 181 NotificationMenuRowPlugin.MenuItem menuItem = createTestMenuItem(realRow); in testOpenAndCloseGuts() local 187 assertTrue(mGutsManager.openGutsInternal(row, 0, 0, menuItem)); in testOpenAndCloseGuts() 221 NotificationMenuRowPlugin.MenuItem menuItem = createTestMenuItem(realRow); in testChangeDensityOrFontScale() local 235 assertTrue(mGutsManager.openGutsInternal(row, 0, 0, menuItem)); in testChangeDensityOrFontScale() 496 NotificationMenuRowPlugin.MenuItem menuItem = menuRow.getLongpressMenuItem(mContext); in createTestMenuItem() local 497 assertNotNull(menuItem); in createTestMenuItem() 498 return menuItem; in createTestMenuItem()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/core/lifecycle/events/ |
D | OnOptionsItemSelected.java | 22 boolean onOptionsItemSelected(MenuItem menuItem); in onOptionsItemSelected() argument
|
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
D | RenderSessionImpl.java | 1101 MenuItemImpl menuItem; in getViewKey() local 1103 menuItem = ((ActionMenuItemView) view).getItemData(); in getViewKey() 1105 menuItem = ((ListMenuItemView) view).getItemData(); in getViewKey() 1107 menuItem = ((IconMenuItemView) view).getItemData(); in getViewKey() 1109 menuItem = null; in getViewKey() 1111 if (menuItem instanceof BridgeMenuItemImpl) { in getViewKey() 1112 return ((BridgeMenuItemImpl) menuItem).getViewCookie(); in getViewKey()
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/core/lifecycle/ |
D | LifecycleTest.java | 143 public boolean onOptionsItemSelected(MenuItem menuItem) { in onOptionsItemSelected() argument 237 public boolean onOptionsItemSelected(MenuItem menuItem) { in onOptionsItemSelected() argument
|
/frameworks/base/core/tests/coretests/src/android/widget/ |
D | TextViewActivityTest.java | 1007 public boolean onActionItemClicked(ActionMode actionMode, MenuItem menuItem) { in testResetMenuItemTitle() 1051 public boolean onActionItemClicked(ActionMode actionMode, MenuItem menuItem) { in testAssistItemIsAtIndexZero()
|