Home
last modified time | relevance | path

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

12

/frameworks/base/core/java/com/android/internal/view/menu/
DMenuBuilder.java87 private ArrayList<MenuItemImpl> mItems;
91 private ArrayList<MenuItemImpl> mVisibleItems;
101 private ArrayList<MenuItemImpl> mActionItems;
105 private ArrayList<MenuItemImpl> mNonActionItems;
149 private ArrayList<MenuItemImpl> mTempShortcutItemList = new ArrayList<MenuItemImpl>();
157 private MenuItemImpl mExpandedItem;
183 public boolean invokeItem(MenuItemImpl item); in invokeItem()
190 mItems = new ArrayList<MenuItemImpl>(); in MenuBuilder()
192 mVisibleItems = new ArrayList<MenuItemImpl>(); in MenuBuilder()
195 mActionItems = new ArrayList<MenuItemImpl>(); in MenuBuilder()
[all …]
DBaseMenuPresenter.java88 ArrayList<MenuItemImpl> visibleItems = mMenu.getVisibleItems(); in updateMenuView()
91 MenuItemImpl item = visibleItems.get(i); in updateMenuView()
94 final MenuItemImpl oldItem = convertView instanceof MenuView.ItemView ? in updateMenuView()
171 public View getItemView(MenuItemImpl item, View convertView, ViewGroup parent) { in getItemView()
188 public abstract void bindItemView(MenuItemImpl item, MenuView.ItemView itemView); in bindItemView()
197 public boolean shouldIncludeItem(int childIndex, MenuItemImpl item) { in shouldIncludeItem()
218 public boolean expandItemActionView(MenuBuilder menu, MenuItemImpl item) { in expandItemActionView()
222 public boolean collapseItemActionView(MenuBuilder menu, MenuItemImpl item) { in collapseItemActionView()
DListMenuPresenter.java173 public boolean expandItemActionView(MenuBuilder menu, MenuItemImpl item) { in expandItemActionView()
177 public boolean collapseItemActionView(MenuBuilder menu, MenuItemImpl item) { in collapseItemActionView()
229 ArrayList<MenuItemImpl> items = mMenu.getNonActionItems(); in getCount()
237 public MenuItemImpl getItem(int position) { in getItem()
238 ArrayList<MenuItemImpl> items = mMenu.getNonActionItems(); in getItem()
263 final MenuItemImpl expandedItem = mMenu.getExpandedItem(); in findExpandedIndex()
265 final ArrayList<MenuItemImpl> items = mMenu.getNonActionItems(); in findExpandedIndex()
268 final MenuItemImpl item = items.get(i); in findExpandedIndex()
DMenuView.java20 import com.android.internal.view.menu.MenuItemImpl;
58 public void initialize(MenuItemImpl itemData, int menuType); in initialize()
64 public MenuItemImpl getItemData(); in getItemData()
DSubMenuBuilder.java32 private MenuItemImpl mItem;
34 public SubMenuBuilder(Context context, MenuBuilder parentMenu, MenuItemImpl item) { in SubMenuBuilder()
116 public boolean expandItemActionView(MenuItemImpl item) { in expandItemActionView()
121 public boolean collapseItemActionView(MenuItemImpl item) { in collapseItemActionView()
DMenuPopupHelper.java340 public boolean expandItemActionView(MenuBuilder menu, MenuItemImpl item) { in expandItemActionView()
344 public boolean collapseItemActionView(MenuBuilder menu, MenuItemImpl item) { in collapseItemActionView()
372 ArrayList<MenuItemImpl> items = mOverflowOnly ? in getCount()
380 public MenuItemImpl getItem(int position) { in getItem()
381 ArrayList<MenuItemImpl> items = mOverflowOnly ? in getItem()
409 final MenuItemImpl expandedItem = mMenu.getExpandedItem(); in findExpandedIndex()
411 final ArrayList<MenuItemImpl> items = mMenu.getNonActionItems(); in findExpandedIndex()
414 final MenuItemImpl item = items.get(i); in findExpandedIndex()
DMenuPresenter.java118 public boolean expandItemActionView(MenuBuilder menu, MenuItemImpl item); in expandItemActionView()
127 public boolean collapseItemActionView(MenuBuilder menu, MenuItemImpl item); in collapseItemActionView()
DIconMenuPresenter.java58 public void bindItemView(MenuItemImpl item, ItemView itemView) { in bindItemView()
70 public boolean shouldIncludeItem(int childIndex, MenuItemImpl item) { in shouldIncludeItem()
71 final ArrayList<MenuItemImpl> itemsToShow = mMenu.getNonActionItems(); in shouldIncludeItem()
106 final ArrayList<MenuItemImpl> itemsToShow = mMenu.getNonActionItems();
DIconMenuItemView.java43 private MenuItemImpl mItemData;
109 public void initialize(MenuItemImpl itemData, int menuType) { in initialize()
118 public void setItemData(MenuItemImpl data) { in setItemData()
210 public MenuItemImpl getItemData() { in getItemData()
DExpandedMenuView.java66 public boolean invokeItem(MenuItemImpl item) { in invokeItem()
71 invokeItem((MenuItemImpl) getAdapter().getItem(position)); in onItemClick()
/frameworks/support/v7/appcompat/src/android/support/v7/internal/view/menu/
DMenuBuilder.java96 private ArrayList<MenuItemImpl> mItems;
102 private ArrayList<MenuItemImpl> mVisibleItems;
113 private ArrayList<MenuItemImpl> mActionItems;
118 private ArrayList<MenuItemImpl> mNonActionItems;
168 private ArrayList<MenuItemImpl> mTempShortcutItemList = new ArrayList<MenuItemImpl>();
176 private MenuItemImpl mExpandedItem;
211 public boolean invokeItem(MenuItemImpl item); in invokeItem()
218 mItems = new ArrayList<MenuItemImpl>(); in MenuBuilder()
220 mVisibleItems = new ArrayList<MenuItemImpl>(); in MenuBuilder()
223 mActionItems = new ArrayList<MenuItemImpl>(); in MenuBuilder()
[all …]
DBaseMenuPresenter.java92 ArrayList<MenuItemImpl> visibleItems = mMenu.getVisibleItems(); in updateMenuView()
95 MenuItemImpl item = visibleItems.get(i); in updateMenuView()
98 final MenuItemImpl oldItem = convertView instanceof MenuView.ItemView ? in updateMenuView()
175 public View getItemView(MenuItemImpl item, View convertView, ViewGroup parent) { in getItemView()
192 public abstract void bindItemView(MenuItemImpl item, MenuView.ItemView itemView); in bindItemView()
201 public boolean shouldIncludeItem(int childIndex, MenuItemImpl item) { in shouldIncludeItem()
222 public boolean expandItemActionView(MenuBuilder menu, MenuItemImpl item) { in expandItemActionView()
226 public boolean collapseItemActionView(MenuBuilder menu, MenuItemImpl item) { in collapseItemActionView()
DListMenuPresenter.java177 public boolean expandItemActionView(MenuBuilder menu, MenuItemImpl item) { in expandItemActionView()
181 public boolean collapseItemActionView(MenuBuilder menu, MenuItemImpl item) { in collapseItemActionView()
233 ArrayList<MenuItemImpl> items = mMenu.getNonActionItems(); in getCount()
241 public MenuItemImpl getItem(int position) { in getItem()
242 ArrayList<MenuItemImpl> items = mMenu.getNonActionItems(); in getItem()
267 final MenuItemImpl expandedItem = mMenu.getExpandedItem(); in findExpandedIndex()
269 final ArrayList<MenuItemImpl> items = mMenu.getNonActionItems(); in findExpandedIndex()
272 final MenuItemImpl item = items.get(i); in findExpandedIndex()
DSubMenuBuilder.java35 private MenuItemImpl mItem;
37 public SubMenuBuilder(Context context, MenuBuilder parentMenu, MenuItemImpl item) { in SubMenuBuilder()
124 public boolean expandItemActionView(MenuItemImpl item) { in expandItemActionView()
129 public boolean collapseItemActionView(MenuItemImpl item) { in collapseItemActionView()
DMenuPopupHelper.java317 public boolean expandItemActionView(MenuBuilder menu, MenuItemImpl item) { in expandItemActionView()
321 public boolean collapseItemActionView(MenuBuilder menu, MenuItemImpl item) { in collapseItemActionView()
349 ArrayList<MenuItemImpl> items = mOverflowOnly ? in getCount()
357 public MenuItemImpl getItem(int position) { in getItem()
358 ArrayList<MenuItemImpl> items = mOverflowOnly ? in getItem()
386 final MenuItemImpl expandedItem = mMenu.getExpandedItem(); in findExpandedIndex()
388 final ArrayList<MenuItemImpl> items = mMenu.getNonActionItems(); in findExpandedIndex()
391 final MenuItemImpl item = items.get(i); in findExpandedIndex()
DMenuView.java55 public void initialize(MenuItemImpl itemData, int menuType); in initialize()
61 public MenuItemImpl getItemData(); in getItemData()
DMenuPresenter.java123 public boolean expandItemActionView(MenuBuilder menu, MenuItemImpl item); in expandItemActionView()
132 public boolean collapseItemActionView(MenuBuilder menu, MenuItemImpl item); in collapseItemActionView()
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/
DOverflowMenuAdapter.java20 import com.android.internal.view.menu.MenuItemImpl;
49 ArrayList<MenuItemImpl> items = mMenu.getNonActionItems(); in getCount()
57 public MenuItemImpl getItem(int position) { in getItem()
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()
91 final MenuItemImpl item = items.get(i); in findExpandedIndex()
/frameworks/support/design/src/android/support/design/internal/
DNavigationMenuPresenter.java32 import android.support.v7.internal.view.menu.MenuItemImpl;
142 public boolean expandItemActionView(MenuBuilder menu, MenuItemImpl item) { in expandItemActionView()
147 public boolean collapseItemActionView(MenuBuilder menu, MenuItemImpl item) { in collapseItemActionView()
192 MenuItemImpl item = mAdapter.getItem(positionInAdapter).getMenuItem(); in onItemClick()
202 public void setCheckedItem(MenuItemImpl item) { in setCheckedItem()
274 private MenuItemImpl mCheckedItem;
386 MenuItemImpl item = mMenu.getVisibleItems().get(i); in prepareMenuItems()
403 MenuItemImpl subMenuItem = (MenuItemImpl) subMenu.getItem(j); in prepareMenuItems()
457 public void setCheckedItem(MenuItemImpl checkedItem) { in setCheckedItem()
481 MenuItemImpl menuItem = item.getMenuItem(); in restoreInstanceState()
[all …]
DNavigationMenu.java21 import android.support.v7.internal.view.menu.MenuItemImpl;
39 final MenuItemImpl item = (MenuItemImpl) addInternal(group, id, categoryOrder, title); in addSubMenu()
DNavigationMenuItemView.java28 import android.support.v7.internal.view.menu.MenuItemImpl;
42 private MenuItemImpl mItemData;
60 public void initialize(MenuItemImpl itemData, int menuType) { in initialize()
88 public MenuItemImpl getItemData() { in getItemData()
DNavigationSubMenu.java21 import android.support.v7.internal.view.menu.MenuItemImpl;
33 public NavigationSubMenu(Context context, NavigationMenu menu, MenuItemImpl item) { in NavigationSubMenu()
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
DActionMenuPresenter.java34 import android.support.v7.internal.view.menu.MenuItemImpl;
192 public View getItemView(final MenuItemImpl item, View convertView, ViewGroup parent) { in getItemView()
208 public void bindItemView(MenuItemImpl item, MenuView.ItemView itemView) { in bindItemView()
222 public boolean shouldIncludeItem(int childIndex, MenuItemImpl item) { in shouldIncludeItem()
237 final ArrayList<MenuItemImpl> actionItems = mMenu.getActionItems(); in updateMenuView()
247 final ArrayList<MenuItemImpl> nonActionItems = mMenu != null ? in updateMenuView()
404 final ArrayList<MenuItemImpl> visibleItems = mMenu.getVisibleItems(); in flagActionItems()
416 MenuItemImpl item = visibleItems.get(i); in flagActionItems()
451 MenuItemImpl item = visibleItems.get(i); in flagActionItems()
517 MenuItemImpl areYouMyGroupie = visibleItems.get(j); in flagActionItems()
[all …]
/frameworks/base/core/java/android/widget/
DActionMenuPresenter.java45 import com.android.internal.view.menu.MenuItemImpl;
236 public View getItemView(final MenuItemImpl item, View convertView, ViewGroup parent) { in getItemView()
252 public void bindItemView(MenuItemImpl item, MenuView.ItemView itemView) { in bindItemView()
266 public boolean shouldIncludeItem(int childIndex, MenuItemImpl item) { in shouldIncludeItem()
446 final ArrayList<MenuItemImpl> actionItems = mMenu.getActionItems(); in updateMenuView()
456 final ArrayList<MenuItemImpl> nonActionItems = mMenu != null ? in updateMenuView()
613 final ArrayList<MenuItemImpl> visibleItems = mMenu.getVisibleItems(); in flagActionItems()
625 MenuItemImpl item = visibleItems.get(i); in flagActionItems()
660 MenuItemImpl item = visibleItems.get(i); in flagActionItems()
720 MenuItemImpl areYouMyGroupie = visibleItems.get(j); in flagActionItems()
[all …]
/frameworks/support/v7/appcompat/src/android/support/v7/internal/view/
DSupportMenuInflater.java31 import android.support.v7.internal.view.menu.MenuItemImpl;
447 final MenuItemImpl impl = item instanceof MenuItemImpl ? (MenuItemImpl) item : null; in setItem()
449 if (item instanceof MenuItemImpl) { in setItem()
450 ((MenuItemImpl) item).setExclusiveCheckable(true); in setItem()

12