Home
last modified time | relevance | path

Searched refs:numItems (Results 1 – 19 of 19) 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.java54 final int numItems = mListView.getCount(); in testScrollDownToBottom() local
56 for (int i = 0; i < numItems; i++) { in testScrollDownToBottom()
60 assertEquals("selected position", numItems - 1, mListView.getSelectedItemPosition()); in testScrollDownToBottom()
67 final int numItems = mListView.getCount(); in testScrollFromBottomToTop() local
71 mListView.setSelection(numItems - 1); in testScrollFromBottomToTop()
76 for (int i = numItems - 1; i >=0; i--) { in testScrollFromBottomToTop()
DListOfThinItemsTest.java58 final int numItems = mListView.getAdapter().getCount(); in testScrollToBottom() local
60 for (int i = 0; i < numItems; i++) { in testScrollToBottom()
90 final int numItems = mListView.getAdapter().getCount(); in testScrollToTop() local
92 for (int i = 0; i < numItems - 1; i++) { in testScrollToTop()
96 numItems - 1, mListView.getSelectedItemPosition()); in testScrollToTop()
101 for (int i = 0; i < numItems; i++) { in testScrollToTop()
102 int expectedPostion = numItems - (i + 1); in testScrollToTop()
DListOfItemsTallerThanScreenTest.java133 final int numItems = mListView.getAdapter().getCount(); in testScrollDownToLastItem() local
136 while (mListView.getSelectedItemPosition() < (numItems - 1)) { in testScrollDownToLastItem()
154 assertEquals(numItems - 1, mListView.getSelectedItemPosition()); in testScrollDownToLastItem()
DListWithScreenOfNoSelectablesTest.java46 final int numItems = mListView.getCount(); in testPreconditions() local
47 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.java186 int numItems = getChildCount(); in layoutItems() local
187 if (numItems == 0) { in layoutItems()
194 Math.min((int) Math.ceil(numItems / (float) mMaxItemsPerRow), mMaxRows); in layoutItems()
201 layoutItemsUsingGravity(curNumRows, numItems); in layoutItems()
203 if (curNumRows >= numItems) { in layoutItems()
224 private void layoutItemsUsingGravity(int numRows, int numItems) { in layoutItemsUsingGravity() argument
225 int numBaseItemsPerRow = numItems / numRows; in layoutItemsUsingGravity()
226 int numLeftoverItems = numItems % numRows; in layoutItemsUsingGravity()
665 int numItems = getChildCount(); in calculateItemFittingMetadata() local
666 for (int i = 0; i < numItems; i++) { in calculateItemFittingMetadata()
/frameworks/av/media/libstagefright/foundation/
DMetaDataBase.cpp458 size_t numItems = mInternalData->mItems.size(); in writeToParcel() local
459 ret = parcel.writeUint32(uint32_t(numItems)); in writeToParcel()
463 for (size_t i = 0; i < numItems; i++) { in writeToParcel()
501 uint32_t numItems; in updateFromParcel() local
502 if (parcel.readUint32(&numItems) == OK) { in updateFromParcel()
504 for (size_t i = 0; i < numItems; i++) { in updateFromParcel()
/frameworks/base/core/tests/coretests/src/android/util/
DGridScenario.java106 public Params setNumItems(int numItems) { in setNumItems() argument
107 mNumItems = numItems; in setNumItems()
DListScenario.java122 public Params setNumItems(int numItems) { in setNumItems() argument
123 mNumItems = numItems; in setNumItems()
/frameworks/base/services/core/java/com/android/server/notification/
DNotificationDelegate.java39 void onPanelRevealed(boolean clearEffects, int numItems); in onPanelRevealed() argument
/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.aidl58 void onPanelRevealed(boolean clearNotificationEffects, int numItems); in onPanelRevealed() argument
/frameworks/base/core/java/android/widget/
DGallery.java725 int numItems = mItemCount; in fillToGalleryLeftRtl() local
828 int numItems = mItemCount; in fillToGalleryRightLtr() local
844 while (curLeftEdge < galleryRight && curPosition < numItems) { in fillToGalleryRightLtr()
DEditor.java2783 final int numItems = mSuggestionHelper.getSuggestionInfo(suggestionInfoArray, null); in onCreateContextMenu() local
2784 for (int i = 0; i < numItems; i++) { in onCreateContextMenu()
/frameworks/base/core/tests/coretests/src/android/content/pm/
DComponentTest.java720 int numItems = launchables.size(); in testNonExplicitResolveAfterEnabling() local
721 assertEquals(0, numItems); in testNonExplicitResolveAfterEnabling()
/frameworks/base/services/core/java/com/android/server/statusbar/
DStatusBarManagerService.java1076 public void onPanelRevealed(boolean clearNotificationEffects, int numItems) { in onPanelRevealed() argument
1080 mNotificationDelegate.onPanelRevealed(clearNotificationEffects, numItems); in onPanelRevealed()
/frameworks/base/services/core/java/com/android/server/inputmethod/
DInputMethodManagerService.java1929 final int numItems = mActivityViewDisplayIdToParentMap.size(); in removeClient() local
1930 for (int i = numItems - 1; i >= 0; --i) { in removeClient()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/
DNotificationStackScrollLayout.java5591 int numItems = hideAnimatedList.size();
5592 for (int i = numItems - 1; i >= 0; i--) {