/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 | GridLayoutManager.java | 123 if (state.getItemCount() < 1) { in getRowCountForAccessibility() 127 return getSpanGroupIndex(recycler, state, state.getItemCount() - 1) + 1; in getRowCountForAccessibility() 136 if (state.getItemCount() < 1) { in getColumnCountForAccessibility() 140 return getSpanGroupIndex(recycler, state, state.getItemCount() - 1) + 1; in getColumnCountForAccessibility() 355 if (state.getItemCount() > 0 && !state.isPreLayout()) { in onAnchorReady() 396 final int indexLimit = state.getItemCount() - 1; in ensureAnchorIsInCorrectSpan()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/floatingmenu/ |
D | AccessibilityTargetAdapter.java | 86 holder.updateItemPadding(mItemPadding, getItemCount()); in onBindViewHolder() 105 if (position == (getItemCount() - 1)) { in getItemViewType() 117 public int getItemCount() { in getItemCount() method in AccessibilityTargetAdapter
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/accessibility/hearingaid/ |
D | HearingDevicesListAdapterTest.java | 71 assertThat(mAdapter.getItemCount()).isEqualTo(1); in constructor_oneItem_getOneCount() 80 assertThat(mAdapter.getItemCount()).isEqualTo(1); in refreshDeviceItemList_oneItem_getOneCount()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/draganddrop/ |
D | DragUtils.java | 40 if (event.getClipData().getItemCount() <= 0) { in canHandleDrag() 83 for (int i = 0; i < data.getItemCount(); i++) { in getLaunchIntent()
|
/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/core/java/android/widget/ |
D | TextViewOnReceiveContentListener.java | 95 for (int i = 0; i < clip.getItemCount(); i++) { in onReceiveContent() 148 for (int i = 0; i < clip.getItemCount(); i++) { in coerceToText() 298 for (int i = 0; i < clip.getItemCount(); i++) { in handleNonTextViaImeCommitContent() 336 for (int i = 0; i < clip.getItemCount(); i++) { in containsUri()
|
D | RemoteCollectionItemsAdapter.java | 90 int[] layoutIds = IntStream.range(0, mItems.getItemCount()) in initLayoutIdToViewType() 145 return mItems.getItemCount(); in getCount()
|
/frameworks/base/packages/SettingsLib/ProfileSelector/src/com/android/settingslib/widget/ |
D | ProfileViewPagerAdapter.java | 40 public int getItemCount() { in getItemCount() method in ProfileViewPagerAdapter
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/wallet/ui/ |
D | DotIndicatorDecoration.java | 61 if (recyclerView.getAdapter().getItemCount() > 1) { in getItemOffsets() 72 int itemCount = recyclerView.getAdapter().getItemCount(); in onDrawOver()
|
D | WalletCardCarousel.java | 167 if (mWalletCardCarouselAdapter.getItemCount() > 1 && width < mTotalCardWidth * 1.5) { in onLayout() 235 && mWalletCardCarouselAdapter.getItemCount() > 0 in updatePadding() 420 public int getItemCount() { in getItemCount() method in WalletCardCarousel
|
/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/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/packages/SystemUI/src/com/android/systemui/mediaprojection/appselector/view/ |
D | RecentTasksAdapter.kt | 52 override fun getItemCount(): Int = items.size in getItemCount() method in com.android.systemui.mediaprojection.appselector.view.RecentTasksAdapter
|
/frameworks/base/core/java/com/android/internal/app/ |
D | AbstractMultiProfilePagerAdapter.java | 144 return getItemCount(); in getCount() 187 abstract int getItemCount(); in getItemCount() method in AbstractMultiProfilePagerAdapter 262 if (getItemCount() == 1) { in rebuildInactiveTab()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/screenshot/ |
D | RecyclerViewActivity.java | 76 public int getItemCount() { in getItemCount() method in RecyclerViewActivity.TestAdapter
|
/frameworks/base/core/tests/coretests/src/com/android/internal/view/ |
D | RecyclerViewCaptureHelperTest.java | 91 public int getItemCount() { in getItemCount() method in RecyclerViewCaptureHelperTest.TestAdapter
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/management/ |
D | StructureAdapter.kt | 39 override fun getItemCount() = models.size in getItemCount() method
|
/frameworks/base/core/java/android/view/ |
D | ContentInfo.java | 260 if (mClip.getItemCount() == 1) { in partition() 266 for (int i = 0; i < mClip.getItemCount(); i++) { in partition()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/dialog/ |
D | MediaOutputAdapterTest.java | 128 assertThat(mMediaOutputAdapter.getItemCount()).isEqualTo(mMediaItems.size()); in getItemCount_returnsMediaItemSize() 172 mMediaOutputAdapter.getItemCount(); in onBindViewHolder_bindGroup_withSessionName_verifyView() 192 mMediaOutputAdapter.getItemCount(); in onBindViewHolder_bindGroup_noSessionName_verifyView() 611 mMediaOutputAdapter.getItemCount(); in onItemClick_clickDevice_verifyConnectDevice() 630 mMediaOutputAdapter.getItemCount(); in onItemClick_clickDeviceWithSessionOngoing_verifyShowsDialog() 731 assertThat(mMediaOutputAdapter.getItemCount()).isEqualTo(mMediaItems.size()); in updateItems_controllerItemsUpdated_notUpdatesInAdapterUntilUpdateItems() 735 assertThat(mMediaOutputAdapter.getItemCount()).isEqualTo(updatedList.size()); in updateItems_controllerItemsUpdated_notUpdatesInAdapterUntilUpdateItems()
|
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/binding/ |
D | FakeAdapter.java | 55 final int itemCount = binding.getItemCount(); in FakeAdapter()
|
/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
|
/frameworks/base/packages/EasterEgg/src/com/android/egg/neko/ |
D | NekoDialog.java | 98 public int getItemCount() { in getItemCount() method in NekoDialog.Adapter
|
/frameworks/base/packages/CompanionDeviceManager/src/com/android/companiondevicemanager/ |
D | DeviceListAdapter.java | 94 public int getItemCount() { in getItemCount() method in DeviceListAdapter
|