Home
last modified time | relevance | path

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

123

/packages/apps/Dialer/tests/src/com/android/dialer/calllog/
DGroupingListAdapterTests.java106 assertEquals(3, mAdapter.getItemCount()); in testGroupingWithoutGroups()
116 assertEquals(2, mAdapter.getItemCount()); in testGroupingWithGroupAtTheBeginning()
125 assertEquals(3, mAdapter.getItemCount()); in testGroupingWithGroupInTheMiddle()
135 assertEquals(3, mAdapter.getItemCount()); in testGroupingWithGroupAtTheEnd()
145 assertEquals(6, mAdapter.getItemCount()); in testGroupingWithMultipleGroups()
165 assertEquals(250, mAdapter.getItemCount()); in testGroupDescriptorArrayGrowth()
/packages/services/Car/car-support-lib/src/android/support/car/ui/
DCarLayoutManager.java280 if (getItemCount() == 0) { in scrollVerticallyBy()
301 boolean isLastViewVisible = getPosition(lastFullyVisibleView) == getItemCount() - 1; in scrollVerticallyBy()
463 if (firstFullyVisibleChildPosition > 0 && firstFocusableChildIndex + 1 < getItemCount()) { in onAddFocusables()
546 if (state.getItemCount() <= sampleViewsThatCanFitOnScreen) { in computeVerticalScrollExtent()
549 return SCROLL_RANGE * sampleViewsThatCanFitOnScreen / state.getItemCount(); in computeVerticalScrollExtent()
584 state.getItemCount() - numberOfSampleViewsThatCanFitOnScreen; in computeVerticalScrollOffset()
669 return getPosition(lastFullyVisibleChild) == getItemCount() - 1; in isAtBottom()
772 if (anchorPosition > getItemCount() - 1) {
851 if (adjacentRowPosition >= state.getItemCount() - 1) {
1147 if (getItemCount() != mItemCountDuringLastPageBreakUpdate) { in updatePageBreakPositions()
[all …]
DPagedLayoutManager.java110 if (getChildCount() == 0 || getItemCount() == 0) { in isAtTop()
117 if (getChildCount() == 0 || getItemCount() == 0) { in isAtBottom()
120 return findLastCompletelyVisibleItemPosition() == getItemCount() - 1; in isAtBottom()
DPagedListView.java308 int originalCount = mAdapter.getItemCount(); in tryUpdateMaxPages()
310 int newCount = mAdapter.getItemCount(); in tryUpdateMaxPages()
340 int itemCount = mAdapter.getItemCount(); in onLayout()
DCursorRecyclerViewAdapter.java50 public int getItemCount() { in getItemCount() method in CursorRecyclerViewAdapter
/packages/apps/Launcher2/src/com/android/launcher2/
DFolder.java696 setupContentForNumItems(getItemCount()); in onDropCompleted()
791 return getItemCount() >= mMaxNumItems; in isFull()
910 public int getItemCount() { in getItemCount() method in Folder
928 setupContentForNumItems(getItemCount()); in onCloseComplete()
931 if (getItemCount() <= 1) { in onCloseComplete()
950 if (getItemCount() == 1) { in replaceFolderWithFinalItem()
957 if (getItemCount() <= 1) { in replaceFolderWithFinalItem()
988 View lastChild = getItemAt(getItemCount() - 1); in updateTextViewFocus()
989 getItemAt(getItemCount() - 1); in updateTextViewFocus()
1023 setupContentDimensions(getItemCount()); in onDrop()
[all …]
/packages/apps/DeskClock/src/com/android/deskclock/stopwatch/
DLapsAdapter.java63 public int getItemCount() { in getItemCount() method in LapsAdapter
117 if (getItemCount() == 0) { in updateCurrentLap()
140 if (getItemCount() == 10) { in addLap()
/packages/apps/PackageInstaller/src/android/support/wearable/view/
DWearableListView.java565 (currentPosition == getAdapter().getItemCount() - 1 && velocityY > 0)) { in fling()
587 0, Math.min(getAdapter().getItemCount() - 1, currentPosition + delta)); in fling()
904 int count = state.getItemCount(); in onLayoutChildren()
960 if (mMaximizeSingleItem && state.getItemCount() == 1) { in performLayoutChildren()
986 final int count = state.getItemCount(); in performLayoutMultipleChildren()
1036 return getItemCount() != 1 || !mWasZoomedIn; in canScrollVertically()
1081 if (state.getItemCount() > mFirstPosition + getChildCount()) { in scrollVerticallyBy()
/packages/apps/TV/src/com/android/tv/ui/sidepanel/
DSideFragment.java205 notifyItemsChanged(0, mAdapter.getItemCount()); in notifyItemsChanged()
213 notifyItemsChanged(positionStart, mAdapter.getItemCount() - positionStart); in notifyItemsChanged()
291 public int getItemCount() { in getItemCount() method in SideFragment.ItemAdapter
/packages/apps/Settings/src/com/android/settings/localepicker/
DLocaleLinearLayoutManager.java80 final int itemCount = this.getItemCount(); in onInitializeAccessibilityNodeInfoForItem()
115 final int itemCount = this.getItemCount(); in performAccessibilityActionForItem()
DLocaleListEditor.java150 if (checkedCount == mAdapter.getItemCount()) { in showRemoveLocaleWarningDialog()
277 menuItemRemove.setVisible(mAdapter.getItemCount() > 1); in updateVisibilityOfRemoveMenu()
/packages/apps/Messaging/src/com/android/messaging/widget/
DBaseWidgetFactory.java133 final int count = getItemCount(); in getCount()
148 protected int getItemCount() {
/packages/apps/PackageInstaller/src/com/android/packageinstaller/permission/ui/television/
DPermissionsFrameFragment.java171 recyclerView.setVisibility(isEmpty && adapter.getItemCount() == 0 ? in onCreateAdapter()
181 recyclerView.setVisibility(isEmpty && adapter.getItemCount() == 0 ? in onCreateAdapter()
/packages/apps/Nfc/src/com/android/nfc/
DBeamShareActivity.java141 if (clipData != null && clipData.getItemCount() > 0) { in parseShareIntentAndFinish()
142 for (int i = 0; i < clipData.getItemCount(); i++) { in parseShareIntentAndFinish()
/packages/apps/Launcher3/src/com/android/launcher3/
DFolder.java410 if (getItemCount() <= 1) { in bind()
680 if (getItemCount() <= 1) { in close()
905 if (getItemCount() <= mContent.itemsPerPage()) { in onDropCompleted()
1119 public int getItemCount() { in getItemCount() method in Folder
1120 return mContent.getItemCount(); in getItemCount()
1325 if (getItemCount() <= 1) { in onRemove()
DFolderPagedView.java176 int rank = getItemCount(); in allocateRankForNewItem()
371 public int getItemCount() { in getItemCount() method in FolderPagedView
402 return !ALLOW_FOLDER_SCROLL && getItemCount() >= mMaxItemsPerPage; in isFull()
/packages/apps/Messaging/src/com/android/messaging/ui/conversation/
DConversationFragment.java224 final int totalItemCount = mRecyclerView.getAdapter().getItemCount(); in isScrolledToBottom()
230 if (mAdapter.getItemCount() > 0) { in scrollToBottom()
231 scrollToPosition(mAdapter.getItemCount() - 1, smoothScroll); in scrollToBottom()
633 final int count = layoutManager.getItemCount(); in scrollToPosition()
652 return Math.max(mAdapter.getItemCount() - 1 - lastVisibleItem, 0); in getScrollPositionFromBottom()
871 final int position = Math.max(mAdapter.getItemCount() - 1 - positionFromBottom, 0); in onConversationMessagesCursorUpdated()
1236 return mAdapter != null && mAdapter.getItemCount() > 0; in hasMessages()
/packages/apps/TV/src/com/android/tv/menu/
DItemListRow.java62 return mAdapter.getItemCount() > 0; in isVisible()
/packages/apps/PackageInstaller/src/com/android/packageinstaller/permission/ui/wear/
DAppPermissionsFragmentWear.java113 final int count = mAdapter.getItemCount(); in onResume()
126 if (mAdapter.getItemCount() == 0) { in onViewCreated()
/packages/apps/TV/src/com/android/tv/guide/
DTimeListAdapter.java56 public int getItemCount() { in getItemCount() method in TimeListAdapter
DGenreListAdapter.java58 public int getItemCount() { in getItemCount() method in GenreListAdapter
DProgramListAdapter.java73 public int getItemCount() { in getItemCount() method in ProgramListAdapter
/packages/apps/Dialer/src/com/android/dialer/calllog/
DGroupingListAdapter.java134 public int getItemCount() { in getItemCount() method in GroupingListAdapter
DCallLogAdapter.java350 return getItemCount() == 0; in isEmpty()
619 public int getItemCount() { in getItemCount() method in CallLogAdapter
620 return super.getItemCount() + (mShowVoicemailPromoCard ? 1 : 0) in getItemCount()
/packages/apps/TvSettings/QuickSettings/src/com/android/tv/quicksettings/
DDialogAdapter.java87 public int getItemCount() { in getItemCount() method in DialogAdapter

123