Home
last modified time | relevance | path

Searched refs:adapterCount (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/core/java/android/widget/
DHeaderViewListAdapter.java155 int adapterCount = 0; in isEnabled() local
157 adapterCount = mAdapter.getCount(); in isEnabled()
158 if (adjPosition < adapterCount) { in isEnabled()
164 return mFooterViewInfos.get(adjPosition - adapterCount).isSelectable; in isEnabled()
176 int adapterCount = 0; in getItem() local
178 adapterCount = mAdapter.getCount(); in getItem()
179 if (adjPosition < adapterCount) { in getItem()
185 return mFooterViewInfos.get(adjPosition - adapterCount).data; in getItem()
192 int adapterCount = mAdapter.getCount(); in getItemId() local
193 if (adjPosition < adapterCount) { in getItemId()
[all …]
DAdapterViewAnimator.java385 int adapterCount = getCount(); in getWindowSize() local
386 if (adapterCount <= getNumActiveViews() && mLoopViews) { in getWindowSize()
387 return adapterCount*mMaxNumActiveViews; in getWindowSize()
389 return adapterCount; in getWindowSize()
419 int adapterCount = getCount(); in refreshChildren() local
421 final View updatedChild = mAdapter.getView(modulo(i, adapterCount), null, this); in refreshChildren()
462 final int adapterCount = getCount(); in showOnly() local
463 if (adapterCount == 0) return; in showOnly()
483 int newWindowEnd = Math.min(adapterCount - 1, newWindowEndUnbounded); in showOnly()
547 final int adapterPosition = modulo(i, adapterCount); in showOnly()
[all …]
DStackView.java665 final int adapterCount = getCount(); in beginGestureIfNeeded()
674 boolean endOfStack = mLoopViews && adapterCount == 1 && in beginGestureIfNeeded()
677 boolean beginningOfStack = mLoopViews && adapterCount == 1 && in beginGestureIfNeeded()
687 … } else if (mCurrentWindowStartUnbounded + activeIndex == adapterCount - 1 || endOfStack) { in beginGestureIfNeeded()
1124 final int adapterCount = getCount();
1125 if (adapterCount == 1 && mLoopViews) return;
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DPseudoGridView.java172 final int adapterCount = mAdapter.getCount(); in refresh() local
173 final int N = Math.max(childCount, adapterCount); in refresh()
175 if (i < adapterCount) { in refresh()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DKeyguardUserSwitcher.java190 final int adapterCount = mAdapter.getCount(); in refresh() local
191 final int N = Math.max(childCount, adapterCount); in refresh()
193 if (i < adapterCount) { in refresh()
/frameworks/support/v4/java/android/support/v4/view/
DViewPager.java850 final int adapterCount = mAdapter.getCount(); in dataSetChanged() local
851 mExpectedAdapterCount = adapterCount; in dataSetChanged()
853 mItems.size() < adapterCount; in dataSetChanged()
879 newCurrItem = Math.max(0, Math.min(mCurItem, adapterCount - 1)); in dataSetChanged()