Searched refs:getItemCount (Results 1 - 25 of 172) sorted by relevance

1234567

/frameworks/base/core/java/com/android/internal/widget/
H A DScrollbarHelper.java33 if (lm.getChildCount() == 0 || state.getItemCount() == 0 || startChild == null
42 ? Math.max(0, state.getItemCount() - maxPosition - 1)
64 if (lm.getChildCount() == 0 || state.getItemCount() == 0 || startChild == null
83 if (lm.getChildCount() == 0 || state.getItemCount() == 0 || startChild == null
88 return state.getItemCount();
97 return (int) ((float) laidOutArea / laidOutRange * state.getItemCount());
/frameworks/support/v7/recyclerview/src/main/java/androidx/recyclerview/widget/
H A DScrollbarHelper.java32 if (lm.getChildCount() == 0 || state.getItemCount() == 0 || startChild == null
41 ? Math.max(0, state.getItemCount() - maxPosition - 1)
63 if (lm.getChildCount() == 0 || state.getItemCount() == 0 || startChild == null
82 if (lm.getChildCount() == 0 || state.getItemCount() == 0 || startChild == null
87 return state.getItemCount();
96 return (int) ((float) laidOutArea / laidOutRange * state.getItemCount());
H A DLayoutState.java90 return mCurrentPosition >= 0 && mCurrentPosition < state.getItemCount();
H A DListAdapter.java128 public int getItemCount() { method in class:ListAdapter
/frameworks/support/paging/runtime/src/main/java/androidx/paging/
H A DPagedListAdapter.java160 public int getItemCount() { method in class:PagedListAdapter
161 return mDiffer.getItemCount();
/frameworks/support/v7/recyclerview/src/androidTest/java/androidx/recyclerview/widget/
H A DGridLayoutManagerBaseConfigSetTest.java58 for (int i = 1; i < mAdapter.getItemCount(); i += config.mSpanCount + 2) {
62 final int[] globalPositions = new int[mAdapter.getItemCount()];
74 while (visited < mAdapter.getItemCount()) {
101 visited, mAdapter.getItemCount());
118 expectedPositions.set(mAdapter.getItemCount() - i - 1);
133 BitSet shouldTest = new BitSet(mAdapter.getItemCount());
134 shouldTest.set(0, mAdapter.getItemCount() - 1, true);
H A DLinearLayoutManagerSavedStateTest.java100 scrollToPosition(testAdapter().getItemCount() * 3 / 4);
113 scrollToPositionWithOffset(testAdapter().getItemCount() / 3,
127 scrollToPositionWithOffset(testAdapter().getItemCount() * 2 / 3,
219 position = testAdapter().getItemCount() / 2;
225 return testAdapter().getItemCount() == 0;
235 if (testAdapter().getItemCount() > 0) {
296 final int itemCount = mTestAdapter.getItemCount();
H A DRecyclerViewAccessibilityTest.java160 assertEquals(adapter.getItemCount(), collectionInfo.getRowCount());
163 assertEquals(adapter.getItemCount(), collectionInfo.getColumnCount());
176 assertEquals(event.getItemCount(), adapter.getItemCount());
H A DStaggeredGridLayoutManagerSavedStateTest.java77 scrollToPosition(adapter().getItemCount() * 3 / 4);
90 scrollToPositionWithOffset(adapter().getItemCount() / 3,
104 scrollToPositionWithOffset(adapter().getItemCount() * 2 / 3,
182 final int itemCount = mAdapter.getItemCount();
/frameworks/support/viewpager2/src/androidTest/java/androidx/viewpager2/widget/swipe/
H A DViewAdapterActivity.java49 public int getItemCount() {
/frameworks/support/preference/src/androidTest/java/androidx/preference/tests/
H A DExpandablePreferenceTest.java80 assertEquals(2, preferenceGroupAdapter.getItemCount());
103 assertEquals(3, preferenceGroupAdapter.getItemCount());
129 assertEquals(4, preferenceGroupAdapter.getItemCount());
156 assertEquals(3, preferenceGroupAdapter.getItemCount());
169 assertEquals(3, preferenceGroupAdapter.getItemCount());
/frameworks/support/leanback/src/androidTest/java/androidx/leanback/widget/
H A DGridWidgetPrefetchTest.java45 when(state.getItemCount()).thenReturn(gridView.getAdapter().getItemCount());
74 public int getItemCount() {
185 for (int i = 0; i < getItemCount(); i++) {
226 public int getItemCount() { method in class:GridWidgetPrefetchTest.OuterAdapter
236 gridView.getAdapter().getItemCount(), registry);
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
H A DAutoSizingList.java66 int count = getItemCount(requestedHeight);
75 private int getItemCount(int requestedHeight) { method in class:AutoSizingList
/frameworks/base/core/tests/coretests/src/android/view/accessibility/
H A DRecycleAccessibilityEventTest.java68 assertEquals(-1, first.getItemCount());
/frameworks/base/tests/UiBench/src/com/android/test/uibench/recyclerview/
H A DRvArrayAdapter.java61 public int getItemCount() { method in class:RvArrayAdapter
/frameworks/support/car/src/main/java/androidx/car/widget/
H A DGridLayoutManagerUtils.java39 int itemCount = parent.getAdapter().getItemCount();
/frameworks/support/frameworks/support/samples/SupportWearDemos/src/main/java/com/example/android/support/wear/app/
H A DSimpleWearableRecyclerViewDemo.java73 public int getItemCount() { method in class:SimpleWearableRecyclerViewDemo.DemoAdapter
/frameworks/support/frameworks/support/samples/ViewPager2Demos/src/main/java/com/example/androidx/viewpager2/
H A DCardActivity.java61 public int getItemCount() {
/frameworks/support/samples/SupportWearDemos/src/main/java/com/example/android/support/wear/app/
H A DSimpleWearableRecyclerViewDemo.java73 public int getItemCount() { method in class:SimpleWearableRecyclerViewDemo.DemoAdapter
/frameworks/support/samples/ViewPager2Demos/src/main/java/com/example/androidx/viewpager2/
H A DCardActivity.java61 public int getItemCount() {
/frameworks/support/wear/src/androidTest/java/androidx/wear/widget/
H A DSwipeDismissFrameLayoutTestActivity.java72 public int getItemCount() { method in class:SwipeDismissFrameLayoutTestActivity.MyRecyclerViewAdapter
H A DWearableRecyclerViewTestActivity.java61 public int getItemCount() { method in class:WearableRecyclerViewTestActivity.TestAdapter
/frameworks/support/preference/src/androidTest/java/androidx/preference/
H A DPreferenceGroupInitialExpandedChildrenCountTest.java141 assertEquals(TOTAL_PREFERENCE + 2, preferenceGroupAdapter.getItemCount());
146 assertEquals(TOTAL_PREFERENCE + 2, preferenceGroupAdapter.getItemCount());
151 assertEquals(TOTAL_PREFERENCE + 2, preferenceGroupAdapter.getItemCount());
157 assertEquals(INITIAL_EXPANDED_COUNT + 2, preferenceGroupAdapter.getItemCount());
342 assertEquals(TOTAL_PREFERENCE, adapter.getItemCount());
348 assertEquals(INITIAL_EXPANDED_COUNT + 1, adapter.getItemCount());
/frameworks/support/frameworks/support/samples/Support7Demos/src/main/java/com/example/android/supportv7/widget/
H A DAsyncListUtilActivity.java105 public int getItemCount() { method in class:AsyncListUtilActivity.AsyncAdapter
106 return mAsyncListUtil.getItemCount();
H A DNestedRecyclerViewActivity.java84 public int getItemCount() { method in class:NestedRecyclerViewActivity.InnerAdapter
146 public int getItemCount() { method in class:NestedRecyclerViewActivity.OuterAdapter

Completed in 145 milliseconds

1234567