/frameworks/base/core/tests/coretests/src/android/view/ |
D | MenuTest.java | 36 private MenuBuilder mMenu; field in MenuTest 40 mMenu = new MenuBuilder(super.getContext()); in setUp() 46 final MenuItem item = mMenu.add(0, id, 0, "test"); in testItemId() 49 Assert.assertEquals(item, mMenu.findItem(id)); in testItemId() 50 Assert.assertEquals(0, mMenu.findItemIndex(id)); in testItemId() 59 mMenu.add(0, 0, item1Index - 1, "ignore"); in testGroupId() 60 final MenuItem item = mMenu.add(groupId, 0, item1Index, "test"); in testGroupId() 61 mMenu.add(0, 0, item2Index - 1, "ignore"); in testGroupId() 62 final MenuItem item2 = mMenu.add(groupId, 0, item2Index, "test2"); in testGroupId() 66 Assert.assertEquals(item1Index, mMenu.findGroupIndex(groupId)); in testGroupId() [all …]
|
/frameworks/base/core/java/com/android/internal/view/menu/ |
D | MenuItemImpl.java | 65 private MenuBuilder mMenu; field in MenuItemImpl 132 mMenu = menu; in MenuItemImpl() 152 if (mMenu.dispatchMenuItemSelected(mMenu.getRootMenu(), this)) { in invoke() 163 mMenu.getContext().startActivity(mIntent); in invoke() 188 mMenu.onItemsChanged(false); in setEnabled() 237 mMenu.onItemsChanged(false); in setAlphabeticShortcut() 251 mMenu.onItemsChanged(false); in setNumericShortcut() 260 mMenu.onItemsChanged(false); in setShortcut() 269 return (mMenu.isQwertyMode() ? mShortcutAlphabeticChar : mShortcutNumericChar); in getShortcut() 314 return mMenu.isShortcutsVisible() && (getShortcut() != 0); in shouldShowShortcut() [all …]
|
D | MenuDialogHelper.java | 37 private MenuBuilder mMenu; field in MenuDialogHelper 43 mMenu = menu; in MenuDialogHelper() 53 final MenuBuilder menu = mMenu; in show() 62 mMenu.addMenuPresenter(mPresenter); in show() 114 mMenu.close(true); in onKey() 124 return mMenu.performShortcut(keyCode, event, 0); in onKey() 145 mPresenter.onCloseMenu(mMenu, true); in onDismiss() 150 if (allMenusAreClosing || menu == mMenu) { in onCloseMenu() 167 mMenu.performItemAction((MenuItemImpl) mPresenter.getAdapter().getItem(which), 0); in onClick()
|
D | BaseMenuPresenter.java | 34 protected MenuBuilder mMenu; field in BaseMenuPresenter 64 mMenu = menu; in initForMenu() 71 mMenuView.initialize(mMenu); in getMenuView() 86 if (mMenu != null) { in updateMenuView() 87 mMenu.flagActionItems(); in updateMenuView() 88 ArrayList<MenuItemImpl> visibleItems = mMenu.getVisibleItems(); in updateMenuView()
|
D | ActionMenuPresenter.java | 121 if (mMenu != null) { in onConfigurationChanged() 122 mMenu.onItemsChanged(true); in onConfigurationChanged() 190 if (mMenu != null) { in updateMenuView() 191 final ArrayList<MenuItemImpl> actionItems = mMenu.getActionItems(); in updateMenuView() 201 final ArrayList<MenuItemImpl> nonActionItems = mMenu != null ? in updateMenuView() 202 mMenu.getNonActionItems() : null; in updateMenuView() 243 while (topSubMenu.getParentMenu() != mMenu) { in onSubMenuSelected() 280 if (mReserveOverflow && !isOverflowMenuShowing() && mMenu != null && mMenuView != null && in showOverflowMenu() 281 mPostedOpenRunnable == null && !mMenu.getNonActionItems().isEmpty()) { in showOverflowMenu() 282 OverflowPopup popup = new OverflowPopup(mContext, mMenu, mOverflowButton, true); in showOverflowMenu() [all …]
|
D | ListMenuPresenter.java | 42 MenuBuilder mMenu; field in ListMenuPresenter 90 mMenu = menu; in initForMenu() 166 mMenu.performItemAction(mAdapter.getItem(position), 0); in onItemClick() 230 ArrayList<MenuItemImpl> items = mMenu.getNonActionItems(); in getCount() 239 ArrayList<MenuItemImpl> items = mMenu.getNonActionItems(); in getItem() 264 final MenuItemImpl expandedItem = mMenu.getExpandedItem(); in findExpandedIndex() 266 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 | MenuPopupHelper.java | 53 private MenuBuilder mMenu; field in MenuPopupHelper 79 mMenu = menu; in MenuPopupHelper() 110 mAdapter = new MenuAdapter(mMenu); in tryShow() 140 mMenu.close(); in onDismiss() 269 if (menu != mMenu) return; in onCloseMenu() 351 final MenuItemImpl expandedItem = mMenu.getExpandedItem(); in findExpandedIndex() 353 final ArrayList<MenuItemImpl> items = mMenu.getNonActionItems(); in findExpandedIndex()
|
D | IconMenuPresenter.java | 71 final ArrayList<MenuItemImpl> itemsToShow = mMenu.getNonActionItems(); in shouldIncludeItem() 106 final ArrayList<MenuItemImpl> itemsToShow = mMenu.getNonActionItems(); 149 if (subMenuId > 0 && mMenu != null) { 150 MenuItem item = mMenu.findItem(subMenuId);
|
/frameworks/support/v7/appcompat/src/android/support/v7/internal/view/menu/ |
D | MenuItemImpl.java | 70 private MenuBuilder mMenu; field in MenuItemImpl 138 mMenu = menu; in MenuItemImpl() 158 if (mMenu.dispatchMenuItemSelected(mMenu.getRootMenu(), this)) { in invoke() 169 mMenu.getContext().startActivity(mIntent); in invoke() 196 mMenu.onItemsChanged(false); in setEnabled() 254 mMenu.onItemsChanged(false); in setAlphabeticShortcut() 272 mMenu.onItemsChanged(false); in setNumericShortcut() 282 mMenu.onItemsChanged(false); in setShortcut() 336 return mMenu.isShortcutsVisible() && (getShortcut() != 0); in shouldShowShortcut() 377 mMenu.onItemsChanged(false); in setTitle() [all …]
|
D | MenuDialogHelper.java | 38 private MenuBuilder mMenu; field in MenuDialogHelper 44 mMenu = menu; in MenuDialogHelper() 54 final MenuBuilder menu = mMenu; in show() 65 mMenu.addMenuPresenter(mPresenter); in show() 117 mMenu.close(true); in onKey() 127 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 | 37 protected MenuBuilder mMenu; field in BaseMenuPresenter 67 mMenu = menu; in initForMenu() 73 mMenuView.initialize(mMenu); in getMenuView() 90 if (mMenu != null) { in updateMenuView() 91 mMenu.flagActionItems(); in updateMenuView() 92 ArrayList<MenuItemImpl> visibleItems = mMenu.getVisibleItems(); in updateMenuView()
|
D | ListMenuPresenter.java | 45 MenuBuilder mMenu; field in ListMenuPresenter 93 mMenu = menu; in initForMenu() 175 mMenu.performItemAction(mAdapter.getItem(position), 0); in onItemClick() 239 ArrayList<MenuItemImpl> items = mMenu.getNonActionItems(); in getCount() 248 ArrayList<MenuItemImpl> items = mMenu.getNonActionItems(); in getItem() 273 final MenuItemImpl expandedItem = mMenu.getExpandedItem(); in findExpandedIndex() 275 final ArrayList<MenuItemImpl> items = mMenu.getNonActionItems(); in findExpandedIndex()
|
D | ActionMenuPresenter.java | 124 if (mMenu != null) { in onConfigurationChanged() 125 mMenu.onItemsChanged(true); in onConfigurationChanged() 197 if (mMenu != null) { in updateMenuView() 198 final ArrayList<MenuItemImpl> actionItems = mMenu.getActionItems(); in updateMenuView() 208 final ArrayList<MenuItemImpl> nonActionItems = mMenu != null ? in updateMenuView() 209 mMenu.getNonActionItems() : null; in updateMenuView() 254 while (topSubMenu.getParentMenu() != mMenu) { in onSubMenuSelected() 295 if (mReserveOverflow && !isOverflowMenuShowing() && mMenu != null && mMenuView != null && in showOverflowMenu() 297 OverflowPopup popup = new OverflowPopup(mContext, mMenu, mOverflowButton, true); in showOverflowMenu() 370 final ArrayList<MenuItemImpl> visibleItems = mMenu.getVisibleItems(); in flagActionItems() [all …]
|
D | ExpandedMenuView.java | 37 private MenuBuilder mMenu; field in ExpandedMenuView 49 mMenu = menu; in initialize() 62 return mMenu.performItemAction(item, 0); in invokeItem()
|
D | MenuPopupHelper.java | 55 private MenuBuilder mMenu; field in MenuPopupHelper 81 mMenu = menu; in MenuPopupHelper() 112 mAdapter = new MenuAdapter(mMenu); in tryShow() 143 mMenu.close(); in onDismiss() 262 if (menu != mMenu) { in onCloseMenu() 347 final MenuItemImpl expandedItem = mMenu.getExpandedItem(); in findExpandedIndex() 349 final ArrayList<MenuItemImpl> items = mMenu.getNonActionItems(); in findExpandedIndex()
|
/frameworks/base/core/java/android/inputmethodservice/ |
D | ExtractEditLayout.java | 90 new MenuPopupHelper(getContext(), mActionMode.mMenu, clicked).show(); in onFinishInflate() 98 MenuBuilder mMenu; field in ExtractEditLayout.ExtractActionMode 101 mMenu = new MenuBuilder(getContext()); in ExtractActionMode() 102 mMenu.setCallback(this); in ExtractActionMode() 139 mMenu.stopDispatchingItemsChanged(); in invalidate() 141 mCallback.onPrepareActionMode(this, mMenu); in invalidate() 143 mMenu.startDispatchingItemsChanged(); in invalidate() 148 mMenu.stopDispatchingItemsChanged(); in dispatchOnCreate() 150 return mCallback.onCreateActionMode(this, mMenu); in dispatchOnCreate() 152 mMenu.startDispatchingItemsChanged(); in dispatchOnCreate() [all …]
|
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
D | PopupMenu.java | 39 private MenuBuilder mMenu; field in PopupMenu 66 mMenu = new MenuBuilder(context); in PopupMenu() 67 mMenu.setCallback(this); in PopupMenu() 69 mPopup = new MenuPopupHelper(context, mMenu, anchor); in PopupMenu() 81 return mMenu; in getMenu() 100 getMenuInflater().inflate(menuRes, mMenu); in inflate()
|
/frameworks/base/core/java/android/widget/ |
D | PopupMenu.java | 38 private MenuBuilder mMenu; field in PopupMenu 66 mMenu = new MenuBuilder(context); in PopupMenu() 67 mMenu.setCallback(this); in PopupMenu() 69 mPopup = new MenuPopupHelper(context, mMenu, anchor); in PopupMenu() 81 return mMenu; in getMenu() 100 getMenuInflater().inflate(menuRes, mMenu); in inflate()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/ |
D | CommandParams.java | 134 Menu mMenu = null; field in SelectItemParams 139 mMenu = menu; in SelectItemParams() 145 if (icon != null && mMenu != null) { in setIcon() 146 if (mLoadTitleIcon && mMenu.titleIcon == null) { in setIcon() 147 mMenu.titleIcon = icon; in setIcon() 149 for (Item item : mMenu.items) { in setIcon()
|
D | CatCmdMessage.java | 31 private Menu mMenu; field in CatCmdMessage 58 mMenu = ((SelectItemParams) cmdParams).mMenu; in CatCmdMessage() 109 mMenu = in.readParcelable(null); in CatCmdMessage() 134 dest.writeParcelable(mMenu, 0); in writeToParcel() 176 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(context).setDefaultShowAsAction(MenuItem.SHOW_AS_ACTION_IF_ROOM); in StandaloneActionMode() 50 mMenu.setCallback(this); in StandaloneActionMode() 93 mCallback.onPrepareActionMode(this, mMenu); in invalidate() 109 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/support/v7/appcompat/src/android/support/v7/app/ |
D | ActionBarActivityDelegateICS.java | 39 Menu mMenu; field in ActionBarActivityDelegateICS 138 if (mMenu == null) { in onCreatePanelMenu() 139 mMenu = MenuWrapperFactory.createMenuWrapper(menu); in onCreatePanelMenu() 141 return mActivity.superOnCreatePanelMenu(featureId, mMenu); in onCreatePanelMenu() 149 return mActivity.superOnPreparePanel(featureId, view, mMenu); in onPreparePanel() 222 mMenu = null; in supportInvalidateOptionsMenu()
|
D | ActionBarActivityDelegateBase.java | 54 private MenuBuilder mMenu; field in ActionBarActivityDelegateBase 261 MenuBuilder menu = mMenu; in onCreatePanelView() 397 if (mMenu == null) { in getListMenuView() 411 mMenu.addMenuPresenter(mListMenuPresenter); in getListMenuView() 421 if (menu == mMenu) { in setMenu() 425 if (mMenu != null) { in setMenu() 426 mMenu.removeMenuPresenter(mListMenuPresenter); in setMenu() 428 mMenu = menu; in setMenu()
|