Home
last modified time | relevance | path

Searched refs:mItemCount (Results 1 – 15 of 15) sorted by relevance

/frameworks/base/core/java/android/widget/
DGridView.java222 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 …]
DGallery.java342 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 …]
DAdapterView.java194 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 …]
DAbsSpinner.java126 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()
DListView.java313 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 …]
DAbsListView.java1285 if (childCount != mItemCount) return false; in contentFits()
1515 mFastScroll.onScroll(mFirstPosition, getChildCount(), mItemCount); in invokeOnItemScrollListener()
1518 mOnScrollListener.onScroll(this, mFirstPosition, getChildCount(), mItemCount); in invokeOnItemScrollListener()
1849 boolean haveChildren = getChildCount() > 0 && mItemCount > 0; in onSaveInstanceState()
1873 if (firstPos >= mItemCount) { in onSaveInstanceState()
1874 firstPos = mItemCount - 1; in onSaveInstanceState()
2019 mOldItemCount = mItemCount; in onFocusChanged()
2020 mItemCount = mAdapter.getCount(); in onFocusChanged()
2093 (int)((float)mScrollY / getHeight() * mItemCount * 100), 0); in computeVerticalScrollOffset()
2097 final int count = mItemCount; in computeVerticalScrollOffset()
[all …]
DExpandableListView.java380 final int lastChildFlPos = mItemCount - getFooterViewsCount() - headerViewsCount - 1; in dispatchDraw()
626 final int footerViewsStart = mItemCount - getFooterViewsCount(); in isHeaderOrFooterPosition()
DAdapterViewAnimator.java967 mItemCount = mAdapter.getCount(); in setAdapter()
DSpinner.java654 if (mItemCount == 0) { in layout()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DPersisterQueueTests.java321 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/
DAccessibilityRecord.java90 int mItemCount = UNDEFINED; field in AccessibilityRecord
355 return mItemCount; in getItemCount()
367 mItemCount = itemCount; in setItemCount()
852 mItemCount = record.mItemCount; in init()
878 mItemCount = UNDEFINED; in clear()
908 append(builder, "ItemCount", mItemCount); in appendTo()
DAccessibilityEvent.java1229 record.mItemCount = parcel.readInt(); in readAccessibilityRecordFromParcel()
1295 parcel.writeInt(record.mItemCount); in writeAccessibilityRecordToParcel()
/frameworks/ex/widget/java/com/android/ex/widget/
DStaggeredGridView.java112 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/
DRecyclerView.java3012 mState.mItemCount = mAdapter.getItemCount(); in onMeasure()
3014 mState.mItemCount = 0; in onMeasure()
3440 mState.mItemCount = mAdapter.getItemCount(); in dispatchLayoutStep1()
3525 mState.mItemCount = mAdapter.getItemCount(); in dispatchLayoutStep2()
3604 mState.mPreviousLayoutItemCount = mState.mItemCount; in dispatchLayoutStep3()
11193 int mItemCount = 0; field in RecyclerView.State
11229 mItemCount = 0; in reset()
11244 mItemCount = adapter.getItemCount(); in prepareForNestedPrefetch()
11396 : mItemCount; in getItemCount()
11404 + ", mItemCount=" + mItemCount in toString()
/frameworks/base/config/
Dhiddenapi-greylist-max-o.txt73170 Landroid/view/accessibility/AccessibilityRecord;->mItemCount:I
80645 Landroid/widget/AdapterView;->mItemCount:I