/frameworks/support/v7/recyclerview/src/main/java/androidx/recyclerview/widget/ |
H A D | AsyncListUtil.java | 71 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 D | TileList.java | 89 public int mItemCount; field in class:TileList.Tile 98 return mStartPosition <= pos && pos < mStartPosition + mItemCount;
|
/frameworks/base/core/java/android/widget/ |
H A D | GridView.java | 210 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 D | Gallery.java | 332 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 D | AdapterView.java | 183 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 D | AbsSpinner.java | 124 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 D | ListView.java | 307 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 D | AbsListView.java | 1248 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 D | BottomSheetWithFragment.java | 94 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 D | BottomSheetWithFragment.java | 94 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 D | GridLayoutManagerRtlTest.java | 86 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 D | StaggeredGridLayoutManagerGapTest.java | 67 if (mConfig.mItemCount < 100) { 74 smoothScrollToPosition(mConfig.mItemCount / 2);
|
H A D | BaseGridLayoutManagerTest.java | 48 return setupBasic(config, new GridTestAdapter(config.mItemCount)); 110 int mItemCount = 1000; field in class:BaseGridLayoutManagerTest.Config 116 mItemCount = itemCount; 135 + ",mItemCount=" + mItemCount
|
H A D | PagerSnapHelperTest.java | 112 int expectedPosition = mConfig.mItemCount / 2 + (mConfig.mReverseLayout 203 int expectedPosition = mConfig.mItemCount / 2 + (mConfig.mReverseLayout 216 scrollToPosition(mConfig.mItemCount / 2);
|
H A D | RecyclerViewFocusTest.java | 285 private int mItemCount; field in class:RecyclerViewFocusTest.TestAdapter 290 mItemCount = itemCount; 311 return mItemCount;
|
H A D | GridLayoutManagerCacheTest.java | 92 mRecyclerView.scrollToPosition(mConfig.mItemCount / 2);
|
H A D | FocusSearchNavigationTest.java | 241 private int mItemCount; field in class:FocusSearchNavigationTest.FocusSearchAdapter 244 mItemCount = itemCount; 270 return mItemCount;
|
H A D | RecyclerViewFastScrollerTest.java | 402 private int mItemCount; field in class:RecyclerViewFastScrollerTest.TestAdapter 419 mItemCount = itemCount; 448 return mItemCount;
|
H A D | BaseLinearLayoutManagerTest.java | 99 ? new TestAdapter(config.mItemCount, childLayoutParams) 286 int mItemCount = DEFAULT_ITEM_COUNT; field in class:BaseLinearLayoutManagerTest.Config 328 mItemCount = itemCount; 345 + ",mItemCount=" + mItemCount
|
H A D | GridLayoutManagerNoOpUpdateTest.java | 122 GridTestAdapter adapter = new GridTestAdapter(mConfig.mItemCount);
|
H A D | StaggeredGridLayoutManagerCacheTest.java | 106 mRecyclerView.scrollToPosition(mConfig.mItemCount / 2);
|
H A D | LinearLayoutManagerSavedStateTest.java | 156 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 D | CarDrawerTest.java | 132 private int mItemCount; field in class:CarDrawerTest.TextDrawerAdapter 137 mItemCount = itemCount; 145 return mItemCount;
|
/frameworks/base/core/java/android/view/accessibility/ |
H A D | AccessibilityRecord.java | 88 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 D | StaggeredGridView.java | 112 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();
|