Home
last modified time | relevance | path

Searched refs:getItemCount (Results 1 – 25 of 41) sorted by relevance

12

/frameworks/base/core/java/com/android/internal/widget/
DScrollbarHelper.java33 if (lm.getChildCount() == 0 || state.getItemCount() == 0 || startChild == null in computeScrollOffset()
42 ? Math.max(0, state.getItemCount() - maxPosition - 1) in computeScrollOffset()
64 if (lm.getChildCount() == 0 || state.getItemCount() == 0 || startChild == null in computeScrollExtent()
83 if (lm.getChildCount() == 0 || state.getItemCount() == 0 || startChild == null in computeScrollRange()
88 return state.getItemCount(); in computeScrollRange()
97 return (int) ((float) laidOutArea / laidOutRange * state.getItemCount()); in computeScrollRange()
DLinearLayoutManager.java472 if (state.getItemCount() == 0) {
740 anchorInfo.mPosition = mStackFromEnd ? state.getItemCount() - 1 : 0; in updateAnchorInfoForLayout()
796 if (mPendingScrollPosition < 0 || mPendingScrollPosition >= state.getItemCount()) {
1191 if (pos >= 0 && pos < state.getItemCount()) { in collectPrefetchPositionsForLayoutState()
1741 return findReferenceChild(recycler, state, 0, getChildCount(), state.getItemCount()); in findFirstReferenceChild()
1745 return findReferenceChild(recycler, state, getChildCount() - 1, -1, state.getItemCount()); in findLastReferenceChild()
2125 return mCurrentPosition >= 0 && mCurrentPosition < state.getItemCount();
2319 && lp.getViewLayoutPosition() < state.getItemCount();
DRecyclerView.java3012 mState.mItemCount = mAdapter.getItemCount(); in onMeasure()
3313 final int itemCount = mState.getItemCount(); in findNextViewToFocus()
3440 mState.mItemCount = mAdapter.getItemCount(); in dispatchLayoutStep1()
3525 mState.mItemCount = mAdapter.getItemCount(); in dispatchLayoutStep2()
4685 final int adapterSize = mState.getItemCount(); in run()
5244 if (holder.mPosition < 0 || holder.mPosition >= mAdapter.getItemCount()) { in validateViewHolderForOffsetPosition()
5316 if (offsetPosition < 0 || offsetPosition >= mAdapter.getItemCount()) { in bindViewToPosition()
5319 + "state:" + mState.getItemCount()); in bindViewToPosition()
5359 if (position < 0 || position >= mState.getItemCount()) { in convertPreLayoutPositionToPostLayout()
5361 + "item count is " + mState.getItemCount()); in convertPreLayoutPositionToPostLayout()
[all …]
/frameworks/opt/setupwizard/library/recyclerview/src/com/android/setupwizardlib/view/
DHeaderRecyclerView.java173 public int getItemCount() { in getItemCount() method in HeaderRecyclerView.HeaderAdapter
174 int count = adapter.getItemCount(); in getItemCount()
234 event.setItemCount(event.getItemCount() - numberOfHeaders); in onInitializeAccessibilityEvent()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DAutoSizingList.java67 int count = getItemCount(requestedHeight); in onMeasure()
76 private int getItemCount(int requestedHeight) { in getItemCount() method in AutoSizingList
/frameworks/base/services/core/java/com/android/server/clipboard/
DClipboardService.java354 if (clip == null || clip.getItemCount() <= 0) { in setPrimaryClip()
511 } else if (clip.getItemCount() > 0) { in setPrimaryClipInternal()
544 for (int i = clip.getItemCount() - 1; i >= 0; i--) { in setPrimaryClipInternal()
643 final int N = data.getItemCount(); in checkDataOwnerLocked()
698 final int N = clipboard.primaryClip.getItemCount(); in addActiveOwnerLocked()
735 final int N = clipboard.primaryClip.getItemCount(); in revokeUris()
/frameworks/base/tests/UiBench/src/com/android/test/uibench/
DSlowNestedRecyclerViewActivity.java114 public int getItemCount() { return INNER_ITEM_COUNT; } in getItemCount() method in SlowNestedRecyclerViewActivity.InnerAdapter
177 public int getItemCount() { in getItemCount() method in SlowNestedRecyclerViewActivity.OuterAdapter
/frameworks/base/packages/CarSystemUI/src/com/android/systemui/volume/
DCarVolumeItemAdapter.java56 public int getItemCount() { in getItemCount() method in CarVolumeItemAdapter
/frameworks/base/tests/UiBench/src/com/android/test/uibench/recyclerview/
DRvArrayAdapter.java61 public int getItemCount() { in getItemCount() method in RvArrayAdapter
DRvBoxAdapter.java96 public int getItemCount() { in getItemCount() method in RvBoxAdapter
/frameworks/base/core/tests/coretests/src/android/view/accessibility/
DRecycleAccessibilityEventTest.java68 assertEquals(-1, first.getItemCount()); in testAccessibilityEventViewTextChangedType()
/frameworks/base/packages/CarSystemUI/src/com/android/systemui/statusbar/car/
DUserGridRecyclerView.java354 public int getItemCount() { in getItemCount() method in UserGridRecyclerView.UserAdapter
419 if (position == state.getItemCount() - 1 in getItemOffsets()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/binding/
DFakeAdapter.java55 final int itemCount = binding.getItemCount(); in FakeAdapter()
DFakeExpandableAdapter.java52 createItems(binding, binding.getItemCount(), binding.getRepeatCount(), mGroupTypes, 1); in FakeExpandableAdapter()
/frameworks/opt/setupwizard/library/recyclerview/test/instrumentation/src/com/android/setupwizardlib/test/
DHeaderRecyclerViewTest.java157 public int getItemCount() { in getItemCount() method in HeaderRecyclerViewTest.TestAdapter
DSetupWizardRecyclerLayoutTest.java169 public int getItemCount() { in createTestAdapter() method in SetupWizardRecyclerLayoutTest
DGlifRecyclerLayoutTest.java166 public int getItemCount() { in createTestAdapter() method in GlifRecyclerLayoutTest
DDividerItemDecorationTest.java171 public int getItemCount() { in drawDecoration()
/frameworks/opt/setupwizard/library/recyclerview/src/com/android/setupwizardlib/
DDividerItemDecoration.java131 final int lastItemIndex = parent.getAdapter().getItemCount() - 1; in shouldDrawDividerBelow()
/frameworks/base/core/java/android/content/
DClipboardManager.java210 if (clip != null && clip.getItemCount() > 0) { in getText()
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/view/
DStickyHeaderListView.java160 event.setItemCount(event.getItemCount() - numberOfHeaders); in onInitializeAccessibilityEvent()
/frameworks/opt/setupwizard/library/recyclerview/src/com/android/setupwizardlib/items/
DRecyclerItemAdapter.java88 public int getItemCount() { in getItemCount() method in RecyclerItemAdapter
/frameworks/opt/setupwizard/library/recyclerview/test/instrumentation/src/com/android/setupwizardlib/items/
DRecyclerItemAdapterTest.java70 assertEquals("Adapter should have 5 items", 5, adapter.getItemCount()); in testAdapter()
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/
DInteractionController.java376 if (event.getFromIndex() != -1 && event.getToIndex() != -1 && event.getItemCount() != -1) {
378 (event.getItemCount() - 1) == event.getToIndex();
/frameworks/base/services/core/java/com/android/server/job/
DGrantedUriPermissions.java105 final int N = clip.getItemCount(); in grantClip()

12