/frameworks/base/core/java/com/android/internal/widget/ |
H A D | ScrollbarHelper.java | 33 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 D | ScrollbarHelper.java | 32 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 D | LayoutState.java | 90 return mCurrentPosition >= 0 && mCurrentPosition < state.getItemCount();
|
H A D | ListAdapter.java | 128 public int getItemCount() { method in class:ListAdapter
|
/frameworks/support/paging/runtime/src/main/java/androidx/paging/ |
H A D | PagedListAdapter.java | 160 public int getItemCount() { method in class:PagedListAdapter 161 return mDiffer.getItemCount();
|
/frameworks/support/v7/recyclerview/src/androidTest/java/androidx/recyclerview/widget/ |
H A D | GridLayoutManagerBaseConfigSetTest.java | 58 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 D | LinearLayoutManagerSavedStateTest.java | 100 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 D | RecyclerViewAccessibilityTest.java | 160 assertEquals(adapter.getItemCount(), collectionInfo.getRowCount()); 163 assertEquals(adapter.getItemCount(), collectionInfo.getColumnCount()); 176 assertEquals(event.getItemCount(), adapter.getItemCount());
|
H A D | StaggeredGridLayoutManagerSavedStateTest.java | 77 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 D | ViewAdapterActivity.java | 49 public int getItemCount() {
|
/frameworks/support/preference/src/androidTest/java/androidx/preference/tests/ |
H A D | ExpandablePreferenceTest.java | 80 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 D | GridWidgetPrefetchTest.java | 45 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 D | AutoSizingList.java | 66 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 D | RecycleAccessibilityEventTest.java | 68 assertEquals(-1, first.getItemCount());
|
/frameworks/base/tests/UiBench/src/com/android/test/uibench/recyclerview/ |
H A D | RvArrayAdapter.java | 61 public int getItemCount() { method in class:RvArrayAdapter
|
/frameworks/support/car/src/main/java/androidx/car/widget/ |
H A D | GridLayoutManagerUtils.java | 39 int itemCount = parent.getAdapter().getItemCount();
|
/frameworks/support/frameworks/support/samples/SupportWearDemos/src/main/java/com/example/android/support/wear/app/ |
H A D | SimpleWearableRecyclerViewDemo.java | 73 public int getItemCount() { method in class:SimpleWearableRecyclerViewDemo.DemoAdapter
|
/frameworks/support/frameworks/support/samples/ViewPager2Demos/src/main/java/com/example/androidx/viewpager2/ |
H A D | CardActivity.java | 61 public int getItemCount() {
|
/frameworks/support/samples/SupportWearDemos/src/main/java/com/example/android/support/wear/app/ |
H A D | SimpleWearableRecyclerViewDemo.java | 73 public int getItemCount() { method in class:SimpleWearableRecyclerViewDemo.DemoAdapter
|
/frameworks/support/samples/ViewPager2Demos/src/main/java/com/example/androidx/viewpager2/ |
H A D | CardActivity.java | 61 public int getItemCount() {
|
/frameworks/support/wear/src/androidTest/java/androidx/wear/widget/ |
H A D | SwipeDismissFrameLayoutTestActivity.java | 72 public int getItemCount() { method in class:SwipeDismissFrameLayoutTestActivity.MyRecyclerViewAdapter
|
H A D | WearableRecyclerViewTestActivity.java | 61 public int getItemCount() { method in class:WearableRecyclerViewTestActivity.TestAdapter
|
/frameworks/support/preference/src/androidTest/java/androidx/preference/ |
H A D | PreferenceGroupInitialExpandedChildrenCountTest.java | 141 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 D | AsyncListUtilActivity.java | 105 public int getItemCount() { method in class:AsyncListUtilActivity.AsyncAdapter 106 return mAsyncListUtil.getItemCount();
|
H A D | NestedRecyclerViewActivity.java | 84 public int getItemCount() { method in class:NestedRecyclerViewActivity.InnerAdapter 146 public int getItemCount() { method in class:NestedRecyclerViewActivity.OuterAdapter
|