/frameworks/base/core/java/android/widget/ |
D | GridView.java | 222 mOldItemCount = mItemCount; in setAdapter() 223 mItemCount = mAdapter.getCount(); in setAdapter() 234 position = lookForSelectablePosition(mItemCount - 1, false); in setAdapter() 257 if (position < 0 || position >= mItemCount) { in lookForSelectablePosition() 324 while (nextTop < end && pos < mItemCount) { in fillDown() 359 last = Math.min(startPos + mNumColumns, mItemCount); in makeRow() 456 mFirstPosition = Math.min(mFirstPosition, mItemCount - 1); in fillFromTop() 466 lastPosition = Math.min(lastPosition, mItemCount - 1); in fillFromBottom() 468 final int invertedPosition = mItemCount - 1 - lastPosition; in fillFromBottom() 469 lastPosition = mItemCount - 1 - (invertedPosition - (invertedPosition % mNumColumns)); in fillFromBottom() [all …]
|
D | Gallery.java | 342 return mItemCount; in computeHorizontalScrollRange() 440 int extremeItemPosition = motionToLeft != mIsRtl ? mItemCount - 1 : 0; 658 if (mItemCount == 0) { in layout() 725 int numItems = mItemCount; in fillToGalleryLeftRtl() 737 mFirstPosition = curPosition = mItemCount - 1; in fillToGalleryLeftRtl() 742 while (curRightEdge > galleryLeft && curPosition < mItemCount) { in fillToGalleryLeftRtl() 828 int numItems = mItemCount; in fillToGalleryRightLtr() 839 mFirstPosition = curPosition = mItemCount - 1; in fillToGalleryRightLtr() 1286 if (mItemCount > 0) { in onKeyUp() 1313 if (mItemCount > 0 && targetPosition >= 0 && targetPosition < mItemCount) { in moveDirection() [all …]
|
D | AdapterView.java | 194 int mItemCount; field in AdapterView 619 return mItemCount; in getCount() 847 mOldItemCount = mItemCount; in onChanged() 848 mItemCount = getAdapter().getCount(); in onChanged() 853 && mOldItemCount == 0 && mItemCount > 0) { in onChanged() 874 mOldItemCount = mItemCount; in onInvalidated() 875 mItemCount = 0; in onInvalidated() 1044 return super.canAnimate() && mItemCount > 0; in canAnimate() 1048 final int count = mItemCount; in handleDataChanged() 1139 int count = mItemCount; in findSyncPosition() [all …]
|
D | AbsSpinner.java | 126 mOldItemCount = mItemCount; in setAdapter() 127 mItemCount = mAdapter.getCount(); in setAdapter() 133 int position = mItemCount > 0 ? 0 : INVALID_POSITION; in setAdapter() 138 if (mItemCount == 0) { in setAdapter() 317 if (mItemCount > 0 && mSelectedPosition >= 0) { in getSelectedView() 344 return mItemCount; in getCount()
|
D | ListView.java | 313 if (mFirstPosition + childCount < mItemCount) { in adjustViewsUpOrDown() 580 mOldItemCount = mItemCount; in setAdapter() 581 mItemCount = mAdapter.getCount(); in setAdapter() 591 position = lookForSelectablePosition(mItemCount - 1, false); in setAdapter() 598 if (mItemCount == 0) { in setAdapter() 659 return (lastVisiblePosition < mItemCount - 1) in showingBottomFadingEdge() 690 if ((mSelectedPosition < mItemCount - 1) in requestChildRectangleOnScreen() 790 while (nextTop < end && pos < mItemCount) { in fillDown() 851 mFirstPosition = Math.min(mFirstPosition, mItemCount - 1); in fillFromTop() 989 if (selectedPosition != mItemCount - 1) { in getBottomSelectionPixel() [all …]
|
D | AbsListView.java | 1282 if (childCount != mItemCount) return false; in contentFits() 1512 mFastScroll.onScroll(mFirstPosition, getChildCount(), mItemCount); in invokeOnItemScrollListener() 1515 mOnScrollListener.onScroll(this, mFirstPosition, getChildCount(), mItemCount); in invokeOnItemScrollListener() 1831 boolean haveChildren = getChildCount() > 0 && mItemCount > 0; in onSaveInstanceState() 1855 if (firstPos >= mItemCount) { in onSaveInstanceState() 1856 firstPos = mItemCount - 1; in onSaveInstanceState() 2001 mOldItemCount = mItemCount; in onFocusChanged() 2002 mItemCount = mAdapter.getCount(); in onFocusChanged() 2075 (int)((float)mScrollY / getHeight() * mItemCount * 100), 0); in computeVerticalScrollOffset() 2079 final int count = mItemCount; in computeVerticalScrollOffset() [all …]
|
D | ExpandableListView.java | 380 final int lastChildFlPos = mItemCount - getFooterViewsCount() - headerViewsCount - 1; in dispatchDraw() 626 final int footerViewsStart = mItemCount - getFooterViewsCount(); in isHeaderOrFooterPosition()
|
D | AdapterViewAnimator.java | 967 mItemCount = mAdapter.getCount(); in setAdapter()
|
D | Spinner.java | 654 if (mItemCount == 0) { in layout()
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | PersisterQueueTests.java | 321 private final AtomicInteger mItemCount = new AtomicInteger(0);; field in PersisterQueueTests.TestWriteQueueItemFactory 325 return mItemCount.get(); in getTotalProcessedItemCount() 338 return new TestItem(mItemCount, mLatch); in createItem() 342 return new FilterableTestItem(shouldKeepOnFilter, mItemCount, mLatch); in createFilterableItem() 348 private AtomicInteger mItemCount; field in PersisterQueueTests.TestItem 352 mItemCount = itemCount; in TestItem() 358 mItemCount.getAndIncrement(); in process() 376 private FilterableTestItem(boolean shouldKeepOnFilter, AtomicInteger mItemCount, in FilterableTestItem() argument 378 super(mItemCount, mLatch); in FilterableTestItem()
|
/frameworks/base/core/java/android/view/accessibility/ |
D | AccessibilityRecord.java | 91 int mItemCount = UNDEFINED; field in AccessibilityRecord 366 return mItemCount; in getItemCount() 378 mItemCount = itemCount; in setItemCount() 871 mItemCount = record.mItemCount; in init() 899 mItemCount = UNDEFINED; in clear() 931 append(builder, "ItemCount", mItemCount); in appendTo()
|
D | AccessibilityEvent.java | 1280 record.mItemCount = parcel.readInt(); in readAccessibilityRecordFromParcel() 1346 parcel.writeInt(record.mItemCount); in writeAccessibilityRecordToParcel()
|
/frameworks/ex/widget/java/com/android/ex/widget/ |
D | StaggeredGridView.java | 112 private int mItemCount; field in StaggeredGridView 432 if (mFirstPosition != 0 || getChildCount() != mItemCount) { in contentFits() 1006 while (nextCol >= 0 && mItemBottoms[nextCol] < fillTo && position < mItemCount) { in fillDown() 1278 mOldItemCount = mItemCount = adapter != null ? adapter.getCount() : 0; in setAdapter() 1550 mOldItemCount = mItemCount; in onChanged() 1551 mItemCount = mAdapter.getCount(); in onChanged()
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | RecyclerView.java | 3026 mState.mItemCount = mAdapter.getItemCount(); in onMeasure() 3028 mState.mItemCount = 0; in onMeasure() 3454 mState.mItemCount = mAdapter.getItemCount(); in dispatchLayoutStep1() 3539 mState.mItemCount = mAdapter.getItemCount(); in dispatchLayoutStep2() 3618 mState.mPreviousLayoutItemCount = mState.mItemCount; in dispatchLayoutStep3() 11207 int mItemCount = 0; field in RecyclerView.State 11243 mItemCount = 0; in reset() 11258 mItemCount = adapter.getItemCount(); in prepareForNestedPrefetch() 11410 : mItemCount; in getItemCount() 11418 + ", mItemCount=" + mItemCount in toString()
|