Home
last modified time | relevance | path

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

12

/packages/apps/Dialer/tests/src/com/android/dialer/calllog/
DGroupingListAdapterTests.java109 assertEquals(3, mAdapter.getItemCount()); in testGroupingWithoutGroups()
119 assertEquals(2, mAdapter.getItemCount()); in testGroupingWithCollapsedGroupAtTheBeginning()
129 assertEquals(4, mAdapter.getItemCount()); in testGroupingWithExpandedGroupAtTheBeginning()
142 assertEquals(2, mAdapter.getItemCount()); in testGroupingWithExpandCollapseCycleAtTheBeginning()
151 assertEquals(3, mAdapter.getItemCount()); in testGroupingWithCollapsedGroupInTheMiddle()
162 assertEquals(6, mAdapter.getItemCount()); in testGroupingWithExpandedGroupInTheMiddle()
175 assertEquals(3, mAdapter.getItemCount()); in testGroupingWithCollapsedGroupAtTheEnd()
186 assertEquals(6, mAdapter.getItemCount()); in testGroupingWithExpandedGroupAtTheEnd()
199 assertEquals(6, mAdapter.getItemCount()); in testGroupingWithMultipleCollapsedGroups()
217 assertEquals(10, mAdapter.getItemCount()); in testGroupingWithMultipleExpandedGroups()
[all …]
/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 …]
DFolderIcon.java538 if (mFolder.getItemCount() == 0 && !mAnimating) return;
/packages/apps/Launcher3/src/com/android/launcher3/
DFolder.java407 if (getItemCount() <= 1) { in bind()
866 if (getItemCount() <= mContent.itemsPerPage()) { in onDropCompleted()
1081 public int getItemCount() { in getItemCount() method in Folder
1082 return mContent.getItemCount(); in getItemCount()
1098 if (getItemCount() <= 1) { in onCloseComplete()
1118 if (getItemCount() == 1) { in replaceFolderWithFinalItem()
1124 if (getItemCount() <= 1) { in replaceFolderWithFinalItem()
1286 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()
DFolderIcon.java608 if (mFolder.getItemCount() == 0 && !mAnimating) return;
/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()
DConversationFastScroller.java410 final int itemCount = mRv.getAdapter().getItemCount(); in handleDragMove()
/packages/apps/Dialer/src/com/android/dialer/calllog/
DCallLogAdapter.java364 return getItemCount() == 0; in isEmpty()
577 public int getItemCount() { in getItemCount() method in CallLogAdapter
578 return super.getItemCount() + ((isShowingRecentsTab() || mShowPromoCard) ? 1 : 0); in getItemCount()
583 if (position == getItemCount() - 1 && isShowingRecentsTab()) { in getItemViewType()
DGroupingListAdapter.java218 public int getItemCount() { in getItemCount() method in GroupingListAdapter
/packages/apps/PackageInstaller/src/com/android/packageinstaller/permission/ui/
DPermissionsFrameFragment.java158 boolean isEmpty = adapter.getItemCount() == 0; in onCreateAdapter()
167 boolean isEmpty = adapter.getItemCount() == 0; in onCreateAdapter()
/packages/apps/Messaging/src/com/android/messaging/widget/
DBaseWidgetFactory.java133 final int count = getItemCount(); in getCount()
148 protected int getItemCount() {
DWidgetConversationListService.java89 || (mShouldShowViewMore && position >= getItemCount())) { in getViewAt()
/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/TvSettings/QuickSettings/src/com/android/tv/quicksettings/
DDialogAdapter.java87 public int getItemCount() { in getItemCount() method in DialogAdapter
/packages/apps/Settings/src/com/android/settings/
DDropDownPreference.java129 public int getItemCount() { in getItemCount() method in DropDownPreference
/packages/apps/Messaging/src/com/android/messaging/ui/
DCursorRecyclerAdapter.java152 public int getItemCount() { in getItemCount() method in CursorRecyclerAdapter
/packages/apps/Messaging/tests/src/com/android/messaging/ui/conversation/
DConversationFragmentTest.java145 assertEquals("bad cursor", cursor.getCount(), listView.getAdapter().getItemCount()); in testLoadListView()
/packages/apps/Launcher3/src/com/android/launcher3/widget/
DWidgetsListAdapter.java89 public int getItemCount() { in getItemCount() method in WidgetsListAdapter
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/picker/
DPicker.java418 public int getItemCount() { in getItemCount() method in Picker.Adapter
/packages/apps/Launcher3/src/com/android/launcher3/allapps/
DAllAppsGridAdapter.java535 public int getItemCount() { in getItemCount() method in AllAppsGridAdapter
/packages/apps/Settings/src/com/android/settings/notification/
DNotificationSettings.java465 if (mLockscreen.getItemCount() > 1) { in initLockscreenNotifications()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/dialog/
DDialogActionAdapter.java107 public int getItemCount() { in getItemCount() method in DialogActionAdapter
DSettingsLayoutAdapter.java157 public int getItemCount() { in getItemCount() method in SettingsLayoutAdapter
/packages/apps/ContactsCommon/src/com/android/contacts/common/vcard/
DImportVCardActivity.java555 for (int i = 0; i < clipData.getItemCount(); i++) { in onActivityResult()

12