/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; 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/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/support/v7/appcompat/src/android/support/v7/widget/ |
PopupMenu.java | 39 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);
|
/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 | 42 MenuBuilder mMenu; 90 mMenu = menu; 166 mMenu.performItemAction(mAdapter.getItem(position), 0); 230 ArrayList<MenuItemImpl> items = mMenu.getNonActionItems(); 239 ArrayList<MenuItemImpl> items = mMenu.getNonActionItems(); 264 final MenuItemImpl expandedItem = mMenu.getExpandedItem(); 266 final ArrayList<MenuItemImpl> items = mMenu.getNonActionItems();
|
ActionMenuPresenter.java | 121 if (mMenu != null) { 122 mMenu.onItemsChanged(true); 190 if (mMenu != null) { 191 final ArrayList<MenuItemImpl> actionItems = mMenu.getActionItems(); 201 final ArrayList<MenuItemImpl> nonActionItems = mMenu != null ? 202 mMenu.getNonActionItems() : null; 243 while (topSubMenu.getParentMenu() != mMenu) { 280 if (mReserveOverflow && !isOverflowMenuShowing() && mMenu != null && mMenuView != null && 281 mPostedOpenRunnable == null && !mMenu.getNonActionItems().isEmpty()) { 282 OverflowPopup popup = new OverflowPopup(mContext, mMenu, mOverflowButton, true) [all...] |
/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/support/v7/appcompat/src/android/support/v7/internal/view/menu/ |
MenuItemImpl.java | 70 private MenuBuilder mMenu; 138 mMenu = menu; 158 if (mMenu.dispatchMenuItemSelected(mMenu.getRootMenu(), this)) { 169 mMenu.getContext().startActivity(mIntent); 196 mMenu.onItemsChanged(false); 254 mMenu.onItemsChanged(false); 272 mMenu.onItemsChanged(false); 282 mMenu.onItemsChanged(false); 291 //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...] |
ExpandedMenuView.java | 37 private MenuBuilder mMenu; 49 mMenu = menu; 62 return mMenu.performItemAction(item, 0);
|
BaseMenuPresenter.java | 37 protected MenuBuilder mMenu; 67 mMenu = menu; 73 mMenuView.initialize(mMenu); 90 if (mMenu != null) { 91 mMenu.flagActionItems(); 92 ArrayList<MenuItemImpl> visibleItems = mMenu.getVisibleItems();
|
ListMenuPresenter.java | 45 MenuBuilder mMenu; 93 mMenu = menu; 175 mMenu.performItemAction(mAdapter.getItem(position), 0); 239 ArrayList<MenuItemImpl> items = mMenu.getNonActionItems(); 248 ArrayList<MenuItemImpl> items = mMenu.getNonActionItems(); 273 final MenuItemImpl expandedItem = mMenu.getExpandedItem(); 275 final ArrayList<MenuItemImpl> items = mMenu.getNonActionItems();
|
ActionMenuPresenter.java | 124 if (mMenu != null) { 125 mMenu.onItemsChanged(true); 197 if (mMenu != null) { 198 final ArrayList<MenuItemImpl> actionItems = mMenu.getActionItems(); 208 final ArrayList<MenuItemImpl> nonActionItems = mMenu != null ? 209 mMenu.getNonActionItems() : null; 254 while (topSubMenu.getParentMenu() != mMenu) { 295 if (mReserveOverflow && !isOverflowMenuShowing() && mMenu != null && mMenuView != null && 297 OverflowPopup popup = new OverflowPopup(mContext, mMenu, mOverflowButton, true); 370 final ArrayList<MenuItemImpl> visibleItems = mMenu.getVisibleItems() [all...] |
/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); 93 mCallback.onPrepareActionMode(this, mMenu); 109 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; 58 mMenu = ((SelectItemParams) cmdParams).mMenu; 109 mMenu = in.readParcelable(null); 134 dest.writeParcelable(mMenu, 0); 176 return mMenu;
|
CommandParams.java | 134 Menu mMenu = null; 139 mMenu = menu; 145 if (icon != null && mMenu != null) { 146 if (mLoadTitleIcon && mMenu.titleIcon == null) { 147 mMenu.titleIcon = icon; 149 for (Item item : mMenu.items) {
|
/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;
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/lint/ |
RunLintAction.java | 63 private Menu mMenu; 97 if (mMenu != null) { 98 mMenu.dispose(); 110 mMenu = new Menu(parent); 157 return mMenu; 162 item.fill(mMenu, -1); 166 new Separator().fill(mMenu, -1);
|