/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 | 806 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 …]
|
D | AutoScrollHelper.java | 894 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/ |
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 | 132 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 …]
|
D | BaseMenuPresenter.java | 91 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/ |
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/native/libs/ui/ |
D | HdrCapabilities.cpp | 67 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/ |
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/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/java/android/os/ |
D | RemoteCallbackList.java | 329 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/ |
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/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 | 55 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/ |
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()
|
/frameworks/base/core/java/android/widget/ |
D | FastScroller.java | 526 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/ |
D | slesTestDecodeToBuffQueue.cpp | 463 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/ |
D | ValueParser.java | 230 int itemCount = length / 4; in retrieveTextAttribute() local 233 for (int i = 0; i < itemCount; i++, valueIndex += 4) { in retrieveTextAttribute()
|