Home
last modified time | relevance | path

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

/frameworks/base/core/java/com/android/internal/widget/floatingtoolbar/
DLocalFloatingToolbarPopup.java173 final MenuItem menuItem = mMenuItems.get((MenuItemRepr) tag);
174 if (menuItem == null) {
177 mOnMenuItemClickListener.onMenuItemClick(menuItem);
310 for (MenuItem menuItem : menuItems) { in updateMenuItems()
311 mMenuItems.put(MenuItemRepr.of(menuItem), menuItem); in updateMenuItems() local
956 for (MenuItem menuItem : menuItems) { in layoutMainPanelItems()
957 if (menuItem.getItemId() != android.R.id.textAssist in layoutMainPanelItems()
958 && menuItem.requiresOverflow()) { in layoutMainPanelItems()
959 overflowMenuItems.add(menuItem); in layoutMainPanelItems()
961 remainingMenuItems.add(menuItem); in layoutMainPanelItems()
[all …]
DFloatingToolbar.java237 MenuItem menuItem = menu.getItem(i); in getVisibleAndEnabledMenuItems() local
238 if (menuItem.isVisible() && menuItem.isEnabled()) { in getVisibleAndEnabledMenuItems()
239 Menu subMenu = menuItem.getSubMenu(); in getVisibleAndEnabledMenuItems()
243 menuItems.add(menuItem); in getVisibleAndEnabledMenuItems()
/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.java4543 final MenuItem menuItem = menu.getItem(i); in clearAssistMenuItems() local
4544 if (menuItem.getGroupId() == TextView.ID_ASSIST) { in clearAssistMenuItems()
4545 menu.removeItem(menuItem.getItemId()); in clearAssistMenuItems()
/frameworks/base/tests/TouchLatency/app/src/main/java/com/prefabulated/touchlatency/
DTouchLatencyActivity.java101 MenuItem menuItem = mMenu.findItem(R.id.display_mode); in updateOptionsMenu() local
103 updateDisplayMode(menuItem, currentMode); in updateOptionsMenu()
119 private void updateDisplayMode(MenuItem menuItem, Mode displayMode) { in updateDisplayMode() argument
121 menuItem.setTitle(fps + "hz"); in updateDisplayMode()
122 menuItem.setVisible(true); in updateDisplayMode()
/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.java201 public boolean onOptionsItemSelected(final MenuItem menuItem) { in onOptionsItemSelected() argument
205 if (((OnOptionsItemSelected) observer).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/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
DNotificationGutsManager.java581 NotificationMenuRowPlugin.MenuItem menuItem) { in openGuts() argument
582 if (menuItem.getGutsView() instanceof NotificationGuts.GutsContent) { in openGuts()
584 (NotificationGuts.GutsContent) menuItem.getGutsView(); in openGuts()
592 () -> openGutsInternal(view, x, y, menuItem)); in openGuts()
609 return openGutsInternal(view, x, y, menuItem); in openGuts()
617 NotificationMenuRowPlugin.MenuItem menuItem) { in openGutsInternal() argument
642 if (!bindGuts(row, menuItem)) { in openGutsInternal()
683 mGutsMenuItem = menuItem; in openGutsInternal()
DFeedbackInfo.java175 NotificationMenuRowPlugin.MenuItem menuItem = null; in negativeFeedback() local
177 menuItem = mMenuRowPlugin.getLongpressMenuItem(mContext); in negativeFeedback()
181 mNotificationGutsManager.openGuts(mExpandableNotificationRow, 0, 0, menuItem); in negativeFeedback()
DExpandableNotificationRow.java2007 MenuItem menuItem = provider.getFeedbackMenuItem(mContext);
2008 if (menuItem != null) {
2009 l.onClick(this, v.getWidth() / 2, v.getHeight() / 2, menuItem);
2128 MenuItem menuItem = null;
2130 menuItem = provider.getLongpressMenuItem(mContext);
2132 doLongClickCallback(x, y, menuItem);
2144 MenuItem menuItem = null;
2146 menuItem = provider.getLongpressMenuItem(mContext);
2149 && menuItem.getGutsView() instanceof NotificationConversationInfo) {
2151 (NotificationConversationInfo) menuItem.getGutsView();
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/
DNotificationGutsManagerTest.java238 NotificationMenuRowPlugin.MenuItem menuItem = createTestMenuItem(realRow); in testOpenAndCloseGuts() local
244 assertTrue(mGutsManager.openGutsInternal(row, 0, 0, menuItem)); in testOpenAndCloseGuts()
335 NotificationMenuRowPlugin.MenuItem menuItem = createTestMenuItem(realRow); in testChangeDensityOrFontScale() local
349 assertTrue(mGutsManager.openGutsInternal(row, 0, 0, menuItem)); in testChangeDensityOrFontScale()
580 NotificationMenuRowPlugin.MenuItem menuItem = menuRow.getLongpressMenuItem(mContext); in createTestMenuItem() local
581 assertNotNull(menuItem); in createTestMenuItem()
582 return menuItem; in createTestMenuItem()
DNotificationGutsManagerWithScenesTest.kt218 val menuItem = createTestMenuItem(realRow) in <lambda>() constant
222 Assert.assertTrue(gutsManager.openGutsInternal(row, 0, 0, menuItem)) in <lambda>()
330 val menuItem = createTestMenuItem(realRow) in <lambda>() constant
339 Assert.assertTrue(gutsManager.openGutsInternal(row, 0, 0, menuItem)) in <lambda>()
616 val menuItem = menuRow.getLongpressMenuItem(mContext) in <lambda>() constant
617 Assert.assertNotNull(menuItem) in <lambda>()
618 return menuItem in <lambda>()
/frameworks/base/core/java/com/android/internal/app/
DLocalePickerWithRegion.java221 public boolean onOptionsItemSelected(MenuItem menuItem) { in onOptionsItemSelected() argument
222 int id = menuItem.getItemId(); in onOptionsItemSelected()
228 return super.onOptionsItemSelected(menuItem); in onOptionsItemSelected()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DRenderSessionImpl.java1078 MenuItemImpl menuItem; in getViewKey() local
1080 menuItem = ((ActionMenuItemView) view).getItemData(); in getViewKey()
1082 menuItem = ((ListMenuItemView) view).getItemData(); in getViewKey()
1084 menuItem = ((IconMenuItemView) view).getItemData(); in getViewKey()
1086 menuItem = null; in getViewKey()
1088 if (menuItem instanceof BridgeMenuItemImpl) { in getViewKey()
1089 return ((BridgeMenuItemImpl) menuItem).getViewCookie(); in getViewKey()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/core/lifecycle/
DLifecycleTest.java144 public boolean onOptionsItemSelected(MenuItem menuItem) { in onOptionsItemSelected() argument
241 public boolean onOptionsItemSelected(MenuItem menuItem) { in onOptionsItemSelected() argument
/frameworks/base/core/tests/coretests/src/android/widget/
DTextViewActivityTest.java1380 public boolean onActionItemClicked(ActionMode actionMode, MenuItem menuItem) { in onActionItemClicked() argument