/frameworks/base/core/java/com/android/internal/view/menu/ |
D | IconMenuPresenter.java | 91 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();
|
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 | StandardMenuPopup.java | 260 public boolean onSubMenuSelected(SubMenuBuilder subMenu) { in onSubMenuSelected() argument 261 if (subMenu.hasVisibleItems()) { in onSubMenuSelected() 262 final MenuPopupHelper subPopup = new MenuPopupHelper(mContext, subMenu, in onSubMenuSelected() 265 subPopup.setForceShowIcon(MenuPopup.shouldPreserveIconSpacing(subMenu)); in onSubMenuSelected() 279 mPresenterCallback.onOpenSubMenu(subMenu); in onSubMenuSelected()
|
D | MenuPresenter.java | 50 public boolean onOpenSubMenu(MenuBuilder subMenu); in onOpenSubMenu() argument 97 public boolean onSubMenuSelected(SubMenuBuilder subMenu); in onSubMenuSelected() argument
|
D | ListMenuPresenter.java | 136 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()
|
D | MenuDialogHelper.java | 158 public boolean onOpenSubMenu(MenuBuilder subMenu) { in onOpenSubMenu() argument 160 return mPresenterCallback.onOpenSubMenu(subMenu); in onOpenSubMenu()
|
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
D | ActionMenuPresenter.java | 287 public boolean onSubMenuSelected(SubMenuBuilder subMenu) { in onSubMenuSelected() argument 288 if (!subMenu.hasVisibleItems()) return false; in onSubMenuSelected() 290 SubMenuBuilder topSubMenu = subMenu; in onSubMenuSelected() 303 mOpenSubMenuId = subMenu.getItem().getItemId(); in onSubMenuSelected() 306 final int count = subMenu.size(); in onSubMenuSelected() 308 MenuItem childItem = subMenu.getItem(i); in onSubMenuSelected() 315 mActionButtonPopup = new ActionButtonSubmenu(mContext, subMenu, anchor); in onSubMenuSelected() 319 super.onSubMenuSelected(subMenu); in onSubMenuSelected() 585 SubMenuBuilder subMenu = (SubMenuBuilder) item.getSubMenu(); in onRestoreInstanceState() local 586 onSubMenuSelected(subMenu); in onRestoreInstanceState() [all …]
|
D | ShareActionProvider.java | 255 public void onPrepareSubMenu(SubMenu subMenu) { in onPrepareSubMenu() argument 257 subMenu.clear(); in onPrepareSubMenu() 268 subMenu.add(0, i, i, activity.loadLabel(packageManager)) in onPrepareSubMenu() 275 SubMenu expandedSubMenu = subMenu.addSubMenu(Menu.NONE, collapsedActivityCount, in onPrepareSubMenu()
|
/frameworks/support/design/src/android/support/design/internal/ |
D | NavigationMenu.java | 40 final SubMenuBuilder subMenu = new NavigationSubMenu(getContext(), this, item); in addSubMenu() local 41 item.setSubMenu(subMenu); in addSubMenu() 42 return subMenu; in addSubMenu()
|
/frameworks/support/v7/appcompat/src/android/support/v7/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 | StandardMenuPopup.java | 239 public boolean onSubMenuSelected(SubMenuBuilder subMenu) { in onSubMenuSelected() argument 240 if (subMenu.hasVisibleItems()) { in onSubMenuSelected() 241 final MenuPopupHelper subPopup = new MenuPopupHelper(mContext, subMenu, in onSubMenuSelected() 244 subPopup.setForceShowIcon(MenuPopup.shouldPreserveIconSpacing(subMenu)); in onSubMenuSelected() 258 mPresenterCallback.onOpenSubMenu(subMenu); in onSubMenuSelected()
|
D | MenuPresenter.java | 53 public boolean onOpenSubMenu(MenuBuilder subMenu); in onOpenSubMenu() argument 98 public boolean onSubMenuSelected(SubMenuBuilder subMenu); in onSubMenuSelected() argument
|
D | MenuBuilder.java | 289 private boolean dispatchSubMenuSelected(SubMenuBuilder subMenu, in dispatchSubMenuSelected() argument 297 result = preferredPresenter.onSubMenuSelected(subMenu); in dispatchSubMenuSelected() 305 result = presenter.onSubMenuSelected(subMenu); in dispatchSubMenuSelected() 380 final SubMenuBuilder subMenu = (SubMenuBuilder) item.getSubMenu(); in saveActionViewStates() local 381 subMenu.saveActionViewStates(outStates); in saveActionViewStates() 406 final SubMenuBuilder subMenu = (SubMenuBuilder) item.getSubMenu(); in restoreActionViewStates() local 407 subMenu.restoreActionViewStates(states); in restoreActionViewStates() 487 final SubMenuBuilder subMenu = new SubMenuBuilder(mContext, this, item); in addSubMenu() local 488 item.setSubMenu(subMenu); in addSubMenu() 490 return subMenu; in addSubMenu() [all …]
|
D | ListMenuPresenter.java | 137 public boolean onSubMenuSelected(SubMenuBuilder subMenu) { in onSubMenuSelected() argument 138 if (!subMenu.hasVisibleItems()) return false; in onSubMenuSelected() 141 new MenuDialogHelper(subMenu).show(null); in onSubMenuSelected() 143 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 | 158 public boolean onOpenSubMenu(MenuBuilder subMenu) { in onOpenSubMenu() argument 160 return mPresenterCallback.onOpenSubMenu(subMenu); in onOpenSubMenu()
|
/frameworks/base/core/java/android/widget/ |
D | ActionMenuPresenter.java | 492 public boolean onSubMenuSelected(SubMenuBuilder subMenu) { in onSubMenuSelected() argument 493 if (!subMenu.hasVisibleItems()) return false; in onSubMenuSelected() 495 SubMenuBuilder topSubMenu = subMenu; in onSubMenuSelected() 508 mOpenSubMenuId = subMenu.getItem().getItemId(); in onSubMenuSelected() 511 final int count = subMenu.size(); in onSubMenuSelected() 513 MenuItem childItem = subMenu.getItem(i); in onSubMenuSelected() 520 mActionButtonPopup = new ActionButtonSubmenu(mContext, subMenu, anchor); in onSubMenuSelected() 524 super.onSubMenuSelected(subMenu); in onSubMenuSelected() 780 SubMenuBuilder subMenu = (SubMenuBuilder) item.getSubMenu(); in onRestoreInstanceState() local 781 onSubMenuSelected(subMenu); in onRestoreInstanceState() [all …]
|
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/view/ |
D | StandaloneActionMode.java | 142 public boolean onSubMenuSelected(SubMenuBuilder subMenu) { in onSubMenuSelected() argument 143 if (!subMenu.hasVisibleItems()) { in onSubMenuSelected() 147 new MenuPopupHelper(mContextView.getContext(), 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/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/base/core/java/android/view/ |
D | MenuInflater.java | 164 SubMenu subMenu = menuState.addSubMenuItem(); in parseMenu() local 165 registerMenu(subMenu, attrs); in parseMenu() 168 parseMenu(parser, attrs, subMenu); in parseMenu() 220 private void registerMenu(@SuppressWarnings("unused") SubMenu subMenu, in registerMenu() argument 500 SubMenu subMenu = menu.addSubMenu(groupId, itemId, itemCategoryOrder, itemTitle); in addSubMenuItem() local 501 setItem(subMenu.getItem()); in addSubMenuItem() 502 return subMenu; in addSubMenuItem()
|
/frameworks/base/tools/layoutlib/bridge/src/android/view/ |
D | MenuInflater_Delegate.java | 67 /*package*/ static void registerMenu(MenuInflater thisInflater, SubMenu subMenu, in registerMenu() argument 69 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()
|
/frameworks/support/v7/appcompat/src/android/support/v7/app/ |
D | ToolbarActionBar.java | 602 public boolean onOpenSubMenu(MenuBuilder subMenu) { in onOpenSubMenu() argument 604 mWindowCallback.onMenuOpened(AppCompatDelegate.FEATURE_SUPPORT_ACTION_BAR, subMenu); in onOpenSubMenu() 634 public boolean onOpenSubMenu(MenuBuilder subMenu) { in onOpenSubMenu() argument 635 if (subMenu == null && mWindowCallback != null) { in onOpenSubMenu() 636 mWindowCallback.onMenuOpened(Window.FEATURE_OPTIONS_PANEL, subMenu); in onOpenSubMenu()
|