Home
last modified time | relevance | path

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

12345

/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/dirlist/
DDirectoryAddonsAdapterTest.java66 assertEquals(mEnv.model.getItemCount() + 1, mAdapter.getItemCount()); in testItemCount_mixed()
76 assertEquals(mEnv.model.getItemCount(), mAdapter.getItemCount()); in testItemCount_allDirs()
86 assertEquals(mEnv.model.getItemCount(), mAdapter.getItemCount()); in testItemCount_allFiles()
98 assertEquals(mEnv.model.getItemCount() + 1, mAdapter.getItemCount()); in testAddsInfoMessage_WithDirectoryChildren()
104 assertEquals(1, mAdapter.getItemCount()); in testItemCount_none()
114 assertEquals(2, mAdapter.getItemCount()); in testAddsInfoMessage_WithNoItem()
124 assertEquals(2, mAdapter.getItemCount()); in testAddsErrorMessage_WithNoItem()
190 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.java94 int currentItemCount = mAdapter.getItemCount(); in show()
107 mLayoutManager.scrollToPosition(mAdapter.getItemCount() - 1); in show()
123 if (pos != getAdapter().getItemCount() - 1) { in onAccessibilityClick()
169 if (pos != mAdapter.getItemCount() - 1) { in onViewHovered()
182 if (pos != mAdapter.getItemCount() - 1) { in onSingleTapUp()
230 if (position == getItemCount() - 1) { in onBindViewHolder()
244 public int getItemCount() { in getItemCount() method in HorizontalBreadcrumb.BreadcrumbAdapter
DFocusManager.java139 if (mScope.adapter.getItemCount() == 0) { in focusDirectoryList()
230 return mScope.adapter.getItemCount() - 1; in findTargetPosition()
259 if (currentPosition < mScope.adapter.getItemCount() - 1) { in findTargetPosition()
328 int max = mScope.adapter.getItemCount() - 1; in findPagedTargetPosition()
558 int itemCount = mScope.adapter.getItemCount(); in buildIndex()
/packages/apps/Car/libs/car-stream-ui-lib/src/com/android/car/view/
DCarLayoutManager.java285 if (getItemCount() == 0) { in scrollVerticallyBy()
306 boolean isLastViewVisible = getPosition(lastFullyVisibleView) == getItemCount() - 1; in scrollVerticallyBy()
474 if (firstFullyVisibleChildPosition > 0 && firstFocusableChildIndex + 1 < getItemCount()) { in onAddFocusables()
557 if (state.getItemCount() <= sampleViewsThatCanFitOnScreen) { in computeVerticalScrollExtent()
560 return SCROLL_RANGE * sampleViewsThatCanFitOnScreen / state.getItemCount(); in computeVerticalScrollExtent()
595 state.getItemCount() - numberOfSampleViewsThatCanFitOnScreen; in computeVerticalScrollOffset()
680 return getPosition(lastFullyVisibleChild) == getItemCount() - 1; in isAtBottom()
783 if (anchorPosition > getItemCount() - 1) {
862 if (adjacentRowPosition >= state.getItemCount() - 1) {
1158 if (getItemCount() != mItemCountDuringLastPageBreakUpdate) { in updatePageBreakPositions()
[all …]
DPagedListView.java332 int originalCount = mAdapter.getItemCount(); in tryUpdateMaxPages()
334 int newCount = mAdapter.getItemCount(); in tryUpdateMaxPages()
364 int itemCount = mAdapter.getItemCount(); in onLayout()
/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/Car/Radio/src/com/android/car/radio/
DCarouselView.java126 Log.d(TAG, "adapter item count: " + adapter.getItemCount()); in setAdapter()
129 mScrapViews.ensureCapacity(adapter.getItemCount()); in setAdapter()
166 if (mAdapter == null || position >= mAdapter.getItemCount() || position < 0) { in shiftToPosition()
214 int itemCount = mAdapter.getItemCount(); in onMeasure()
320 if (mBoundViews > mAdapter.getItemCount()) { in onLayout()
463 public abstract int getItemCount(); in getItemCount() method in CarouselView.Adapter
DPresetsAdapter.java95 holder.bindPreset(station, isActiveStation, getItemCount()); in onBindViewHolder()
102 getItemCount(), position)); in onPresetClicked()
105 if (mPresetClickListener != null && getItemCount() > position) { in onPresetClicked()
116 public int getItemCount() { in getItemCount() method in PresetsAdapter
/packages/apps/Settings/tests/robotests/src/com/android/settings/dashboard/conditional/
DConditionAdapterTest.java76 assertThat(mConditionAdapter.getItemCount()).isEqualTo(0); in getItemCount_notFullyExpanded_shouldReturn0()
80 assertThat(mConditionAdapter.getItemCount()).isEqualTo(0); in getItemCount_notFullyExpanded_shouldReturn0()
84 assertThat(mConditionAdapter.getItemCount()).isEqualTo(0); in getItemCount_notFullyExpanded_shouldReturn0()
91 assertThat(mConditionAdapter.getItemCount()).isEqualTo(1); in getItemCount_fullyExpanded_shouldReturnListSize()
95 assertThat(mConditionAdapter.getItemCount()).isEqualTo(2); in getItemCount_fullyExpanded_shouldReturnListSize()
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/
DDirectoryAddonsAdapter.java154 public int getItemCount() {
158 ? mDelegate.getItemCount() + addons
159 : mDelegate.getItemCount() + addons + 1;
206 if (p == getItemCount() - 1 && mInflateMessage.shouldShow()) {
260 if (p == getItemCount() - 1 && mInflateMessage.shouldShow()) {
/packages/apps/DocumentsUI/src/com/android/documentsui/clipping/
DUrisSupplier.java51 public abstract int getItemCount(); in getItemCount() method in UrisSupplier
136 public int getItemCount() { in getItemCount() method in UrisSupplier.JumboUrisSupplier
222 ArrayList<Uri> docs = new ArrayList<>(clipData.getItemCount()); in listDocs()
224 for (int i = 0; i < clipData.getItemCount(); ++i) { in listDocs()
234 public int getItemCount() { in getItemCount() method in UrisSupplier.StandardUrisSupplier
/packages/apps/TV/src/com/android/tv/dvr/ui/list/
DScheduleRowAdapter.java197 headerRow.setItemCount(headerRow.getItemCount() + 1); in addScheduleRow()
203 headerRow.setItemCount(headerRow.getItemCount() + 1); in addScheduleRow()
231 int currentCount = headerRow.getItemCount(); in removeScheduleRow()
233 if (headerRow.getItemCount() == 0) { in removeScheduleRow()
246 headerRow.getItemCount(), headerRow.getItemCount())); in updateHeaderDescription()
/packages/apps/Dialer/java/com/android/dialer/calldetails/
DCallDetailsAdapter.java77 } else if (position == getItemCount() - 1) { in onBindViewHolder()
86 !entry.getHistoryResultsList().isEmpty() && position != getItemCount() - 2); in onBindViewHolder()
94 } else if (position == getItemCount() - 1) { in getItemViewType()
102 public int getItemCount() { in getItemCount() method in CallDetailsAdapter
/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.java76 mProgressBuilder.setProgress(mResourceUris.getItemCount(), mDocsProcessed, false); in getProgressNotification()
79 String.format(format, mDocsProcessed, mResourceUris.getItemCount())); in getProgressNotification()
108 failureCount += this.mResourceUris.getItemCount(); in start()
/packages/apps/Launcher3/src/com/android/launcher3/widget/
DWidgetsRecyclerView.java81 int rowCount = mAdapter.getItemCount(); in scrollToPositionAtProgress()
133 int height = child.getMeasuredHeight() * mAdapter.getItemCount(); in getAvailableScrollHeight()
140 return mAdapter.getItemCount() == 0; in isModelNotReady()
/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/DocumentsUI/tests/unit/com/android/documentsui/
DModelTest.java107 assertEquals(ITEM_COUNT, model.getItemCount()); in testItemCount()
137 assertEquals(ITEM_COUNT * 2, model.getItemCount()); in testModelIdIsUnique()
181 assertEquals(0, model.getItemCount()); in testResetAfterGettingException()
/packages/apps/ExactCalculator/src/com/android/calculator2/
DHistoryAdapter.java87 holder.mDivider.setVisibility(position == getItemCount() - 1 in onBindViewHolder()
123 public int getItemCount() { in getItemCount() method in HistoryAdapter
157 if (position == getItemCount() - 1) { in shouldShowHeader()
/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/TV/src/com/android/tv/ui/sidepanel/
DSideFragment.java202 notifyItemsChanged(0, mAdapter.getItemCount()); in notifyItemsChanged()
210 notifyItemsChanged(positionStart, mAdapter.getItemCount() - positionStart); in notifyItemsChanged()
292 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/Car/Dialer/src/com/android/car/dialer/
DContactResultsAdapter.java82 holder.bind(mContacts.get(position), getItemCount()); in onBindViewHolder()
92 public int getItemCount() { in getItemCount() method in ContactResultsAdapter
/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()

12345