Home
last modified time | relevance | path

Searched refs:numItems (Results 1 – 18 of 18) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/view/menu/
DMenuScenario.java54 mItems = new MenuItem[mParams.numItems]; in onParamsChanged()
55 mWasItemClicked = new boolean[mParams.numItems]; in onParamsChanged()
66 for (int i = 0; i < mParams.numItems; i++) { in onCreateOptionsMenu()
140 for (int i = 0; i < mParams.numItems; i++) { in findItemPosition()
150 private int numItems = 10; field in MenuScenario.Params
159 public Params setNumItems(int numItems) { in setNumItems() argument
160 this.numItems = numItems; in setNumItems()
/frameworks/base/core/tests/coretests/src/android/widget/listview/arrowscroll/
DListWithNoFadingEdgeTest.java52 final int numItems = mListView.getCount(); in testScrollDownToBottom() local
54 for (int i = 0; i < numItems; i++) { in testScrollDownToBottom()
58 … assertEquals("selected position", numItems - 1, mListView.getSelectedItemPosition()); in testScrollDownToBottom()
63 final int numItems = mListView.getCount(); in testScrollFromBottomToTop() local
67 mListView.setSelection(numItems - 1); in testScrollFromBottomToTop()
72 for (int i = numItems - 1; i >=0; i--) { in testScrollFromBottomToTop()
DListOfThinItemsTest.java51 final int numItems = mListView.getAdapter().getCount(); in testScrollToBottom() local
53 for (int i = 0; i < numItems; i++) { in testScrollToBottom()
79 final int numItems = mListView.getAdapter().getCount(); in testScrollToTop() local
81 for (int i = 0; i < numItems - 1; i++) { in testScrollToTop()
85 numItems - 1, mListView.getSelectedItemPosition()); in testScrollToTop()
90 for (int i = 0; i < numItems; i++) { in testScrollToTop()
91 int expectedPostion = numItems - (i + 1); in testScrollToTop()
DListOfItemsTallerThanScreenTest.java130 final int numItems = mListView.getAdapter().getCount(); in testScrollDownToLastItem() local
133 while (mListView.getSelectedItemPosition() < (numItems - 1)) { in testScrollDownToLastItem()
151 assertEquals(numItems - 1, mListView.getSelectedItemPosition()); in testScrollDownToLastItem()
DListWithScreenOfNoSelectablesTest.java44 final int numItems = mListView.getCount(); in testPreconditions() local
45 for (int i = 1; i < numItems; i++) { in testPreconditions()
/frameworks/base/core/java/android/content/pm/
DParceledListSlice.java48 private ParceledListSlice(Parcel p, int numItems, boolean lastSlice) { in ParceledListSlice() argument
50 mNumItems = numItems; in ParceledListSlice()
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/
DListOfInternalSelectionViews.java103 …public static Bundle getBundleFor(int numItems, int numRowsPerItem, double itemScreenHeightFactor)… in getBundleFor() argument
105 bundle.putInt(BUNDLE_PARAM_NUM_ITEMS, numItems); in getBundleFor()
136 int numItems = icicle.getInt(BUNDLE_PARAM_NUM_ITEMS, -1); in initFromBundle() local
137 if (numItems != -1) { in initFromBundle()
138 mNumItems = numItems; in initFromBundle()
/frameworks/base/core/java/com/android/internal/view/menu/
DIconMenuView.java182 int numItems = getChildCount(); in layoutItems() local
183 if (numItems == 0) { in layoutItems()
190 Math.min((int) Math.ceil(numItems / (float) mMaxItemsPerRow), mMaxRows); in layoutItems()
197 layoutItemsUsingGravity(curNumRows, numItems); in layoutItems()
199 if (curNumRows >= numItems) { in layoutItems()
220 private void layoutItemsUsingGravity(int numRows, int numItems) { in layoutItemsUsingGravity() argument
221 int numBaseItemsPerRow = numItems / numRows; in layoutItemsUsingGravity()
222 int numLeftoverItems = numItems % numRows; in layoutItemsUsingGravity()
659 int numItems = getChildCount(); in calculateItemFittingMetadata() local
660 for (int i = 0; i < numItems; i++) { in calculateItemFittingMetadata()
/frameworks/native/include/utils/
DVectorImpl.h75 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);
DVector.h134 inline ssize_t insertAt(size_t index, size_t numItems = 1);
136 ssize_t insertAt(const TYPE& prototype_item, size_t index, size_t numItems = 1);
320 ssize_t Vector<TYPE>::insertAt(const TYPE& item, size_t index, size_t numItems) {
321 return VectorImpl::insertAt(&item, index, numItems);
340 ssize_t Vector<TYPE>::insertAt(size_t index, size_t numItems) {
341 return VectorImpl::insertAt(index, numItems);
/frameworks/base/libs/hwui/utils/
DSortedListImpl.h56 ssize_t insertAt(size_t where, size_t numItems = 1);
57 ssize_t insertAt(const void* item, size_t where, size_t numItems = 1);
/frameworks/native/libs/utils/
DVectorImpl.cpp135 ssize_t VectorImpl::insertAt(size_t index, size_t numItems) in insertAt() argument
137 return insertAt(0, index, numItems); in insertAt()
140 ssize_t VectorImpl::insertAt(const void* item, size_t index, size_t numItems) in insertAt() argument
144 void* where = _grow(index, numItems); in insertAt()
147 _do_splat(where, item, numItems); in insertAt()
149 _do_construct(where, numItems); in insertAt()
/frameworks/support/renderscript/v8/rs_support/
DrsAllocation.cpp217 uint32_t numItems = mHal.state.type->getSizeBytes() / mHal.state.type->getElementSizeBytes(); in getPackedSize() local
218 return numItems * mHal.state.type->getElement()->getSizeBytesUnpadded(); in getPackedSize()
226 uint32_t numItems = type->getSizeBytes() / paddedBytes; in writePackedData() local
234 for (uint32_t i = 0; i < numItems; i ++) { in writePackedData()
257 for (uint32_t i = 0; i < numItems; i ++) { in writePackedData()
281 uint32_t numItems = mHal.state.type->getSizeBytes() / paddedBytes; in packVec3Allocation() local
284 uint8_t *dst = new uint8_t[numItems * unpaddedBytes]; in packVec3Allocation()
/frameworks/rs/
DrsAllocation.cpp236 uint32_t numItems = mHal.state.type->getSizeBytes() / mHal.state.type->getElementSizeBytes(); in getPackedSize() local
237 return numItems * mHal.state.type->getElement()->getSizeBytesUnpadded(); in getPackedSize()
245 uint32_t numItems = type->getSizeBytes() / paddedBytes; in writePackedData() local
253 for (uint32_t i = 0; i < numItems; i ++) { in writePackedData()
276 for (uint32_t i = 0; i < numItems; i ++) { in writePackedData()
300 uint32_t numItems = mHal.state.type->getSizeBytes() / paddedBytes; in packVec3Allocation() local
303 uint8_t *dst = new uint8_t[numItems * unpaddedBytes]; in packVec3Allocation()
/frameworks/base/core/tests/coretests/src/android/util/
DGridScenario.java106 public Params setNumItems(int numItems) { in setNumItems() argument
107 mNumItems = numItems; in setNumItems()
DListScenario.java121 public Params setNumItems(int numItems) { in setNumItems() argument
122 mNumItems = numItems; in setNumItems()
/frameworks/base/core/java/android/widget/
DGallery.java700 int numItems = mItemCount; in fillToGalleryLeftRtl() local
802 int numItems = mItemCount; in fillToGalleryRightLtr() local
818 while (curLeftEdge < galleryRight && curPosition < numItems) { in fillToGalleryRightLtr()
/frameworks/base/core/tests/coretests/src/android/content/pm/
DComponentTest.java718 int numItems = launchables.size(); in testNonExplicitResolveAfterEnabling() local
719 assertEquals(0, numItems); in testNonExplicitResolveAfterEnabling()