/frameworks/support/v7/recyclerview/src/android/support/v7/util/ |
H A D | AsyncListUtil.java | 68 private int mItemCount = 0; field in class:AsyncListUtil 151 if (position < 0 || position >= mItemCount) { 152 throw new IndexOutOfBoundsException(position + " is not within 0 and " + mItemCount); 171 return mItemCount; 179 if (mTmpRange[1] >= mItemCount) { 201 Math.max(mTmpRange[1], Math.min(mTmpRangeExtended[1], mItemCount - 1)); 217 mItemCount = itemCount; 245 int endPosition = tile.mStartPosition + tile.mItemCount; 297 private int mItemCount; 306 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 | 205 mOldItemCount = mItemCount; 206 mItemCount = mAdapter.getCount(); 217 position = lookForSelectablePosition(mItemCount - 1, false); 240 if (position < 0 || position >= mItemCount) { 306 while (nextTop < end && pos < mItemCount) { 341 last = Math.min(startPos + mNumColumns, mItemCount); 437 mFirstPosition = Math.min(mFirstPosition, mItemCount - 1); 447 lastPosition = Math.min(lastPosition, mItemCount - 1); 449 final int invertedPosition = mItemCount - 1 - lastPosition; 450 lastPosition = mItemCount [all...] |
H A D | Gallery.java | 324 return mItemCount; 421 int extremeItemPosition = motionToLeft != mIsRtl ? mItemCount - 1 : 0; 637 if (mItemCount == 0) { 703 int numItems = mItemCount; 715 mFirstPosition = curPosition = mItemCount - 1; 720 while (curRightEdge > galleryLeft && curPosition < mItemCount) { 805 int numItems = mItemCount; 816 mFirstPosition = curPosition = mItemCount - 1; 1236 if (mItemCount > 0) { 1262 if (mItemCount > [all...] |
H A D | AbsSpinner.java | 114 mOldItemCount = mItemCount; 115 mItemCount = mAdapter.getCount(); 121 int position = mItemCount > 0 ? 0 : INVALID_POSITION; 126 if (mItemCount == 0) { 305 if (mItemCount > 0 && mSelectedPosition >= 0) { 332 return mItemCount;
|
H A D | AdapterView.java | 181 int mItemCount; field in class:AdapterView 599 return mItemCount; 827 mOldItemCount = mItemCount; 828 mItemCount = getAdapter().getCount(); 833 && mOldItemCount == 0 && mItemCount > 0) { 854 mOldItemCount = mItemCount; 855 mItemCount = 0; 1018 return super.canAnimate() && mItemCount > 0; 1022 final int count = mItemCount; 1113 int count = mItemCount; [all...] |
H A D | ListView.java | 236 if (mFirstPosition + childCount < mItemCount) { 490 mOldItemCount = mItemCount; 491 mItemCount = mAdapter.getCount(); 501 position = lookForSelectablePosition(mItemCount - 1, false); 508 if (mItemCount == 0) { 569 return (lastVisiblePosition < mItemCount - 1) 600 if ((mSelectedPosition < mItemCount - 1) 699 while (nextTop < end && pos < mItemCount) { 759 mFirstPosition = Math.min(mFirstPosition, mItemCount - 1); 897 if (selectedPosition != mItemCount [all...] |
H A D | AbsListView.java | 1234 if (childCount != mItemCount) return false; 1460 mFastScroll.onScroll(mFirstPosition, getChildCount(), mItemCount); 1463 mOnScrollListener.onScroll(this, mFirstPosition, getChildCount(), mItemCount); 1795 boolean haveChildren = getChildCount() > 0 && mItemCount > 0; 1811 // which case mItemCount may not be 0, but if we try to 1819 if (firstPos >= mItemCount) { 1820 firstPos = mItemCount - 1; 1965 mOldItemCount = mItemCount; 1966 mItemCount = mAdapter.getCount(); 2039 (int)((float)mScrollY / getHeight() * mItemCount * 10 [all...] |
H A D | ExpandableListView.java | 371 final int lastChildFlPos = mItemCount - getFooterViewsCount() - headerViewsCount - 1; 617 final int footerViewsStart = mItemCount - getFooterViewsCount();
|
H A D | AdapterViewAnimator.java | 965 mItemCount = mAdapter.getCount();
|
H A D | Spinner.java | 620 if (mItemCount == 0) {
|
/frameworks/base/core/java/android/view/accessibility/ |
H A D | AccessibilityRecord.java | 83 int mItemCount = UNDEFINED; field in class:AccessibilityRecord 324 return mItemCount; 336 mItemCount = itemCount; 782 mItemCount = record.mItemCount; 810 mItemCount = UNDEFINED; 842 builder.append("; ItemCount: " + mItemCount);
|
H A D | AccessibilityEvent.java | 1108 record.mItemCount = parcel.readInt(); 1160 parcel.writeInt(record.mItemCount); 1213 builder.append("; ItemCount: " + record.mItemCount);
|
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/ |
H A D | GridLayoutManagerTest.java | 69 return setupBasic(config, new GridTestAdapter(config.mItemCount)); 235 config.mItemCount = 5; 237 config.mSpanCount = config.mItemCount + 1; 239 config.mSpanCount = Math.min(config.mItemCount - 1, config.mSpanCount); 498 state.mItemCount = 1000; 805 config.mItemCount = 150; 1043 int mItemCount = 1000; field in class:GridLayoutManagerTest.Config 1049 mItemCount = itemCount; 1068 ", mItemCount=" + mItemCount [all...] |
H A D | LinearLayoutManagerTest.java | 96 mTestAdapter = config.mTestAdapter == null ? new TestAdapter(config.mItemCount) 405 for(Config config : addConfigVariation(mBaseVariations, "mItemCount", 5 890 return config.mItemCount == 0; 924 return config.mItemCount == 0; 981 List<Config> variations = addConfigVariation(mBaseVariations, "mItemCount", 0, 300); 1563 int mItemCount = DEFAULT_ITEM_COUNT; field in class:LinearLayoutManagerTest.Config 1603 mItemCount = itemCount; 1620 ", mItemCount=" + mItemCount +
|
H A D | StaggeredGridLayoutManagerTest.java | 82 mAdapter = new GridTestAdapter(config.mItemCount, config.mOrientation); 779 if (config.mItemCount < 100) { 788 smoothScrollToPosition(config.mItemCount / 2); 1108 clone.mItemCount = clone.mSpanCount - 1; 2260 int mItemCount = DEFAULT_ITEM_COUNT; field in class:StaggeredGridLayoutManagerTest.Config 2294 mItemCount = itemCount; 2304 " 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();
|
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/util/ |
H A D | TileListTest.java | 136 window.mItemCount = items.length;
|
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/ |
H A D | RecyclerView.java | 2487 mState.mItemCount = mAdapter.getItemCount(); 2489 mState.mItemCount = 0; 2759 mState.mItemCount = mAdapter.getItemCount(); 2842 mState.mItemCount = mAdapter.getItemCount(); 2946 mState.mPreviousLayoutItemCount = mState.mItemCount; 9393 int mItemCount = 0; field in class:RecyclerView.State 9419 mItemCount = 0; 9547 mItemCount; 9590 ", mItemCount=" + mItemCount [all...] |