Searched refs:itemCount (Results 1 - 25 of 51) sorted by relevance

123

/frameworks/support/v7/recyclerview/src/android/support/v7/widget/
H A DOpReorderer.java67 if (moveOp.positionStart < moveOp.itemCount) {
70 && removeOp.itemCount == moveOp.itemCount - moveOp.positionStart) {
75 if (removeOp.positionStart == moveOp.itemCount + 1 &&
76 removeOp.itemCount == moveOp.positionStart - moveOp.itemCount) {
82 if (moveOp.itemCount < removeOp.positionStart) {
84 } else if (moveOp.itemCount < removeOp.positionStart + removeOp.itemCount) {
86 removeOp.itemCount
233 obtainUpdateOp(int cmd, int startPosition, int itemCount) argument
[all...]
H A DAdapterHelper.java133 int tmpEnd = op.positionStart + op.itemCount;
173 if (tmpCount != op.itemCount) { // all 1 effect
187 int tmpEnd = op.positionStart + op.itemCount;
210 if (tmpCount != op.itemCount) { // all 1 effect
256 for (int p = 1; p < op.itemCount; p++) {
311 mCallback.offsetPositionsForRemovingInvisible(offsetStart, op.itemCount);
314 mCallback.markViewHoldersUpdated(offsetStart, op.itemCount);
328 if (postponed.positionStart < postponed.itemCount) {
330 end = postponed.itemCount;
332 start = postponed.itemCount;
492 onItemRangeChanged(int positionStart, int itemCount) argument
500 onItemRangeInserted(int positionStart, int itemCount) argument
508 onItemRangeRemoved(int positionStart, int itemCount) argument
516 onItemRangeMoved(int from, int to, int itemCount) argument
618 int itemCount; field in class:AdapterHelper.UpdateOp
620 UpdateOp(int cmd, int positionStart, int itemCount) argument
685 obtainUpdateOp(int cmd, int positionStart, int itemCount) argument
719 offsetPositionsForRemovingInvisible(int positionStart, int itemCount) argument
721 offsetPositionsForRemovingLaidOutOrNewView(int positionStart, int itemCount) argument
723 markViewHoldersUpdated(int positionStart, int itemCount) argument
729 offsetPositionsForAdd(int positionStart, int itemCount) argument
[all...]
H A DStaggeredGridLayoutManager.java1278 public void onItemsRemoved(RecyclerView recyclerView, int positionStart, int itemCount) { argument
1279 handleUpdate(positionStart, itemCount, AdapterHelper.UpdateOp.REMOVE);
1283 public void onItemsAdded(RecyclerView recyclerView, int positionStart, int itemCount) { argument
1284 handleUpdate(positionStart, itemCount, AdapterHelper.UpdateOp.ADD);
1294 public void onItemsMoved(RecyclerView recyclerView, int from, int to, int itemCount) { argument
1299 public void onItemsUpdated(RecyclerView recyclerView, int positionStart, int itemCount) { argument
1300 handleUpdate(positionStart, itemCount, AdapterHelper.UpdateOp.UPDATE);
1880 private int findFirstReferenceChildPosition(int itemCount) { argument
1885 if (position >= 0 && position < itemCount) {
1897 private int findLastReferenceChildPosition(int itemCount) { argument
2373 offsetForRemoval(int positionStart, int itemCount) argument
2385 offsetFullSpansForRemoval(int positionStart, int itemCount) argument
2403 offsetForAddition(int positionStart, int itemCount) argument
2415 offsetFullSpansForAddition(int positionStart, int itemCount) argument
[all...]
H A DRecyclerView.java469 public void offsetPositionsForRemovingLaidOutOrNewView(int positionStart, int itemCount) {
470 offsetPositionRecordsForRemove(positionStart, itemCount, false);
475 public void markViewHoldersUpdated(int positionStart, int itemCount) {
476 viewRangeUpdate(positionStart, itemCount);
488 mLayout.onItemsAdded(RecyclerView.this, op.positionStart, op.itemCount);
491 mLayout.onItemsRemoved(RecyclerView.this, op.positionStart, op.itemCount);
494 mLayout.onItemsUpdated(RecyclerView.this, op.positionStart, op.itemCount);
497 mLayout.onItemsMoved(RecyclerView.this, op.positionStart, op.itemCount, 1);
508 public void offsetPositionsForAdd(int positionStart, int itemCount) {
509 offsetPositionRecordsForInsert(positionStart, itemCount);
2597 offsetPositionRecordsForInsert(int positionStart, int itemCount) argument
2614 offsetPositionRecordsForRemove(int positionStart, int itemCount, boolean applyToPreLayout) argument
2650 viewRangeUpdate(int positionStart, int itemCount) argument
3272 onItemRangeChanged(int positionStart, int itemCount) argument
3280 onItemRangeInserted(int positionStart, int itemCount) argument
3288 onItemRangeRemoved(int positionStart, int itemCount) argument
3296 onItemRangeMoved(int fromPosition, int toPosition, int itemCount) argument
4219 viewRangeUpdate(int positionStart, int itemCount) argument
4672 notifyItemRangeChanged(int positionStart, int itemCount) argument
4723 notifyItemRangeInserted(int positionStart, int itemCount) argument
4757 notifyItemRangeRemoved(int positionStart, int itemCount) argument
6286 onItemsAdded(RecyclerView recyclerView, int positionStart, int itemCount) argument
6296 onItemsRemoved(RecyclerView recyclerView, int positionStart, int itemCount) argument
6306 onItemsUpdated(RecyclerView recyclerView, int positionStart, int itemCount) argument
6321 onItemsMoved(RecyclerView recyclerView, int from, int to, int itemCount) argument
7508 onItemRangeChanged(int positionStart, int itemCount) argument
7512 onItemRangeInserted(int positionStart, int itemCount) argument
7516 onItemRangeRemoved(int positionStart, int itemCount) argument
7520 onItemRangeMoved(int fromPosition, int toPosition, int itemCount) argument
7906 notifyItemRangeChanged(int positionStart, int itemCount) argument
7916 notifyItemRangeInserted(int positionStart, int itemCount) argument
7926 notifyItemRangeRemoved(int positionStart, int itemCount) argument
[all...]
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
H A DObjectAdapter.java46 * @param itemCount The number of items changed.
48 public void onItemRangeChanged(int positionStart, int itemCount) { argument
56 * @param itemCount The number of items inserted.
58 public void onItemRangeInserted(int positionStart, int itemCount) { argument
66 * @param itemCount The number of items removed.
68 public void onItemRangeRemoved(int positionStart, int itemCount) { argument
81 public void notifyItemRangeChanged(int positionStart, int itemCount) { argument
83 mObservers.get(i).onItemRangeChanged(positionStart, itemCount);
87 public void notifyItemRangeInserted(int positionStart, int itemCount) { argument
89 mObservers.get(i).onItemRangeInserted(positionStart, itemCount);
93 notifyItemRangeRemoved(int positionStart, int itemCount) argument
179 notifyItemRangeChanged(int positionStart, int itemCount) argument
183 notifyItemRangeInserted(int positionStart, int itemCount) argument
187 notifyItemRangeRemoved(int positionStart, int itemCount) argument
[all...]
H A DSparseArrayObjectAdapter.java69 * @param itemCount The count of how many items have changed.
71 public void notifyArrayItemRangeChanged(int positionStart, int itemCount) { argument
72 notifyItemRangeChanged(positionStart, itemCount);
112 final int itemCount = mItems.size();
113 if (itemCount == 0) {
117 notifyItemRangeRemoved(0, itemCount);
H A DArrayObjectAdapter.java74 * @param itemCount The count of how many items have changed.
76 public void notifyArrayItemRangeChanged(int positionStart, int itemCount) { argument
77 notifyItemRangeChanged(positionStart, itemCount);
169 int itemCount = mItems.size();
170 if (itemCount == 0) {
174 notifyItemRangeRemoved(0, itemCount);
H A DItemBridgeAdapter.java143 public void onItemRangeChanged(int positionStart, int itemCount) {
144 ItemBridgeAdapter.this.notifyItemRangeChanged(positionStart, itemCount);
147 public void onItemRangeInserted(int positionStart, int itemCount) {
148 ItemBridgeAdapter.this.notifyItemRangeInserted(positionStart, itemCount);
151 public void onItemRangeRemoved(int positionStart, int itemCount) {
152 ItemBridgeAdapter.this.notifyItemRangeRemoved(positionStart, itemCount);
H A DGridLayoutManager.java910 final int itemCount = mState.getItemCount();
911 if (measure && rowSize < 0 && itemCount > 0) {
916 } else if (mFocusPosition >= itemCount) {
917 position = itemCount - 1;
1580 final int itemCount = state.getItemCount();
1581 if (itemCount < 0) {
2093 public void onItemsAdded(RecyclerView recyclerView, int positionStart, int itemCount) { argument
2095 + positionStart + " itemCount " + itemCount);
2100 mFocusPositionOffset += itemCount;
2114 onItemsRemoved(RecyclerView recyclerView, int positionStart, int itemCount) argument
2133 onItemsMoved(RecyclerView recyclerView, int fromPosition, int toPosition, int itemCount) argument
2155 onItemsUpdated(RecyclerView recyclerView, int positionStart, int itemCount) argument
[all...]
H A DControlBarPresenter.java108 public void onItemRangeChanged(int positionStart, int itemCount) {
110 for (int i = 0; i < itemCount; i++) {
/frameworks/base/core/java/com/android/internal/view/menu/
H A DActionMenu.java130 final int itemCount = items.size();
131 for (int i = 0; i < itemCount; i++) {
150 final int itemCount = items.size();
152 for (int i = 0; i < itemCount; i++) {
165 final int itemCount = items.size();
167 for (int i = 0; i < itemCount; i++) {
202 int itemCount = items.size();
204 while (i < itemCount) {
207 itemCount--;
221 final int itemCount
[all...]
H A DBaseMenuPresenter.java89 final int itemCount = visibleItems.size();
90 for (int i = 0; i < itemCount; i++) {
/frameworks/support/v4/java/android/support/v4/widget/
H A DListViewAutoScrollHelper.java61 final int itemCount = target.getCount();
62 if (itemCount == 0) {
72 if (lastPosition >= itemCount) {
/frameworks/base/core/tests/coretests/src/android/widget/listview/
H A DListScrollListener.java65 public void onScroll(AbsListView view, int firstCell, int cellCount, int itemCount) { argument
67 mText.setText("Showing " + firstCell + "-" + last + "/" + itemCount);
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
H A DOpReorderTest.java47 public UpdateOp obtainUpdateOp(int cmd, int startPosition, int itemCount) {
48 return new UpdateOp(cmd, startPosition, itemCount);
57 int itemCount = 10; field in class:OpReorderTest
61 itemCount = count;
62 updatedItemCount = itemCount;
289 List<Item> items = new ArrayList<Item>(itemCount);
290 for (int i = 0; i < itemCount; i++) {
293 List<Item> clones = new ArrayList<Item>(itemCount);
294 for (int i = 0; i < itemCount; i++) {
364 for (int i = 0; i < op.itemCount;
[all...]
H A DAdapterHelperTest.java90 public void offsetPositionsForRemovingInvisible(int positionStart, int itemCount) {
91 final int positionEnd = positionStart + itemCount;
94 holder.offsetPosition(-itemCount, true);
96 holder.flagRemovedAndOffsetPosition(positionStart - 1, -itemCount, true);
103 int itemCount) {
104 final int positionEnd = positionStart + itemCount;
107 holder.offsetPosition(-itemCount, false);
109 holder.flagRemovedAndOffsetPosition(positionStart - 1, -itemCount, false);
115 public void markViewHoldersUpdated(int positionStart, int itemCount) {
116 final int positionEnd = positionStart + itemCount;
[all...]
H A DDefaultItemAnimatorTest.java135 void runAndWait(int itemCount, int seconds) throws Throwable { argument
136 runAndWait(itemCount, seconds, null);
139 void runAndWait(int itemCount, int seconds, final ThrowingRunnable postRun) throws Throwable { argument
153 waitForItems(itemCount, seconds);
157 void waitForItems(int itemCount, int seconds) throws InterruptedException { argument
159 mExpectedItemCount.tryAcquire(itemCount, seconds, TimeUnit.SECONDS));
H A DRecyclerViewAnimationsTest.java55 RecyclerView setupBasic(int itemCount) throws Throwable { argument
56 return setupBasic(itemCount, 0, itemCount);
59 RecyclerView setupBasic(int itemCount, int firstLayoutStartIndex, int firstLayoutItemCount) argument
61 return setupBasic(itemCount, firstLayoutStartIndex, firstLayoutItemCount, null);
64 RecyclerView setupBasic(int itemCount, int firstLayoutStartIndex, int firstLayoutItemCount, argument
70 mTestAdapter = new TestAdapter(itemCount);
406 final int itemCount = 20;
408 final TestAdapter adapter = new TestAdapter(itemCount) {
416 positionStatesTest(itemCount,
822 positionStatesTest(int itemCount, int firstLayoutStartIndex, int firstLayoutItemCount, AdapterOps adapterChanges, final PositionConstraint... constraints) argument
828 positionStatesTest(int itemCount, int firstLayoutStartIndex, int firstLayoutItemCount,TestAdapter adapter, AdapterOps adapterChanges, final PositionConstraint... constraints) argument
[all...]
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/binding/
H A DFakeAdapter.java56 final int itemCount = binding.getItemCount();
60 int[] typeCount = new int[itemCount];
H A DFakeExpandableAdapter.java55 private void createItems(Iterable<DataBindingItem> iterable, final int itemCount, argument
59 int[] typeCount = new int[itemCount];
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
H A DQSDetailItems.java156 final int itemCount = items != null ? Math.min(items.length, mMaxItems) : 0;
157 mEmpty.setVisibility(itemCount == 0 ? VISIBLE : GONE);
158 mItems.setVisibility(itemCount == 0 ? GONE : VISIBLE);
159 for (int i = mItems.getChildCount() - 1; i >= itemCount; i--) {
162 for (int i = 0; i < itemCount; i++) {
/frameworks/support/v4/ics/android/support/v4/view/accessibility/
H A DAccessibilityRecordCompatIcs.java158 public static void setItemCount(Object record, int itemCount) { argument
159 ((AccessibilityRecord) record).setItemCount(itemCount);
/frameworks/support/v7/appcompat/src/android/support/v7/internal/view/menu/
H A DBaseMenuPresenter.java93 final int itemCount = visibleItems.size();
94 for (int i = 0; i < itemCount; i++) {
/frameworks/support/v4/java/android/support/v4/view/accessibility/
H A DAccessibilityRecordCompat.java51 public void setItemCount(Object record, int itemCount); argument
219 public void setItemCount(Object record, int itemCount) { argument
431 public void setItemCount(Object record, int itemCount) { argument
432 AccessibilityRecordCompatIcs.setItemCount(record, itemCount);
729 * @param itemCount The number of items.
733 public void setItemCount(int itemCount) { argument
734 IMPL.setItemCount(mRecord, itemCount);
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/
H A DValueParser.java226 int itemCount = length / 4;
229 for (int i = 0; i < itemCount; i++, valueIndex += 4) {

Completed in 404 milliseconds

123