/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/ |
CountingAdapter.java | 9 private int itemCount; 11 public CountingAdapter(int itemCount) { 12 this.itemCount = itemCount; 15 public void setCount(int itemCount) { 16 this.itemCount = itemCount; 22 return itemCount;
|
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/ |
OpReorderer.java | 67 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 -- [all...] |
AdapterHelper.java | 137 int tmpEnd = op.positionStart + op.itemCount; 177 if (tmpCount != op.itemCount) { // all 1 effect 191 int tmpEnd = op.positionStart + op.itemCount; 216 if (tmpCount != op.itemCount) { // all 1 effect 263 for (int p = 1; p < op.itemCount; p++) { 319 mCallback.offsetPositionsForRemovingInvisible(offsetStart, op.itemCount); 322 mCallback.markViewHoldersUpdated(offsetStart, op.itemCount, op.payload); 336 if (postponed.positionStart < postponed.itemCount) { 338 end = postponed.itemCount; 340 start = postponed.itemCount; [all...] |
/frameworks/data-binding/baseLibrary/src/main/java/android/databinding/ |
ObservableList.java | 64 * @param itemCount The number of items that have changed. 66 public abstract void onItemRangeChanged(T sender, int positionStart, int itemCount); 72 * @param itemCount The number of items that have been inserted 74 public abstract void onItemRangeInserted(T sender, int positionStart, int itemCount); 81 * @param itemCount The number of items moved 84 int itemCount); 90 * @param itemCount The number of items removed. 92 public abstract void onItemRangeRemoved(T sender, int positionStart, int itemCount);
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/app/ |
ListRowDataAdapter.java | 68 private void doNotify(int eventType, int positionStart, int itemCount) { 71 notifyItemRangeChanged(positionStart, itemCount); 74 notifyItemRangeInserted(positionStart, itemCount); 77 notifyItemRangeRemoved(positionStart, itemCount); 89 public void onItemRangeChanged(int positionStart, int itemCount) { 92 Math.min(itemCount, mLastVisibleRowIndex - positionStart + 1)); 97 public void onItemRangeInserted(int positionStart, int itemCount) { 99 mLastVisibleRowIndex += itemCount; 100 onEventFired(ON_ITEM_RANGE_INSERTED, positionStart, itemCount); 113 public void onItemRangeRemoved(int positionStart, int itemCount) { [all...] |
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
ObjectAdapter.java | 46 * @param itemCount The number of items changed. 48 public void onItemRangeChanged(int positionStart, int itemCount) { 56 * @param itemCount The number of items inserted. 58 public void onItemRangeInserted(int positionStart, int itemCount) { 66 * @param itemCount The number of items removed. 68 public void onItemRangeRemoved(int positionStart, int itemCount) { 81 public void notifyItemRangeChanged(int positionStart, int itemCount) { 83 mObservers.get(i).onItemRangeChanged(positionStart, itemCount); 87 public void notifyItemRangeInserted(int positionStart, int itemCount) { 89 mObservers.get(i).onItemRangeInserted(positionStart, itemCount); [all...] |
SparseArrayObjectAdapter.java | 69 * @param itemCount The count of how many items have changed. 71 public void notifyArrayItemRangeChanged(int positionStart, int itemCount) { 72 notifyItemRangeChanged(positionStart, itemCount); 112 final int itemCount = mItems.size(); 113 if (itemCount == 0) { 117 notifyItemRangeRemoved(0, itemCount);
|
ArrayObjectAdapter.java | 76 * @param itemCount The count of how many items have changed. 78 public void notifyArrayItemRangeChanged(int positionStart, int itemCount) { 79 notifyItemRangeChanged(positionStart, itemCount); 171 int itemCount = mItems.size(); 172 if (itemCount == 0) { 176 notifyItemRangeRemoved(0, itemCount);
|
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
FilterEmptyPromptSet.java | 38 int itemCount = mBaseSet.getMediaItemCount(); 39 if (itemCount > 0) { 40 return itemCount; 48 int itemCount = mBaseSet.getMediaItemCount(); 49 if (itemCount > 0) {
|
/frameworks/support/core-ui/java/android/support/v4/widget/ |
ListViewAutoScrollHelper.java | 49 final int itemCount = target.getCount(); 50 if (itemCount == 0) { 60 if (lastPosition >= itemCount) {
|
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/dexbacked/raw/ |
SectionAnnotator.java | 48 public final int itemCount; 58 this.itemCount = mapItem.getItemCount(); 71 annotateSectionInner(out, itemCount); 74 protected void annotateSectionInner(@Nonnull AnnotatedBytes out, int itemCount) { 77 if (itemCount > 0) { 84 for (int i=0; i<itemCount; i++) {
|
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/dirlist/ |
SectionBreakDocumentsAdapterWrapper.java | 193 public void onItemRangeChanged(int positionStart, int itemCount) { 197 public void onItemRangeChanged(int positionStart, int itemCount, Object payload) { 198 assert(itemCount == 1); 199 notifyItemRangeChanged(toViewPosition(positionStart), itemCount, payload); 202 public void onItemRangeInserted(int positionStart, int itemCount) { 203 assert(itemCount == 1); 207 notifyItemRangeInserted(toViewPosition(positionStart), itemCount); 210 public void onItemRangeRemoved(int positionStart, int itemCount) { 211 assert(itemCount == 1); 215 notifyItemRangeRemoved(toViewPosition(positionStart), itemCount); [all...] |
/frameworks/base/core/java/com/android/internal/view/menu/ |
ActionMenu.java | 130 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 = items.size() [all...] |
/dalvik/dexgen/src/com/android/dexgen/dex/file/ |
MapItem.java | 56 private final int itemCount; 122 * @param itemCount {@code > 0;} count of items covered 125 Item lastItem, int itemCount) { 144 if (itemCount <= 0) { 145 throw new IllegalArgumentException("itemCount <= 0"); 152 this.itemCount = itemCount; 172 this.itemCount = 1; 226 out.annotate(4, " size: " + Hex.u4(itemCount)); 232 out.writeInt(itemCount); [all...] |
/dalvik/dx/src/com/android/dx/dex/file/ |
MapItem.java | 55 private final int itemCount; 121 * @param itemCount {@code > 0;} count of items covered 124 Item lastItem, int itemCount) { 143 if (itemCount <= 0) { 144 throw new IllegalArgumentException("itemCount <= 0"); 151 this.itemCount = itemCount; 171 this.itemCount = 1; 225 out.annotate(4, " size: " + Hex.u4(itemCount)); 231 out.writeInt(itemCount); [all...] |
/external/dexmaker/src/dx/java/com/android/dx/dex/file/ |
MapItem.java | 56 private final int itemCount; 122 * @param itemCount {@code > 0;} count of items covered 125 Item lastItem, int itemCount) { 144 if (itemCount <= 0) { 145 throw new IllegalArgumentException("itemCount <= 0"); 152 this.itemCount = itemCount; 172 this.itemCount = 1; 226 out.annotate(4, " size: " + Hex.u4(itemCount)); 232 out.writeInt(itemCount); [all...] |
/packages/apps/Settings/src/com/android/settings/localepicker/ |
LocaleLinearLayoutManager.java | 80 final int itemCount = this.getItemCount(); 102 if (position + 1 < itemCount) { // it is not the last one 106 if (itemCount > 1) { 115 final int itemCount = this.getItemCount(); 127 if (position + 1 < itemCount) { 139 if (position != itemCount - 1) { 140 mAdapter.onItemMove(position, itemCount - 1); 145 if (itemCount > 1) {
|
/frameworks/support/v17/leanback/tests/java/android/support/v17/leanback/app/ |
ListRowDataAdapterTest.java | 55 int itemCount = 4; 58 for (int i = 0; i < itemCount; i++) { 74 int itemCount = 4; 77 for (int i = 0; i < itemCount; i++) { 95 int itemCount = 4; 98 for (int i = 0; i < itemCount; i++) { 118 int itemCount = 4; 121 for (int i = 0; i < itemCount; i++) { 149 int itemCount = 4; 152 for (int i = 0; i < itemCount; i++) [all...] |
/frameworks/opt/setupwizard/library/full-support/src/com/android/setupwizardlib/view/ |
HeaderRecyclerView.java | 76 public void onItemRangeChanged(int positionStart, int itemCount) { 77 notifyItemRangeChanged(positionStart, itemCount); 81 public void onItemRangeInserted(int positionStart, int itemCount) { 82 notifyItemRangeInserted(positionStart, itemCount); 86 public void onItemRangeMoved(int fromPosition, int toPosition, int itemCount) { 92 public void onItemRangeRemoved(int positionStart, int itemCount) { 93 notifyItemRangeRemoved(positionStart, itemCount);
|
/external/icu/icu4c/source/tools/icuswap/ |
icuswap.cpp | 344 uint32_t itemCount, offset, i; 412 itemCount=ds->readUInt32(*(const uint32_t *)inBytes); 413 if(itemCount==0) { 419 offset=ds->readUInt32(inEntries[itemCount-1].dataOffset); 428 /* check that the itemCount fits, then the ToC table, then at least the header of the last item */ 431 /* itemCount does not fit */ 433 itemCount=0; /* make compilers happy */ 435 itemCount=ds->readUInt32(*(const uint32_t *)inBytes); 436 if(itemCount==0) { 438 } else if((uint32_t)length<(4+8*itemCount)) { [all...] |
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/util/ |
AsyncListUtilTest.java | 128 private int getLoadedItemCount(int startPosition, int itemCount) { 130 for (int i = 0; i < itemCount; i++) { 188 public void fillData(String[] data, int startPosition, int itemCount) { 190 assertEquals(Math.min(TILE_SIZE, mDataItemCount - startPosition), itemCount); 193 for (int i = 0; i < itemCount; i++) { 271 public void expectItemRangeChanged(int startPosition, int itemCount) { 272 mItemsChangedLatch.expectRange(startPosition, itemCount); 288 int itemCount = mAsyncListUtil.getItemCount(); 289 if (mLastVisibleItem < itemCount) { 292 mLastVisibleItem = itemCount - 1 [all...] |
/frameworks/support/v7/recyclerview/src/android/support/v7/util/ |
ThreadUtil.java | 23 void updateItemCount(int generation, int itemCount);
|
/external/icu/icu4c/source/tools/toolutil/ |
package.cpp | 391 itemCount=0; 423 for(idx=0; idx<itemCount; ++idx) { 507 /* check that the itemCount fits, then the ToC table, then at least the header of the last item */ 510 /* itemCount does not fit */ 513 itemCount=udata_readInt32(ds, *(const int32_t *)inBytes); 514 setItemCapacity(itemCount); /* resize so there's space */ 515 if(itemCount==0) { 517 } else if(length<(4+8*itemCount)) { 522 offset=20+(int32_t)ds->readUInt32(inEntries[itemCount-1].dataOffset); 532 if(itemCount<=0) [all...] |
/frameworks/base/core/tests/coretests/src/android/widget/listview/ |
ListScrollListener.java | 65 public void onScroll(AbsListView view, int firstCell, int cellCount, int itemCount) { 67 mText.setText("Showing " + firstCell + "-" + last + "/" + itemCount);
|
/frameworks/support/v7/appcompat/tests/src/android/support/v7/testutils/ |
TestUtilsMatchers.java | 261 int itemCount = item.size(); 263 for (int i = 0; i < itemCount; i++) { 292 int itemCount = item.size(); 294 if (itemCount >= 2) { 295 for (int i = 0; i < itemCount - 1; i++) { 326 int itemCount = item.size(); 328 if (itemCount >= 2) { 329 for (int i = 0; i < itemCount - 1; i++) {
|