Home
last modified time | relevance | path

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

/frameworks/base/core/java/com/android/internal/widget/
DFloatingToolbar.java305 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/
DMenuInflater_Delegate.java46 /*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/
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()
DEditor.java4131 final MenuItem menuItem = menu.getItem(i); in clearAssistMenuItems() local
4132 if (menuItem.getGroupId() == TextView.ID_ASSIST) { in clearAssistMenuItems()
4133 menu.removeItem(menuItem.getItemId()); in clearAssistMenuItems()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/core/lifecycle/
DObservableDialogFragment.java101 public boolean onOptionsItemSelected(final MenuItem menuItem) { in onOptionsItemSelected() argument
102 boolean lifecycleHandled = mLifecycle.onOptionsItemSelected(menuItem); in onOptionsItemSelected()
104 return super.onOptionsItemSelected(menuItem); in onOptionsItemSelected()
DObservableActivity.java112 public boolean onOptionsItemSelected(final MenuItem menuItem) { in onOptionsItemSelected() argument
113 boolean lifecycleHandled = mLifecycle.onOptionsItemSelected(menuItem); in onOptionsItemSelected()
115 return super.onOptionsItemSelected(menuItem); in onOptionsItemSelected()
DObservableFragment.java117 public boolean onOptionsItemSelected(final MenuItem menuItem) { in onOptionsItemSelected() argument
118 boolean lifecycleHandled = mLifecycle.onOptionsItemSelected(menuItem); in onOptionsItemSelected()
120 return super.onOptionsItemSelected(menuItem); in onOptionsItemSelected()
DObservablePreferenceFragment.java128 public boolean onOptionsItemSelected(final MenuItem menuItem) { in onOptionsItemSelected() argument
129 boolean lifecycleHandled = mLifecycle.onOptionsItemSelected(menuItem); in onOptionsItemSelected()
131 return super.onOptionsItemSelected(menuItem); in onOptionsItemSelected()
DLifecycle.java198 public boolean onOptionsItemSelected(final MenuItem menuItem) { in onOptionsItemSelected() argument
202 if (((OnOptionsItemSelected) observer).onOptionsItemSelected(menuItem)) { in onOptionsItemSelected()
/frameworks/base/tests/TouchLatency/app/src/main/java/com/prefabulated/touchlatency/
DTouchLatencyActivity.java260 MenuItem menuItem = menu.findItem(R.id.display_mode); in onCreateOptionsMenu() local
262 updateDisplayMode(menuItem, currentMode); in onCreateOptionsMenu()
269 private void updateDisplayMode(MenuItem menuItem, Mode displayMode) { in updateDisplayMode() argument
271 menuItem.setTitle(fps + "hz"); in updateDisplayMode()
272 menuItem.setVisible(true); in updateDisplayMode()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
DNotificationGutsManager.java385 NotificationMenuRowPlugin.MenuItem menuItem) { in openGuts() argument
386 if (menuItem.getGutsView() instanceof NotificationInfo) { in openGuts()
393 () -> openGutsInternal(view, x, y, menuItem)); in openGuts()
404 return openGutsInternal(view, x, y, menuItem); in openGuts()
412 NotificationMenuRowPlugin.MenuItem menuItem) { in openGutsInternal() argument
435 if (!bindGuts(row, menuItem)) { in openGutsInternal()
473 mGutsMenuItem = menuItem; in openGutsInternal()
DExpandableNotificationRow.java1749 MenuItem menuItem = provider.getAppOpsMenuItem(mContext);
1750 if (menuItem != null) {
1751 l.onClick(this, v.getWidth() / 2, v.getHeight() / 2, menuItem);
1812 MenuItem menuItem = null;
1814 menuItem = provider.getLongpressMenuItem(mContext);
1816 doLongClickCallback(x, y, menuItem);
1819 private void doLongClickCallback(int x, int y, MenuItem menuItem) {
1820 if (mLongPressListener != null && menuItem != null) {
1821 mLongPressListener.onLongPress(this, x, y, menuItem);
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/
DNotificationGutsManagerTest.java149 NotificationMenuRowPlugin.MenuItem menuItem = createTestMenuItem(realRow); in testOpenAndCloseGuts() local
155 assertTrue(mGutsManager.openGutsInternal(row, 0, 0, menuItem)); in testOpenAndCloseGuts()
189 NotificationMenuRowPlugin.MenuItem menuItem = createTestMenuItem(realRow); in testChangeDensityOrFontScale() local
203 assertTrue(mGutsManager.openGutsInternal(row, 0, 0, menuItem)); in testChangeDensityOrFontScale()
513 NotificationMenuRowPlugin.MenuItem menuItem = menuRow.getLongpressMenuItem(mContext); in createTestMenuItem() local
514 assertNotNull(menuItem); in createTestMenuItem()
515 return menuItem; in createTestMenuItem()
/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/base/packages/SettingsLib/src/com/android/settingslib/core/lifecycle/events/
DOnOptionsItemSelected.java22 boolean onOptionsItemSelected(MenuItem menuItem); in onOptionsItemSelected() argument
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DRenderSessionImpl.java1080 MenuItemImpl menuItem; in getViewKey() local
1082 menuItem = ((ActionMenuItemView) view).getItemData(); in getViewKey()
1084 menuItem = ((ListMenuItemView) view).getItemData(); in getViewKey()
1086 menuItem = ((IconMenuItemView) view).getItemData(); in getViewKey()
1088 menuItem = null; in getViewKey()
1090 if (menuItem instanceof BridgeMenuItemImpl) { in getViewKey()
1091 return ((BridgeMenuItemImpl) menuItem).getViewCookie(); in getViewKey()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/core/lifecycle/
DLifecycleTest.java146 public boolean onOptionsItemSelected(MenuItem menuItem) { in onOptionsItemSelected() argument
242 public boolean onOptionsItemSelected(MenuItem menuItem) { in onOptionsItemSelected() argument
/frameworks/base/core/tests/coretests/src/android/widget/
DTextViewActivityTest.java907 public boolean onActionItemClicked(ActionMode actionMode, MenuItem menuItem) { in testResetMenuItemTitle()
951 public boolean onActionItemClicked(ActionMode actionMode, MenuItem menuItem) { in testAssistItemIsAtIndexZero()