/frameworks/base/core/java/android/widget/ |
H A D | GridView.java | 200 mOldItemCount = mItemCount; 201 mItemCount = mAdapter.getCount(); 212 position = lookForSelectablePosition(mItemCount - 1, false); 235 if (position < 0 || position >= mItemCount) { 301 while (nextTop < end && pos < mItemCount) { 336 last = Math.min(startPos + mNumColumns, mItemCount); 432 mFirstPosition = Math.min(mFirstPosition, mItemCount - 1); 442 lastPosition = Math.min(lastPosition, mItemCount - 1); 444 final int invertedPosition = mItemCount - 1 - lastPosition; 445 lastPosition = mItemCount [all...] |
H A D | Gallery.java | 325 return mItemCount; 422 int extremeItemPosition = motionToLeft != mIsRtl ? mItemCount - 1 : 0; 638 if (mItemCount == 0) { 704 int numItems = mItemCount; 716 mFirstPosition = curPosition = mItemCount - 1; 721 while (curRightEdge > galleryLeft && curPosition < mItemCount) { 806 int numItems = mItemCount; 817 mFirstPosition = curPosition = mItemCount - 1; 1237 if (mItemCount > 0) { 1260 if (mItemCount > [all...] |
H A D | AbsSpinner.java | 117 mOldItemCount = mItemCount; 118 mItemCount = mAdapter.getCount(); 124 int position = mItemCount > 0 ? 0 : INVALID_POSITION; 129 if (mItemCount == 0) { 308 if (mItemCount > 0 && mSelectedPosition >= 0) { 335 return mItemCount;
|
H A D | AdapterView.java | 178 int mItemCount; field in class:AdapterView 591 return mItemCount; 810 mOldItemCount = mItemCount; 811 mItemCount = getAdapter().getCount(); 816 && mOldItemCount == 0 && mItemCount > 0) { 837 mOldItemCount = mItemCount; 838 mItemCount = 0; 994 return super.canAnimate() && mItemCount > 0; 998 final int count = mItemCount; 1089 int count = mItemCount; [all...] |
H A D | ListView.java | 232 if (mFirstPosition + childCount < mItemCount) { 486 mOldItemCount = mItemCount; 487 mItemCount = mAdapter.getCount(); 497 position = lookForSelectablePosition(mItemCount - 1, false); 504 if (mItemCount == 0) { 565 return (lastVisiblePosition < mItemCount - 1) 596 if ((mSelectedPosition < mItemCount - 1) 695 while (nextTop < end && pos < mItemCount) { 755 mFirstPosition = Math.min(mFirstPosition, mItemCount - 1); 893 if (selectedPosition != mItemCount [all...] |
H A D | AbsListView.java | 1235 if (childCount != mItemCount) return false; 1461 mFastScroll.onScroll(mFirstPosition, getChildCount(), mItemCount); 1464 mOnScrollListener.onScroll(this, mFirstPosition, getChildCount(), mItemCount); 1798 boolean haveChildren = getChildCount() > 0 && mItemCount > 0; 1814 // which case mItemCount may not be 0, but if we try to 1822 if (firstPos >= mItemCount) { 1823 firstPos = mItemCount - 1; 1968 mOldItemCount = mItemCount; 1969 mItemCount = mAdapter.getCount(); 2042 (int)((float)mScrollY / getHeight() * mItemCount * 10 [all...] |
H A D | ExpandableListView.java | 373 final int lastChildFlPos = mItemCount - getFooterViewsCount() - headerViewsCount - 1; 619 final int footerViewsStart = mItemCount - getFooterViewsCount();
|
H A D | AdapterViewAnimator.java | 967 mItemCount = mAdapter.getCount();
|
H A D | Spinner.java | 547 if (mItemCount == 0) {
|
/frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/ |
H A D | AdapterViewCompat.java | 182 int mItemCount; field in class:AdapterViewCompat 593 return mItemCount; 805 mOldItemCount = mItemCount; 806 mItemCount = getAdapter().getCount(); 811 && mOldItemCount == 0 && mItemCount > 0) { 832 mOldItemCount = mItemCount; 833 mItemCount = 0; 918 return super.canAnimate() && mItemCount > 0; 922 final int count = mItemCount; 1001 int count = mItemCount; [all...] |
H A D | AbsSpinnerCompat.java | 94 mOldItemCount = mItemCount; 95 mItemCount = mAdapter.getCount(); 101 int position = mItemCount > 0 ? 0 : INVALID_POSITION; 106 if (mItemCount == 0) { 286 if (mItemCount > 0 && mSelectedPosition >= 0) { 313 return mItemCount;
|
H A D | SpinnerCompat.java | 469 if (mItemCount == 0) {
|
/frameworks/base/core/java/android/view/accessibility/ |
H A D | AccessibilityRecord.java | 83 int mItemCount = UNDEFINED; field in class:AccessibilityRecord 318 return mItemCount; 330 mItemCount = itemCount; 770 mItemCount = record.mItemCount; 796 mItemCount = UNDEFINED; 821 builder.append("; ItemCount: " + mItemCount);
|
H A D | AccessibilityEvent.java | 1097 record.mItemCount = parcel.readInt(); 1149 parcel.writeInt(record.mItemCount); 1197 builder.append("; ItemCount: " + record.mItemCount);
|
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/ |
H A D | GridLayoutManagerTest.java | 65 return setupBasic(config, new GridTestAdapter(config.mItemCount)); 273 state.mItemCount = 1000; 464 config.mItemCount = 150; 632 int mItemCount = 1000; field in class:GridLayoutManagerTest.Config 637 mItemCount = itemCount; 656 ", mItemCount=" + mItemCount +
|
H A D | LinearLayoutManagerTest.java | 95 mTestAdapter = config.mTestAdapter == null ? new TestAdapter(config.mItemCount) 136 for(Config config : addConfigVariation(mBaseVariations, "mItemCount", 5 621 return config.mItemCount == 0; 655 return config.mItemCount == 0; 711 List<Config> variations = addConfigVariation(mBaseVariations, "mItemCount", 0, 300); 1105 int mItemCount = DEFAULT_ITEM_COUNT; field in class:LinearLayoutManagerTest.Config 1145 mItemCount = itemCount; 1162 ", mItemCount=" + mItemCount +
|
H A D | StaggeredGridLayoutManagerTest.java | 80 mAdapter = new GridTestAdapter(config.mItemCount, config.mOrientation); 687 if (config.mItemCount < 100) { 696 smoothScrollToPosition(config.mItemCount / 2); 984 clone.mItemCount = clone.mSpanCount - 1; 1914 int mItemCount = DEFAULT_ITEM_COUNT; field in class:StaggeredGridLayoutManagerTest.Config 1948 mItemCount = itemCount; 1958 " 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/src/android/support/v7/widget/ |
H A D | RecyclerView.java | 1843 mState.mItemCount = mAdapter.getItemCount(); 1845 mState.mItemCount = 0; 2030 mState.mItemCount = mAdapter.getItemCount(); 2113 mState.mItemCount = mAdapter.getItemCount(); 2217 mState.mPreviousLayoutItemCount = mState.mItemCount; 8010 int mItemCount = 0; field in class:RecyclerView.State 8036 mItemCount = 0; 8164 mItemCount; 8196 ", mItemCount=" + mItemCount [all...] |