/packages/apps/Dialer/tests/src/com/android/dialer/calllog/ |
D | GroupingListAdapterTests.java | 106 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/ |
D | CarLayoutManager.java | 280 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 …]
|
D | PagedLayoutManager.java | 110 if (getChildCount() == 0 || getItemCount() == 0) { in isAtTop() 117 if (getChildCount() == 0 || getItemCount() == 0) { in isAtBottom() 120 return findLastCompletelyVisibleItemPosition() == getItemCount() - 1; in isAtBottom()
|
D | PagedListView.java | 308 int originalCount = mAdapter.getItemCount(); in tryUpdateMaxPages() 310 int newCount = mAdapter.getItemCount(); in tryUpdateMaxPages() 340 int itemCount = mAdapter.getItemCount(); in onLayout()
|
D | CursorRecyclerViewAdapter.java | 50 public int getItemCount() { in getItemCount() method in CursorRecyclerViewAdapter
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
D | Folder.java | 696 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/ |
D | LapsAdapter.java | 63 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/ |
D | WearableListView.java | 565 (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/ |
D | SideFragment.java | 205 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/ |
D | LocaleLinearLayoutManager.java | 80 final int itemCount = this.getItemCount(); in onInitializeAccessibilityNodeInfoForItem() 115 final int itemCount = this.getItemCount(); in performAccessibilityActionForItem()
|
D | LocaleListEditor.java | 150 if (checkedCount == mAdapter.getItemCount()) { in showRemoveLocaleWarningDialog() 277 menuItemRemove.setVisible(mAdapter.getItemCount() > 1); in updateVisibilityOfRemoveMenu()
|
/packages/apps/Messaging/src/com/android/messaging/widget/ |
D | BaseWidgetFactory.java | 133 final int count = getItemCount(); in getCount() 148 protected int getItemCount() {
|
/packages/apps/PackageInstaller/src/com/android/packageinstaller/permission/ui/television/ |
D | PermissionsFrameFragment.java | 171 recyclerView.setVisibility(isEmpty && adapter.getItemCount() == 0 ? in onCreateAdapter() 181 recyclerView.setVisibility(isEmpty && adapter.getItemCount() == 0 ? in onCreateAdapter()
|
/packages/apps/Nfc/src/com/android/nfc/ |
D | BeamShareActivity.java | 141 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/ |
D | Folder.java | 410 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()
|
D | FolderPagedView.java | 176 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/ |
D | ConversationFragment.java | 224 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/ |
D | ItemListRow.java | 62 return mAdapter.getItemCount() > 0; in isVisible()
|
/packages/apps/PackageInstaller/src/com/android/packageinstaller/permission/ui/wear/ |
D | AppPermissionsFragmentWear.java | 113 final int count = mAdapter.getItemCount(); in onResume() 126 if (mAdapter.getItemCount() == 0) { in onViewCreated()
|
/packages/apps/TV/src/com/android/tv/guide/ |
D | TimeListAdapter.java | 56 public int getItemCount() { in getItemCount() method in TimeListAdapter
|
D | GenreListAdapter.java | 58 public int getItemCount() { in getItemCount() method in GenreListAdapter
|
D | ProgramListAdapter.java | 73 public int getItemCount() { in getItemCount() method in ProgramListAdapter
|
/packages/apps/Dialer/src/com/android/dialer/calllog/ |
D | GroupingListAdapter.java | 134 public int getItemCount() { in getItemCount() method in GroupingListAdapter
|
D | CallLogAdapter.java | 350 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/ |
D | DialogAdapter.java | 87 public int getItemCount() { in getItemCount() method in DialogAdapter
|