/frameworks/base/core/tests/coretests/src/android/view/ |
MenuTest.java | 36 private MenuBuilder mMenu; 40 mMenu = new MenuBuilder(super.getContext()); 46 final MenuItem item = mMenu.add(0, id, 0, "test"); 49 Assert.assertEquals(item, mMenu.findItem(id)); 50 Assert.assertEquals(0, mMenu.findItemIndex(id)); 59 mMenu.add(0, 0, item1Index - 1, "ignore"); 60 final MenuItem item = mMenu.add(groupId, 0, item1Index, "test"); 61 mMenu.add(0, 0, item2Index - 1, "ignore"); 62 final MenuItem item2 = mMenu.add(groupId, 0, item2Index, "test2"); 66 Assert.assertEquals(item1Index, mMenu.findGroupIndex(groupId)) [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/ |
SubmenuAction.java | 18 private Menu mMenu; 30 if (mMenu != null) { 31 mMenu.dispose(); 32 mMenu = null; 41 mMenu = new Menu(parent); 42 mMenu.addMenuListener(this); 43 return mMenu; 53 MenuItem[] menuItems = mMenu.getItems(); 57 addMenuItems(mMenu); 67 new ActionContributionItem(action).fill(mMenu, -1) [all...] |
/frameworks/base/core/java/android/widget/ |
PopupMenu.java | 38 private MenuBuilder mMenu; 66 mMenu = new MenuBuilder(context); 67 mMenu.setCallback(this); 69 mPopup = new MenuPopupHelper(context, mMenu, anchor); 81 return mMenu; 100 getMenuInflater().inflate(menuRes, mMenu);
|
/frameworks/base/core/java/android/inputmethodservice/ |
ExtractEditLayout.java | 90 new MenuPopupHelper(getContext(), mActionMode.mMenu, clicked).show(); 98 MenuBuilder mMenu; 101 mMenu = new MenuBuilder(getContext()); 102 mMenu.setCallback(this); 133 mMenu.stopDispatchingItemsChanged(); 135 mCallback.onPrepareActionMode(this, mMenu); 137 mMenu.startDispatchingItemsChanged(); 142 mMenu.stopDispatchingItemsChanged(); 144 return mCallback.onCreateActionMode(this, mMenu); 146 mMenu.startDispatchingItemsChanged() [all...] |
/frameworks/base/core/java/com/android/internal/view/menu/ |
MenuItemImpl.java | 65 private MenuBuilder mMenu; 129 mMenu = menu; 149 if (mMenu.dispatchMenuItemSelected(mMenu.getRootMenu(), this)) { 160 mMenu.getContext().startActivity(mIntent); 185 mMenu.onItemsChanged(false); 234 mMenu.onItemsChanged(false); 248 mMenu.onItemsChanged(false); 257 mMenu.onItemsChanged(false); 266 return (mMenu.isQwertyMode() ? mShortcutAlphabeticChar : mShortcutNumericChar) [all...] |
MenuDialogHelper.java | 37 private MenuBuilder mMenu; 43 mMenu = menu; 52 // Many references to mMenu, create local reference 53 final MenuBuilder menu = mMenu; 62 mMenu.addMenuPresenter(mPresenter); 114 mMenu.close(true); 124 return mMenu.performShortcut(keyCode, event, 0); 145 mPresenter.onCloseMenu(mMenu, true); 150 if (allMenusAreClosing || menu == mMenu) { 167 mMenu.performItemAction((MenuItemImpl) mPresenter.getAdapter().getItem(which), 0) [all...] |
ExpandedMenuView.java | 35 private MenuBuilder mMenu; 55 mMenu = menu; 67 return mMenu.performItemAction(item, 0);
|
BaseMenuPresenter.java | 34 protected MenuBuilder mMenu; 64 mMenu = menu; 71 mMenuView.initialize(mMenu); 86 if (mMenu != null) { 87 mMenu.flagActionItems(); 88 ArrayList<MenuItemImpl> visibleItems = mMenu.getVisibleItems();
|
ListMenuPresenter.java | 42 MenuBuilder mMenu; 90 mMenu = menu; 163 mMenu.performItemAction(mAdapter.getItem(position), 0); 228 ArrayList<MenuItemImpl> items = mMenu.getNonActionItems(); 237 ArrayList<MenuItemImpl> items = mMenu.getNonActionItems(); 262 final MenuItemImpl expandedItem = mMenu.getExpandedItem(); 264 final ArrayList<MenuItemImpl> items = mMenu.getNonActionItems();
|
ActionMenuPresenter.java | 119 if (mMenu != null) { 120 mMenu.onItemsChanged(true); 189 if (mMenu != null) { 190 final ArrayList<MenuItemImpl> actionItems = mMenu.getActionItems(); 200 final ArrayList<MenuItemImpl> nonActionItems = mMenu != null ? 201 mMenu.getNonActionItems() : null; 242 while (topSubMenu.getParentMenu() != mMenu) { 279 if (mReserveOverflow && !isOverflowMenuShowing() && mMenu != null && mMenuView != null && 281 OverflowPopup popup = new OverflowPopup(mContext, mMenu, mOverflowButton, true); 353 final ArrayList<MenuItemImpl> visibleItems = mMenu.getVisibleItems() [all...] |
MenuPopupHelper.java | 53 private MenuBuilder mMenu; 79 mMenu = menu; 110 mAdapter = new MenuAdapter(mMenu); 140 mMenu.close(); 269 if (menu != mMenu) return; 352 final MenuItemImpl expandedItem = mMenu.getExpandedItem(); 354 final ArrayList<MenuItemImpl> items = mMenu.getNonActionItems();
|
IconMenuPresenter.java | 71 final ArrayList<MenuItemImpl> itemsToShow = mMenu.getNonActionItems(); 106 final ArrayList<MenuItemImpl> itemsToShow = mMenu.getNonActionItems(); 149 if (subMenuId > 0 && mMenu != null) { 150 MenuItem item = mMenu.findItem(subMenuId);
|
ActionMenuView.java | 37 private MenuBuilder mMenu; 91 if (mFormatItems && mMenu != null && widthSize != mFormatItemsWidth) { 93 mMenu.onItemsChanged(true); 490 return mMenu.performItemAction(item, 0); 498 mMenu = menu;
|
IconMenuView.java | 54 private MenuBuilder mMenu; 307 mMenu.changeMenuMode(); 316 mMenu = menu; 468 return mMenu.performItemAction(item, 0);
|
/sdk/ddms/app/src/com/android/ddms/ |
DropdownSelectionListener.java | 35 private Menu mMenu; 43 mMenu = new Menu(item.getParent().getShell(), SWT.POP_UP); 50 MenuItem item = new MenuItem(mMenu, SWT.NONE); 72 mMenu.setLocation(pt.x, pt.y + rect.height); 73 mMenu.setVisible(true);
|
/frameworks/base/core/java/com/android/internal/view/ |
StandaloneActionMode.java | 41 private MenuBuilder mMenu; 49 mMenu = new MenuBuilder(context).setDefaultShowAsAction(MenuItem.SHOW_AS_ACTION_IF_ROOM); 50 mMenu.setCallback(this); 82 mCallback.onPrepareActionMode(this, mMenu); 98 return mMenu;
|
/development/samples/ApiDemos/src/com/example/android/apis/app/ |
MenuInflateFromXml.java | 70 private Menu mMenu; 115 mMenu = menu; 149 final boolean shouldShowBrowser = !mMenu.findItem(R.id.refresh).isVisible(); 150 mMenu.setGroupVisible(R.id.browser, shouldShowBrowser); 155 final boolean shouldShowEmail = !mMenu.findItem(R.id.reply).isVisible(); 156 mMenu.setGroupVisible(R.id.email, shouldShowEmail);
|
/development/samples/ActionBarCompat/src/com/example/android/actionbarcompat/ |
SimpleMenuItem.java | 35 private SimpleMenu mMenu; 46 mMenu = menu; 66 return setTitle(mMenu.getContext().getString(titleRes)); 100 return mMenu.getResources().getDrawable(mIconResId);
|
/frameworks/base/core/tests/coretests/src/android/view/menu/ |
MenuScenario.java | 32 private Menu mMenu; 61 mMenu = menu; 90 mMenu = menu; 116 return mMenu;
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
CustomMenu.java | 40 private Menu mMenu; 48 mMenu = mPopupMenu.getMenu(); 49 mPopupMenu.getMenuInflater().inflate(menuId, mMenu); 59 return mMenu.findItem(id);
|
ActionModeHandler.java | 64 private Menu mMenu; 160 mMenu = menu; 206 MenuExecutor.updateMenuOperation(mMenu, supportedOperation);
|
/frameworks/base/telephony/java/com/android/internal/telephony/cat/ |
CatCmdMessage.java | 31 private Menu mMenu; 58 mMenu = ((SelectItemParams) cmdParams).menu; 101 mMenu = in.readParcelable(null); 123 dest.writeParcelable(mMenu, 0); 160 return mMenu;
|
/frameworks/base/core/java/com/android/internal/app/ |
ActionBarImpl.java | 644 private MenuBuilder mMenu; 649 mMenu = new MenuBuilder(getThemedContext()) 651 mMenu.setCallback(this); 661 return mMenu; 697 mMenu.stopDispatchingItemsChanged(); 699 mCallback.onPrepareActionMode(this, mMenu); 701 mMenu.startDispatchingItemsChanged(); 706 mMenu.stopDispatchingItemsChanged(); 708 return mCallback.onCreateActionMode(this, mMenu); 710 mMenu.startDispatchingItemsChanged() [all...] |
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/ |
UserDictionaryToolsList.java | 98 private Menu mMenu; 251 mMenu = menu; 410 onCreateOptionsMenu(mMenu); 439 onCreateOptionsMenu(mMenu); 496 onCreateOptionsMenu(mMenu); 567 onCreateOptionsMenu(mMenu);
|
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
PhotoPage.java | 93 private Menu mMenu; 303 if (mMenu == null) return; 304 MenuItem item = mMenu.findItem(R.id.action_slideshow); 314 MenuExecutor.updateMenuOperation(mMenu, supportedOperations); 420 mMenu = menu;
|