Home
last modified time | relevance | path

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

/frameworks/base/core/tests/coretests/src/android/view/
DMenuTest.java30 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/
DMenuItemImpl.java82 private MenuBuilder mMenu; field in MenuItemImpl
131 mMenu = menu; in MenuItemImpl()
152 if (mMenu.dispatchMenuItemSelected(mMenu, this)) { in invoke()
163 mMenu.getContext().startActivity(mIntent); in invoke()
188 mMenu.onItemsChanged(false); in setEnabled()
244 mMenu.onItemsChanged(false); in setAlphabeticShortcut()
259 mMenu.onItemsChanged(false); in setAlphabeticShortcut()
280 mMenu.onItemsChanged(false); in setNumericShortcut()
294 mMenu.onItemsChanged(false); in setNumericShortcut()
304 mMenu.onItemsChanged(false); in setShortcut()
[all …]
DMenuDialogHelper.java35 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()
DBaseMenuPresenter.java36 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()
DListMenuPresenter.java43 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()
DExpandedMenuView.java35 private MenuBuilder mMenu; field in ExpandedMenuView
55 mMenu = menu; in initialize()
67 return mMenu.performItemAction(item, 0); in invokeItem()
DStandardMenuPopup.java55 private final MenuBuilder mMenu; field in StandardMenuPopup
127 mMenu = menu; in StandardMenuPopup()
197 if (mShowTitle && mMenu.getHeaderTitle() != null) { in tryShow()
206 titleView.setText(mMenu.getHeaderTitle()); in tryShow()
244 mMenu.close(); in onDismiss()
285 mMenu.close(false /* closeAllMenus */); in onSubMenuSelected()
312 if (menu != mMenu) return; in onCloseMenu()
DIconMenuPresenter.java73 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);
DMenuPopupHelper.java43 private final MenuBuilder mMenu; field in MenuPopupHelper
79 mMenu = menu; in MenuPopupHelper()
239 popup = new StandardMenuPopup(mContext, mMenu, mAnchorView, mPopupStyleAttr, in createPopup()
244 popup.addMenu(mMenu); in createPopup()
DIconMenuView.java56 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/
DOverflowMenuAdapter.java37 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/
DPopupMenu.java46 private final MenuBuilder mMenu; field in PopupMenu
104 mMenu = new MenuBuilder(context); in PopupMenu()
105 mMenu.setCallback(new MenuBuilder.Callback() { in PopupMenu()
119 mPopup = new MenuPopupHelper(context, mMenu, anchor, false, popupStyleAttr, popupStyleRes); in PopupMenu()
203 return mMenu; in getMenu()
222 getMenuInflater().inflate(menuRes, mMenu); in inflate()
DActionMenuPresenter.java179 if (mMenu != null) { in onConfigurationChanged()
180 mMenu.onItemsChanged(true); in onConfigurationChanged()
446 if (mMenu != null) { in updateMenuView()
447 final ArrayList<MenuItemImpl> actionItems = mMenu.getActionItems(); in updateMenuView()
457 final ArrayList<MenuItemImpl> nonActionItems = mMenu != null ? in updateMenuView()
458 mMenu.getNonActionItems() : null; in updateMenuView()
499 while (topSubMenu.getParentMenu() != mMenu) { in onSubMenuSelected()
551 if (mReserveOverflow && !isOverflowMenuShowing() && mMenu != null && mMenuView != null && in showOverflowMenu()
552 mPostedOpenRunnable == null && !mMenu.getNonActionItems().isEmpty()) { in showOverflowMenu()
553 OverflowPopup popup = new OverflowPopup(mContext, mMenu, mOverflowButton, true); in showOverflowMenu()
[all …]
DActionMenuView.java55 private MenuBuilder mMenu; field in ActionMenuView
155 if (mFormatItems && mMenu != null && widthSize != mFormatItemsWidth) { in onMeasure()
157 mMenu.onItemsChanged(true); in onMeasure()
620 return mMenu.performItemAction(item, 0); in invokeItem()
630 mMenu = menu; in initialize()
642 if (mMenu == null) { in getMenu()
644 mMenu = new MenuBuilder(context); in getMenu()
645 mMenu.setCallback(new MenuBuilderCallback()); in getMenu()
650 mMenu.addMenuPresenter(mPresenter, mPopupContext); in getMenu()
654 return mMenu; in getMenu()
[all …]
DToolbar.java2402 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/base/core/java/com/android/internal/view/
DStandaloneActionMode.java41 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()
DFloatingActionMode.java48 @NonNull private final MenuBuilder mMenu; field in FloatingActionMode
88 mMenu = new MenuBuilder(context).setDefaultShowAsAction( in FloatingActionMode()
91 mMenu.setCallback(new MenuBuilder.Callback() { in FloatingActionMode()
121 .setMenu(mMenu) in setFloatingToolbar()
122 .setOnMenuItemClickListener(item -> mMenu.performItemAction(item, 0)); in setFloatingToolbar()
144 mCallback.onPrepareActionMode(this, mMenu); in invalidate()
286 return mMenu; in getMenu()
/frameworks/base/core/tests/coretests/src/android/view/menu/
DMenuScenario.java32 private Menu mMenu; field in MenuScenario
61 mMenu = menu; in onCreateOptionsMenu()
90 mMenu = menu; in onPrepareOptionsMenu()
116 return mMenu; in getMenu()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/
DCommandParams.java171 Menu mMenu = null; field in SelectItemParams
177 mMenu = menu; in SelectItemParams()
183 if (icon != null && mMenu != null) { in setIcon()
184 if (mLoadTitleIcon && mMenu.titleIcon == null) { in setIcon()
185 mMenu.titleIcon = icon; in setIcon()
187 for (Item item : mMenu.items) { in setIcon()
DCatCmdMessage.java36 private Menu mMenu; field in CatCmdMessage
98 mMenu = ((SelectItemParams) cmdParams).mMenu; in CatCmdMessage()
165 mMenu = in.readParcelable(Menu.class.getClassLoader()); in CatCmdMessage()
204 dest.writeParcelable(mMenu, 0); in writeToParcel()
257 return mMenu; in getMenu()
/frameworks/base/tests/TouchLatency/app/src/main/java/com/prefabulated/touchlatency/
DTouchLatencyActivity.java40 private Menu mMenu; field in TouchLatencyActivity
101 MenuItem menuItem = mMenu.findItem(R.id.display_mode); in updateOptionsMenu()
105 updateRefreshRateMenu(mMenu.findItem(R.id.frame_rate)); in updateOptionsMenu()
111 mMenu = menu; in onCreateOptionsMenu()
113 getMenuInflater().inflate(R.menu.menu_touch_latency, mMenu); in onCreateOptionsMenu()
/frameworks/base/core/java/com/android/internal/widget/floatingtoolbar/
DFloatingToolbar.java54 private Menu mMenu; field in FloatingToolbar
122 mMenu = Objects.requireNonNull(menu); in setMenu()
225 List<MenuItem> menuItems = getVisibleAndEnabledMenuItems(mMenu); in doShow()
/frameworks/base/core/java/com/android/internal/app/
DWindowDecorActionBar.java980 private final MenuBuilder mMenu; field in WindowDecorActionBar.ActionModeImpl
989 mMenu = new MenuBuilder(context) in ActionModeImpl()
991 mMenu.setCallback(this); in ActionModeImpl()
1001 return mMenu; in getMenu()
1044 mMenu.stopDispatchingItemsChanged(); in invalidate()
1046 mCallback.onPrepareActionMode(this, mMenu); in invalidate()
1048 mMenu.startDispatchingItemsChanged(); in invalidate()
1053 mMenu.stopDispatchingItemsChanged(); in dispatchOnCreate()
1055 return mCallback.onCreateActionMode(this, mMenu); in dispatchOnCreate()
1057 mMenu.startDispatchingItemsChanged(); in dispatchOnCreate()
/frameworks/base/core/java/com/android/internal/widget/
DActionBarView.java1594 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()
/frameworks/base/boot/hiddenapi/
Dhiddenapi-max-target-o.txt65424 Landroid/widget/ActionMenuView;->mMenu:Lcom/android/internal/view/menu/MenuBuilder;
67897 Landroid/widget/PopupMenu;->mMenu:Lcom/android/internal/view/menu/MenuBuilder;
70113 Landroid/widget/Toolbar$ExpandedActionViewMenuPresenter;->mMenu:Lcom/android/internal/view/menu/Men…
85344 Lcom/android/internal/view/menu/BaseMenuPresenter;->mMenu:Lcom/android/internal/view/menu/MenuBuild…
85480 Lcom/android/internal/view/menu/MenuItemImpl;->mMenu:Lcom/android/internal/view/menu/MenuBuilder;
85535 Lcom/android/internal/view/menu/MenuPopupHelper;->mMenu:Lcom/android/internal/view/menu/MenuBuilder;