/frameworks/base/core/java/com/android/internal/widget/ |
D | ScrollbarHelper.java | 33 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()
|
D | LinearLayoutManager.java | 472 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();
|
D | RecyclerView.java | 3012 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/ |
D | HeaderRecyclerView.java | 173 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/ |
D | AutoSizingList.java | 67 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/ |
D | ClipboardService.java | 354 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/ |
D | SlowNestedRecyclerViewActivity.java | 114 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/ |
D | CarVolumeItemAdapter.java | 56 public int getItemCount() { in getItemCount() method in CarVolumeItemAdapter
|
/frameworks/base/tests/UiBench/src/com/android/test/uibench/recyclerview/ |
D | RvArrayAdapter.java | 61 public int getItemCount() { in getItemCount() method in RvArrayAdapter
|
D | RvBoxAdapter.java | 96 public int getItemCount() { in getItemCount() method in RvBoxAdapter
|
/frameworks/base/core/tests/coretests/src/android/view/accessibility/ |
D | RecycleAccessibilityEventTest.java | 68 assertEquals(-1, first.getItemCount()); in testAccessibilityEventViewTextChangedType()
|
/frameworks/base/packages/CarSystemUI/src/com/android/systemui/statusbar/car/ |
D | UserGridRecyclerView.java | 354 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/ |
D | FakeAdapter.java | 55 final int itemCount = binding.getItemCount(); in FakeAdapter()
|
D | FakeExpandableAdapter.java | 52 createItems(binding, binding.getItemCount(), binding.getRepeatCount(), mGroupTypes, 1); in FakeExpandableAdapter()
|
/frameworks/opt/setupwizard/library/recyclerview/test/instrumentation/src/com/android/setupwizardlib/test/ |
D | HeaderRecyclerViewTest.java | 157 public int getItemCount() { in getItemCount() method in HeaderRecyclerViewTest.TestAdapter
|
D | SetupWizardRecyclerLayoutTest.java | 169 public int getItemCount() { in createTestAdapter() method in SetupWizardRecyclerLayoutTest
|
D | GlifRecyclerLayoutTest.java | 166 public int getItemCount() { in createTestAdapter() method in GlifRecyclerLayoutTest
|
D | DividerItemDecorationTest.java | 171 public int getItemCount() { in drawDecoration()
|
/frameworks/opt/setupwizard/library/recyclerview/src/com/android/setupwizardlib/ |
D | DividerItemDecoration.java | 131 final int lastItemIndex = parent.getAdapter().getItemCount() - 1; in shouldDrawDividerBelow()
|
/frameworks/base/core/java/android/content/ |
D | ClipboardManager.java | 210 if (clip != null && clip.getItemCount() > 0) { in getText()
|
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/view/ |
D | StickyHeaderListView.java | 160 event.setItemCount(event.getItemCount() - numberOfHeaders); in onInitializeAccessibilityEvent()
|
/frameworks/opt/setupwizard/library/recyclerview/src/com/android/setupwizardlib/items/ |
D | RecyclerItemAdapter.java | 88 public int getItemCount() { in getItemCount() method in RecyclerItemAdapter
|
/frameworks/opt/setupwizard/library/recyclerview/test/instrumentation/src/com/android/setupwizardlib/items/ |
D | RecyclerItemAdapterTest.java | 70 assertEquals("Adapter should have 5 items", 5, adapter.getItemCount()); in testAdapter()
|
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/ |
D | InteractionController.java | 376 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/ |
D | GrantedUriPermissions.java | 105 final int N = clip.getItemCount(); in grantClip()
|