/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...] |
/external/chromium_org/chrome/android/java/src/org/chromium/chrome/browser/appmenu/ |
AppMenuPropertiesDelegate.java | 21 * @param mMenu Menu that will be used as the source for the App Menu pop up. 23 void prepareMenu(Menu mMenu);
|
AppMenuHandler.java | 30 private Menu mMenu; 70 if (mMenu == null) { 75 mMenu = tempMenu.getMenu(); 77 mDelegate.prepareMenu(mMenu); 89 mAppMenu = new AppMenu(mMenu, itemRowHeight, itemDividerHeight, this,
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/ |
SubmenuAction.java | 18 private Menu mMenu; 31 if (mMenu != null) { 32 mMenu.dispose(); 33 mMenu = null; 44 mMenu = new Menu(parent); 45 mMenu.addMenuListener(this); 46 return mMenu; 58 MenuItem[] menuItems = mMenu.getItems(); 62 addMenuItems(mMenu); 72 new ActionContributionItem(action).fill(mMenu, -1) [all...] |
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/ |
OverflowMenuAdapter.java | 37 private final MenuBuilder mMenu; 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();
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/editors/ |
SwapButton.java | 38 private Menu mMenu; 87 if (mMenu == null) { 93 if (mCurrentMenuIndex == mMenu.size()) { 97 mListener.swapRight(mMenu.getItem(mCurrentMenuIndex)); 103 mCurrentMenuIndex = mMenu.size() - 1; 106 mListener.swapLeft(mMenu.getItem(mCurrentMenuIndex));
|
/frameworks/base/core/java/com/android/internal/view/menu/ |
MenuItemImpl.java | 65 private MenuBuilder mMenu; 132 mMenu = menu; 152 if (mMenu.dispatchMenuItemSelected(mMenu.getRootMenu(), this)) { 163 mMenu.getContext().startActivity(mIntent); 188 mMenu.onItemsChanged(false); 237 mMenu.onItemsChanged(false); 251 mMenu.onItemsChanged(false); 260 mMenu.onItemsChanged(false); 269 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 | 41 MenuBuilder mMenu; 89 mMenu = menu; 165 mMenu.performItemAction(mAdapter.getItem(position), this, 0); 229 ArrayList<MenuItemImpl> items = mMenu.getNonActionItems(); 238 ArrayList<MenuItemImpl> items = mMenu.getNonActionItems(); 263 final MenuItemImpl expandedItem = mMenu.getExpandedItem(); 265 final ArrayList<MenuItemImpl> items = mMenu.getNonActionItems();
|
/frameworks/support/v7/appcompat/src/android/support/v7/internal/view/menu/ |
MenuItemImpl.java | 70 private MenuBuilder mMenu; 134 mMenu = menu; 153 if (mMenu.dispatchMenuItemSelected(mMenu.getRootMenu(), this)) { 164 mMenu.getContext().startActivity(mIntent); 191 mMenu.onItemsChanged(false); 249 mMenu.onItemsChanged(false); 267 mMenu.onItemsChanged(false); 277 mMenu.onItemsChanged(false); 286 return (mMenu.isQwertyMode() ? mShortcutAlphabeticChar : mShortcutNumericChar) [all...] |
MenuDialogHelper.java | 38 private MenuBuilder mMenu; 44 mMenu = menu; 53 // Many references to mMenu, create local reference 54 final MenuBuilder menu = mMenu; 65 mMenu.addMenuPresenter(mPresenter); 117 mMenu.close(true); 127 return mMenu.performShortcut(keyCode, event, 0); 148 mPresenter.onCloseMenu(mMenu, true); 153 if (allMenusAreClosing || menu == mMenu) { 170 mMenu.performItemAction((MenuItemImpl) mPresenter.getAdapter().getItem(which), 0) [all...] |
BaseMenuPresenter.java | 38 protected MenuBuilder mMenu; 68 mMenu = menu; 75 mMenuView.initialize(mMenu); 90 if (mMenu != null) { 91 mMenu.flagActionItems(); 92 ArrayList<MenuItemImpl> visibleItems = mMenu.getVisibleItems();
|
ExpandedMenuView.java | 44 private MenuBuilder mMenu; 70 mMenu = menu; 83 return mMenu.performItemAction(item, 0);
|
/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); 139 mMenu.stopDispatchingItemsChanged(); 141 mCallback.onPrepareActionMode(this, mMenu); 143 mMenu.startDispatchingItemsChanged(); 148 mMenu.stopDispatchingItemsChanged(); 150 return mCallback.onCreateActionMode(this, mMenu); 152 mMenu.startDispatchingItemsChanged() [all...] |
/frameworks/base/core/java/android/widget/ |
PopupMenu.java | 42 private final MenuBuilder mMenu; 109 mMenu = new MenuBuilder(context); 110 mMenu.setCallback(this); 112 mPopup = new MenuPopupHelper(context, mMenu, anchor, false, popupStyleAttr, popupStyleRes); 167 return mMenu; 186 getMenuInflater().inflate(menuRes, mMenu);
|
/frameworks/base/core/java/com/android/internal/view/ |
StandaloneActionMode.java | 41 private MenuBuilder mMenu; 49 mMenu = new MenuBuilder(view.getContext()).setDefaultShowAsAction( 51 mMenu.setCallback(this); 94 mCallback.onPrepareActionMode(this, mMenu); 110 return mMenu;
|
/development/samples/ApiDemos/src/com/example/android/apis/app/ |
MenuInflateFromXml.java | 72 private Menu mMenu; 126 mMenu = menu; 157 final boolean shouldShowBrowser = !mMenu.findItem(R.id.refresh).isVisible(); 158 mMenu.setGroupVisible(R.id.browser, shouldShowBrowser); 163 final boolean shouldShowEmail = !mMenu.findItem(R.id.reply).isVisible(); 164 mMenu.setGroupVisible(R.id.email, shouldShowEmail);
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/ |
CatCmdMessage.java | 31 private Menu mMenu; 78 mMenu = ((SelectItemParams) cmdParams).mMenu; 132 mMenu = in.readParcelable(null); 165 dest.writeParcelable(mMenu, 0); 210 return mMenu;
|
CommandParams.java | 142 Menu mMenu = null; 147 mMenu = menu; 153 if (icon != null && mMenu != null) { 154 if (mLoadTitleIcon && mMenu.titleIcon == null) { 155 mMenu.titleIcon = icon; 157 for (Item item : mMenu.items) {
|
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
PopupMenu.java | 43 private MenuBuilder mMenu; 108 mMenu = new MenuBuilder(context); 109 mMenu.setCallback(this); 111 mPopup = new MenuPopupHelper(context, mMenu, anchor, false, popupStyleAttr, popupStyleRes); 166 return mMenu; 185 getMenuInflater().inflate(menuRes, mMenu);
|
/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;
|
/frameworks/support/v7/appcompat/src/android/support/v7/internal/view/ |
StandaloneActionMode.java | 45 private MenuBuilder mMenu; 53 mMenu = new MenuBuilder(context).setDefaultShowAsAction(MenuItem.SHOW_AS_ACTION_IF_ROOM); 54 mMenu.setCallback(this); 97 mCallback.onPrepareActionMode(this, mMenu); 113 return mMenu;
|