Home
last modified time | relevance | path

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

12345678

/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/dirlist/
DDirectoryAddonsAdapterTest.java69 assertEquals(mEnv.model.getItemCount() + 1, mAdapter.getItemCount()); in testItemCount_mixed()
90 assertEquals(mEnv.model.getItemCount(), mAdapter.getItemCount()); in testItemCount_allDirs()
100 assertEquals(mEnv.model.getItemCount(), mAdapter.getItemCount()); in testItemCount_allFiles()
112 assertEquals(mEnv.model.getItemCount() + 1, mAdapter.getItemCount()); in testAddsInfoMessage_WithDirectoryChildren()
118 assertEquals(1, mAdapter.getItemCount()); in testItemCount_none()
128 assertEquals(2, mAdapter.getItemCount()); in testAddsInfoMessage_WithNoItem()
138 assertEquals(2, mAdapter.getItemCount()); in testAddsErrorMessage_WithNoItem()
154 assertEquals(2, mAdapter.getItemCount()); in testOpenTreeMessage_shouldBlockChild()
165 assertEquals(1, mAdapter.getItemCount()); in testOpenTreeMessage_normalChild()
181 assertEquals(1, mAdapter.getItemCount()); in testOpenTreeMessage_restrictStorageAccessFalse_blockTreeChild()
[all …]
DModelBackedDocumentsAdapterTest.java57 assertEquals(mEnv.model.getItemCount(), mAdapter.getItemCount()); in testItemCount()
/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/androidTest/java/com/android/car/ui/recyclerview/
DContentLimitingAdapterTest.java45 assertThat(mContentLimitingAdapter.getItemCount()).isEqualTo(50); in setMaxItem_toLowerThanTotalItems()
52 assertThat(mContentLimitingAdapter.getItemCount()).isEqualTo(21); in setMaxItem_toLowerThanTotalItems()
62 assertThat(mContentLimitingAdapter.getItemCount()).isEqualTo(50); in setMaxItem_toLowerThanTotalItems()
69 assertThat(mContentLimitingAdapter.getItemCount()).isEqualTo(50); in setMaxItem_toOne()
75 assertThat(mContentLimitingAdapter.getItemCount()).isEqualTo(2); in setMaxItem_toOne()
85 assertThat(mContentLimitingAdapter.getItemCount()).isEqualTo(50); in setMaxItem_toOne()
92 assertThat(mContentLimitingAdapter.getItemCount()).isEqualTo(50); in setMaxItem_toZero()
98 assertThat(mContentLimitingAdapter.getItemCount()).isEqualTo(1); in setMaxItem_toZero()
105 assertThat(mContentLimitingAdapter.getItemCount()).isEqualTo(50); in setMaxItem_toZero()
112 assertThat(mContentLimitingAdapter.getItemCount()).isEqualTo(50); in setMaxItem_toHigherThanTotalItems()
[all …]
/packages/apps/DocumentsUI/src/com/android/documentsui/
DHorizontalBreadcrumb.java91 int currentItemCount = mAdapter.getItemCount(); in show()
106 mLayoutManager.scrollToPosition(mAdapter.getItemCount() - 1); in show()
122 if (pos != getAdapter().getItemCount() - 1) { in onAccessibilityClick()
145 if (pos != mAdapter.getItemCount() - 1 && pos != -1) { in onSingleTapUp()
165 mLastItemSize = getItemCount(); in BreadcrumbAdapter()
183 final boolean isLast = position == getItemCount() - 1; in onBindViewHolder()
197 public int getItemCount() { in getItemCount() method in HorizontalBreadcrumb.BreadcrumbAdapter
217 mLastItemSize = getItemCount(); in updateLastItemSize()
DFocusManager.java145 if (!mScope.isValid() || mScope.adapter.getItemCount() == 0) { in focusDirectoryList()
257 return mScope.adapter.getItemCount() - 1; in findTargetPosition()
286 if (currentPosition < mScope.adapter.getItemCount() - 1) { in findTargetPosition()
355 int max = mScope.adapter.getItemCount() - 1; in findPagedTargetPosition()
585 int itemCount = mScope.adapter.getItemCount(); in buildIndex()
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/
DDirectoryAddonsAdapter.java165 public int getItemCount() {
169 ? mDelegate.getItemCount() + addons
170 : mDelegate.getItemCount() + addons + 1;
217 if (p == getItemCount() - 1 && mInflateMessage.shouldShow()) {
271 if (p == getItemCount() - 1 && mInflateMessage.shouldShow()) {
/packages/apps/DocumentsUI/src/com/android/documentsui/services/
DResolvedResourcesJob.java54 assert(srcs.getItemCount() > 0); in ResolvedResourcesJob()
57 mResolvedDocs = new ArrayList<>(srcs.getItemCount()); in ResolvedResourcesJob()
85 if (!isCanceled() && docsResolved < mResourceUris.getItemCount()) { in setUp()
127 failureCount = this.mResourceUris.getItemCount(); in buildDocumentList()
DDeleteJob.java79 mProgressBuilder.setProgress(mResourceUris.getItemCount(), mDocsProcessed, false); in getProgressNotification()
82 String.format(format, mDocsProcessed, mResourceUris.getItemCount())); in getProgressNotification()
111 failureCount += this.mResourceUris.getItemCount(); in start()
/packages/apps/DocumentsUI/src/com/android/documentsui/clipping/
DUrisSupplier.java52 public abstract int getItemCount(); in getItemCount() method in UrisSupplier
142 public int getItemCount() { in getItemCount() method in UrisSupplier.JumboUrisSupplier
228 ArrayList<Uri> docs = new ArrayList<>(clipData.getItemCount()); in listDocs()
230 for (int i = 0; i < clipData.getItemCount(); ++i) { in listDocs()
240 public int getItemCount() { in getItemCount() method in UrisSupplier.StandardUrisSupplier
/packages/apps/TV/src/com/android/tv/dvr/ui/list/
DDvrHistoryRowAdapter.java267 headerRow.setItemCount(headerRow.getItemCount() + 1); in addScheduleRow()
273 headerRow.setItemCount(headerRow.getItemCount() + 1); in addScheduleRow()
339 int currentCount = headerRow.getItemCount(); in removeScheduleRow()
341 if (headerRow.getItemCount() == 0) { in removeScheduleRow()
356 headerRow.getItemCount(), in updateHeaderDescription()
357 headerRow.getItemCount())); in updateHeaderDescription()
DScheduleRowAdapter.java208 headerRow.setItemCount(headerRow.getItemCount() + 1); in addScheduleRow()
214 headerRow.setItemCount(headerRow.getItemCount() + 1); in addScheduleRow()
247 int currentCount = headerRow.getItemCount(); in removeScheduleRow()
249 if (headerRow.getItemCount() == 0) { in removeScheduleRow()
264 headerRow.getItemCount(), in updateHeaderDescription()
265 headerRow.getItemCount())); in updateHeaderDescription()
/packages/apps/Dialer/java/com/android/dialer/calldetails/
DCallDetailsAdapterCommon.java115 } else if (position == getItemCount() - 1) { in onBindViewHolder()
126 !entry.getHistoryResultsList().isEmpty() && position != getItemCount() - 2); in onBindViewHolder()
135 } else if (position == getItemCount() - 1) { in getItemViewType()
144 public int getItemCount() { in getItemCount() method in CallDetailsAdapterCommon
/packages/apps/Car/Radio/src/com/android/car/radio/
DBrowseAdapter.java212 holder.bindPreset(entry.program, isCurrent, getItemCount(), entry.isFavorite); in onBindViewHolder()
230 public int getItemCount() { in getItemCount() method in BrowseAdapter
241 if (position < 0 || position >= getItemCount()) return; in handlePresetClicked()
250 if (position < 0 || position >= getItemCount()) return; in handlePresetFavoriteChanged()
/packages/apps/Launcher3/src/com/android/launcher3/widget/
DWidgetsRecyclerView.java89 int rowCount = mAdapter.getItemCount(); in scrollToPositionAtProgress()
141 return child.getMeasuredHeight() * mAdapter.getItemCount() - getScrollbarTrackHeight() in getAvailableScrollHeight()
146 return mAdapter.getItemCount() == 0; in isModelNotReady()
/packages/apps/Settings/tests/robotests/src/com/android/settings/datetime/timezone/
DRegionSearchPickerTest.java69 assertEquals(1, adapter.getItemCount()); in createAdapter_matchRegionName()
93 assertEquals(1, adapter.getItemCount()); in clickItemView_duringRegionSearch_shouldNotCrash()
100 assertEquals(0, adapter.getItemCount()); in clickItemView_duringRegionSearch_shouldNotCrash()
/packages/apps/Settings/tests/robotests/src/com/android/settings/localepicker/
DLocaleListEditorTest.java103 when(mAdapter.getItemCount()).thenReturn(1); in showRemoveLocaleWarningDialog_allLocaleSelected_shouldShowErrorDialog()
125 when(mAdapter.getItemCount()).thenReturn(2); in showRemoveLocaleWarningDialog_mainLocaleSelected_shouldShowLocaleChangeDialog()
147 when(mAdapter.getItemCount()).thenReturn(2); in showRemoveLocaleWarningDialog_mainLocaleNotSelected_shouldShowConfirmDialog()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/
DModelTest.java108 assertEquals(ITEM_COUNT, model.getItemCount()); in testItemCount()
138 assertEquals(ITEM_COUNT * 2, model.getItemCount()); in testModelIdIsUnique()
182 assertEquals(0, model.getItemCount()); in testResetAfterGettingException()
/packages/apps/PermissionController/src/android/support/wearable/view/
DWearableListView.java566 (currentPosition == getAdapter().getItemCount() - 1 && velocityY > 0)) { in fling()
588 0, Math.min(getAdapter().getItemCount() - 1, currentPosition + delta)); in fling()
905 int count = state.getItemCount(); in onLayoutChildren()
961 if (mMaximizeSingleItem && state.getItemCount() == 1) { in performLayoutChildren()
987 final int count = state.getItemCount(); in performLayoutMultipleChildren()
1037 return getItemCount() != 1 || !mWasZoomedIn; in canScrollVertically()
1082 if (state.getItemCount() > mFirstPosition + getChildCount()) { in scrollVerticallyBy()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/files/
DQuickViewIntentBuilderTest.java118 assertThat(clip.getItemCount()).isEqualTo(3); in testBuild()
138 assertThat(clip.getItemCount()).isEqualTo(3); in testBuild_excludeFolder()
157 assertThat(clip.getItemCount()).isEqualTo(1); in testBuild_twoProfiles_containsOnlyPreviewDocument()
/packages/apps/QuickAccessWallet/src/com/android/systemui/plugin/globalactions/wallet/
DWalletCardCarousel.java137 if (mWalletCardAdapter.getItemCount() > 1) { in onLayout()
158 && mWalletCardAdapter.getItemCount() > 0 in updatePadding()
191 boolean wasEmpty = mWalletCardAdapter.getItemCount() == 0; in setData()
428 public int getItemCount() { in getItemCount() method in WalletCardCarousel
/packages/apps/Dialer/java/com/android/dialer/rtt/
DRttTranscriptAdapter.java61 if (i + 1 < getItemCount()) { in onBindViewHolder()
77 public int getItemCount() { in getItemCount() method in RttTranscriptAdapter
/packages/apps/DeskClock/src/com/android/deskclock/stopwatch/
DLapsAdapter.java75 public int getItemCount() { in getItemCount() method in LapsAdapter
129 if (getItemCount() == 0) { in updateCurrentLap()
152 if (getItemCount() == 10) { in addLap()
/packages/apps/TV/src/com/android/tv/guide/
DProgramGrid.java256 scrollToPosition(getAdapter().getItemCount() - 1); in focusFind()
258 } else if (getSelectedPosition() == getAdapter().getItemCount() - 1) { in focusFind()
259 int itemCount = getLayoutManager().getItemCount(); in focusFind()
/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()
293 public int getItemCount() { in getItemCount() method in SideFragment.ItemAdapter
/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/test/java/com/android/car/ui/recyclerview/
DCarUiSnapHelperTest.java70 when(mLayoutManager.getItemCount()).thenReturn(1); in calculateDistanceToFinalSnap_shouldReturnTopMarginDifference()
85 when(mLayoutManager.getItemCount()).thenReturn(1); in calculateScrollDistance_shouldScrollHeightOfView()

12345678