Home
last modified time | relevance | path

Searched refs:itemCount (Results 1 – 25 of 42) 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.java806 int positionStart, int itemCount) { in initAdapterManager()
807 offsetPositionRecordsForRemove(positionStart, itemCount, false); in initAdapterManager()
812 public void markViewHoldersUpdated(int positionStart, int itemCount, Object payload) { in initAdapterManager()
813 viewRangeUpdate(positionStart, itemCount, payload); in initAdapterManager()
825 mLayout.onItemsAdded(RecyclerView.this, op.positionStart, op.itemCount); in initAdapterManager()
828 mLayout.onItemsRemoved(RecyclerView.this, op.positionStart, op.itemCount); in initAdapterManager()
831 mLayout.onItemsUpdated(RecyclerView.this, op.positionStart, op.itemCount, in initAdapterManager()
835 mLayout.onItemsMoved(RecyclerView.this, op.positionStart, op.itemCount, 1); in initAdapterManager()
846 public void offsetPositionsForAdd(int positionStart, int itemCount) { in initAdapterManager()
847 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()
/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.java132 final int itemCount = items.size(); in findItemIndex() local
133 for (int i = 0; i < itemCount; i++) { in findItemIndex()
152 final int itemCount = items.size(); in hasVisibleItems() local
154 for (int i = 0; i < itemCount; i++) { in hasVisibleItems()
167 final int itemCount = items.size(); in findItemWithShortcut() local
169 for (int i = 0; i < itemCount; i++) { in findItemWithShortcut()
208 int itemCount = items.size(); in removeGroup() local
210 while (i < itemCount) { in removeGroup()
213 itemCount--; in removeGroup()
227 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/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/native/libs/ui/
DHdrCapabilities.cpp67 const size_t itemCount = size_t(buf[3]); in unflatten() local
70 if (size < minSize + itemCount * sizeof(int32_t)) { in unflatten()
77 if (itemCount) { in unflatten()
78 mSupportedHdrTypes.resize(itemCount); in unflatten()
79 for (size_t i = 0; i < itemCount; ++i) { in unflatten()
/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/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/java/android/os/
DRemoteCallbackList.java329 int itemCount = beginBroadcast(); in broadcast() local
331 for (int i = 0; i < itemCount; i++) { in broadcast()
346 int itemCount = beginBroadcast(); in broadcastForEachCookie() local
348 for (int i = 0; i < itemCount; i++) { in broadcastForEachCookie()
/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/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.java55 private void createItems(Iterable<DataBindingItem> iterable, final int itemCount, in createItems() argument
59 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()
/frameworks/base/core/java/android/widget/
DFastScroller.java526 public void onItemCountChanged(int childCount, int itemCount) { in onItemCountChanged() argument
527 if (mOldItemCount != itemCount || mOldChildCount != childCount) { in onItemCountChanged()
528 mOldItemCount = itemCount; in onItemCountChanged()
531 final boolean hasMoreItems = itemCount - childCount > 0; in onItemCountChanged()
534 setThumbPos(getPosFromItemCount(firstVisibleItem, childCount, itemCount)); in onItemCountChanged()
537 updateLongList(childCount, itemCount); in onItemCountChanged()
541 private void updateLongList(int childCount, int itemCount) { in updateLongList() argument
542 final boolean longList = childCount > 0 && itemCount / childCount >= MIN_PAGES; in updateLongList()
/frameworks/wilhelm/tests/examples/
DslesTestDecodeToBuffQueue.cpp463 SLuint32 itemCount; in TestDecToBuffQueue() local
464 result = (*mdExtrItf)->GetItemCount(mdExtrItf, &itemCount); in TestDecToBuffQueue()
467 for(i=0 ; i<itemCount ; i++) { in TestDecToBuffQueue()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/
DValueParser.java230 int itemCount = length / 4; in retrieveTextAttribute() local
233 for (int i = 0; i < itemCount; i++, valueIndex += 4) { in retrieveTextAttribute()

12