Home
last modified time | relevance | path

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

12

/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();
DMenuPresenter.java48 public boolean onOpenSubMenu(MenuBuilder subMenu); in onOpenSubMenu() argument
93 public boolean onSubMenuSelected(SubMenuBuilder subMenu); in onSubMenuSelected() argument
DMenuPopupHelper.java283 public boolean onSubMenuSelected(SubMenuBuilder subMenu) { in onSubMenuSelected() argument
284 if (subMenu.hasVisibleItems()) { in onSubMenuSelected()
285 MenuPopupHelper subPopup = new MenuPopupHelper(mContext, subMenu, mAnchorView); in onSubMenuSelected()
289 final int count = subMenu.size(); in onSubMenuSelected()
291 MenuItem childItem = subMenu.getItem(i); in onSubMenuSelected()
301 mPresenterCallback.onOpenSubMenu(subMenu); in onSubMenuSelected()
DMenuBuilder.java263 private boolean dispatchSubMenuSelected(SubMenuBuilder subMenu, in dispatchSubMenuSelected() argument
271 result = preferredPresenter.onSubMenuSelected(subMenu); in dispatchSubMenuSelected()
279 result = presenter.onSubMenuSelected(subMenu); in dispatchSubMenuSelected()
354 final SubMenuBuilder subMenu = (SubMenuBuilder) item.getSubMenu(); in saveActionViewStates() local
355 subMenu.saveActionViewStates(outStates); in saveActionViewStates()
380 final SubMenuBuilder subMenu = (SubMenuBuilder) item.getSubMenu(); in restoreActionViewStates() local
381 subMenu.restoreActionViewStates(states); in restoreActionViewStates()
455 final SubMenuBuilder subMenu = new SubMenuBuilder(mContext, this, item); in addSubMenu() local
456 item.setSubMenu(subMenu); in addSubMenu()
458 return subMenu; in addSubMenu()
[all …]
DListMenuPresenter.java134 public boolean onSubMenuSelected(SubMenuBuilder subMenu) { in onSubMenuSelected() argument
135 if (!subMenu.hasVisibleItems()) return false; in onSubMenuSelected()
138 new MenuDialogHelper(subMenu).show(null); in onSubMenuSelected()
140 mCallback.onOpenSubMenu(subMenu); in onSubMenuSelected()
DMenuDialogHelper.java159 public boolean onOpenSubMenu(MenuBuilder subMenu) { in onOpenSubMenu() argument
161 return mPresenterCallback.onOpenSubMenu(subMenu); in onOpenSubMenu()
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
DActionMenuPresenter.java260 public boolean onSubMenuSelected(SubMenuBuilder subMenu) { in onSubMenuSelected() argument
261 if (!subMenu.hasVisibleItems()) return false; in onSubMenuSelected()
263 SubMenuBuilder topSubMenu = subMenu; in onSubMenuSelected()
273 mOpenSubMenuId = subMenu.getItem().getItemId(); in onSubMenuSelected()
274 mActionButtonPopup = new ActionButtonSubmenu(mContext, subMenu); in onSubMenuSelected()
277 super.onSubMenuSelected(subMenu); in onSubMenuSelected()
531 SubMenuBuilder subMenu = (SubMenuBuilder) item.getSubMenu(); in onRestoreInstanceState() local
532 onSubMenuSelected(subMenu); in onRestoreInstanceState()
686 public ActionButtonSubmenu(Context context, SubMenuBuilder subMenu) { in ActionButtonSubmenu() argument
687 super(context, subMenu, null, false, in ActionButtonSubmenu()
[all …]
DPopupMenu.java244 public boolean onOpenSubMenu(MenuBuilder subMenu) { in onOpenSubMenu() argument
245 if (subMenu == null) return false; in onOpenSubMenu()
247 if (!subMenu.hasVisibleItems()) { in onOpenSubMenu()
252 new MenuPopupHelper(mContext, subMenu, mAnchor).show(); in onOpenSubMenu()
DShareActionProvider.java216 public void onPrepareSubMenu(SubMenu subMenu) { in onPrepareSubMenu() argument
218 subMenu.clear(); in onPrepareSubMenu()
229 subMenu.add(0, i, i, activity.loadLabel(packageManager)) in onPrepareSubMenu()
236 SubMenu expandedSubMenu = subMenu.addSubMenu(Menu.NONE, collapsedActivityCount, in onPrepareSubMenu()
/frameworks/base/core/java/android/widget/
DActionMenuPresenter.java261 public boolean onSubMenuSelected(SubMenuBuilder subMenu) { in onSubMenuSelected() argument
262 if (!subMenu.hasVisibleItems()) return false; in onSubMenuSelected()
264 SubMenuBuilder topSubMenu = subMenu; in onSubMenuSelected()
274 mOpenSubMenuId = subMenu.getItem().getItemId(); in onSubMenuSelected()
275 mActionButtonPopup = new ActionButtonSubmenu(mContext, subMenu); in onSubMenuSelected()
278 super.onSubMenuSelected(subMenu); in onSubMenuSelected()
532 SubMenuBuilder subMenu = (SubMenuBuilder) item.getSubMenu(); in onRestoreInstanceState() local
533 onSubMenuSelected(subMenu); in onRestoreInstanceState()
697 public ActionButtonSubmenu(Context context, SubMenuBuilder subMenu) { in ActionButtonSubmenu() argument
698 super(context, subMenu, null, false, in ActionButtonSubmenu()
[all …]
DPopupMenu.java245 public boolean onOpenSubMenu(MenuBuilder subMenu) { in onOpenSubMenu() argument
246 if (subMenu == null) return false; in onOpenSubMenu()
248 if (!subMenu.hasVisibleItems()) { in onOpenSubMenu()
253 new MenuPopupHelper(mContext, subMenu, mAnchor).show(); in onOpenSubMenu()
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()
/frameworks/support/v7/appcompat/src/android/support/v7/internal/view/menu/
DBaseMenuWrapper.java64 final SubMenu getSubMenuWrapper(final SubMenu subMenu) { in getSubMenuWrapper() argument
65 if (subMenu instanceof SupportSubMenu) { in getSubMenuWrapper()
66 final SupportSubMenu supportSubMenu = (SupportSubMenu) subMenu; in getSubMenuWrapper()
81 return subMenu; in getSubMenuWrapper()
DMenuPresenter.java53 public boolean onOpenSubMenu(MenuBuilder subMenu); in onOpenSubMenu() argument
98 public boolean onSubMenuSelected(SubMenuBuilder subMenu); in onSubMenuSelected() argument
DMenuPopupHelper.java271 public boolean onSubMenuSelected(SubMenuBuilder subMenu) { in onSubMenuSelected() argument
272 if (subMenu.hasVisibleItems()) { in onSubMenuSelected()
273 MenuPopupHelper subPopup = new MenuPopupHelper(mContext, subMenu, mAnchorView); in onSubMenuSelected()
277 final int count = subMenu.size(); in onSubMenuSelected()
279 MenuItem childItem = subMenu.getItem(i); in onSubMenuSelected()
289 mPresenterCallback.onOpenSubMenu(subMenu); in onSubMenuSelected()
DMenuBuilder.java285 private boolean dispatchSubMenuSelected(SubMenuBuilder subMenu, in dispatchSubMenuSelected() argument
293 result = preferredPresenter.onSubMenuSelected(subMenu); in dispatchSubMenuSelected()
301 result = presenter.onSubMenuSelected(subMenu); in dispatchSubMenuSelected()
376 final SubMenuBuilder subMenu = (SubMenuBuilder) item.getSubMenu(); in saveActionViewStates() local
377 subMenu.saveActionViewStates(outStates); in saveActionViewStates()
402 final SubMenuBuilder subMenu = (SubMenuBuilder) item.getSubMenu(); in restoreActionViewStates() local
403 subMenu.restoreActionViewStates(states); in restoreActionViewStates()
483 final SubMenuBuilder subMenu = new SubMenuBuilder(mContext, this, item); in addSubMenu() local
484 item.setSubMenu(subMenu); in addSubMenu()
486 return subMenu; in addSubMenu()
[all …]
DListMenuPresenter.java138 public boolean onSubMenuSelected(SubMenuBuilder subMenu) { in onSubMenuSelected() argument
139 if (!subMenu.hasVisibleItems()) return false; in onSubMenuSelected()
142 new MenuDialogHelper(subMenu).show(null); in onSubMenuSelected()
144 mCallback.onOpenSubMenu(subMenu); in onSubMenuSelected()
DSubMenuWrapperICS.java32 SubMenuWrapperICS(Context context, SupportSubMenu subMenu) { in SubMenuWrapperICS() argument
33 super(context, subMenu); in SubMenuWrapperICS()
DMenuDialogHelper.java162 public boolean onOpenSubMenu(MenuBuilder subMenu) { in onOpenSubMenu() argument
164 return mPresenterCallback.onOpenSubMenu(subMenu); in onOpenSubMenu()
/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/support/v7/appcompat/src/android/support/v7/internal/view/
DStandaloneActionMode.java143 public boolean onSubMenuSelected(SubMenuBuilder subMenu) { in onSubMenuSelected() argument
144 if (!subMenu.hasVisibleItems()) { in onSubMenuSelected()
148 new MenuPopupHelper(mContext, subMenu).show(); in onSubMenuSelected()
DSupportMenuInflater.java171 SubMenu subMenu = menuState.addSubMenuItem(); in parseMenu() local
174 parseMenu(parser, attrs, subMenu); in parseMenu()
484 SubMenu subMenu = menu.addSubMenu(groupId, itemId, itemCategoryOrder, itemTitle); in addSubMenuItem() local
485 setItem(subMenu.getItem()); in addSubMenuItem()
486 return subMenu; in addSubMenuItem()
/frameworks/base/core/java/android/view/
DMenuInflater.java163 SubMenu subMenu = menuState.addSubMenuItem(); in parseMenu() local
164 registerMenu(subMenu, attrs); in parseMenu()
167 parseMenu(parser, attrs, subMenu); in parseMenu()
219 private void registerMenu(@SuppressWarnings("unused") SubMenu subMenu, in registerMenu() argument
499 SubMenu subMenu = menu.addSubMenu(groupId, itemId, itemCategoryOrder, itemTitle); in addSubMenuItem() local
500 setItem(subMenu.getItem()); in addSubMenuItem()
501 return subMenu; in addSubMenuItem()
/frameworks/base/tools/layoutlib/bridge/src/android/view/
DMenuInflater_Delegate.java69 /*package*/ static void registerMenu(MenuInflater thisInflater, SubMenu subMenu, in registerMenu() argument
71 registerMenu(thisInflater, subMenu.getItem(), parser); in registerMenu()
/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()

12