Searched refs:adapterCount (Results 1 – 8 of 8) sorted by relevance
/frameworks/base/core/java/android/widget/ |
D | HeaderViewListAdapter.java | 155 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 …]
|
D | AdapterViewAnimator.java | 383 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 …]
|
D | StackView.java | 663 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/ |
D | WatchHeaderListView.java | 167 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()
|
D | ViewPager.java | 822 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/ |
D | PseudoGridView.java | 172 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/ |
D | KeyguardUserSwitcher.java | 205 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/ |
D | ViewPager.java | 1023 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()
|