Home
last modified time | relevance | path

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

/frameworks/base/core/java/com/android/internal/view/menu/
DIconMenuPresenter.java89 public boolean onSubMenuSelected(SubMenuBuilder subMenu) {
90 if (!subMenu.hasVisibleItems()) return false;
93 MenuDialogHelper helper = new MenuDialogHelper(subMenu);
97 mOpenSubMenuId = subMenu.getItem().getItemId();
98 super.onSubMenuSelected(subMenu);
187 public boolean onOpenSubMenu(MenuBuilder subMenu) {
188 if (subMenu != null) {
189 mOpenSubMenuId = ((SubMenuBuilder) subMenu).getItem().getItemId();
DActionMenuPresenter.java239 public boolean onSubMenuSelected(SubMenuBuilder subMenu) { in onSubMenuSelected() argument
240 if (!subMenu.hasVisibleItems()) return false; in onSubMenuSelected()
242 SubMenuBuilder topSubMenu = subMenu; in onSubMenuSelected()
252 mOpenSubMenuId = subMenu.getItem().getItemId(); in onSubMenuSelected()
253 mActionButtonPopup = new ActionButtonSubmenu(mContext, subMenu); in onSubMenuSelected()
256 super.onSubMenuSelected(subMenu); in onSubMenuSelected()
503 SubMenuBuilder subMenu = (SubMenuBuilder) item.getSubMenu(); in onRestoreInstanceState() local
504 onSubMenuSelected(subMenu); in onRestoreInstanceState()
599 public ActionButtonSubmenu(Context context, SubMenuBuilder subMenu) { in ActionButtonSubmenu() argument
600 super(context, subMenu); in ActionButtonSubmenu()
[all …]
DMenuPopupHelper.java240 public boolean onSubMenuSelected(SubMenuBuilder subMenu) { in onSubMenuSelected() argument
241 if (subMenu.hasVisibleItems()) { in onSubMenuSelected()
242 MenuPopupHelper subPopup = new MenuPopupHelper(mContext, subMenu, mAnchorView, false); in onSubMenuSelected()
246 final int count = subMenu.size(); in onSubMenuSelected()
248 MenuItem childItem = subMenu.getItem(i); in onSubMenuSelected()
258 mPresenterCallback.onOpenSubMenu(subMenu); in onSubMenuSelected()
DMenuPresenter.java49 public boolean onOpenSubMenu(MenuBuilder subMenu); in onOpenSubMenu() argument
94 public boolean onSubMenuSelected(SubMenuBuilder subMenu); in onSubMenuSelected() argument
DListMenuPresenter.java135 public boolean onSubMenuSelected(SubMenuBuilder subMenu) { in onSubMenuSelected() argument
136 if (!subMenu.hasVisibleItems()) return false; in onSubMenuSelected()
139 new MenuDialogHelper(subMenu).show(null); in onSubMenuSelected()
141 mCallback.onOpenSubMenu(subMenu); in onSubMenuSelected()
DMenuBuilder.java250 private boolean dispatchSubMenuSelected(SubMenuBuilder subMenu) { in dispatchSubMenuSelected() argument
260 result = presenter.onSubMenuSelected(subMenu); in dispatchSubMenuSelected()
335 final SubMenuBuilder subMenu = (SubMenuBuilder) item.getSubMenu(); in saveActionViewStates() local
336 subMenu.saveActionViewStates(outStates); in saveActionViewStates()
361 final SubMenuBuilder subMenu = (SubMenuBuilder) item.getSubMenu(); in restoreActionViewStates() local
362 subMenu.restoreActionViewStates(states); in restoreActionViewStates()
429 final SubMenuBuilder subMenu = new SubMenuBuilder(mContext, this, item); in addSubMenu() local
430 item.setSubMenu(subMenu); in addSubMenu()
432 return subMenu; in addSubMenu()
888 final SubMenuBuilder subMenu = (SubMenuBuilder) itemImpl.getSubMenu(); in performItemAction() local
[all …]
DMenuDialogHelper.java159 public boolean onOpenSubMenu(MenuBuilder subMenu) { in onOpenSubMenu() argument
161 return mPresenterCallback.onOpenSubMenu(subMenu); in onOpenSubMenu()
DMenuItemImpl.java322 void setSubMenu(SubMenuBuilder subMenu) { in setSubMenu() argument
323 mSubMenu = subMenu; in setSubMenu()
325 subMenu.setHeaderTitle(getTitle()); in setSubMenu()
/frameworks/base/core/java/android/widget/
DPopupMenu.java159 public boolean onOpenSubMenu(MenuBuilder subMenu) { in onOpenSubMenu() argument
160 if (subMenu == null) return false; in onOpenSubMenu()
162 if (!subMenu.hasVisibleItems()) { in onOpenSubMenu()
167 new MenuPopupHelper(mContext, subMenu, mAnchor).show(); in onOpenSubMenu()
DShareActionProvider.java201 public void onPrepareSubMenu(SubMenu subMenu) { in onPrepareSubMenu() argument
203 subMenu.clear(); in onPrepareSubMenu()
214 subMenu.add(0, i, i, activity.loadLabel(packageManager)) in onPrepareSubMenu()
221 SubMenu expandedSubMenu = subMenu.addSubMenu(Menu.NONE, collapsedActivityCount, in onPrepareSubMenu()
/frameworks/base/core/java/com/android/internal/view/
DStandaloneActionMode.java139 public boolean onSubMenuSelected(SubMenuBuilder subMenu) { in onSubMenuSelected() argument
140 if (!subMenu.hasVisibleItems()) { in onSubMenuSelected()
144 new MenuPopupHelper(mContext, subMenu).show(); in onSubMenuSelected()
/frameworks/base/core/java/android/view/
DMenuInflater.java163 SubMenu subMenu = menuState.addSubMenuItem(); in parseMenu() local
166 parseMenu(parser, attrs, subMenu); in parseMenu()
456 SubMenu subMenu = menu.addSubMenu(groupId, itemId, itemCategoryOrder, itemTitle); in addSubMenuItem() local
457 setItem(subMenu.getItem()); in addSubMenuItem()
458 return subMenu; in addSubMenuItem()
DActionProvider.java201 public void onPrepareSubMenu(SubMenu subMenu) { in onPrepareSubMenu() argument
/frameworks/base/core/tests/coretests/src/android/view/
DMenuTest.java235 final SubMenu subMenu = mMenu.addSubMenu(0, 0, 0, "submenu"); in testSubMenu() local
236 final MenuItem subMenuItem = subMenu.getItem(); in testSubMenu()
237 final MenuItem item1 = subMenu.add(0, 1, 0, "item1"); in testSubMenu()
238 final MenuItem item2 = subMenu.add(0, 2, 0, "item2"); in testSubMenu()
/frameworks/base/policy/src/com/android/internal/policy/impl/
DPhoneWindow.java1733 public boolean onOpenSubMenu(MenuBuilder subMenu) { in onOpenSubMenu() argument
1734 if (subMenu == null && hasFeature(FEATURE_ACTION_BAR)) { in onOpenSubMenu()
1737 cb.onMenuOpened(FEATURE_ACTION_BAR, subMenu); in onOpenSubMenu()
1747 public boolean onOpenSubMenu(MenuBuilder subMenu) { in onOpenSubMenu() argument
1750 cb.onMenuOpened(FEATURE_ACTION_BAR, subMenu); in onOpenSubMenu()
3608 public boolean onOpenSubMenu(MenuBuilder subMenu) {
3609 if (subMenu == null) return false;
3612 subMenu.setCallback(this);
3615 mSubMenuHelper = new MenuDialogHelper(subMenu);
/frameworks/base/core/java/com/android/internal/app/
DActionBarImpl.java940 public boolean onSubMenuSelected(SubMenuBuilder subMenu) { in onSubMenuSelected() argument
945 if (!subMenu.hasVisibleItems()) { in onSubMenuSelected()
949 new MenuPopupHelper(getThemedContext(), subMenu).show(); in onSubMenuSelected()
/frameworks/base/core/java/com/android/internal/widget/
DActionBarView.java1412 public boolean onSubMenuSelected(SubMenuBuilder subMenu) { in onSubMenuSelected() argument