Home
last modified time | relevance | path

Searched refs:numItems (Results 1 – 22 of 22) 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.java53 final int numItems = mListView.getAdapter().getCount(); in testScrollToBottom() local
55 for (int i = 0; i < numItems; i++) { in testScrollToBottom()
81 final int numItems = mListView.getAdapter().getCount(); in testScrollToTop() local
83 for (int i = 0; i < numItems - 1; i++) { in testScrollToTop()
87 numItems - 1, mListView.getSelectedItemPosition()); in testScrollToTop()
92 for (int i = 0; i < numItems; i++) { in testScrollToTop()
93 int expectedPostion = numItems - (i + 1); in testScrollToTop()
DListOfItemsTallerThanScreenTest.java132 final int numItems = mListView.getAdapter().getCount(); in testScrollDownToLastItem() local
135 while (mListView.getSelectedItemPosition() < (numItems - 1)) { in testScrollDownToLastItem()
153 assertEquals(numItems - 1, mListView.getSelectedItemPosition()); in testScrollDownToLastItem()
DListWithScreenOfNoSelectablesTest.java45 final int numItems = mListView.getCount(); in testPreconditions() local
46 for (int i = 1; i < numItems; i++) { in testPreconditions()
/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/av/media/libstagefright/foundation/
DMetaData.cpp396 size_t numItems = mItems.size(); in writeToParcel() local
397 ret = parcel.writeUint32(uint32_t(numItems)); in writeToParcel()
401 for (size_t i = 0; i < numItems; i++) { in writeToParcel()
439 uint32_t numItems; in updateFromParcel() local
440 if (parcel.readUint32(&numItems) == OK) { in updateFromParcel()
442 for (size_t i = 0; i < numItems; i++) { in updateFromParcel()
/frameworks/base/services/core/java/com/android/server/notification/
DNotificationDelegate.java31 void onPanelRevealed(boolean clearEffects, int numItems); in onPanelRevealed() argument
/frameworks/support/v17/leanback/tests/java/android/support/v17/leanback/widget/
DGridWidgetTest.java1830 void testScrollAndRemove(int[] itemsLength, int numItems) throws Throwable { in testScrollAndRemove() argument
1838 intent.putExtra(GridActivity.EXTRA_NUM_ITEMS, numItems); in testScrollAndRemove()
2187 final int numItems = 200; in testNonFocusableHorizontal() local
2196 intent.putExtra(GridActivity.EXTRA_NUM_ITEMS, numItems); in testNonFocusableHorizontal()
2200 boolean[] focusable = new boolean[numItems]; in testNonFocusableHorizontal()
2237 final int numItems = 100; in testNoInitialFocusable() local
2238 intent.putExtra(GridActivity.EXTRA_NUM_ITEMS, numItems); in testNoInitialFocusable()
2242 boolean[] focusable = new boolean[numItems]; in testNoInitialFocusable()
2270 final int numItems = 100; in testFocusOutOfEmptyListView() local
2271 intent.putExtra(GridActivity.EXTRA_NUM_ITEMS, numItems); in testFocusOutOfEmptyListView()
[all …]
/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/rs/
DrsAllocation.cpp367 uint32_t numItems = mHal.state.type->getCellCount(); in getPackedSize() local
368 return numItems * mHal.state.type->getElement()->getSizeBytesUnpadded(); in getPackedSize()
376 uint32_t numItems = type->getPackedSizeBytes() / paddedBytes; in writePackedData() local
384 for (uint32_t i = 0; i < numItems; i ++) { in writePackedData()
407 for (uint32_t i = 0; i < numItems; i ++) { in writePackedData()
430 uint32_t numItems = mHal.state.type->getCellCount(); in packVec3Allocation() local
433 uint8_t *dst = new uint8_t[numItems * unpaddedBytes]; in packVec3Allocation()
/frameworks/base/core/java/com/android/internal/statusbar/
DIStatusBarService.aidl52 void onPanelRevealed(boolean clearNotificationEffects, int numItems); in onPanelRevealed() argument
/frameworks/support/content/tests/java/android/support/content/
DTestContentProvider.java155 int numItems = constrain(recordsetSize - offset, 0, limit); in buildPagedResults() local
158 for (int i = offset; i < offset + numItems; i++) { in buildPagedResults()
/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/widget/
DAnimatedRecyclerView.java373 int numItems = mItems.size(); in deleteSelectedItems() local
374 if (numItems > 0) { in deleteSelectedItems()
375 for (int i = numItems - 1; i >= 0; --i) { in deleteSelectedItems()
/frameworks/base/core/java/android/widget/
DGallery.java711 int numItems = mItemCount; in fillToGalleryLeftRtl() local
813 int numItems = mItemCount; in fillToGalleryRightLtr() local
829 while (curLeftEdge < galleryRight && curPosition < numItems) { in fillToGalleryRightLtr()
DEditor.java2617 final int numItems = mSuggestionHelper.getSuggestionInfo(suggestionInfoArray, null); in onCreateContextMenu() local
2618 for (int i = 0; i < numItems; i++) { in onCreateContextMenu()
/frameworks/base/core/tests/coretests/src/android/content/pm/
DComponentTest.java719 int numItems = launchables.size(); in testNonExplicitResolveAfterEnabling() local
720 assertEquals(0, numItems); in testNonExplicitResolveAfterEnabling()
/frameworks/base/services/core/java/com/android/server/statusbar/
DStatusBarManagerService.java761 public void onPanelRevealed(boolean clearNotificationEffects, int numItems) { in onPanelRevealed() argument
765 mNotificationDelegate.onPanelRevealed(clearNotificationEffects, numItems); in onPanelRevealed()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DStatusBar.java1532 int numItems = hideAnimatedList.size(); in performDismissAllAnimations() local
1533 for (int i = numItems - 1; i >= 0; i--) { in performDismissAllAnimations()
/frameworks/base/libs/androidfw/
DResourceTypes.cpp6863 size_t numItems = entryIndex - (typeMap.entryOffset + index); in createIdmap() local
6864 if (typeMap.entryMap.insertAt(0xffffffff, index, numItems) < 0) { in createIdmap()