/frameworks/base/core/java/com/android/internal/widget/ |
D | OpReorderer.java | 68 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 …]
|
D | AdapterHelper.java | 135 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 …]
|
D | RecyclerView.java | 810 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 …]
|
D | AutoScrollHelper.java | 894 final int itemCount = target.getCount(); in canTargetScrollVertically() local 895 if (itemCount == 0) { in canTargetScrollVertically() 905 if (lastPosition >= itemCount) { in canTargetScrollVertically()
|
D | GridLayoutManager.java | 198 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/ |
D | AbstractItemHierarchy.java | 76 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 …]
|
D | ItemHierarchy.java | 48 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
|
D | ItemGroup.java | 217 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()
|
D | ItemAdapter.java | 93 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/ |
D | ActionMenu.java | 133 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 …]
|
D | BaseMenuPresenter.java | 91 final int itemCount = visibleItems.size(); in updateMenuView() local 92 for (int i = 0; i < itemCount; i++) { in updateMenuView()
|
/frameworks/native/libs/ui/ |
D | HdrCapabilities.cpp | 63 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/ |
D | RecyclerItemAdapter.java | 168 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/ |
D | HeaderRecyclerView.java | 79 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/ |
D | DotIndicatorDecoration.java | 70 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/ |
D | RemoteCallbackList.java | 330 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/ |
D | RemoteCallbackListExt.java | 37 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/ |
D | ListScrollListener.java | 65 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/ |
D | RecyclerViewUtil.java | 56 @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/ |
D | AccessibilityFloatingMenuView.java | 773 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/ |
D | FakeAdapter.java | 55 final int itemCount = binding.getItemCount(); in FakeAdapter() local 59 int[] typeCount = new int[itemCount]; in FakeAdapter()
|
D | FakeExpandableAdapter.java | 54 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/ |
D | QSDetailItems.java | 148 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/ |
D | SetupWizardRecyclerLayoutTest.java | 158 private Adapter createTestAdapter(final int itemCount) { in createTestAdapter() argument 170 return itemCount; in createTestAdapter()
|
D | GlifRecyclerLayoutTest.java | 155 private Adapter createTestAdapter(final int itemCount) { in createTestAdapter() argument 167 return itemCount; in createTestAdapter()
|