Home
last modified time | relevance | path

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

12

/frameworks/base/core/java/com/android/internal/widget/
DOpReorderer.java68 if (moveOp.positionStart < moveOp.itemCount) { in swapMoveRemove()
71 && removeOp.itemCount == moveOp.itemCount - moveOp.positionStart) { in swapMoveRemove()
76 if (removeOp.positionStart == moveOp.itemCount + 1 in swapMoveRemove()
77 && removeOp.itemCount == moveOp.positionStart - moveOp.itemCount) { in swapMoveRemove()
83 if (moveOp.itemCount < removeOp.positionStart) { in swapMoveRemove()
85 } else if (moveOp.itemCount < removeOp.positionStart + removeOp.itemCount) { in swapMoveRemove()
87 removeOp.itemCount--; in swapMoveRemove()
89 moveOp.itemCount = 1; in swapMoveRemove()
90 if (removeOp.itemCount == 0) { in swapMoveRemove()
101 } else if (moveOp.positionStart < removeOp.positionStart + removeOp.itemCount) { in swapMoveRemove()
[all …]
DAdapterHelper.java135 int tmpEnd = op.positionStart + op.itemCount; in applyRemove()
175 if (tmpCount != op.itemCount) { // all 1 effect in applyRemove()
189 int tmpEnd = op.positionStart + op.itemCount; in applyUpdate()
214 if (tmpCount != op.itemCount) { // all 1 effect in applyUpdate()
261 for (int p = 1; p < op.itemCount; p++) { in dispatchAndUpdateViewHolders()
317 mCallback.offsetPositionsForRemovingInvisible(offsetStart, op.itemCount); in dispatchFirstPassAndUpdateViewHolders()
320 mCallback.markViewHoldersUpdated(offsetStart, op.itemCount, op.payload); in dispatchFirstPassAndUpdateViewHolders()
334 if (postponed.positionStart < postponed.itemCount) { in updatePositionWithPostponed()
336 end = postponed.itemCount; in updatePositionWithPostponed()
338 start = postponed.itemCount; in updatePositionWithPostponed()
[all …]
DRecyclerView.java810 int positionStart, int itemCount) { in initAdapterManager()
811 offsetPositionRecordsForRemove(positionStart, itemCount, false); in initAdapterManager()
816 public void markViewHoldersUpdated(int positionStart, int itemCount, Object payload) { in initAdapterManager()
817 viewRangeUpdate(positionStart, itemCount, payload); in initAdapterManager()
829 mLayout.onItemsAdded(RecyclerView.this, op.positionStart, op.itemCount); in initAdapterManager()
832 mLayout.onItemsRemoved(RecyclerView.this, op.positionStart, op.itemCount); in initAdapterManager()
835 mLayout.onItemsUpdated(RecyclerView.this, op.positionStart, op.itemCount, in initAdapterManager()
839 mLayout.onItemsMoved(RecyclerView.this, op.positionStart, op.itemCount, 1); in initAdapterManager()
850 public void offsetPositionsForAdd(int positionStart, int itemCount) { in initAdapterManager()
851 offsetPositionRecordsForInsert(positionStart, itemCount); in initAdapterManager()
[all …]
DAutoScrollHelper.java894 final int itemCount = target.getCount(); in canTargetScrollVertically() local
895 if (itemCount == 0) { in canTargetScrollVertically()
905 if (lastPosition >= itemCount) { in canTargetScrollVertically()
DGridLayoutManager.java198 public void onItemsAdded(RecyclerView recyclerView, int positionStart, int itemCount) { in onItemsAdded() argument
208 public void onItemsRemoved(RecyclerView recyclerView, int positionStart, int itemCount) { in onItemsRemoved() argument
213 public void onItemsUpdated(RecyclerView recyclerView, int positionStart, int itemCount, in onItemsUpdated() argument
219 public void onItemsMoved(RecyclerView recyclerView, int from, int to, int itemCount) { in onItemsMoved() argument
414 int start, int end, int itemCount) { in findReferenceChild() argument
424 if (position >= 0 && position < itemCount) { in findReferenceChild()
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/items/
DAbstractItemHierarchy.java76 public void notifyItemRangeChanged(int position, int itemCount) { in notifyItemRangeChanged() argument
81 if (itemCount < 0) { in notifyItemRangeChanged()
82 Log.w(TAG, "notifyItemRangeChanged: Invalid itemCount=" + itemCount); in notifyItemRangeChanged()
87 observer.onItemRangeChanged(this, position, itemCount); in notifyItemRangeChanged()
92 public void notifyItemRangeInserted(int position, int itemCount) { in notifyItemRangeInserted() argument
97 if (itemCount < 0) { in notifyItemRangeInserted()
98 Log.w(TAG, "notifyItemRangeInserted: Invalid itemCount=" + itemCount); in notifyItemRangeInserted()
103 observer.onItemRangeInserted(this, position, itemCount); in notifyItemRangeInserted()
108 public void notifyItemRangeMoved(int fromPosition, int toPosition, int itemCount) { in notifyItemRangeMoved() argument
117 if (itemCount < 0) { in notifyItemRangeMoved()
[all …]
DItemHierarchy.java48 void onItemRangeChanged(ItemHierarchy itemHierarchy, int positionStart, int itemCount); in onItemRangeChanged() argument
51 void onItemRangeInserted(ItemHierarchy itemHierarchy, int positionStart, int itemCount); in onItemRangeInserted() argument
55 ItemHierarchy itemHierarchy, int fromPosition, int toPosition, int itemCount); in onItemRangeMoved() argument
58 void onItemRangeRemoved(ItemHierarchy itemHierarchy, int positionStart, int itemCount); in onItemRangeRemoved() argument
DItemGroup.java217 public void onItemRangeChanged(ItemHierarchy itemHierarchy, int positionStart, int itemCount) { in onItemRangeChanged() argument
221 notifyItemRangeChanged(childPosition + positionStart, itemCount); in onItemRangeChanged()
228 public void onItemRangeInserted(ItemHierarchy itemHierarchy, int positionStart, int itemCount) { in onItemRangeInserted() argument
232 notifyItemRangeInserted(childPosition + positionStart, itemCount); in onItemRangeInserted()
240 ItemHierarchy itemHierarchy, int fromPosition, int toPosition, int itemCount) { in onItemRangeMoved() argument
244 notifyItemRangeMoved(childPosition + fromPosition, childPosition + toPosition, itemCount); in onItemRangeMoved()
251 public void onItemRangeRemoved(ItemHierarchy itemHierarchy, int positionStart, int itemCount) { in onItemRangeRemoved() argument
255 notifyItemRangeRemoved(childPosition + positionStart, itemCount); in onItemRangeRemoved()
DItemAdapter.java93 public void onItemRangeChanged(ItemHierarchy itemHierarchy, int positionStart, int itemCount) { in onItemRangeChanged() argument
98 public void onItemRangeInserted(ItemHierarchy itemHierarchy, int positionStart, int itemCount) { in onItemRangeInserted() argument
104 ItemHierarchy itemHierarchy, int fromPosition, int toPosition, int itemCount) { in onItemRangeMoved() argument
109 public void onItemRangeRemoved(ItemHierarchy itemHierarchy, int positionStart, int itemCount) { in onItemRangeRemoved() argument
/frameworks/base/core/java/com/android/internal/view/menu/
DActionMenu.java133 final int itemCount = items.size(); in findItemIndex() local
134 for (int i = 0; i < itemCount; i++) { in findItemIndex()
153 final int itemCount = items.size(); in hasVisibleItems() local
155 for (int i = 0; i < itemCount; i++) { in hasVisibleItems()
168 final int itemCount = items.size(); in findItemWithShortcut() local
170 for (int i = 0; i < itemCount; i++) { in findItemWithShortcut()
209 int itemCount = items.size(); in removeGroup() local
211 while (i < itemCount) { in removeGroup()
214 itemCount--; in removeGroup()
228 final int itemCount = items.size(); in setGroupCheckable() local
[all …]
DBaseMenuPresenter.java91 final int itemCount = visibleItems.size(); in updateMenuView() local
92 for (int i = 0; i < itemCount; i++) { in updateMenuView()
/frameworks/native/libs/ui/
DHdrCapabilities.cpp63 const size_t itemCount = size_t(buf[3]); in unflatten() local
66 if (size < minSize + itemCount * sizeof(int32_t)) { in unflatten()
73 if (itemCount) { in unflatten()
74 mSupportedHdrTypes.resize(itemCount); in unflatten()
75 for (size_t i = 0; i < itemCount; ++i) { in unflatten()
/frameworks/opt/setupwizard/library/recyclerview/src/com/android/setupwizardlib/items/
DRecyclerItemAdapter.java168 public void onItemRangeChanged(ItemHierarchy itemHierarchy, int positionStart, int itemCount) { in onItemRangeChanged() argument
169 notifyItemRangeChanged(positionStart, itemCount); in onItemRangeChanged()
173 public void onItemRangeInserted(ItemHierarchy itemHierarchy, int positionStart, int itemCount) { in onItemRangeInserted() argument
174 notifyItemRangeInserted(positionStart, itemCount); in onItemRangeInserted()
179 ItemHierarchy itemHierarchy, int fromPosition, int toPosition, int itemCount) { in onItemRangeMoved() argument
182 if (itemCount == 1) { in onItemRangeMoved()
196 public void onItemRangeRemoved(ItemHierarchy itemHierarchy, int positionStart, int itemCount) { in onItemRangeRemoved() argument
197 notifyItemRangeRemoved(positionStart, itemCount); in onItemRangeRemoved()
/frameworks/opt/setupwizard/library/recyclerview/src/com/android/setupwizardlib/view/
DHeaderRecyclerView.java79 public void onItemRangeChanged(int positionStart, int itemCount) {
83 notifyItemRangeChanged(positionStart, itemCount);
87 public void onItemRangeInserted(int positionStart, int itemCount) {
91 notifyItemRangeInserted(positionStart, itemCount);
95 public void onItemRangeMoved(int fromPosition, int toPosition, int itemCount) {
101 for (int i = 0; i < itemCount; i++) {
107 public void onItemRangeRemoved(int positionStart, int itemCount) {
111 notifyItemRangeRemoved(positionStart, itemCount);
/frameworks/base/packages/SystemUI/src/com/android/systemui/wallet/ui/
DDotIndicatorDecoration.java70 int itemCount = recyclerView.getAdapter().getItemCount(); in onDrawOver() local
71 if (itemCount <= 1) { in onDrawOver()
86 mDotMargin * (itemCount - 1) in onDrawOver()
87 + 2 * mUnselectedRadius * (itemCount - 2) in onDrawOver()
95 while (itemsDrawn < itemCount) { in onDrawOver()
97 int i = isLayoutLtr() ? itemsDrawn : itemCount - itemsDrawn - 1; in onDrawOver()
/frameworks/base/core/java/android/os/
DRemoteCallbackList.java330 int itemCount = beginBroadcast(); in broadcast() local
332 for (int i = 0; i < itemCount; i++) { in broadcast()
347 int itemCount = beginBroadcast(); in broadcastForEachCookie() local
349 for (int i = 0; i < itemCount; i++) { in broadcastForEachCookie()
364 int itemCount = beginBroadcast(); in broadcast() local
366 for (int i = 0; i < itemCount; i++) { in broadcast()
/frameworks/base/telephony/java/com/android/internal/telephony/util/
DRemoteCallbackListExt.java37 int itemCount = beginBroadcast(); in broadcastAction() local
39 for (int i = 0; i < itemCount; i++) { in broadcastAction()
/frameworks/base/core/tests/coretests/src/android/widget/listview/
DListScrollListener.java65 public void onScroll(AbsListView view, int firstCell, int cellCount, int itemCount) { in onScroll() argument
67 mText.setText("Showing " + firstCell + "-" + last + "/" + itemCount); in onScroll()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/support/
DRecyclerViewUtil.java56 @NonNull LayoutlibCallback layoutlibCallback, int adapterLayout, int itemCount) { in setAdapter() argument
69 if (itemCount != -1) { in setAdapter()
70 setProperty(adapter, int.class, itemCount, "setItemCount"); in setAdapter()
/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/floatingmenu/
DAccessibilityFloatingMenuView.java773 int itemCount) { in updateRadiusWith() argument
775 getResources().getDimensionPixelSize(getRadiusResId(sizeType, itemCount)); in updateRadiusWith()
838 private @DimenRes int getRadiusResId(@SizeType int sizeType, int itemCount) { in getRadiusResId() argument
840 ? getSmallSizeResIdWith(itemCount) in getRadiusResId()
841 : getLargeSizeResIdWith(itemCount); in getRadiusResId()
844 private int getSmallSizeResIdWith(int itemCount) { in getSmallSizeResIdWith() argument
845 return itemCount > 1 in getSmallSizeResIdWith()
850 private int getLargeSizeResIdWith(int itemCount) { in getLargeSizeResIdWith() argument
851 return itemCount > 1 in getLargeSizeResIdWith()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/binding/
DFakeAdapter.java55 final int itemCount = binding.getItemCount(); in FakeAdapter() local
59 int[] typeCount = new int[itemCount]; in FakeAdapter()
DFakeExpandableAdapter.java54 private void createItems(Iterable<DataBindingItem> iterable, final int itemCount, in createItems() argument
58 int[] typeCount = new int[itemCount]; in createItems()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DQSDetailItems.java148 final int itemCount = items != null ? items.length : 0; in handleSetItems() local
149 mEmpty.setVisibility(itemCount == 0 ? VISIBLE : GONE); in handleSetItems()
150 mItemList.setVisibility(itemCount == 0 ? GONE : VISIBLE); in handleSetItems()
/frameworks/opt/setupwizard/library/recyclerview/test/instrumentation/src/com/android/setupwizardlib/test/
DSetupWizardRecyclerLayoutTest.java158 private Adapter createTestAdapter(final int itemCount) { in createTestAdapter() argument
170 return itemCount; in createTestAdapter()
DGlifRecyclerLayoutTest.java155 private Adapter createTestAdapter(final int itemCount) { in createTestAdapter() argument
167 return itemCount; in createTestAdapter()

12