Home
last modified time | relevance | path

Searched refs:adapterCount (Results 1 – 8 of 8) 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.java383 int adapterCount = getCount(); in getWindowSize() local
384 if (adapterCount <= getNumActiveViews() && mLoopViews) { in getWindowSize()
385 return adapterCount*mMaxNumActiveViews; in getWindowSize()
387 return adapterCount; in getWindowSize()
416 int adapterCount = getCount(); in refreshChildren() local
418 final View updatedChild = mAdapter.getView(modulo(i, adapterCount), null, this); in refreshChildren()
459 final int adapterCount = getCount(); in showOnly() local
460 if (adapterCount == 0) return; in showOnly()
480 int newWindowEnd = Math.min(adapterCount - 1, newWindowEndUnbounded); in showOnly()
544 final int adapterPosition = modulo(i, adapterCount); in showOnly()
[all …]
DStackView.java663 final int adapterCount = getCount(); in beginGestureIfNeeded()
672 boolean endOfStack = mLoopViews && adapterCount == 1 in beginGestureIfNeeded()
675 boolean beginningOfStack = mLoopViews && adapterCount == 1 in beginGestureIfNeeded()
685 … } else if (mCurrentWindowStartUnbounded + activeIndex == adapterCount - 1 || endOfStack) { in beginGestureIfNeeded()
1125 final int adapterCount = getCount();
1126 if (adapterCount == 1 && mLoopViews) return;
/frameworks/base/core/java/com/android/internal/widget/
DWatchHeaderListView.java167 int adapterCount = getWrappedAdapter().getCount(); in getItemId() local
168 if (adjPosition < adapterCount) { in getItemId()
187 int adapterCount = getWrappedAdapter().getCount(); in getItemViewType() local
188 if (adjPosition < adapterCount) { in getItemViewType()
DViewPager.java822 final int adapterCount = mAdapter.getCount(); in dataSetChanged() local
823 mExpectedAdapterCount = adapterCount; in dataSetChanged()
825 mItems.size() < adapterCount; in dataSetChanged()
851 newCurrItem = Math.max(0, Math.min(mCurItem, adapterCount - 1)); in dataSetChanged()
/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.java205 final int adapterCount = mAdapter.getCount(); in refresh() local
206 final int N = Math.max(childCount, adapterCount); in refresh()
208 if (i < adapterCount) { in refresh()
/frameworks/support/viewpager/src/main/java/androidx/viewpager/widget/
DViewPager.java1023 final int adapterCount = mAdapter.getCount(); in dataSetChanged() local
1024 mExpectedAdapterCount = adapterCount; in dataSetChanged()
1026 && mItems.size() < adapterCount; in dataSetChanged()
1052 newCurrItem = Math.max(0, Math.min(mCurItem, adapterCount - 1)); in dataSetChanged()