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

1 2

  /frameworks/base/core/tests/coretests/src/android/widget/listview/arrowscroll/
ListWithNoFadingEdgeTest.java 52 final int numItems = mListView.getCount();
54 for (int i = 0; i < numItems; i++) {
58 assertEquals("selected position", numItems - 1, mListView.getSelectedItemPosition());
63 final int numItems = mListView.getCount();
67 mListView.setSelection(numItems - 1);
72 for (int i = numItems - 1; i >=0; i--) {
ListOfThinItemsTest.java 51 final int numItems = mListView.getAdapter().getCount();
53 for (int i = 0; i < numItems; i++) {
79 final int numItems = mListView.getAdapter().getCount();
81 for (int i = 0; i < numItems - 1; i++) {
85 numItems - 1, mListView.getSelectedItemPosition());
90 for (int i = 0; i < numItems; i++) {
91 int expectedPostion = numItems - (i + 1);
ListWithScreenOfNoSelectablesTest.java 44 final int numItems = mListView.getCount();
45 for (int i = 1; i < numItems; i++) {
ListOfItemsTallerThanScreenTest.java 130 final int numItems = mListView.getAdapter().getCount();
133 while (mListView.getSelectedItemPosition() < (numItems - 1)) {
151 assertEquals(numItems - 1, mListView.getSelectedItemPosition());
  /frameworks/base/core/tests/coretests/src/android/view/menu/
MenuScenario.java 54 mItems = new MenuItem[mParams.numItems];
55 mWasItemClicked = new boolean[mParams.numItems];
66 for (int i = 0; i < mParams.numItems; i++) {
140 for (int i = 0; i < mParams.numItems; i++) {
150 private int numItems = 10;
159 public Params setNumItems(int numItems) {
160 this.numItems = numItems;
  /frameworks/base/core/java/android/content/pm/
ParceledListSlice.java 48 private ParceledListSlice(Parcel p, int numItems, boolean lastSlice) {
50 mNumItems = numItems;
145 final int numItems = in.readInt();
148 if (numItems > 0) {
160 return new ParceledListSlice(p, numItems, lastSlice);
  /frameworks/base/core/tests/coretests/src/android/widget/focus/
ListOfInternalSelectionViews.java 37 public static final String BUNDLE_PARAM_NUM_ITEMS = "com.google.test.numItems";
97 * @param numItems The number of items in the list.
102 public static Bundle getBundleFor(int numItems, int numRowsPerItem, double itemScreenHeightFactor) {
104 bundle.putInt(BUNDLE_PARAM_NUM_ITEMS, numItems);
132 int numItems = icicle.getInt(BUNDLE_PARAM_NUM_ITEMS, -1);
133 if (numItems != -1) {
134 mNumItems = numItems;
  /frameworks/base/libs/hwui/utils/
SortedListImpl.h 56 ssize_t insertAt(size_t where, size_t numItems = 1);
57 ssize_t insertAt(const void* item, size_t where, size_t numItems = 1);
  /external/webkit/Tools/DumpRenderTree/mac/
AppleScriptController.m 78 int numItems = [aeDesc numberOfItems];
79 for (int i = 0; i < numItems; ++i) {
  /frameworks/base/include/utils/
VectorImpl.h 75 ssize_t insertAt(size_t where, size_t numItems = 1);
76 ssize_t insertAt(const void* item, size_t where, size_t numItems = 1);
191 ssize_t insertAt(size_t where, size_t numItems = 1);
192 ssize_t insertAt(const void* item, size_t where, size_t numItems = 1);
Vector.h 135 inline ssize_t insertAt(size_t index, size_t numItems = 1);
137 ssize_t insertAt(const TYPE& prototype_item, size_t index, size_t numItems = 1);
325 ssize_t Vector<TYPE>::insertAt(const TYPE& item, size_t index, size_t numItems) {
326 return VectorImpl::insertAt(&item, index, numItems);
345 ssize_t Vector<TYPE>::insertAt(size_t index, size_t numItems) {
346 return VectorImpl::insertAt(index, numItems);
  /system/core/libpixelflinger/tinyutils/
VectorImpl.h 65 ssize_t insertAt(size_t where, size_t numItems = 1);
66 ssize_t insertAt(const void* item, size_t where, size_t numItems = 1);
174 ssize_t insertAt(size_t where, size_t numItems = 1);
175 ssize_t insertAt(const void* item, size_t where, size_t numItems = 1);
Vector.h 116 inline ssize_t insertAt(size_t index, size_t numItems = 1);
118 ssize_t insertAt(const TYPE& prototype_item, size_t index, size_t numItems = 1);
257 ssize_t Vector<TYPE>::insertAt(const TYPE& item, size_t index, size_t numItems) {
258 return VectorImpl::insertAt(&item, index, numItems);
277 ssize_t Vector<TYPE>::insertAt(size_t index, size_t numItems) {
278 return VectorImpl::insertAt(index, numItems);
VectorImpl.cpp 126 ssize_t VectorImpl::insertAt(size_t index, size_t numItems)
128 return insertAt(0, index, numItems);
131 ssize_t VectorImpl::insertAt(const void* item, size_t index, size_t numItems)
135 void* where = _grow(index, numItems);
138 _do_splat(where, item, numItems);
140 _do_construct(where, numItems);
  /frameworks/base/core/java/com/android/internal/view/menu/
IconMenuView.java 182 int numItems = getChildCount();
183 if (numItems == 0) {
190 Math.min((int) Math.ceil(numItems / (float) mMaxItemsPerRow), mMaxRows);
197 layoutItemsUsingGravity(curNumRows, numItems);
199 if (curNumRows >= numItems) {
216 * @param numItems The total number of items (across all rows) contained in
220 private void layoutItemsUsingGravity(int numRows, int numItems) {
221 int numBaseItemsPerRow = numItems / numRows;
222 int numLeftoverItems = numItems % numRows;
659 int numItems = getChildCount()
    [all...]
  /external/harfbuzz/src/
harfbuzz-shaper.h 151 const HB_ScriptItem *items, hb_uint32 numItems,
156 const HB_ScriptItem *items, hb_uint32 numItems,
161 const HB_ScriptItem *items, hb_uint32 numItems,
  /external/webkit/Source/WebCore/platform/chromium/
PopupMenuChromium.cpp 129 // [0, numItems), and non-option items will be skipped.
133 int numItems() const { return static_cast<int>(m_items.size()); }
714 if (numItems() == 0 && event.windowsVirtualKeyCode() != VKEY_ESCAPE)
840 int itemCount = numItems();
869 for (int i = 0; i < numItems(); ++i)
873 if (numItems() == 0)
    [all...]
  /cts/tests/src/android/widget/cts/util/
ExpandableListScenario.java 106 int numItems = 0;
110 numItems += mNumChildren[i];
114 super.setNumItems(numItems);
120 public Params setNumItems(int numItems) {
  /external/sonivox/arm-wt-22k/lib_src/
eas_xmf.c 546 EAS_I32 numItems;
561 if ((result = XMF_ReadVLQ(hwInstData, pXMFData->fileHandle, &numItems)) != EAS_SUCCESS)
589 if (numItems == 0)
635 for ( ; numItems > 0; numItems--)
677 EAS_I32 numItems;
706 if ((result = XMF_ReadVLQ(pEASData, fileHandle, &numItems)) != EAS_SUCCESS)
729 while (numItems > 0)
793 numItems--;
796 if (numItems >0
    [all...]
  /external/webkit/Source/WebCore/rendering/
RenderListBox.cpp 102 int size = numItems();
208 return min(max(minSize, numItems()), maxDefaultSize);
217 int RenderListBox::numItems() const
224 return itemHeight() * numItems() - rowSpacing;
237 bool enabled = numVisibleItems() < numItems();
240 m_vBar->setProportion(numVisibleItems(), numItems());
263 int listItemsSize = numItems();
316 int size = numItems();
453 if (!numItems())
464 return newOffset < numItems() ? newOffset : -1
    [all...]
RenderListBox.h 133 int numItems() const;
  /external/webkit/Source/WebCore/platform/mac/
PopupMenuMac.mm 141 int numItems = [m_popup.get() numberOfItems];
142 if (numItems <= 0) {
147 ASSERT(numItems > index);
150 if (index == -1 && numItems == 2 && !client()->shouldPopOver() && ![[m_popup.get() itemAtIndex:1] isEnabled])
  /frameworks/base/libs/utils/
VectorImpl.cpp 135 ssize_t VectorImpl::insertAt(size_t index, size_t numItems)
137 return insertAt(0, index, numItems);
140 ssize_t VectorImpl::insertAt(const void* item, size_t index, size_t numItems)
144 void* where = _grow(index, numItems);
147 _do_splat(where, item, numItems);
149 _do_construct(where, numItems);
  /packages/apps/Gallery2/src/com/android/gallery3d/data/
TimeClustering.java 174 private void setTimeRange(long timeRange, int numItems) {
175 if (numItems != 0) {
176 int meanItemsPerCluster = numItems / NUM_CLUSTERS_TARGETED;
181 mClusterSplitTime = timeRange / numItems * CLUSTER_SPLIT_MULTIPLIER;
  /frameworks/base/core/tests/coretests/src/android/util/
GridScenario.java 106 public Params setNumItems(int numItems) {
107 mNumItems = numItems;

Completed in 1806 milliseconds

1 2