Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/widget/
DHeaderViewListAdapter.java159 int adapterCount = 0; in isEnabled() local
161 adapterCount = mAdapter.getCount(); in isEnabled()
162 if (adjPosition < adapterCount) { in isEnabled()
168 return mFooterViewInfos.get(adjPosition - adapterCount).isSelectable; in isEnabled()
180 int adapterCount = 0; in getItem() local
182 adapterCount = mAdapter.getCount(); in getItem()
183 if (adjPosition < adapterCount) { in getItem()
189 return mFooterViewInfos.get(adjPosition - adapterCount).data; in getItem()
196 int adapterCount = mAdapter.getCount(); in getItemId() local
197 if (adjPosition < adapterCount) { in getItemId()
[all …]
DAdapterViewAnimator.java386 int adapterCount = getCount(); in getWindowSize() local
387 if (adapterCount <= getNumActiveViews() && mLoopViews) { in getWindowSize()
388 return adapterCount*mMaxNumActiveViews; in getWindowSize()
390 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()
1127 final int adapterCount = getCount();
1128 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.java828 final int adapterCount = mAdapter.getCount(); in dataSetChanged() local
829 mExpectedAdapterCount = adapterCount; in dataSetChanged()
831 mItems.size() < adapterCount; in dataSetChanged()
857 newCurrItem = Math.max(0, Math.min(mCurItem, adapterCount - 1)); in dataSetChanged()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DPseudoGridView.java168 final int adapterCount = mAdapter.getCount(); in refresh() local
169 final int N = Math.max(childCount, adapterCount); in refresh()
171 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()