Home
last modified time | relevance | path

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

12

/packages/apps/TV/src/com/android/tv/dvr/ui/list/
DSchedulesHeaderRow.java29 public SchedulesHeaderRow(String title, String description, int itemCount) { in SchedulesHeaderRow() argument
31 mItemCount = itemCount; in SchedulesHeaderRow()
46 public void setItemCount(int itemCount) { in setItemCount() argument
47 mItemCount = itemCount; in setItemCount()
69 public DateHeaderRow(String title, String description, int itemCount, long deadLineMs) { in DateHeaderRow() argument
70 super(title, description, itemCount); in DateHeaderRow()
88 int itemCount, in SeriesRecordingHeaderRow() argument
91 super(title, description, itemCount); in SeriesRecordingHeaderRow()
DSeriesScheduleRowAdapter.java241 public void notifyArrayItemRangeChanged(int positionStart, int itemCount) { in notifyArrayItemRangeChanged() argument
244 super.notifyArrayItemRangeChanged(positionStart, itemCount); in notifyArrayItemRangeChanged()
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/
DDirectoryAddonsAdapter.java290 public void onItemRangeChanged(int positionStart, int itemCount) {
295 public void onItemRangeChanged(int positionStart, int itemCount, Object payload) {
296 assert(itemCount == 1);
297 notifyItemRangeChanged(toViewPosition(positionStart), itemCount, payload);
301 public void onItemRangeInserted(int positionStart, int itemCount) {
302 assert(itemCount == 1);
306 notifyItemRangeInserted(toViewPosition(positionStart), itemCount);
310 public void onItemRangeRemoved(int positionStart, int itemCount) {
311 assert(itemCount == 1);
315 notifyItemRangeRemoved(toViewPosition(positionStart), itemCount);
[all …]
/packages/apps/Settings/src/com/android/settings/localepicker/
DLocaleLinearLayoutManager.java81 final int itemCount = this.getItemCount(); in onInitializeAccessibilityNodeInfoForItem() local
103 if (position + 1 < itemCount) { // it is not the last one in onInitializeAccessibilityNodeInfoForItem()
107 if (itemCount > 1) { in onInitializeAccessibilityNodeInfoForItem()
116 final int itemCount = this.getItemCount(); in performAccessibilityActionForItem() local
128 if (position + 1 < itemCount) { in performAccessibilityActionForItem()
140 if (position != itemCount - 1) { in performAccessibilityActionForItem()
141 mAdapter.onItemMove(position, itemCount - 1); in performAccessibilityActionForItem()
146 if (itemCount > 1) { in performAccessibilityActionForItem()
DLocaleDragAndDropAdapter.java181 int itemCount = (null != mFeedItemList ? mFeedItemList.size() : 0); in getItemCount() local
182 if (itemCount < 2 || mRemoveMode) { in getItemCount()
187 return itemCount; in getItemCount()
210 int itemCount = mFeedItemList.size(); in setRemoveMode() local
211 for (int i = 0; i < itemCount; i++) { in setRemoveMode()
222 int itemCount = mFeedItemList.size(); in removeItem() local
223 if (itemCount <= 1) { in removeItem()
226 if (position < 0 || position >= itemCount) { in removeItem()
234 int itemCount = mFeedItemList.size(); in removeChecked() local
235 for (int i = itemCount - 1; i >= 0; i--) { in removeChecked()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/localepicker/
DLocaleLinearLayoutManager.java81 final int itemCount = this.getItemCount(); in onInitializeAccessibilityNodeInfoForItem() local
103 if (position + 1 < itemCount) { // it is not the last one in onInitializeAccessibilityNodeInfoForItem()
107 if (itemCount > 1) { in onInitializeAccessibilityNodeInfoForItem()
116 final int itemCount = this.getItemCount(); in performAccessibilityActionForItem() local
128 if (position + 1 < itemCount) { in performAccessibilityActionForItem()
140 if (position != itemCount - 1) { in performAccessibilityActionForItem()
141 mAdapter.onItemMove(position, itemCount - 1); in performAccessibilityActionForItem()
146 if (itemCount > 1) { in performAccessibilityActionForItem()
DLocaleDragAndDropAdapter.java181 int itemCount = (null != mFeedItemList ? mFeedItemList.size() : 0); in getItemCount() local
182 if (itemCount < 2 || mRemoveMode) { in getItemCount()
187 return itemCount; in getItemCount()
210 int itemCount = mFeedItemList.size(); in setRemoveMode() local
211 for (int i = 0; i < itemCount; i++) { in setRemoveMode()
222 int itemCount = mFeedItemList.size(); in removeItem() local
223 if (itemCount <= 1) { in removeItem()
226 if (position < 0 || position >= itemCount) { in removeItem()
234 int itemCount = mFeedItemList.size(); in removeChecked() local
235 for (int i = itemCount - 1; i >= 0; i--) { in removeChecked()
/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/DocumentsUI/tests/common/com/android/documentsui/dirlist/
DTestDocumentsAdapter.java53 public void onItemRangeChanged(int startPosition, int itemCount, Object payload) { in TestDocumentsAdapter()
55 int last = startPosition + itemCount; in TestDocumentsAdapter()
63 public void onItemRangeInserted(int startPosition, int itemCount) { in TestDocumentsAdapter()
67 public void onItemRangeRemoved(int startPosition, int itemCount) { in TestDocumentsAdapter()
71 public void onItemRangeMoved(int fromPosition, int toPosition, int itemCount) { in TestDocumentsAdapter()
/packages/apps/Dialer/java/com/android/dialer/app/calllog/
DGroupingListAdapter.java61 private int itemCount; field in GroupingListAdapter
93 itemCount = groupMetadata.size(); in changeCursor()
117 return itemCount; in getItemCount()
150 itemCount = 0; in reset()
/packages/apps/Launcher3/go/quickstep/src/com/android/quickstep/
DTaskAdapter.java170 int itemCount = TASKS_START_POSITION; in getItemCount() local
173 itemCount += MAX_TASKS_TO_DISPLAY; in getItemCount()
175 itemCount += Math.min(mLoader.getCurrentTaskList().size(), MAX_TASKS_TO_DISPLAY); in getItemCount()
177 return itemCount; in getItemCount()
/packages/apps/Dialer/java/com/android/dialer/contactsfragment/
DFastScroller.java94 final int itemCount = adapter.getItemCount(); in setRecyclerViewPosition() local
95 float scrolledPosition = getScrolledPercentage(y) * (float) itemCount; in setRecyclerViewPosition()
96 int targetPos = getValueInRange(0, itemCount - 1, (int) scrolledPosition); in setRecyclerViewPosition()
/packages/apps/Settings/src/com/android/settings/
DSettingsPreferenceFragment.java91 public void onItemRangeChanged(int positionStart, int itemCount) {
96 public void onItemRangeChanged(int positionStart, int itemCount, Object payload) {
101 public void onItemRangeInserted(int positionStart, int itemCount) {
106 public void onItemRangeRemoved(int positionStart, int itemCount) {
111 public void onItemRangeMoved(int fromPosition, int toPosition, int itemCount) {
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/
DSettingsPreferenceFragment.java91 public void onItemRangeChanged(int positionStart, int itemCount) {
96 public void onItemRangeChanged(int positionStart, int itemCount, Object payload) {
101 public void onItemRangeInserted(int positionStart, int itemCount) {
106 public void onItemRangeRemoved(int positionStart, int itemCount) {
111 public void onItemRangeMoved(int fromPosition, int toPosition, int itemCount) {
/packages/apps/Launcher3/src/com/android/launcher3/folder/
DFolderPagedView.java302 public void arrangeChildren(ArrayList<View> list, int itemCount) { in arrangeChildren() argument
303 arrangeChildren(list, itemCount, true); in arrangeChildren()
307 private void arrangeChildren(ArrayList<View> list, int itemCount, boolean saveChanges) { in arrangeChildren() argument
314 setupContentDimensions(itemCount); in arrangeChildren()
326 for (int i = 0; i < itemCount; i++) { in arrangeChildren()
DFolder.java1032 public void rearrangeChildren(int itemCount) { in rearrangeChildren() argument
1034 mContent.arrangeChildren(views, Math.max(itemCount, views.size())); in rearrangeChildren()
1047 int itemCount = mInfo.contents.size(); in replaceFolderWithFinalItem()
1048 if (itemCount <= 1) { in replaceFolderWithFinalItem()
1051 if (itemCount == 1) { in replaceFolderWithFinalItem()
/packages/apps/Car/Notification/src/com/android/car/notification/
DCarNotificationViewAdapter.java386 int itemCount = mNotifications.size(); in getItemCount() local
388 if (mIsGroupNotificationAdapter && itemCount > mMaxNumberGroupChildrenShown) { in getItemCount()
398 return Math.min(itemCount, maxItemCount); in getItemCount()
400 return itemCount; in getItemCount()
/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/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/PermissionController/src/com/android/packageinstaller/permission/ui/television/
DPermissionsFrameFragment.java161 public void onItemRangeInserted(int positionStart, int itemCount) { in onCreateAdapter()
166 public void onItemRangeRemoved(int positionStart, int itemCount) { in onCreateAdapter()
/packages/apps/DocumentsUI/src/com/android/documentsui/
DFocusManager.java585 int itemCount = mScope.adapter.getItemCount(); in buildIndex() local
586 List<String> index = new ArrayList<>(itemCount); in buildIndex()
587 for (int i = 0; i < itemCount; i++) { in buildIndex()
/packages/apps/PermissionController/src/com/android/packageinstaller/permission/ui/handheld/
DPermissionsFrameFragment.java172 public void onItemRangeInserted(int positionStart, int itemCount) { in onBindPreferences()
177 public void onItemRangeRemoved(int positionStart, int itemCount) { in onBindPreferences()
/packages/apps/Car/Launcher/src/com/android/car/carlauncher/
DAppGridActivity.java230 int itemCount = Math.min(mColumnNumber, statsSize); in getMostRecentApps() local
231 while (itemsAdded < itemCount && currentIndex < statsSize) { in getMostRecentApps()
/packages/apps/TV/src/com/android/tv/ui/sidepanel/
DSideFragment.java210 protected void notifyItemsChanged(int positionStart, int itemCount) { in notifyItemsChanged() argument
211 while (itemCount-- != 0) { in notifyItemsChanged()
/packages/apps/Messaging/src/com/android/messaging/ui/conversation/
DConversationFastScroller.java410 final int itemCount = mRv.getAdapter().getItemCount(); in handleDragMove() local
411 final int itemPos = (int)((itemCount - 1) * dragScrollRatio); in handleDragMove()

12