Searched refs:mItemCount (Results 1 - 25 of 40) sorted by relevance

12

/frameworks/support/v7/recyclerview/src/main/java/androidx/recyclerview/widget/
H A DAsyncListUtil.java71 int mItemCount = 0; field in class:AsyncListUtil
155 if (position < 0 || position >= mItemCount) {
156 throw new IndexOutOfBoundsException(position + " is not within 0 and " + mItemCount);
175 return mItemCount;
183 if (mTmpRange[1] >= mItemCount) {
205 Math.max(mTmpRange[1], Math.min(mTmpRangeExtended[1], mItemCount - 1));
221 mItemCount = itemCount;
249 int endPosition = tile.mStartPosition + tile.mItemCount;
301 private int mItemCount;
310 mItemCount
[all...]
H A DTileList.java89 public int mItemCount; field in class:TileList.Tile
98 return mStartPosition <= pos && pos < mStartPosition + mItemCount;
/frameworks/base/core/java/android/widget/
H A DGridView.java210 mOldItemCount = mItemCount;
211 mItemCount = mAdapter.getCount();
222 position = lookForSelectablePosition(mItemCount - 1, false);
245 if (position < 0 || position >= mItemCount) {
311 while (nextTop < end && pos < mItemCount) {
346 last = Math.min(startPos + mNumColumns, mItemCount);
442 mFirstPosition = Math.min(mFirstPosition, mItemCount - 1);
452 lastPosition = Math.min(lastPosition, mItemCount - 1);
454 final int invertedPosition = mItemCount - 1 - lastPosition;
455 lastPosition = mItemCount
[all...]
H A DGallery.java332 return mItemCount;
429 int extremeItemPosition = motionToLeft != mIsRtl ? mItemCount - 1 : 0;
645 if (mItemCount == 0) {
711 int numItems = mItemCount;
723 mFirstPosition = curPosition = mItemCount - 1;
728 while (curRightEdge > galleryLeft && curPosition < mItemCount) {
813 int numItems = mItemCount;
824 mFirstPosition = curPosition = mItemCount - 1;
1270 if (mItemCount > 0) {
1296 if (mItemCount >
[all...]
H A DAdapterView.java183 int mItemCount; field in class:AdapterView
607 return mItemCount;
835 mOldItemCount = mItemCount;
836 mItemCount = getAdapter().getCount();
841 && mOldItemCount == 0 && mItemCount > 0) {
862 mOldItemCount = mItemCount;
863 mItemCount = 0;
1031 return super.canAnimate() && mItemCount > 0;
1035 final int count = mItemCount;
1126 int count = mItemCount;
[all...]
H A DAbsSpinner.java124 mOldItemCount = mItemCount;
125 mItemCount = mAdapter.getCount();
131 int position = mItemCount > 0 ? 0 : INVALID_POSITION;
136 if (mItemCount == 0) {
315 if (mItemCount > 0 && mSelectedPosition >= 0) {
342 return mItemCount;
H A DListView.java307 if (mFirstPosition + childCount < mItemCount) {
574 mOldItemCount = mItemCount;
575 mItemCount = mAdapter.getCount();
585 position = lookForSelectablePosition(mItemCount - 1, false);
592 if (mItemCount == 0) {
653 return (lastVisiblePosition < mItemCount - 1)
684 if ((mSelectedPosition < mItemCount - 1)
783 while (nextTop < end && pos < mItemCount) {
843 mFirstPosition = Math.min(mFirstPosition, mItemCount - 1);
981 if (selectedPosition != mItemCount
[all...]
H A DAbsListView.java1248 if (childCount != mItemCount) return false;
1474 mFastScroll.onScroll(mFirstPosition, getChildCount(), mItemCount);
1477 mOnScrollListener.onScroll(this, mFirstPosition, getChildCount(), mItemCount);
1812 boolean haveChildren = getChildCount() > 0 && mItemCount > 0;
1828 // which case mItemCount may not be 0, but if we try to
1836 if (firstPos >= mItemCount) {
1837 firstPos = mItemCount - 1;
1982 mOldItemCount = mItemCount;
1983 mItemCount = mAdapter.getCount();
2056 (int)((float)mScrollY / getHeight() * mItemCount * 10
[all...]
/frameworks/support/frameworks/support/samples/SupportDesignDemos/src/main/java/com/example/android/support/design/widget/
H A DBottomSheetWithFragment.java94 private final int mItemCount; field in class:BottomSheetWithFragment.DummyAdapter
98 mItemCount = itemCount;
113 return mItemCount;
/frameworks/support/samples/SupportDesignDemos/src/main/java/com/example/android/support/design/widget/
H A DBottomSheetWithFragment.java94 private final int mItemCount; field in class:BottomSheetWithFragment.DummyAdapter
98 mItemCount = itemCount;
113 return mItemCount;
/frameworks/support/v7/recyclerview/src/androidTest/java/androidx/recyclerview/widget/
H A DGridLayoutManagerRtlTest.java86 mConfig.mItemCount = 5;
88 mConfig.mSpanCount = mConfig.mItemCount + 1;
90 mConfig.mSpanCount = Math.min(mConfig.mItemCount - 1, mConfig.mSpanCount);
93 RecyclerView rv = setupBasic(mConfig, new GridTestAdapter(mConfig.mItemCount) {
H A DStaggeredGridLayoutManagerGapTest.java67 if (mConfig.mItemCount < 100) {
74 smoothScrollToPosition(mConfig.mItemCount / 2);
H A DBaseGridLayoutManagerTest.java48 return setupBasic(config, new GridTestAdapter(config.mItemCount));
110 int mItemCount = 1000; field in class:BaseGridLayoutManagerTest.Config
116 mItemCount = itemCount;
135 + ",mItemCount=" + mItemCount
H A DPagerSnapHelperTest.java112 int expectedPosition = mConfig.mItemCount / 2 + (mConfig.mReverseLayout
203 int expectedPosition = mConfig.mItemCount / 2 + (mConfig.mReverseLayout
216 scrollToPosition(mConfig.mItemCount / 2);
H A DRecyclerViewFocusTest.java285 private int mItemCount; field in class:RecyclerViewFocusTest.TestAdapter
290 mItemCount = itemCount;
311 return mItemCount;
H A DGridLayoutManagerCacheTest.java92 mRecyclerView.scrollToPosition(mConfig.mItemCount / 2);
H A DFocusSearchNavigationTest.java241 private int mItemCount; field in class:FocusSearchNavigationTest.FocusSearchAdapter
244 mItemCount = itemCount;
270 return mItemCount;
H A DRecyclerViewFastScrollerTest.java402 private int mItemCount; field in class:RecyclerViewFastScrollerTest.TestAdapter
419 mItemCount = itemCount;
448 return mItemCount;
H A DBaseLinearLayoutManagerTest.java99 ? new TestAdapter(config.mItemCount, childLayoutParams)
286 int mItemCount = DEFAULT_ITEM_COUNT; field in class:BaseLinearLayoutManagerTest.Config
328 mItemCount = itemCount;
345 + ",mItemCount=" + mItemCount
H A DGridLayoutManagerNoOpUpdateTest.java122 GridTestAdapter adapter = new GridTestAdapter(mConfig.mItemCount);
H A DStaggeredGridLayoutManagerCacheTest.java106 mRecyclerView.scrollToPosition(mConfig.mItemCount / 2);
H A DLinearLayoutManagerSavedStateTest.java156 return config.mItemCount == 0;
190 return config.mItemCount == 0;
247 List<Config> variations = addConfigVariation(createBaseVariations(), "mItemCount", 0, 300);
/frameworks/support/car/src/androidTest/java/androidx/car/drawer/
H A DCarDrawerTest.java132 private int mItemCount; field in class:CarDrawerTest.TextDrawerAdapter
137 mItemCount = itemCount;
145 return mItemCount;
/frameworks/base/core/java/android/view/accessibility/
H A DAccessibilityRecord.java88 int mItemCount = UNDEFINED; field in class:AccessibilityRecord
352 return mItemCount;
364 mItemCount = itemCount;
848 mItemCount = record.mItemCount;
874 mItemCount = UNDEFINED;
904 append(builder, "ItemCount", mItemCount);
/frameworks/ex/widget/java/com/android/ex/widget/
H A DStaggeredGridView.java112 private int mItemCount; field in class:StaggeredGridView
432 if (mFirstPosition != 0 || getChildCount() != mItemCount) {
1006 while (nextCol >= 0 && mItemBottoms[nextCol] < fillTo && position < mItemCount) {
1278 mOldItemCount = mItemCount = adapter != null ? adapter.getCount() : 0;
1550 mOldItemCount = mItemCount;
1551 mItemCount = mAdapter.getCount();

Completed in 167 milliseconds

12