/frameworks/base/core/java/com/android/internal/view/menu/ |
D | IconMenuPresenter.java | 89 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();
|
D | MenuPresenter.java | 48 public boolean onOpenSubMenu(MenuBuilder subMenu); in onOpenSubMenu() argument 93 public boolean onSubMenuSelected(SubMenuBuilder subMenu); in onSubMenuSelected() argument
|
D | MenuPopupHelper.java | 283 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()
|
D | MenuBuilder.java | 263 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 …]
|
D | ListMenuPresenter.java | 134 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()
|
D | MenuDialogHelper.java | 159 public boolean onOpenSubMenu(MenuBuilder subMenu) { in onOpenSubMenu() argument 161 return mPresenterCallback.onOpenSubMenu(subMenu); in onOpenSubMenu()
|
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
D | ActionMenuPresenter.java | 260 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 …]
|
D | PopupMenu.java | 244 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()
|
D | ShareActionProvider.java | 216 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/ |
D | ActionMenuPresenter.java | 261 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 …]
|
D | PopupMenu.java | 245 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()
|
D | ShareActionProvider.java | 198 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/ |
D | BaseMenuWrapper.java | 64 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()
|
D | MenuPresenter.java | 53 public boolean onOpenSubMenu(MenuBuilder subMenu); in onOpenSubMenu() argument 98 public boolean onSubMenuSelected(SubMenuBuilder subMenu); in onSubMenuSelected() argument
|
D | MenuPopupHelper.java | 271 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()
|
D | MenuBuilder.java | 285 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 …]
|
D | ListMenuPresenter.java | 138 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()
|
D | SubMenuWrapperICS.java | 32 SubMenuWrapperICS(Context context, SupportSubMenu subMenu) { in SubMenuWrapperICS() argument 33 super(context, subMenu); in SubMenuWrapperICS()
|
D | MenuDialogHelper.java | 162 public boolean onOpenSubMenu(MenuBuilder subMenu) { in onOpenSubMenu() argument 164 return mPresenterCallback.onOpenSubMenu(subMenu); in onOpenSubMenu()
|
/frameworks/base/core/java/com/android/internal/view/ |
D | StandaloneActionMode.java | 140 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/ |
D | StandaloneActionMode.java | 143 public boolean onSubMenuSelected(SubMenuBuilder subMenu) { in onSubMenuSelected() argument 144 if (!subMenu.hasVisibleItems()) { in onSubMenuSelected() 148 new MenuPopupHelper(mContext, subMenu).show(); in onSubMenuSelected()
|
D | SupportMenuInflater.java | 171 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/ |
D | MenuInflater.java | 163 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/ |
D | MenuInflater_Delegate.java | 69 /*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/ |
D | MenuTest.java | 235 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()
|