Home
last modified time | relevance | path

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

123

/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()
107 if (position == (getItemCount() - 1)) { in getItemViewType()
115 public int getItemCount() { in getItemCount() method in AccessibilityTargetAdapter
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DAutoSizingList.java67 int count = getItemCount(requestedHeight); in onMeasure()
76 private int getItemCount(int requestedHeight) { in getItemCount() method in AutoSizingList
/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.java91 int[] layoutIds = IntStream.range(0, mItems.getItemCount()) in initLayoutIdToViewType()
146 return mItems.getItemCount(); in getCount()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/dialog/
DMediaOutputAdapterTest.java95 assertThat(mMediaOutputAdapter.getItemCount()).isEqualTo(mMediaDevices.size()); in getItemCount_nonZeroMode_isDeviceSize()
102 assertThat(mMediaOutputAdapter.getItemCount()).isEqualTo(mMediaDevices.size() + 1); in getItemCount_zeroMode_containExtraOneForPairNew()
110 assertThat(mMediaOutputAdapter.getItemCount()).isEqualTo(mMediaDevices.size() + 1); in getItemCount_withDynamicGroup_containExtraOneForGroup()
134 mMediaOutputAdapter.getItemCount(); in onBindViewHolder_bindGroup_withSessionName_verifyView()
151 mMediaOutputAdapter.getItemCount(); in onBindViewHolder_bindGroup_noSessionName_verifyView()
/frameworks/base/packages/SystemUI/src/com/android/systemui/wallet/ui/
DDotIndicatorDecoration.java59 if (recyclerView.getAdapter().getItemCount() > 1) { in getItemOffsets()
70 int itemCount = recyclerView.getAdapter().getItemCount(); in onDrawOver()
DWalletCardCarousel.java161 if (mWalletCardCarouselAdapter.getItemCount() > 1 && width < mTotalCardWidth * 1.5) { in onLayout()
220 && mWalletCardCarouselAdapter.getItemCount() > 0 in updatePadding()
405 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/services/core/java/com/android/server/clipboard/
DClipboardService.java344 if (clip == null || clip.getItemCount() <= 0) { in checkAndSetPrimaryClip()
566 for (int i = clip.getItemCount() - 1; i >= 0; i--) { in setPrimaryClipInternalLocked()
647 CharSequence text = (clip.getItemCount() == 0) ? null : clip.getItemAt(0).getText(); in startClassificationLocked()
736 && clipboard.primaryClip.getItemCount() > 0 in hasTextLocked()
777 final int N = data.getItemCount(); in checkDataOwner()
833 final int N = clipboard.primaryClip.getItemCount(); in addActiveOwnerLocked()
870 final int N = clipboard.primaryClip.getItemCount(); in revokeUris()
1024 if (data.getItemCount() > 1) { in isText()
/frameworks/base/core/tests/coretests/src/android/view/accessibility/
DRecycleAccessibilityEventTest.java68 assertEquals(-1, first.getItemCount()); in testAccessibilityEventViewTextChangedType()
/frameworks/base/core/java/com/android/internal/app/
DAbstractMultiProfilePagerAdapter.java188 return getItemCount(); in getCount()
227 abstract int getItemCount(); in getItemCount() method in AbstractMultiProfilePagerAdapter
300 if (getItemCount() == 1) { in rebuildInactiveTab()
356 for (int i = 0; i < getItemCount(); i++) { in updateAfterConfigChange()
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/management/
DStructureAdapter.kt37 override fun getItemCount() = models.size in getItemCount() method in com.android.systemui.controls.management.StructureAdapter
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/screenshot/
DRecyclerViewActivity.java76 public int getItemCount() { in getItemCount() method in RecyclerViewActivity.TestAdapter
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/tv/notifications/
DTvNotificationAdapter.java68 public int getItemCount() { in getItemCount() method in TvNotificationAdapter
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/draganddrop/
DDragAndDropController.java157 final boolean hasValidClipData = event.getClipData().getItemCount() > 0 in onDrag()
164 pd.isHandlingDrag, event.getClipData().getItemCount(), in onDrag()
/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/services/core/java/com/android/server/wm/
DSession.java329 if (data.getItemCount() == 0) { in validateAndResolveDragMimeTypeExtras()
332 for (int i = 0; i < data.getItemCount(); i++) { in validateAndResolveDragMimeTypeExtras()
342 for (int i = 0; i < data.getItemCount(); i++) { in validateAndResolveDragMimeTypeExtras()
368 for (int i = 0; i < data.getItemCount(); i++) { in validateAndResolveDragMimeTypeExtras()
398 for (int i = 0; i < data.getItemCount(); i++) { in validateAndResolveDragMimeTypeExtras()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/binding/
DFakeAdapter.java55 final int itemCount = binding.getItemCount(); in FakeAdapter()
/frameworks/base/packages/EasterEgg/src/com/android/egg/neko/
DNekoDialog.java98 public int getItemCount() { in getItemCount() method in NekoDialog.Adapter
/frameworks/opt/setupwizard/library/recyclerview/test/instrumentation/src/com/android/setupwizardlib/test/
DHeaderRecyclerViewTest.java157 public int getItemCount() { in getItemCount() method in HeaderRecyclerViewTest.TestAdapter

123