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

12

/frameworks/base/core/tests/coretests/src/android/view/
H A DMenuTest.java29 private MenuBuilder mMenu; field in class:MenuTest
33 mMenu = new MenuBuilder(super.getContext());
39 final MenuItem item = mMenu.add(0, id, 0, "test");
42 Assert.assertEquals(item, mMenu.findItem(id));
43 Assert.assertEquals(0, mMenu.findItemIndex(id));
52 mMenu.add(0, 0, item1Index - 1, "ignore");
53 final MenuItem item = mMenu.add(groupId, 0, item1Index, "test");
54 mMenu.add(0, 0, item2Index - 1, "ignore");
55 final MenuItem item2 = mMenu.add(groupId, 0, item2Index, "test2");
59 Assert.assertEquals(item1Index, mMenu
[all...]
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/
H A DOverflowMenuAdapter.java37 private final MenuBuilder mMenu; field in class:OverflowMenuAdapter
42 mMenu = menu;
49 ArrayList<MenuItemImpl> items = mMenu.getNonActionItems();
58 ArrayList<MenuItemImpl> items = mMenu.getNonActionItems();
86 final MenuItemImpl expandedItem = mMenu.getExpandedItem();
88 final ArrayList<MenuItemImpl> items = mMenu.getNonActionItems();
/frameworks/base/core/java/com/android/internal/view/menu/
H A DMenuItemImpl.java79 private MenuBuilder mMenu; field in class:MenuItemImpl
128 mMenu = menu;
148 if (mMenu.dispatchMenuItemSelected(mMenu, this)) {
159 mMenu.getContext().startActivity(mIntent);
184 mMenu.onItemsChanged(false);
240 mMenu.onItemsChanged(false);
255 mMenu.onItemsChanged(false);
276 mMenu.onItemsChanged(false);
290 mMenu
[all...]
H A DMenuDialogHelper.java34 private MenuBuilder mMenu; field in class:MenuDialogHelper
40 mMenu = menu;
49 // Many references to mMenu, create local reference
50 final MenuBuilder menu = mMenu;
59 mMenu.addMenuPresenter(mPresenter);
111 mMenu.close(true /* closeAllMenus */);
121 return mMenu.performShortcut(keyCode, event, 0);
144 mPresenter.onCloseMenu(mMenu, true);
149 if (allMenusAreClosing || menu == mMenu) {
166 mMenu
[all...]
H A DExpandedMenuView.java35 private MenuBuilder mMenu; field in class:ExpandedMenuView
55 mMenu = menu;
67 return mMenu.performItemAction(item, 0);
H A DBaseMenuPresenter.java36 protected MenuBuilder mMenu; field in class:BaseMenuPresenter
66 mMenu = menu;
73 mMenuView.initialize(mMenu);
88 if (mMenu != null) {
89 mMenu.flagActionItems();
90 ArrayList<MenuItemImpl> visibleItems = mMenu.getVisibleItems();
H A DListMenuPresenter.java43 MenuBuilder mMenu; field in class:ListMenuPresenter
91 mMenu = menu;
167 mMenu.performItemAction(mAdapter.getItem(position), this, 0);
231 ArrayList<MenuItemImpl> items = mMenu.getNonActionItems();
240 ArrayList<MenuItemImpl> items = mMenu.getNonActionItems();
265 final MenuItemImpl expandedItem = mMenu.getExpandedItem();
267 final ArrayList<MenuItemImpl> items = mMenu.getNonActionItems();
/frameworks/support/v7/appcompat/src/main/java/androidx/appcompat/view/menu/
H A DMenuItemImpl.java83 MenuBuilder mMenu; field in class:MenuItemImpl
139 mMenu = menu;
158 if (mMenu.dispatchMenuItemSelected(mMenu, this)) {
169 mMenu.getContext().startActivity(mIntent);
196 mMenu.onItemsChanged(false);
254 mMenu.onItemsChanged(false);
269 mMenu.onItemsChanged(false);
296 mMenu.onItemsChanged(false);
310 mMenu
[all...]
H A DMenuDialogHelper.java37 private MenuBuilder mMenu; field in class:MenuDialogHelper
43 mMenu = menu;
52 // Many references to mMenu, create local reference
53 final MenuBuilder menu = mMenu;
62 mMenu.addMenuPresenter(mPresenter);
115 mMenu.close(true);
125 return mMenu.performShortcut(keyCode, event, 0);
146 mPresenter.onCloseMenu(mMenu, true);
151 if (allMenusAreClosing || menu == mMenu) {
169 mMenu
[all...]
H A DBaseMenuPresenter.java42 protected MenuBuilder mMenu; field in class:BaseMenuPresenter
72 mMenu = menu;
79 mMenuView.initialize(mMenu);
95 if (mMenu != null) {
96 mMenu.flagActionItems();
97 ArrayList<MenuItemImpl> visibleItems = mMenu.getVisibleItems();
H A DExpandedMenuView.java47 private MenuBuilder mMenu; field in class:ExpandedMenuView
73 mMenu = menu;
86 return mMenu.performItemAction(item, 0);
H A DListMenuPresenter.java49 MenuBuilder mMenu; field in class:ListMenuPresenter
97 mMenu = menu;
173 mMenu.performItemAction(mAdapter.getItem(position), this, 0);
240 ArrayList<MenuItemImpl> items = mMenu.getNonActionItems();
250 ArrayList<MenuItemImpl> items = mMenu.getNonActionItems();
277 final MenuItemImpl expandedItem = mMenu.getExpandedItem();
279 final ArrayList<MenuItemImpl> items = mMenu.getNonActionItems();
H A DStandardMenuPopup.java50 private final MenuBuilder mMenu; field in class:StandardMenuPopup
117 mMenu = menu;
184 if (mShowTitle && mMenu.getHeaderTitle() != null) {
190 titleView.setText(mMenu.getHeaderTitle());
231 mMenu.close();
272 mMenu.close(false /* closeAllMenus */);
299 if (menu != mMenu) return;
/frameworks/support/v7/appcompat/src/androidTest/java/androidx/appcompat/view/
H A DSupportMenuInflaterTest.java45 private Menu mMenu; field in class:SupportMenuInflaterTest
55 mMenu = new PopupMenu(mActivity, null).getMenu();
60 mMenuInflater.inflate(R.menu.shortcut, mMenu);
63 mMenuItem = (SupportMenuItem) mMenu.findItem(R.id.no_modifiers);
69 mMenuItem = (SupportMenuItem) mMenu.findItem(R.id.default_modifiers);
75 mMenuItem = (SupportMenuItem) mMenu.findItem(R.id.single_modifier);
81 mMenuItem = (SupportMenuItem) mMenu.findItem(R.id.multiple_modifiers);
/frameworks/base/core/java/android/widget/
H A DPopupMenu.java43 private final MenuBuilder mMenu; field in class:PopupMenu
100 mMenu = new MenuBuilder(context);
101 mMenu.setCallback(new MenuBuilder.Callback() {
115 mPopup = new MenuPopupHelper(context, mMenu, anchor, false, popupStyleAttr, popupStyleRes);
199 return mMenu;
218 getMenuInflater().inflate(menuRes, mMenu);
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/
H A DCommandParams.java163 Menu mMenu = null; field in class:SelectItemParams
168 mMenu = menu;
174 if (icon != null && mMenu != null) {
175 if (mLoadTitleIcon && mMenu.titleIcon == null) {
176 mMenu.titleIcon = icon;
178 for (Item item : mMenu.items) {
H A DCatCmdMessage.java31 private Menu mMenu; field in class:CatCmdMessage
79 mMenu = ((SelectItemParams) cmdParams).mMenu;
133 mMenu = in.readParcelable(null);
167 dest.writeParcelable(mMenu, 0);
213 return mMenu;
/frameworks/support/v7/appcompat/src/main/java/androidx/appcompat/widget/
H A DPopupMenu.java51 private final MenuBuilder mMenu; field in class:PopupMenu
108 mMenu = new MenuBuilder(context);
109 mMenu.setCallback(new MenuBuilder.Callback() {
123 mPopup = new MenuPopupHelper(context, mMenu, anchor, false, popupStyleAttr, popupStyleRes);
209 return mMenu;
229 getMenuInflater().inflate(menuRes, mMenu);
H A DActionMenuPresenter.java140 if (mMenu != null) {
141 mMenu.onItemsChanged(true);
234 if (mMenu != null) {
235 final ArrayList<MenuItemImpl> actionItems = mMenu.getActionItems();
245 final ArrayList<MenuItemImpl> nonActionItems = mMenu != null ?
246 mMenu.getNonActionItems() : null;
288 while (topSubMenu.getParentMenu() != mMenu) {
340 if (mReserveOverflow && !isOverflowMenuShowing() && mMenu != null && mMenuView != null &&
341 mPostedOpenRunnable == null && !mMenu.getNonActionItems().isEmpty()) {
342 OverflowPopup popup = new OverflowPopup(mContext, mMenu, mOverflowButto
[all...]
/frameworks/base/core/tests/coretests/src/android/view/menu/
H A DMenuScenario.java32 private Menu mMenu; field in class:MenuScenario
61 mMenu = menu;
90 mMenu = menu;
116 return mMenu;
/frameworks/support/v7/appcompat/src/androidTest/java/androidx/appcompat/app/
H A DAppCompatMenuItemIconTintingTest.java56 private Menu mMenu; field in class:AppCompatMenuItemIconTintingTest
66 mMenu = mActivity.getToolbarMenu();
72 final MenuItem firstItem = mMenu.getItem(0);
73 final MenuItem secondItem = mMenu.getItem(1);
74 final MenuItem thirdItem = mMenu.getItem(2);
122 final MenuItem sixthItem = mMenu.getItem(5);
148 final MenuItem firstItem = mMenu.getItem(0);
180 final MenuItem secondItem = mMenu.getItem(1);
217 final MenuItem secondItem = mMenu.getItem(1);
/frameworks/base/core/java/com/android/internal/view/
H A DStandaloneActionMode.java41 private MenuBuilder mMenu; field in class:StandaloneActionMode
49 mMenu = new MenuBuilder(view.getContext()).setDefaultShowAsAction(
51 mMenu.setCallback(this);
94 mCallback.onPrepareActionMode(this, mMenu);
110 return mMenu;
H A DFloatingActionMode.java49 @NonNull private final MenuBuilder mMenu; field in class:FloatingActionMode
89 mMenu = new MenuBuilder(context).setDefaultShowAsAction(
92 mMenu.setCallback(new MenuBuilder.Callback() {
122 .setMenu(mMenu)
123 .setOnMenuItemClickListener(item -> mMenu.performItemAction(item, 0));
145 mCallback.onPrepareActionMode(this, mMenu);
277 return mMenu;
/frameworks/support/v7/appcompat/src/androidTest/java/androidx/appcompat/testutils/
H A DBaseTestActivity.java34 private Menu mMenu; field in class:BaseTestActivity
134 mMenu = menu;
154 mMenu = null;
160 if (mMenu != null) {
182 return mMenu;
/frameworks/support/v7/appcompat/src/main/java/androidx/appcompat/view/
H A DStandaloneActionMode.java47 private MenuBuilder mMenu; field in class:StandaloneActionMode
55 mMenu = new MenuBuilder(view.getContext()).setDefaultShowAsAction(
57 mMenu.setCallback(this);
100 mCallback.onPrepareActionMode(this, mMenu);
116 return mMenu;

Completed in 900 milliseconds

12