Home
last modified time | relevance | path

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

1234567

/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/dirlist/
DDirectoryAddonsAdapterTest.java68 assertEquals(mEnv.model.getItemCount() + 1, mAdapter.getItemCount()); in testItemCount_mixed()
89 assertEquals(mEnv.model.getItemCount(), mAdapter.getItemCount()); in testItemCount_allDirs()
99 assertEquals(mEnv.model.getItemCount(), mAdapter.getItemCount()); in testItemCount_allFiles()
111 assertEquals(mEnv.model.getItemCount() + 1, mAdapter.getItemCount()); in testAddsInfoMessage_WithDirectoryChildren()
117 assertEquals(1, mAdapter.getItemCount()); in testItemCount_none()
127 assertEquals(2, mAdapter.getItemCount()); in testAddsInfoMessage_WithNoItem()
137 assertEquals(2, mAdapter.getItemCount()); in testAddsErrorMessage_WithNoItem()
204 public int getItemCount() { return 0; } in getItemCount() method in DirectoryAddonsAdapterTest.DummyAdapter
DModelBackedDocumentsAdapterTest.java57 assertEquals(mEnv.model.getItemCount(), mAdapter.getItemCount()); in testItemCount()
/packages/apps/DocumentsUI/src/com/android/documentsui/
DHorizontalBreadcrumb.java95 int currentItemCount = mAdapter.getItemCount(); in show()
108 mLayoutManager.scrollToPosition(mAdapter.getItemCount() - 1); in show()
124 if (pos != getAdapter().getItemCount() - 1) { in onAccessibilityClick()
170 if (pos != mAdapter.getItemCount() - 1) { in onViewHovered()
183 if (pos != mAdapter.getItemCount() - 1) { in onSingleTapUp()
231 if (position == getItemCount() - 1) { in onBindViewHolder()
245 public int getItemCount() { in getItemCount() method in HorizontalBreadcrumb.BreadcrumbAdapter
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.java163 public int getItemCount() {
167 ? mDelegate.getItemCount() + addons
168 : mDelegate.getItemCount() + addons + 1;
215 if (p == getItemCount() - 1 && mInflateMessage.shouldShow()) {
269 if (p == getItemCount() - 1 && mInflateMessage.shouldShow()) {
/packages/apps/DocumentsUI/src/com/android/documentsui/services/
DResolvedResourcesJob.java53 assert(srcs.getItemCount() > 0); in ResolvedResourcesJob()
56 mResolvedDocs = new ArrayList<>(srcs.getItemCount()); in ResolvedResourcesJob()
84 if (!isCanceled() && docsResolved < mResourceUris.getItemCount()) { in setUp()
126 failureCount = this.mResourceUris.getItemCount(); in buildDocumentList()
DDeleteJob.java78 mProgressBuilder.setProgress(mResourceUris.getItemCount(), mDocsProcessed, false); in getProgressNotification()
81 String.format(format, mDocsProcessed, mResourceUris.getItemCount())); in getProgressNotification()
110 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
137 public int getItemCount() { in getItemCount() method in UrisSupplier.JumboUrisSupplier
223 ArrayList<Uri> docs = new ArrayList<>(clipData.getItemCount()); in listDocs()
225 for (int i = 0; i < clipData.getItemCount(); ++i) { in listDocs()
235 public int getItemCount() { in getItemCount() method in UrisSupplier.StandardUrisSupplier
/packages/apps/TV/src/com/android/tv/dvr/ui/list/
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()
DDvrHistoryRowAdapter.java261 headerRow.setItemCount(headerRow.getItemCount() + 1); in addScheduleRow()
267 headerRow.setItemCount(headerRow.getItemCount() + 1); in addScheduleRow()
333 int currentCount = headerRow.getItemCount(); in removeScheduleRow()
335 if (headerRow.getItemCount() == 0) { in removeScheduleRow()
350 headerRow.getItemCount(), in updateHeaderDescription()
351 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 >= getItemCount()) return; in handlePresetClicked()
250 if (position >= getItemCount()) return; in handlePresetFavoriteChanged()
/packages/apps/Launcher3/src/com/android/launcher3/widget/
DWidgetsRecyclerView.java86 int rowCount = mAdapter.getItemCount(); in scrollToPositionAtProgress()
138 return child.getMeasuredHeight() * mAdapter.getItemCount() - getScrollbarTrackHeight() in getAvailableScrollHeight()
143 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/ThemePicker/src/com/android/customization/widget/
DOptionSelectorController.java220 public int getItemCount() { in initOptions()
246 int widthPerItem = totalWidth / mAdapter.getItemCount(); in initOptions()
260 int defaultTotalPadding = itemSideMargin * (mAdapter.getItemCount() * 2 + 2); in initOptions()
262 int spaceBetweenItems = extraSpace / (mAdapter.getItemCount() + 1); in initOptions()
/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.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.java199 notifyItemsChanged(0, mAdapter.getItemCount()); in notifyItemsChanged()
207 notifyItemsChanged(positionStart, mAdapter.getItemCount() - positionStart); in notifyItemsChanged()
287 public int getItemCount() { in getItemCount() method in SideFragment.ItemAdapter
/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/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/
DClockFragment.java167 mCityList.setVisibility(mCityAdapter.getItemCount() == 0 ? GONE : VISIBLE); in onResume()
399 mDateFormatForAccessibility, getItemCount() > 1); in onBindViewHolder()
407 public int getItemCount() { in getItemCount() method in ClockFragment.SelectedCitiesAdapter
423 if (mIsPortrait && getItemCount() > 0) { in refreshAlarm()
/packages/apps/Settings/src/com/android/settings/panel/
DPanelSlicesAdapter.java84 public int getItemCount() { in getItemCount() method in PanelSlicesAdapter
94 return mSliceLiveData.subList(0, getItemCount()); in getData()
/packages/apps/Settings/src/com/android/settings/localepicker/
DLocaleLinearLayoutManager.java81 final int itemCount = this.getItemCount(); in onInitializeAccessibilityNodeInfoForItem()
116 final int itemCount = this.getItemCount(); in performAccessibilityActionForItem()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/clipping/
DUrisSupplierTest.java80 assertEquals(SHORT_URI_LIST.size(), uris.getItemCount()); in testItemCountEquals_shortList()
87 assertEquals(LONG_URI_LIST.size(), uris.getItemCount()); in testItemCountEquals_longList()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/localepicker/
DLocaleLinearLayoutManager.java81 final int itemCount = this.getItemCount(); in onInitializeAccessibilityNodeInfoForItem()
116 final int itemCount = this.getItemCount(); in performAccessibilityActionForItem()

1234567