Home
last modified time | relevance | path

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

1234

/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()
DGridLayoutManager.java123 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/
DAccessibilityTargetAdapter.java86 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/
DHearingDevicesListAdapterTest.java71 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/
DDragUtils.java40 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/
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/core/java/android/widget/
DTextViewOnReceiveContentListener.java95 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()
DRemoteCollectionItemsAdapter.java90 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/
DProfileViewPagerAdapter.java40 public int getItemCount() { in getItemCount() method in ProfileViewPagerAdapter
/frameworks/base/packages/SystemUI/src/com/android/systemui/wallet/ui/
DDotIndicatorDecoration.java61 if (recyclerView.getAdapter().getItemCount() > 1) { in getItemOffsets()
72 int itemCount = recyclerView.getAdapter().getItemCount(); in onDrawOver()
DWalletCardCarousel.java167 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/
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/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/packages/SystemUI/src/com/android/systemui/mediaprojection/appselector/view/
DRecentTasksAdapter.kt52 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/
DAbstractMultiProfilePagerAdapter.java144 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/
DRecyclerViewActivity.java76 public int getItemCount() { in getItemCount() method in RecyclerViewActivity.TestAdapter
/frameworks/base/core/tests/coretests/src/com/android/internal/view/
DRecyclerViewCaptureHelperTest.java91 public int getItemCount() { in getItemCount() method in RecyclerViewCaptureHelperTest.TestAdapter
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/management/
DStructureAdapter.kt39 override fun getItemCount() = models.size in getItemCount() method
/frameworks/base/core/java/android/view/
DContentInfo.java260 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/
DMediaOutputAdapterTest.java128 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/
DFakeAdapter.java55 final int itemCount = binding.getItemCount(); in FakeAdapter()
/frameworks/opt/setupwizard/library/recyclerview/test/instrumentation/src/com/android/setupwizardlib/test/
DHeaderRecyclerViewTest.java157 public int getItemCount() { in getItemCount() method in HeaderRecyclerViewTest.TestAdapter
/frameworks/base/packages/EasterEgg/src/com/android/egg/neko/
DNekoDialog.java98 public int getItemCount() { in getItemCount() method in NekoDialog.Adapter
/frameworks/base/packages/CompanionDeviceManager/src/com/android/companiondevicemanager/
DDeviceListAdapter.java94 public int getItemCount() { in getItemCount() method in DeviceListAdapter

1234