/frameworks/base/core/tests/coretests/src/android/view/ |
D | MenuTest.java | 30 private MenuBuilder mMenu; field in MenuTest 34 mMenu = new MenuBuilder(super.getContext()); in setUp() 40 final MenuItem item = mMenu.add(0, id, 0, "test"); in testItemId() 43 Assert.assertEquals(item, mMenu.findItem(id)); in testItemId() 44 Assert.assertEquals(0, mMenu.findItemIndex(id)); in testItemId() 53 mMenu.add(0, 0, item1Index - 1, "ignore"); in testGroupId() 54 final MenuItem item = mMenu.add(groupId, 0, item1Index, "test"); in testGroupId() 55 mMenu.add(0, 0, item2Index - 1, "ignore"); in testGroupId() 56 final MenuItem item2 = mMenu.add(groupId, 0, item2Index, "test2"); in testGroupId() 60 Assert.assertEquals(item1Index, mMenu.findGroupIndex(groupId)); in testGroupId() [all …]
|
/frameworks/base/core/java/com/android/internal/view/menu/ |
D | MenuItemImpl.java | 81 private MenuBuilder mMenu; field in MenuItemImpl 130 mMenu = menu; in MenuItemImpl() 151 if (mMenu.dispatchMenuItemSelected(mMenu, this)) { in invoke() 162 mMenu.getContext().startActivity(mIntent); in invoke() 187 mMenu.onItemsChanged(false); in setEnabled() 243 mMenu.onItemsChanged(false); in setAlphabeticShortcut() 258 mMenu.onItemsChanged(false); in setAlphabeticShortcut() 279 mMenu.onItemsChanged(false); in setNumericShortcut() 293 mMenu.onItemsChanged(false); in setNumericShortcut() 303 mMenu.onItemsChanged(false); in setShortcut() [all …]
|
D | MenuDialogHelper.java | 35 private MenuBuilder mMenu; field in MenuDialogHelper 42 mMenu = menu; in MenuDialogHelper() 53 final MenuBuilder menu = mMenu; in show() 62 mMenu.addMenuPresenter(mPresenter); in show() 114 mMenu.close(true /* closeAllMenus */); in onKey() 124 return mMenu.performShortcut(keyCode, event, 0); in onKey() 148 mPresenter.onCloseMenu(mMenu, true); in onDismiss() 153 if (allMenusAreClosing || menu == mMenu) { in onCloseMenu() 170 mMenu.performItemAction((MenuItemImpl) mPresenter.getAdapter().getItem(which), 0); in onClick()
|
D | BaseMenuPresenter.java | 36 protected MenuBuilder mMenu; field in BaseMenuPresenter 66 mMenu = menu; in initForMenu() 73 mMenuView.initialize(mMenu); in getMenuView() 88 if (mMenu != null) { in updateMenuView() 89 mMenu.flagActionItems(); in updateMenuView() 90 ArrayList<MenuItemImpl> visibleItems = mMenu.getVisibleItems(); in updateMenuView()
|
D | ListMenuPresenter.java | 43 MenuBuilder mMenu; field in ListMenuPresenter 91 mMenu = menu; in initForMenu() 167 mMenu.performItemAction(mAdapter.getItem(position), this, 0); in onItemClick() 231 ArrayList<MenuItemImpl> items = mMenu.getNonActionItems(); in getCount() 240 ArrayList<MenuItemImpl> items = mMenu.getNonActionItems(); in getItem() 265 final MenuItemImpl expandedItem = mMenu.getExpandedItem(); in findExpandedIndex() 267 final ArrayList<MenuItemImpl> items = mMenu.getNonActionItems(); in findExpandedIndex()
|
D | ExpandedMenuView.java | 35 private MenuBuilder mMenu; field in ExpandedMenuView 55 mMenu = menu; in initialize() 67 return mMenu.performItemAction(item, 0); in invokeItem()
|
D | StandardMenuPopup.java | 50 private final MenuBuilder mMenu; field in StandardMenuPopup 117 mMenu = menu; in StandardMenuPopup() 185 if (mShowTitle && mMenu.getHeaderTitle() != null) { in tryShow() 194 titleView.setText(mMenu.getHeaderTitle()); in tryShow() 232 mMenu.close(); in onDismiss() 273 mMenu.close(false /* closeAllMenus */); in onSubMenuSelected() 300 if (menu != mMenu) return; in onCloseMenu()
|
D | IconMenuPresenter.java | 73 final ArrayList<MenuItemImpl> itemsToShow = mMenu.getNonActionItems(); in shouldIncludeItem() 108 final ArrayList<MenuItemImpl> itemsToShow = mMenu.getNonActionItems(); 151 if (subMenuId > 0 && mMenu != null) { 152 MenuItem item = mMenu.findItem(subMenuId);
|
D | MenuPopupHelper.java | 44 private final MenuBuilder mMenu; field in MenuPopupHelper 80 mMenu = menu; in MenuPopupHelper() 243 popup = new StandardMenuPopup(mContext, mMenu, mAnchorView, mPopupStyleAttr, in createPopup() 248 popup.addMenu(mMenu); in createPopup()
|
D | IconMenuView.java | 56 private MenuBuilder mMenu; field in IconMenuView 312 mMenu.changeMenuMode(); in createMoreItemView() 321 mMenu = menu; in initialize() 473 return mMenu.performItemAction(item, 0); in invokeItem()
|
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/ |
D | OverflowMenuAdapter.java | 37 private final MenuBuilder mMenu; field in OverflowMenuAdapter 42 mMenu = menu; in OverflowMenuAdapter() 49 ArrayList<MenuItemImpl> items = mMenu.getNonActionItems(); in getCount() 58 ArrayList<MenuItemImpl> items = mMenu.getNonActionItems(); in getItem() 86 final MenuItemImpl expandedItem = mMenu.getExpandedItem(); in findExpandedIndex() 88 final ArrayList<MenuItemImpl> items = mMenu.getNonActionItems(); in findExpandedIndex()
|
/frameworks/base/core/java/android/widget/ |
D | PopupMenu.java | 45 private final MenuBuilder mMenu; field in PopupMenu 103 mMenu = new MenuBuilder(context); in PopupMenu() 104 mMenu.setCallback(new MenuBuilder.Callback() { in PopupMenu() 118 mPopup = new MenuPopupHelper(context, mMenu, anchor, false, popupStyleAttr, popupStyleRes); in PopupMenu() 202 return mMenu; in getMenu() 221 getMenuInflater().inflate(menuRes, mMenu); in inflate()
|
D | ActionMenuPresenter.java | 178 if (mMenu != null) { in onConfigurationChanged() 179 mMenu.onItemsChanged(true); in onConfigurationChanged() 445 if (mMenu != null) { in updateMenuView() 446 final ArrayList<MenuItemImpl> actionItems = mMenu.getActionItems(); in updateMenuView() 456 final ArrayList<MenuItemImpl> nonActionItems = mMenu != null ? in updateMenuView() 457 mMenu.getNonActionItems() : null; in updateMenuView() 498 while (topSubMenu.getParentMenu() != mMenu) { in onSubMenuSelected() 550 if (mReserveOverflow && !isOverflowMenuShowing() && mMenu != null && mMenuView != null && in showOverflowMenu() 551 mPostedOpenRunnable == null && !mMenu.getNonActionItems().isEmpty()) { in showOverflowMenu() 552 OverflowPopup popup = new OverflowPopup(mContext, mMenu, mOverflowButton, true); in showOverflowMenu() [all …]
|
D | ActionMenuView.java | 54 private MenuBuilder mMenu; field in ActionMenuView 154 if (mFormatItems && mMenu != null && widthSize != mFormatItemsWidth) { in onMeasure() 156 mMenu.onItemsChanged(true); in onMeasure() 619 return mMenu.performItemAction(item, 0); in invokeItem() 629 mMenu = menu; in initialize() 641 if (mMenu == null) { in getMenu() 643 mMenu = new MenuBuilder(context); in getMenu() 644 mMenu.setCallback(new MenuBuilderCallback()); in getMenu() 649 mMenu.addMenuPresenter(mPresenter, mPopupContext); in getMenu() 653 return mMenu; in getMenu() [all …]
|
D | Toolbar.java | 2402 MenuBuilder mMenu; field in Toolbar.ExpandedActionViewMenuPresenter 2408 if (mMenu != null && mCurrentExpandedItem != null) { in initForMenu() 2409 mMenu.collapseItemActionView(mCurrentExpandedItem); in initForMenu() 2411 mMenu = menu; in initForMenu() 2425 if (mMenu != null) { in updateMenuView() 2426 final int count = mMenu.size(); in updateMenuView() 2428 final MenuItem item = mMenu.getItem(i); in updateMenuView() 2438 collapseItemActionView(mMenu, mCurrentExpandedItem); in updateMenuView()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/ |
D | CommandParams.java | 170 Menu mMenu = null; field in SelectItemParams 176 mMenu = menu; in SelectItemParams() 182 if (icon != null && mMenu != null) { in setIcon() 183 if (mLoadTitleIcon && mMenu.titleIcon == null) { in setIcon() 184 mMenu.titleIcon = icon; in setIcon() 186 for (Item item : mMenu.items) { in setIcon()
|
D | CatCmdMessage.java | 35 private Menu mMenu; field in CatCmdMessage 88 mMenu = ((SelectItemParams) cmdParams).mMenu; in CatCmdMessage() 143 mMenu = in.readParcelable(Menu.class.getClassLoader()); in CatCmdMessage() 177 dest.writeParcelable(mMenu, 0); in writeToParcel() 224 return mMenu; in getMenu()
|
/frameworks/base/core/java/com/android/internal/view/ |
D | StandaloneActionMode.java | 41 private MenuBuilder mMenu; field in StandaloneActionMode 49 mMenu = new MenuBuilder(view.getContext()).setDefaultShowAsAction( in StandaloneActionMode() 51 mMenu.setCallback(this); in StandaloneActionMode() 94 mCallback.onPrepareActionMode(this, mMenu); in invalidate() 110 return mMenu; in getMenu()
|
D | FloatingActionMode.java | 49 @NonNull private final MenuBuilder mMenu; field in FloatingActionMode 89 mMenu = new MenuBuilder(context).setDefaultShowAsAction( in FloatingActionMode() 92 mMenu.setCallback(new MenuBuilder.Callback() { in FloatingActionMode() 122 .setMenu(mMenu) in setFloatingToolbar() 123 .setOnMenuItemClickListener(item -> mMenu.performItemAction(item, 0)); in setFloatingToolbar() 145 mCallback.onPrepareActionMode(this, mMenu); in invalidate() 277 return mMenu; in getMenu()
|
/frameworks/base/core/tests/coretests/src/android/view/menu/ |
D | MenuScenario.java | 32 private Menu mMenu; field in MenuScenario 61 mMenu = menu; in onCreateOptionsMenu() 90 mMenu = menu; in onPrepareOptionsMenu() 116 return mMenu; in getMenu()
|
/frameworks/base/core/java/com/android/internal/app/ |
D | WindowDecorActionBar.java | 979 private final MenuBuilder mMenu; field in WindowDecorActionBar.ActionModeImpl 988 mMenu = new MenuBuilder(context) in ActionModeImpl() 990 mMenu.setCallback(this); in ActionModeImpl() 1000 return mMenu; in getMenu() 1043 mMenu.stopDispatchingItemsChanged(); in invalidate() 1045 mCallback.onPrepareActionMode(this, mMenu); in invalidate() 1047 mMenu.startDispatchingItemsChanged(); in invalidate() 1052 mMenu.stopDispatchingItemsChanged(); in dispatchOnCreate() 1054 return mCallback.onCreateActionMode(this, mMenu); in dispatchOnCreate() 1056 mMenu.startDispatchingItemsChanged(); in dispatchOnCreate()
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | ActionBarView.java | 1594 MenuBuilder mMenu; field in ActionBarView.ExpandedActionViewMenuPresenter 1600 if (mMenu != null && mCurrentExpandedItem != null) { in initForMenu() 1601 mMenu.collapseItemActionView(mCurrentExpandedItem); in initForMenu() 1603 mMenu = menu; in initForMenu() 1617 if (mMenu != null) { in updateMenuView() 1618 final int count = mMenu.size(); in updateMenuView() 1620 final MenuItem item = mMenu.getItem(i); in updateMenuView() 1630 collapseItemActionView(mMenu, mCurrentExpandedItem); in updateMenuView()
|
D | FloatingToolbar.java | 95 private Menu mMenu; field in FloatingToolbar 168 mMenu = Preconditions.checkNotNull(menu); in setMenu() 279 List<MenuItem> menuItems = getVisibleAndEnabledMenuItems(mMenu); in doShow()
|
/frameworks/base/config/ |
D | hiddenapi-greylist-max-o.txt | 80496 Landroid/widget/ActionMenuView;->mMenu:Lcom/android/internal/view/menu/MenuBuilder; 82969 Landroid/widget/PopupMenu;->mMenu:Lcom/android/internal/view/menu/MenuBuilder; 85185 Landroid/widget/Toolbar$ExpandedActionViewMenuPresenter;->mMenu:Lcom/android/internal/view/menu/Men… 100420 Lcom/android/internal/view/menu/BaseMenuPresenter;->mMenu:Lcom/android/internal/view/menu/MenuBuild… 100556 Lcom/android/internal/view/menu/MenuItemImpl;->mMenu:Lcom/android/internal/view/menu/MenuBuilder; 100611 Lcom/android/internal/view/menu/MenuPopupHelper;->mMenu:Lcom/android/internal/view/menu/MenuBuilder;
|