Home
last modified time | relevance | path

Searched refs:mMaxItems (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/core/java/com/android/internal/view/menu/
DIconMenuPresenter.java38 private int mMaxItems = -1; field in IconMenuPresenter
56 mMaxItems = -1; in initForMenu()
74 boolean fits = (itemsToShow.size() == mMaxItems && childIndex < mMaxItems) || in shouldIncludeItem()
75 childIndex < mMaxItems - 1; in shouldIncludeItem()
107 if (mMaxItems < 0) mMaxItems = menuView.getMaxItems();
109 final boolean needsMore = itemsToShow.size() > mMaxItems;
122 menuView.setNumActualItemsShown(needsMore ? mMaxItems - 1 : itemsToShow.size());
DIconMenuView.java64 private int mMaxItems; field in IconMenuView
139 mMaxItems = a.getInt(com.android.internal.R.styleable.IconMenuView_maxItems, 6); in IconMenuView()
177 return mMaxItems; in getMaxItems()
/frameworks/base/core/java/android/widget/
DActionMenuPresenter.java74 private int mMaxItems; field in ActionMenuPresenter
149 mMaxItems = abp.getMaxActionButtons(); in initForMenu()
176 mMaxItems = ActionBarPolicy.get(mContext).getMaxActionButtons(); in onConfigurationChanged()
195 mMaxItems = itemCount; in setItemLimit()
640 int maxActions = mMaxItems; in flagActionItems()