Home
last modified time | relevance | path

Searched refs:subMenu (Results 1 – 24 of 24) sorted by relevance

/frameworks/base/core/java/com/android/internal/view/menu/
DIconMenuPresenter.java91 public boolean onSubMenuSelected(SubMenuBuilder subMenu) {
92 if (!subMenu.hasVisibleItems()) return false;
95 MenuDialogHelper helper = new MenuDialogHelper(subMenu);
99 mOpenSubMenuId = subMenu.getItem().getItemId();
100 super.onSubMenuSelected(subMenu);
189 public boolean onOpenSubMenu(MenuBuilder subMenu) {
190 if (subMenu != null) {
191 mOpenSubMenuId = ((SubMenuBuilder) subMenu).getItem().getItemId();
DMenuPresenter.java52 public boolean onOpenSubMenu(MenuBuilder subMenu); in onOpenSubMenu() argument
99 public boolean onSubMenuSelected(SubMenuBuilder subMenu); in onSubMenuSelected() argument
DMenuBuilder.java278 private boolean dispatchSubMenuSelected(SubMenuBuilder subMenu, in dispatchSubMenuSelected() argument
286 result = preferredPresenter.onSubMenuSelected(subMenu); in dispatchSubMenuSelected()
294 result = presenter.onSubMenuSelected(subMenu); in dispatchSubMenuSelected()
369 final SubMenuBuilder subMenu = (SubMenuBuilder) item.getSubMenu(); in saveActionViewStates() local
370 subMenu.saveActionViewStates(outStates); in saveActionViewStates()
395 final SubMenuBuilder subMenu = (SubMenuBuilder) item.getSubMenu(); in restoreActionViewStates() local
396 subMenu.restoreActionViewStates(states); in restoreActionViewStates()
471 final SubMenuBuilder subMenu = new SubMenuBuilder(mContext, this, item); in addSubMenu() local
472 item.setSubMenu(subMenu); in addSubMenu()
474 return subMenu; in addSubMenu()
[all …]
DStandardMenuPopup.java261 public boolean onSubMenuSelected(SubMenuBuilder subMenu) { in onSubMenuSelected() argument
262 if (subMenu.hasVisibleItems()) { in onSubMenuSelected()
263 final MenuPopupHelper subPopup = new MenuPopupHelper(mContext, subMenu, in onSubMenuSelected()
266 subPopup.setForceShowIcon(MenuPopup.shouldPreserveIconSpacing(subMenu)); in onSubMenuSelected()
289 mPresenterCallback.onOpenSubMenu(subMenu); in onSubMenuSelected()
DListMenuPresenter.java136 public boolean onSubMenuSelected(SubMenuBuilder subMenu) { in onSubMenuSelected() argument
137 if (!subMenu.hasVisibleItems()) return false; in onSubMenuSelected()
140 new MenuDialogHelper(subMenu).show(null); in onSubMenuSelected()
142 mCallback.onOpenSubMenu(subMenu); in onSubMenuSelected()
DMenuDialogHelper.java162 public boolean onOpenSubMenu(MenuBuilder subMenu) { in onOpenSubMenu() argument
164 return mPresenterCallback.onOpenSubMenu(subMenu); in onOpenSubMenu()
DCascadingMenuPopup.java573 public boolean onSubMenuSelected(SubMenuBuilder subMenu) { in onSubMenuSelected() argument
576 if (subMenu == info.menu) { in onSubMenuSelected()
583 if (subMenu.hasVisibleItems()) { in onSubMenuSelected()
584 addMenu(subMenu); in onSubMenuSelected()
587 mPresenterCallback.onOpenSubMenu(subMenu); in onSubMenuSelected()
DMenuItemImpl.java413 void setSubMenu(SubMenuBuilder subMenu) { in setSubMenu() argument
414 mSubMenu = subMenu; in setSubMenu()
416 subMenu.setHeaderTitle(getTitle()); in setSubMenu()
/frameworks/base/core/java/android/widget/
DActionMenuPresenter.java494 public boolean onSubMenuSelected(SubMenuBuilder subMenu) { in onSubMenuSelected() argument
495 if (!subMenu.hasVisibleItems()) return false; in onSubMenuSelected()
497 SubMenuBuilder topSubMenu = subMenu; in onSubMenuSelected()
510 mOpenSubMenuId = subMenu.getItem().getItemId(); in onSubMenuSelected()
513 final int count = subMenu.size(); in onSubMenuSelected()
515 MenuItem childItem = subMenu.getItem(i); in onSubMenuSelected()
522 mActionButtonPopup = new ActionButtonSubmenu(mContext, subMenu, anchor); in onSubMenuSelected()
526 super.onSubMenuSelected(subMenu); in onSubMenuSelected()
786 SubMenuBuilder subMenu = (SubMenuBuilder) item.getSubMenu(); in onRestoreInstanceState() local
787 onSubMenuSelected(subMenu); in onRestoreInstanceState()
[all …]
DShareActionProvider.java198 public void onPrepareSubMenu(SubMenu subMenu) { in onPrepareSubMenu() argument
200 subMenu.clear(); in onPrepareSubMenu()
211 subMenu.add(0, i, i, activity.loadLabel(packageManager)) in onPrepareSubMenu()
218 SubMenu expandedSubMenu = subMenu.addSubMenu(Menu.NONE, collapsedActivityCount, in onPrepareSubMenu()
DActionMenuView.java786 public boolean onOpenSubMenu(MenuBuilder subMenu) { in onOpenSubMenu() argument
DToolbar.java2448 public boolean onSubMenuSelected(SubMenuBuilder subMenu) { in onSubMenuSelected() argument
DEditor.java2781 final SubMenu subMenu = menu.addSubMenu(Menu.NONE, Menu.NONE, MENU_ITEM_ORDER_REPLACE, in onCreateContextMenu() local
2786 subMenu.add(Menu.NONE, Menu.NONE, i, info.mText) in onCreateContextMenu()
/frameworks/base/core/java/com/android/internal/view/
DStandaloneActionMode.java140 public boolean onSubMenuSelected(SubMenuBuilder subMenu) { in onSubMenuSelected() argument
141 if (!subMenu.hasVisibleItems()) { in onSubMenuSelected()
145 new MenuPopupHelper(mContextView.getContext(), subMenu).show(); in onSubMenuSelected()
/frameworks/layoutlib/bridge/src/android/view/
DMenuInflater_Delegate.java74 /*package*/ static void registerMenu(MenuInflater thisInflater, SubMenu subMenu, in registerMenu() argument
76 registerMenu(thisInflater, subMenu.getItem(), parser); in registerMenu()
/frameworks/base/core/tests/coretests/src/android/view/
DMenuTest.java155 final SubMenu subMenu = mMenu.addSubMenu(0, 0, 0, "submenu"); in testSubMenu() local
156 final MenuItem subMenuItem = subMenu.getItem(); in testSubMenu()
157 final MenuItem item1 = subMenu.add(0, 1, 0, "item1"); in testSubMenu()
158 final MenuItem item2 = subMenu.add(0, 2, 0, "item2"); in testSubMenu()
/frameworks/base/core/java/android/view/
DMenuInflater.java167 SubMenu subMenu = menuState.addSubMenuItem(); in parseMenu() local
168 registerMenu(subMenu, attrs); in parseMenu()
171 parseMenu(parser, attrs, subMenu); in parseMenu()
223 private void registerMenu(@SuppressWarnings("unused") SubMenu subMenu, in registerMenu() argument
547 SubMenu subMenu = menu.addSubMenu(groupId, itemId, itemCategoryOrder, itemTitle); in addSubMenuItem() local
548 setItem(subMenu.getItem()); in addSubMenuItem()
549 return subMenu; in addSubMenuItem()
DActionProvider.java203 public void onPrepareSubMenu(SubMenu subMenu) { in onPrepareSubMenu() argument
/frameworks/base/core/java/com/android/internal/app/
DToolbarActionBar.java542 public boolean onOpenSubMenu(MenuBuilder subMenu) { in onOpenSubMenu() argument
544 mWindowCallback.onMenuOpened(Window.FEATURE_ACTION_BAR, subMenu); in onOpenSubMenu()
DWindowDecorActionBar.java1123 public boolean onSubMenuSelected(SubMenuBuilder subMenu) { in onSubMenuSelected() argument
1128 if (!subMenu.hasVisibleItems()) { in onSubMenuSelected()
1132 new MenuPopupHelper(getThemedContext(), subMenu).show(); in onSubMenuSelected()
/frameworks/base/core/java/com/android/internal/policy/
DPhoneWindow.java2286 public boolean onOpenSubMenu(MenuBuilder subMenu) { in onOpenSubMenu() argument
2287 if (subMenu == null && hasFeature(FEATURE_ACTION_BAR)) { in onOpenSubMenu()
2290 cb.onMenuOpened(FEATURE_ACTION_BAR, subMenu); in onOpenSubMenu()
2300 public boolean onOpenSubMenu(MenuBuilder subMenu) { in onOpenSubMenu() argument
2303 cb.onMenuOpened(FEATURE_ACTION_BAR, subMenu); in onOpenSubMenu()
3772 public boolean onOpenSubMenu(MenuBuilder subMenu) {
3773 if (subMenu == null) {
3778 subMenu.setCallback(this);
3782 mSubMenuHelper = new MenuDialogHelper(subMenu);
/frameworks/base/core/java/com/android/internal/widget/
DFloatingToolbar.java327 Menu subMenu = menuItem.getSubMenu(); in getVisibleAndEnabledMenuItems() local
328 if (subMenu != null) { in getVisibleAndEnabledMenuItems()
329 menuItems.addAll(getVisibleAndEnabledMenuItems(subMenu)); in getVisibleAndEnabledMenuItems()
DActionBarView.java1640 public boolean onSubMenuSelected(SubMenuBuilder subMenu) { in onSubMenuSelected() argument
/frameworks/base/tools/aapt2/integration-tests/CommandTests/
Dandroid-28.jarMETA-INF/ META-INF/MANIFEST.MF javax/ javax/net/ javax/ ...