Searched defs:numItems (Results 1 - 10 of 10) sorted by relevance

/frameworks/base/core/java/android/content/pm/
H A DParceledListSlice.java48 private ParceledListSlice(Parcel p, int numItems, boolean lastSlice) { argument
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/view/menu/
H A DMenuScenario.java54 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; field in class:MenuScenario.Params
159 public Params setNumItems(int numItems) { argument
160 this.numItems = numItems;
/frameworks/base/core/tests/coretests/src/android/widget/focus/
H A DListOfInternalSelectionViews.java38 public static final String BUNDLE_PARAM_NUM_ITEMS = "com.google.test.numItems";
98 * @param numItems The number of items in the list.
103 public static Bundle getBundleFor(int numItems, int numRowsPerItem, double itemScreenHeightFactor) { argument
105 bundle.putInt(BUNDLE_PARAM_NUM_ITEMS, numItems);
136 int numItems = icicle.getInt(BUNDLE_PARAM_NUM_ITEMS, -1);
137 if (numItems != -1) {
138 mNumItems = numItems;
/frameworks/base/core/tests/coretests/src/android/util/
H A DGridScenario.java106 public Params setNumItems(int numItems) { argument
107 mNumItems = numItems;
H A DListScenario.java121 public Params setNumItems(int numItems) { argument
122 mNumItems = numItems;
/frameworks/native/libs/utils/
H A DVectorImpl.cpp135 ssize_t VectorImpl::insertAt(size_t index, size_t numItems) argument
137 return insertAt(0, index, numItems);
140 ssize_t VectorImpl::insertAt(const void* item, size_t index, size_t numItems) argument
144 void* where = _grow(index, numItems);
147 _do_splat(where, item, numItems);
149 _do_construct(where, numItems);
/frameworks/native/include/utils/
H A 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) { argument
321 return VectorImpl::insertAt(&item, index, numItems);
340 ssize_t Vector<TYPE>::insertAt(size_t index, size_t numItems) { argument
341 return VectorImpl::insertAt(index, numItems);
/frameworks/base/core/java/com/android/internal/view/menu/
H A DIconMenuView.java182 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) { argument
221 int numBaseItemsPerRow = numItems / numRows;
222 int numLeftoverItems = numItems % numRows;
659 int numItems
[all...]
/frameworks/rs/
H A DrsAllocation.cpp236 uint32_t numItems = mHal.state.type->getSizeBytes() / mHal.state.type->getElementSizeBytes(); local
237 return numItems * mHal.state.type->getElement()->getSizeBytesUnpadded();
245 uint32_t numItems = type->getSizeBytes() / paddedBytes; local
253 for (uint32_t i = 0; i < numItems; i ++) {
276 for (uint32_t i = 0; i < numItems; i ++) {
300 uint32_t numItems = mHal.state.type->getSizeBytes() / paddedBytes; local
303 uint8_t *dst = new uint8_t[numItems * unpaddedBytes];
/frameworks/support/renderscript/v8/rs_support/
H A DrsAllocation.cpp217 uint32_t numItems = mHal.state.type->getSizeBytes() / mHal.state.type->getElementSizeBytes(); local
218 return numItems * mHal.state.type->getElement()->getSizeBytesUnpadded();
226 uint32_t numItems = type->getSizeBytes() / paddedBytes; local
234 for (uint32_t i = 0; i < numItems; i ++) {
257 for (uint32_t i = 0; i < numItems; i ++) {
281 uint32_t numItems = mHal.state.type->getSizeBytes() / paddedBytes; local
284 uint8_t *dst = new uint8_t[numItems * unpaddedBytes];

Completed in 118 milliseconds