Home
last modified time | relevance | path

Searched refs:itemCount (Results 1 – 25 of 29) sorted by relevance

12

/frameworks/base/core/java/com/android/internal/view/menu/
DActionMenu.java130 final int itemCount = items.size(); in findItemIndex() local
131 for (int i = 0; i < itemCount; i++) { in findItemIndex()
150 final int itemCount = items.size(); in hasVisibleItems() local
152 for (int i = 0; i < itemCount; i++) { in hasVisibleItems()
165 final int itemCount = items.size(); in findItemWithShortcut() local
167 for (int i = 0; i < itemCount; i++) { in findItemWithShortcut()
202 int itemCount = items.size(); in removeGroup() local
204 while (i < itemCount) { in removeGroup()
207 itemCount--; in removeGroup()
221 final int itemCount = items.size(); in setGroupCheckable() local
[all …]
DBaseMenuPresenter.java89 final int itemCount = visibleItems.size(); in updateMenuView() local
90 for (int i = 0; i < itemCount; i++) { in updateMenuView()
DMenuBuilder.java327 final int itemCount = size(); in saveActionViewStates() local
328 for (int i = 0; i < itemCount; i++) { in saveActionViewStates()
359 final int itemCount = size(); in restoreActionViewStates() local
360 for (int i = 0; i < itemCount; i++) { in restoreActionViewStates()
DActionMenuPresenter.java143 public void setItemLimit(int itemCount) { in setItemLimit() argument
144 mMaxItems = itemCount; in setItemLimit()
/frameworks/support/v4/java/android/support/v4/widget/
DListViewAutoScrollHelper.java61 final int itemCount = target.getCount(); in canTargetScrollVertically() local
68 if (lastPosition >= itemCount) { in canTargetScrollVertically()
/frameworks/base/core/tests/coretests/src/android/widget/listview/
DListScrollListener.java65 public void onScroll(AbsListView view, int firstCell, int cellCount, int itemCount) { in onScroll() argument
67 mText.setText("Showing " + firstCell + "-" + last + "/" + itemCount); in onScroll()
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/binding/
DFakeAdapter.java56 final int itemCount = binding.getItemCount(); in FakeAdapter() local
60 int[] typeCount = new int[itemCount]; in FakeAdapter()
DFakeExpandableAdapter.java55 private void createItems(Iterable<DataBindingItem> iterable, final int itemCount, in createItems() argument
59 int[] typeCount = new int[itemCount]; in createItems()
/frameworks/support/v4/java/android/support/v4/view/accessibility/
DAccessibilityRecordCompat.java51 public void setItemCount(Object record, int itemCount); in setItemCount() argument
219 public void setItemCount(Object record, int itemCount) { in setItemCount() argument
431 public void setItemCount(Object record, int itemCount) { in setItemCount() argument
432 AccessibilityRecordCompatIcs.setItemCount(record, itemCount); in setItemCount()
733 public void setItemCount(int itemCount) { in setItemCount() argument
734 IMPL.setItemCount(mRecord, itemCount); in setItemCount()
/frameworks/support/v7/appcompat/src/android/support/v7/internal/view/menu/
DBaseMenuPresenter.java93 final int itemCount = visibleItems.size(); in updateMenuView() local
94 for (int i = 0; i < itemCount; i++) { in updateMenuView()
DMenuBuilder.java334 final int itemCount = size(); in saveActionViewStates() local
335 for (int i = 0; i < itemCount; i++) { in saveActionViewStates()
366 final int itemCount = size(); in restoreActionViewStates() local
367 for (int i = 0; i < itemCount; i++) { in restoreActionViewStates()
DActionMenuPresenter.java140 public void setItemLimit(int itemCount) { in setItemLimit() argument
141 mMaxItems = itemCount; in setItemLimit()
/frameworks/support/v4/ics/android/support/v4/view/accessibility/
DAccessibilityRecordCompatIcs.java158 public static void setItemCount(Object record, int itemCount) { in setItemCount() argument
159 ((AccessibilityRecord) record).setItemCount(itemCount); in setItemCount()
/frameworks/base/core/java/android/widget/
DFastScroller.java453 public void onItemCountChanged(int childCount, int itemCount) { in onItemCountChanged() argument
454 if (mOldItemCount != itemCount || mOldChildCount != childCount) { in onItemCountChanged()
455 mOldItemCount = itemCount; in onItemCountChanged()
458 final boolean hasMoreItems = itemCount - childCount > 0; in onItemCountChanged()
461 setThumbPos(getPosFromItemCount(firstVisibleItem, childCount, itemCount)); in onItemCountChanged()
464 updateLongList(childCount, itemCount); in onItemCountChanged()
468 private void updateLongList(int childCount, int itemCount) { in updateLongList() argument
469 final boolean longList = childCount > 0 && itemCount / childCount >= MIN_PAGES; in updateLongList()
DAdapterView.java964 final int itemCount = adapter.getCount(); in isScrollableForAccessibility() local
965 return itemCount > 0 in isScrollableForAccessibility()
966 && (getFirstVisiblePosition() > 0 || getLastVisiblePosition() < itemCount - 1); in isScrollableForAccessibility()
DActivityChooserView.java486 public void setInitialActivityCount(int itemCount) { in setInitialActivityCount() argument
487 mInitialActivityCount = itemCount; in setInitialActivityCount()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/
DValueParser.java226 int itemCount = length / 4; in retrieveTextAttribute() local
229 for (int i = 0; i < itemCount; i++, valueIndex += 4) { in retrieveTextAttribute()
/frameworks/support/v4/java/android/support/v4/view/
DPagerTitleStrip.java271 final int itemCount = adapter != null ? adapter.getCount() : 0; in updateText() local
280 mCurrText.setText(adapter != null && currentItem < itemCount ? in updateText()
284 if (currentItem + 1 < itemCount && adapter != null) { in updateText()
DViewPager.java1173 final int itemCount = mItems.size();
1192 for (int i = curIndex + 1; i < itemCount; i++, pos++) {
2224 final int itemCount = mItems.size();
2226 final int lastPos = mItems.get(itemCount - 1).position;
2228 while (pos > ii.position && itemIndex < itemCount) {
/frameworks/wilhelm/tests/examples/
DslesTestDecodeToBuffQueue.cpp463 SLuint32 itemCount; in TestDecToBuffQueue() local
464 result = (*mdExtrItf)->GetItemCount(mdExtrItf, &itemCount); in TestDecToBuffQueue()
467 for(i=0 ; i<itemCount ; i++) { in TestDecToBuffQueue()
DslesTestDecodeAac.cpp675 SLuint32 itemCount; in TestDecToBuffQueue() local
676 res = (*mdExtrItf)->GetItemCount(mdExtrItf, &itemCount); in TestDecToBuffQueue()
678 printf("itemCount=%u\n", itemCount); in TestDecToBuffQueue()
681 for(i=0 ; i<itemCount ; i++) { in TestDecToBuffQueue()
/frameworks/base/core/java/android/view/accessibility/
DAccessibilityRecord.java328 public void setItemCount(int itemCount) { in setItemCount() argument
330 mItemCount = itemCount; in setItemCount()
/frameworks/base/core/java/com/android/internal/widget/
DAutoScrollHelper.java894 final int itemCount = target.getCount(); in canTargetScrollVertically() local
901 if (lastPosition >= itemCount) { in canTargetScrollVertically()
/frameworks/ex/variablespeed/jni/
Dvariablespeed.cc234 SLuint32 itemCount; in ReadSampleRateAndChannelCount() local
235 OpenSL(decoderMetadata, GetItemCount, &itemCount); in ReadSampleRateAndChannelCount()
238 for (i = 0; i < itemCount; ++i) { in ReadSampleRateAndChannelCount()
/frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/
DActivityChooserView.java458 public void setInitialActivityCount(int itemCount) { in setInitialActivityCount() argument
459 mInitialActivityCount = itemCount; in setInitialActivityCount()

12