HomeSort by relevance Sort by last modified time
    Searched refs:itemCount (Results 1 - 25 of 190) sorted by null

1 2 3 4 5 6 7 8

  /external/robolectric/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 133 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;
    [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 74 * @param itemCount The count of how many items have changed.
76 public void notifyArrayItemRangeChanged(int positionStart, int itemCount) {
77 notifyItemRangeChanged(positionStart, itemCount);
169 int itemCount = mItems.size();
170 if (itemCount == 0) {
174 notifyItemRangeRemoved(0, itemCount);
ItemBridgeAdapter.java 143 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);
  /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) {
  /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++) {
  /external/chromium_org/third_party/WebKit/Source/core/html/
HTMLOListElement.h 35 int start() const { return m_hasExplicitStart ? m_start : (m_isReversed ? itemCount() : 1); }
47 unsigned itemCount() const
  /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...]
  /frameworks/support/v4/java/android/support/v4/widget/
ListViewAutoScrollHelper.java 61 final int itemCount = target.getCount();
62 if (itemCount == 0) {
72 if (lastPosition >= itemCount) {
  /external/chromium_org/third_party/icu/source/tools/icuswap/
icuswap.cpp 345 uint32_t itemCount, offset, i;
413 itemCount=ds->readUInt32(*(const uint32_t *)inBytes);
414 if(itemCount==0) {
420 offset=ds->readUInt32(inEntries[itemCount-1].dataOffset);
429 /* check that the itemCount fits, then the ToC table, then at least the header of the last item */
432 /* itemCount does not fit */
434 itemCount=0; /* make compilers happy */
436 itemCount=ds->readUInt32(*(const uint32_t *)inBytes);
437 if(itemCount==0) {
439 } else if((uint32_t)length<(4+8*itemCount)) {
    [all...]
  /external/icu/icu4c/source/tools/icuswap/
icuswap.cpp 345 uint32_t itemCount, offset, i;
413 itemCount=ds->readUInt32(*(const uint32_t *)inBytes);
414 if(itemCount==0) {
420 offset=ds->readUInt32(inEntries[itemCount-1].dataOffset);
429 /* check that the itemCount fits, then the ToC table, then at least the header of the last item */
432 /* itemCount does not fit */
434 itemCount=0; /* make compilers happy */
436 itemCount=ds->readUInt32(*(const uint32_t *)inBytes);
437 if(itemCount==0) {
439 } else if((uint32_t)length<(4+8*itemCount)) {
    [all...]
  /external/chromium_org/third_party/icu/source/tools/toolutil/
package.cpp 396 itemCount=0;
428 for(idx=0; idx<itemCount; ++idx) {
512 /* check that the itemCount fits, then the ToC table, then at least the header of the last item */
515 /* itemCount does not fit */
518 itemCount=udata_readInt32(ds, *(const int32_t *)inBytes);
519 setItemCapacity(itemCount); /* resize so there's space */
520 if(itemCount==0) {
522 } else if(length<(4+8*itemCount)) {
527 offset=20+(int32_t)ds->readUInt32(inEntries[itemCount-1].dataOffset);
537 if(itemCount<=0)
    [all...]
  /external/icu/icu4c/source/tools/toolutil/
package.cpp 396 itemCount=0;
428 for(idx=0; idx<itemCount; ++idx) {
512 /* check that the itemCount fits, then the ToC table, then at least the header of the last item */
515 /* itemCount does not fit */
518 itemCount=udata_readInt32(ds, *(const int32_t *)inBytes);
519 setItemCapacity(itemCount); /* resize so there's space */
520 if(itemCount==0) {
522 } else if(length<(4+8*itemCount)) {
527 offset=20+(int32_t)ds->readUInt32(inEntries[itemCount-1].dataOffset);
537 if(itemCount<=0)
    [all...]
  /external/chromium_org/third_party/WebKit/Source/web/
ExternalPopupMenu.cpp 189 int itemCount = popupMenuClient.listSize();
191 Vector<WebMenuItemInfo> items(static_cast<size_t>(itemCount));
192 for (int i = 0; i < itemCount; ++i) {
217 if (count < itemCount)
228 int itemCount = popupMenuClient.listSize();
230 for (int i = 0; i < itemCount ; ++i) {
244 int itemCount = popupMenuClient.listSize();
246 for (int i = 0; i < itemCount; ++i) {
  /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);
  /external/chromium_org/third_party/WebKit/public/platform/
WebBlobData.h 67 BLINK_PLATFORM_EXPORT size_t itemCount() const;
  /external/chromium_org/third_party/WebKit/Source/devtools/front_end/ui/
ViewportControl.js 78 itemCount: function() { return 0; },
200 this._cachedProviderElements = new Array(this._provider.itemCount());
213 var itemCount = this._provider.itemCount();
214 if (!itemCount)
216 this._cumulativeHeights = new Int32Array(itemCount);
218 for (var i = 1; i < itemCount; ++i)
297 this._headSelection = this._createSelectionModel(this._provider.itemCount() - 1, this.element, this.element.children.length);
365 var itemCount = this._provider.itemCount();
    [all...]
  /frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
OpReorderTest.java 47 public UpdateOp obtainUpdateOp(int cmd, int startPosition, int itemCount) {
48 return new UpdateOp(cmd, startPosition, itemCount);
57 int itemCount = 10;
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; i++)
    [all...]
  /external/chromium_org/third_party/icu/source/tools/genren/
genren.pl 129 $itemCount = 0;
145 $itemCount++;
222 die "Error: $itemCount lines from $fileCount files processed, but $symbolCount symbols were found.\n";
226 die "Error: $itemCount lines from $fileCount files processed, but $symbolCount symbols were found.\n";
229 print " Loaded $symbolCount symbols from $itemCount lines in $fileCount files.\n";

Completed in 505 milliseconds

1 2 3 4 5 6 7 8