Home
last modified time | relevance | path

Searched refs:itemCount (Results 1 – 25 of 30) sorted by relevance

12

/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/
DDirectoryAddonsAdapter.java281 public void onItemRangeChanged(int positionStart, int itemCount) {
286 public void onItemRangeChanged(int positionStart, int itemCount, Object payload) {
287 assert(itemCount == 1);
288 notifyItemRangeChanged(toViewPosition(positionStart), itemCount, payload);
292 public void onItemRangeInserted(int positionStart, int itemCount) {
293 assert(itemCount == 1);
297 notifyItemRangeInserted(toViewPosition(positionStart), itemCount);
301 public void onItemRangeRemoved(int positionStart, int itemCount) {
302 assert(itemCount == 1);
306 notifyItemRangeRemoved(toViewPosition(positionStart), itemCount);
[all …]
/packages/apps/TV/src/com/android/tv/dvr/ui/list/
DSchedulesHeaderRow.java32 public SchedulesHeaderRow(String title, String description, int itemCount) { in SchedulesHeaderRow() argument
34 mItemCount = itemCount; in SchedulesHeaderRow()
55 public void setItemCount(int itemCount) { in setItemCount() argument
56 mItemCount = itemCount; in setItemCount()
86 public DateHeaderRow(String title, String description, int itemCount, long deadLineMs) { in DateHeaderRow() argument
87 super(title, description, itemCount); in DateHeaderRow()
106 public SeriesRecordingHeaderRow(String title, String description, int itemCount, in SeriesRecordingHeaderRow() argument
108 super(title, description, itemCount); in SeriesRecordingHeaderRow()
DSeriesScheduleRowAdapter.java235 public void notifyArrayItemRangeChanged(int positionStart, int itemCount) { in notifyArrayItemRangeChanged() argument
238 super.notifyArrayItemRangeChanged(positionStart, itemCount); in notifyArrayItemRangeChanged()
/packages/apps/Settings/src/com/android/settings/localepicker/
DLocaleLinearLayoutManager.java80 final int itemCount = this.getItemCount(); in onInitializeAccessibilityNodeInfoForItem() local
102 if (position + 1 < itemCount) { // it is not the last one in onInitializeAccessibilityNodeInfoForItem()
106 if (itemCount > 1) { in onInitializeAccessibilityNodeInfoForItem()
115 final int itemCount = this.getItemCount(); in performAccessibilityActionForItem() local
127 if (position + 1 < itemCount) { in performAccessibilityActionForItem()
139 if (position != itemCount - 1) { in performAccessibilityActionForItem()
140 mAdapter.onItemMove(position, itemCount - 1); in performAccessibilityActionForItem()
145 if (itemCount > 1) { in performAccessibilityActionForItem()
DLocaleDragAndDropAdapter.java178 int itemCount = (null != mFeedItemList ? mFeedItemList.size() : 0); in getItemCount() local
179 if (itemCount < 2 || mRemoveMode) { in getItemCount()
184 return itemCount; in getItemCount()
207 int itemCount = mFeedItemList.size(); in setRemoveMode() local
208 for (int i = 0; i < itemCount; i++) { in setRemoveMode()
219 int itemCount = mFeedItemList.size(); in removeItem() local
220 if (itemCount <= 1) { in removeItem()
223 if (position < 0 || position >= itemCount) { in removeItem()
231 int itemCount = mFeedItemList.size(); in removeChecked() local
232 for (int i = itemCount - 1; i >= 0; i--) { in removeChecked()
/packages/apps/Car/Dialer/src/com/android/car/dialer/
DStrequentsAdapter.java123 int itemCount = mData == null ? 0 : mData.size(); in getItemCount() local
124 itemCount += mLastCallData == null ? 0 : 1; in getItemCount()
126 mIsEmpty = itemCount == 0; in getItemCount()
131 itemCount++; in getItemCount()
134 return mMaxItems >= 0 ? Math.min(mMaxItems, itemCount) : itemCount; in getItemCount()
359 int itemCount = getItemCount(); in setBackground() local
362 if (itemCount == 1) { in setBackground()
369 } else if (adapterPosition == itemCount - 1) { in setBackground()
DContactResultViewHolder.java58 public void bind(ContactDetails details, int itemCount) { in bind() argument
59 updateBackground(itemCount); in bind()
102 private void updateBackground(int itemCount) { in updateBackground() argument
107 if (itemCount == 1) { in updateBackground()
114 } else if (position == itemCount - 1) { in updateBackground()
DContactDetailsFragment.java257 int itemCount = getItemCount(); in setBackground() local
260 if (itemCount == 1) { in setBackground()
267 } else if (adapterPosition == itemCount - 1) { in setBackground()
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DFilterEmptyPromptSet.java38 int itemCount = mBaseSet.getMediaItemCount(); in getMediaItemCount() local
39 if (itemCount > 0) { in getMediaItemCount()
40 return itemCount; in getMediaItemCount()
48 int itemCount = mBaseSet.getMediaItemCount(); in getMediaItem() local
49 if (itemCount > 0) { in getMediaItem()
/packages/apps/Car/Radio/src/com/android/car/radio/
DPresetsViewHolder.java93 public void bindPreset(RadioStation preset, boolean isActiveStation, int itemCount) { in bindPreset() argument
102 setPresetCardBackground(itemCount); in bindPreset()
130 private void setPresetCardBackground(int itemCount) { in setPresetCardBackground() argument
135 if (itemCount == 1) { in setPresetCardBackground()
141 } else if (position == itemCount - 1) { in setPresetCardBackground()
DCarouselView.java214 int itemCount = mAdapter.getItemCount(); in onMeasure() local
247 if (++currentAdapterPosition == itemCount) { in onMeasure()
257 if (mBoundViews == itemCount) { in onMeasure()
269 currentAdapterPosition = itemCount - 1; in onMeasure()
292 if (mBoundViews == itemCount) { in onMeasure()
/packages/apps/DocumentsUI/src/com/android/documentsui/selection/
DSelectionManager.java111 int startPosition, int itemCount, Object payload) { in reset()
116 public void onItemRangeInserted(int startPosition, int itemCount) { in reset()
121 public void onItemRangeRemoved(int startPosition, int itemCount) { in reset()
123 assert(itemCount > 0); in reset()
131 public void onItemRangeMoved(int fromPosition, int toPosition, int itemCount) { in reset()
DBandController.java134 int startPosition, int itemCount, Object payload) { in BandController()
139 public void onItemRangeInserted(int startPosition, int itemCount) { in BandController()
146 public void onItemRangeRemoved(int startPosition, int itemCount) { in BandController()
148 assert(itemCount > 0); in BandController()
154 public void onItemRangeMoved(int fromPosition, int toPosition, int itemCount) { in BandController()
/packages/apps/Car/libs/car-stream-ui-lib/src/com/android/car/view/
DPagedListView.java364 int itemCount = mAdapter.getItemCount(); in onLayout() local
369 hasFocus(), mLastItemCount, itemCount, focusedChild, firstBorn, in onLayout()
378 if (mNeedsFocus && itemCount > 0) { in onLayout()
384 if (itemCount > mLastItemCount && focusedChild == firstBorn && in onLayout()
388 mLastItemCount = itemCount; in onLayout()
/packages/apps/Dialer/java/com/android/dialer/contactsfragment/
DFastScroller.java89 final int itemCount = adapter.getItemCount(); in setRecyclerViewPosition() local
90 float scrolledPosition = getScrolledPercentage(y) * (float) itemCount; in setRecyclerViewPosition()
91 int targetPos = getValueInRange(0, itemCount - 1, (int) scrolledPosition); in setRecyclerViewPosition()
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcp/
DBrowsedMediaPlayer.java776 for (int itemCount = 0; itemCount < tempItems.size(); itemCount++) { in queueItem2MediaItem()
778 build.setMediaId(Long.toString(tempItems.get(itemCount).getQueueId())); in queueItem2MediaItem()
779 build.setTitle(tempItems.get(itemCount).getDescription().getTitle()); in queueItem2MediaItem()
780 build.setExtras(tempItems.get(itemCount).getDescription().getExtras()); in queueItem2MediaItem()
/packages/apps/Settings/src/com/android/settings/
DSettingsPreferenceFragment.java104 public void onItemRangeChanged(int positionStart, int itemCount) {
109 public void onItemRangeChanged(int positionStart, int itemCount, Object payload) {
114 public void onItemRangeInserted(int positionStart, int itemCount) {
119 public void onItemRangeRemoved(int positionStart, int itemCount) {
124 public void onItemRangeMoved(int fromPosition, int toPosition, int itemCount) {
/packages/apps/Launcher3/src/com/android/launcher3/folder/
DFolderPagedView.java318 public void arrangeChildren(ArrayList<View> list, int itemCount) { in arrangeChildren() argument
319 arrangeChildren(list, itemCount, true); in arrangeChildren()
323 private void arrangeChildren(ArrayList<View> list, int itemCount, boolean saveChanges) { in arrangeChildren() argument
330 setupContentDimensions(itemCount); in arrangeChildren()
341 for (int i = 0; i < itemCount; i++) { in arrangeChildren()
DFolder.java1237 public void rearrangeChildren(int itemCount) { in rearrangeChildren() argument
1239 mContent.arrangeChildren(views, Math.max(itemCount, views.size())); in rearrangeChildren()
1252 int itemCount = mInfo.contents.size(); in replaceFolderWithFinalItem()
1253 if (itemCount <= 1) { in replaceFolderWithFinalItem()
1256 if (itemCount == 1) { in replaceFolderWithFinalItem()
/packages/apps/Launcher2/src/com/android/launcher2/
DFocusHelper.java301 final int itemCount = itemContainer.getChildCount(); in handleAppsCustomizeKeyEvent() local
337 if (iconIndex < (itemCount - 1)) { in handleAppsCustomizeKeyEvent()
368 int newiconIndex = Math.min(itemCount - 1, ((y + 1) * countX) + x); in handleAppsCustomizeKeyEvent()
412 itemContainer.getChildAt(itemCount - 1).requestFocus(); in handleAppsCustomizeKeyEvent()
427 itemContainer.getChildAt(itemCount - 1).requestFocus(); in handleAppsCustomizeKeyEvent()
/packages/apps/DeskClock/src/com/android/deskclock/ringtone/
DRingtoneLoader.java80 final int itemCount = systemRingtoneCount + mCustomRingtones.size() + 3; in loadInBackground() local
82 final List<ItemAdapter.ItemHolder<Uri>> itemHolders = new ArrayList<>(itemCount); in loadInBackground()
/packages/apps/DocumentsUI/src/com/android/documentsui/
DFocusManager.java558 int itemCount = mScope.adapter.getItemCount(); in buildIndex() local
559 List<String> index = new ArrayList<>(itemCount); in buildIndex()
560 for (int i = 0; i < itemCount; i++) { in buildIndex()
/packages/apps/StorageManager/src/com/android/storagemanager/deletionhelper/
DDownloadsDeletionPreferenceGroup.java141 private void updatePreferenceText(int itemCount, long bytes, long mostRecent) { in updatePreferenceText() argument
145 if (itemCount != 0) { in updatePreferenceText()
/packages/apps/PackageInstaller/src/com/android/packageinstaller/permission/ui/television/
DPermissionsFrameFragment.java159 public void onItemRangeInserted(int positionStart, int itemCount) { in onCreateAdapter()
164 public void onItemRangeRemoved(int positionStart, int itemCount) { in onCreateAdapter()
/packages/apps/Settings/src/com/android/settings/dashboard/
DProgressiveDisclosureMixin.java130 final int itemCount = screen.getPreferenceCount(); in collapse() local
138 for (int i = itemCount - 1; i >= mTileLimit; i--) { in collapse()

12